body {
    background: linear-gradient(135deg, #000000);
    color: white;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
}

.title {
    font-size: 2em;
    margin-bottom: 20px;
}

.terminal {
    background-color: black;
    border: 1px solid #00ff00;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    height: 400px;
    overflow-y: scroll; /* Giữ chức năng cuộn */
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
    position: relative;
    z-index: 10;
    border-radius: 5px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    -ms-overflow-style: none;  /* Ẩn scrollbar trên IE và Edge */
    scrollbar-width: none;  /* Ẩn scrollbar trên Firefox */
}

.input-container {
    display: flex;
    width: 100%;
    position: relative; /* Thay vì absolute */
    bottom: auto;
    margin-top: auto; /* Đẩy xuống dưới khi terminal có content */
    display: none; /* Hide initially */
}

.prompt {
    color: lime;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    white-space: nowrap; /* Prevent breaking */
}

.input {
    color: lime;
    border: none;
    background: none;
    outline: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    flex-grow: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1e1e1e;
    border: 1px solid #00ff00;
    padding: 20px;
    width: 0;
    height: 0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    position: relative;
    display: flex;
    justify-content: center; /* Center content */
    align-items: center; /* Center content */
    flex-direction: column;
    background-color: black; /* Set background to black */
    animation: expand 1s forwards; /* Animation to expand */
}

@keyframes expand {
    from {
        width: 0;
        height: 0;
    }
    to {
        width: 90%;
        height: 90%;
    }
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none; /* Hide initially */
}

.modal-content button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #00ff00;
    color: black;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.flash {
    color: lime;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5em;
    text-align: left; /* Align text to the left */
    width: 100%; /* Take full width */
}


* {
    -ms-overflow-style: none;  /* Hide scrollbar in IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar in Firefox */
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
    display: none;
}

.terminal:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.9);
}

.terminal::-webkit-scrollbar {
    width: 0;
    background: transparent; /* Ẩn hoàn toàn */
    display: none; /* Cách ẩn tối đa */
}

/* Thêm hiệu ứng typing cho output */
@keyframes typing {
    from { opacity: 0; }
    to { opacity: 1; }
}

#output {
    line-height: 1.4;
    flex-grow: 1;
    margin-bottom: 20px; /* Space for the input */
    overflow-y: auto;
    white-space: pre-wrap; /* Giữ các dòng mới và khoảng cách */
    -ms-overflow-style: none;  /* Ẩn scrollbar trên IE và Edge */
    scrollbar-width: none;  /* Ẩn scrollbar trên Firefox */
}

/* Hiệu ứng cursor nhấp nháy */
.input::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Nút đẹp hơn */
button {
    background: linear-gradient(to right, #00cc00, #00ff00);
    color: black;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.4);
}

/* Hiệu ứng particles */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Style cho các lệnh command output */
.command-output {
    border-left: 2px solid #00ff00;
    padding-left: 10px;
    margin: 10px 0;
}

#output::-webkit-scrollbar {
    width: 0;
    background: transparent; /* Ẩn hoàn toàn */
    display: none;
}

.matrix-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 5px 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    display: none;
}

.input-hint {
    position: absolute;
    bottom: -30px;
    left: 0;
    color: #888888;
    font-size: 0.9em;
    font-style: italic;
    animation: fadeInOut 3s forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Hiệu ứng nhấp nháy để thu hút sự chú ý vào input */
.blink-prompt {
    animation: blinkPrompt 0.8s ease-in-out 3;
}

@keyframes blinkPrompt {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Tạo hiệu ứng gợi ý cho input */
.input-container:not(:focus-within):after {
    content: "Click here to start typing";
    position: absolute;
    top: 100%;
    left: 0;
    color: #888888;
    font-size: 0.8em;
    margin-top: 5px;
    animation: fadeIn 1s forwards;
    pointer-events: none;
}

/* Cải thiện input container khi focus */
.terminal:focus-within {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.9);
}

.datetime-container {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border: 1px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    font-family: 'Courier New', monospace;
    z-index: 100;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out;
}

.datetime-container:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: scale(1.02);
}

.clock {
    font-size: 2em;
    color: #00ff00;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    margin-bottom: 5px;
}

.date {
    font-size: 0.9em;
    color: #00cc00;
    text-align: center;
    opacity: 0.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Thêm hiệu ứng pulse cho dấu hai chấm trong đồng hồ */
@keyframes pulseColon {
    from { opacity: 1; }
    to { opacity: 0.2; }
}

.clock span.colon {
    animation: pulseColon 1s infinite alternate;
}

/* Responsive design cho màn hình nhỏ */
@media (max-width: 768px) {
    .datetime-container {
        top: 10px;
        right: 10px;
        padding: 10px;
    }
    
    .clock {
        font-size: 1.5em;
    }
    
    .date {
        font-size: 0.8em;
    }
}

.discord-activity {
    position: fixed;
    top: 120px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px; /* Điều chỉnh padding giống datetime-container */
    border: 1px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
    animation: fadeIn 1s ease-out, cardFloat 3s ease-in-out infinite;
    width: 300px; /* Đặt chiều rộng cố định bằng với datetime-container */
    box-sizing: border-box; /* Đảm bảo padding không làm tăng kích thước */
}

#discord-status {
    display: block;
    width: 100%; /* Đảm bảo ảnh lấp đầy container */
    height: auto;
    border-radius: 5px; /* Thêm border radius cho ảnh */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .discord-activity {
        top: 90px;
        right: 10px;
        padding: 10px;
        width: 200px; /* Điều chỉnh width cho màn hình nhỏ */
    }
}

/* Animation for loading */
@keyframes cardFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

.discord-activity {
    animation: fadeIn 1s ease-out, cardFloat 3s ease-in-out infinite;
}


.changelog-box {
    position: fixed;
    top: 120px;
    left: 20px;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.85);
    border: 1px solid #00ff00;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    padding: 15px;
    color: #fff;
    font-family: 'Courier New', monospace;
    z-index: 100;
    animation: fadeIn 1s ease-out, cardFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #00ff00;
    padding-bottom: 5px;
}

.changelog-header h2 {
    margin: 0;
    color: #00ff00;
    font-size: 16px;
}

.changelog-minimize {
    background: none;
    border: none;
    color: #00ff00;
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
}

.changelog-content {
    height: 250px;
    overflow-y: auto;
    transition: height 0.3s ease;
}

.changelog-box.minimized .changelog-content {
    height: 0;
    overflow: hidden;
}

.changelog-version {
    margin-bottom: 15px;
}

.changelog-version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.changelog-version-number {
    font-weight: bold;
    color: #00ff00;
}

.changelog-version-date {
    font-size: 12px;
    color: #999;
}

.changelog-changes {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.changelog-changes li {
    font-size: 12px;
    margin-bottom: 3px;
}

.changelog-content::-webkit-scrollbar {
    width: 5px;
}

.changelog-content::-webkit-scrollbar-track {
    background: #111;
}

.changelog-content::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .changelog-box {
        top: 90px;
        left: 10px;
        width: 220px;
        padding: 10px;
    }
}

.obfuscate-tab {
    position: fixed;
    top: 50%;
    right: -32px;
    transform: translateY(-50%);
    z-index: 120;
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.7);
    border-radius: 24px 0 0 24px;
    box-shadow: 0 0 10px #00ff00a0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: right 0.2s, box-shadow 0.2s;
}
.obfuscate-tab:hover {
    right: 0;
    box-shadow: 0 0 18px #00ff00cc;
}
.tab-icon {
    font-size: 1.7em;
    color: #00ff00;
    margin-left: 10px;
    pointer-events: none;
}
.obfuscate-tab a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 9999;
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.page-transition-overlay.active {
    background-color: rgba(0, 0, 0, 0.9);
    pointer-events: all;
}