* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    background: #f5f5f5;
    position: relative;
    padding-top: 2vh;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-left: 2vw;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

.text {
    font-family: Arial, sans-serif;
    font-size: 33vh;
    line-height: 1;
    font-weight: bold;
}

.think {
    color: #ef5b5b;
}

.go {
    color: #ffb400;
}

.do {
    color: #0e79b2;
}

.wave-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    overflow: hidden;
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    bottom: -30%;
    opacity: 0.2;
    animation: wave 20s linear infinite;
}

.wave2 {
    bottom: -35%;
    opacity: 0.1;
    animation: wave 15s linear infinite reverse;
}

.wave path {
    fill: #0e79b2;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-wrapper {
    position: fixed;
    right: 20px;
    bottom: 0;
    z-index: 999;
    display: flex;
    align-items: flex-end;
}

.logo {
    width: 300px;
    height: auto;
    display: block;
    margin-bottom: 0;
}

.menu-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: none;
    border: none;
}

.menu-icon span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: #808080;
    transition: 0.3s;
}

.menu-icon:hover span {
    background-color: #666;
}

.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-content {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 999;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.menu-content.active {
    right: 0;
}

.menu-link {
    display: block;
    color: #808080;
    font-family: Arial, sans-serif;
    font-size: 18px;
    text-decoration: none;
    padding: 15px;
    margin: 5px 0;
    border-radius: 5px;
    transition: 0.3s;
}

.menu-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #666;
}

/* Mute Button Styles */
#muteButton {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 10px;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    z-index: 1000;
}

#muteButton:hover {
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

body {
    font-family: 'Orbitron', Arial, sans-serif;
    margin: 0;
    background-color: #1a1a1a;
    color: #fff;
    display: flex;
    min-height: 100vh;
}

.game-container {
    width: 67%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    position: relative;
}

#initialsPrompt {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    border: 2px solid #00ff00;
}

#initialsInput {
    background-color: #333;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 10px;
    font-size: 20px;
    width: 100px;
    text-align: center;
    margin: 10px 0;
    text-transform: uppercase;
    font-family: 'Orbitron', Arial, sans-serif;
}

#initialsInput::placeholder {
    color: rgba(0, 255, 0, 0.3);
    text-shadow: none;
}

#initialsInput:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

#startButton {
    font-size: 32px;
    padding: 20px 40px;
    margin: 20px;
    cursor: pointer;
    background: linear-gradient(45deg, #000, #333);
    color: #00ff00;
    border: 3px solid #00ff00;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transition: all 0.3s ease;
    font-family: 'Orbitron', Arial, sans-serif;
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#startButton:hover {
    background: linear-gradient(45deg, #333, #000);
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
    transform: scale(1.05);
}

#countdown {
    font-size: 200px;
    margin: 20px;
    min-height: 240px;
    color: #00ff00;
    text-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    animation: countdownPulse 1s infinite;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes countdownPulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    }
    50% {
        transform: scale(1.2);
        text-shadow: 0 0 60px rgba(0, 255, 0, 1);
        color: #fff;
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
    }
}

#countdown.go {
    animation: goAnimation 0.5s forwards;
    font-size: 240px;
    color: #fff;
}

@keyframes goAnimation {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@media (max-height: 800px) {
    #gameTitle {
        font-size: 48px !important;
        margin-bottom: 10px !important;
    }
    
    #gameArea {
        margin-top: 10px;
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .gameButton {
        height: 60px;
        font-size: 16px;
        min-width: 140px;
    }

    #sequence {
        margin-bottom: 10px;
        padding: 10px;
        font-size: 20px;
    }

    #gameInstructions {
        margin-bottom: 10px;
        font-size: 20px;
    }

    #countdown {
        font-size: 160px;
        min-height: 180px;
        margin: 10px;
    }
}

@media (max-height: 600px) {
    #gameTitle {
        display: none !important;
    }
    
    #gameArea {
        margin-top: 0;
    }

    .gameButton {
        height: 50px;
        font-size: 14px;
        min-width: 120px;
        padding: 5px;
    }

    #sequence {
        font-size: 16px;
        padding: 8px;
        margin-bottom: 5px;
    }

    #gameInstructions {
        font-size: 16px;
        margin-bottom: 5px;
    }

    #countdown {
        font-size: 120px;
        min-height: 140px;
        margin: 5px;
    }

    #initialsPrompt {
        padding: 10px;
        margin-bottom: 10px;
    }
}

#gameArea {
    background-color: rgba(0, 255, 0, 0.1);
    border-radius: 20px;
    padding: 20px;
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
    max-width: 1200px;
    width: 90%;
    margin-top: auto;
    margin-bottom: auto;
}

.gameButton {
    width: 100%;
    min-width: 160px;
    height: 70px;
    font-size: 20px;
    white-space: pre-wrap;
    line-height: 1.2;
    padding: 10px;
    cursor: pointer;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.gameButton:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

.gameButton:hover {
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
    transform: scale(1.05);
}

.gameButton.correct {
    background: linear-gradient(45deg, #006400, #008000);
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

#sequence {
    color: #00ff00;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    background: rgba(0, 255, 0, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #00ff00;
    display: none;
}

#gameInstructions {
    color: #00ff00;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    display: none;
}

#leaderboard {
    width: 33%;
    min-height: 100vh;
    background: linear-gradient(
        to bottom,
        #4b0082 0%,   /* Deep Indigo/Purple */
        #ff00ff 25%,  /* Neon Magenta */
        #00ffff 50%,  /* Electric Cyan */
        #00ff7f 75%,  /* Vibrant Green */
        #ffe121 100%  /* Neon Yellow */
    );
    position: relative;
    border-left: 2px solid #00ff00;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}

#leaderboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.leaderboard-title {
    color: #00ff00;
    font-family: 'Audiowide', cursive;
    font-size: 40px;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    position: relative;
    z-index: 2;
}

.leaderboard-initials {
    font-size: 28px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.leaderboard-entry {
    background: rgba(0, 255, 0, 0.25);
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #00ff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.leaderboard-time {
    font-size: 20px;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

#virtualKeyboard {
    position: absolute;
    top: calc(50% + 150px);
    left: 33%;
    transform: translate(-50%, 0);
    background: rgba(0, 0, 0, 0.95);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #00ff00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3);
    z-index: 1000;
}

#virtualKeyboard.hidden {
    display: none;
}

#virtualKeyboard.visible {
    display: block;
}

.keyboard-row {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.key {
    width: 80px;
    height: 80px;
    margin: 6px;
    font-size: 36px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    color: #00ff00;
    border: 2px solid #00ff00;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', Arial, sans-serif;
    transition: all 0.2s ease;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.key:hover {
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

.key:active {
    transform: scale(0.95);
    background: #00ff00;
    color: #000;
}

.key.backspace {
    width: 160px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification {
    font-size: 16px;
    line-height: 1.4;
    max-width: 400px;
    word-wrap: break-word;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
    transition: all 0.3s ease;
}

.notification.error {
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.visible-grid {
    display: grid !important;
}

#gameTitle {
    font-family: 'Bruno Ace SC', cursive;
    font-size: 128px;
    color: #00ff00;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    z-index: 10;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

#initialsInput {
    font-size: 32px;
    width: 120px;
}

.initials-label {
    font-size: 24px;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.game-instructions-text {
    margin-top: 20px;
    color: #00ff00;
    font-size: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.game-instructions-subtext {
    font-size: 20px;
    margin-top: 10px;
}

#resetLeaderboard {
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    margin: 20px auto;
    display: block;
    font-family: 'Orbitron', Arial, sans-serif;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

#resetLeaderboard:hover {
    background: linear-gradient(45deg, #2a2a2a, #1a1a1a);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}
