body {
    font-family: 'Tektur';
    background-color: #000;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}
canvas {
    background-color: #000;
    border: 4px solid #00FFFF;
    box-shadow: 0 0 15px #00FFFF, 0 0 30px #00FFFF;
    padding:1.5rem;
}
.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.instructions {
    margin-top: 1rem;
    font-size: 0.8rem;
    text-align: center;
    color: #FFFF00;
}
.score {
    font-size: 1.5rem;
    color: #FF00FF;
    margin-bottom: 1rem;
}
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}
.modal {
    background-color: rgba(0, 0, 0, 0.9);
    border: 4px solid #FF00FF;
    box-shadow: 0 0 10px #ff00ff48, 0 0 15px #ff00ff42;
    max-width: 32rem;
    width: 100%;
    padding: 2rem;
    border-radius: 1rem;
}
.modal-title {
    color: #00FFFF;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}
.modal-body {
    color: #fff;
    font-size: 1.1rem;
}
.modal-close-btn {
    background-color: #FFFF00;
    color: #000;
    border: 2px solid #000;
    transition: background-color 0.3s, color 0.3s;
    margin-top: 2rem;
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1rem;
}
.modal-close-btn:hover {
    background-color: #00FFFF;
    color: #000;
}
.start-screen {
    position: fixed;
    inset: 0;
    font-size: 2rem;
    background: rgba(0,0,0,0.85);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    
}
#start-button {
    background-color: #FFFF00;
    color: #000;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    border: 3px solid #000;
    box-shadow: 0 0 10px #FFFF00;
    transition: background-color 0.3s, box-shadow 0.3s;
    border-radius: 0.5rem;

}
#start-button:hover {
    background-color: #00FFFF;
    box-shadow: 0 0 15px #00FFFF;
}
.credit {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 2rem;
}
.section-title-ingame {
    font-size: 0.7rem;
    text-align: center;
    position: absolute;
    color: #fff;
    text-shadow: 1px 1px #000;
}
.hidden {
    display: none !important;
}/* Floating Navbar */
.floating-navbar {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    border-radius: 1.5rem;
    padding: 10px 20px;
    display: flex;
    flex-direction: row;
    gap: 40px;
    z-index: 1000;
    box-shadow: 0 0 10px rgb(222, 142, 249);
}

/* Nav Links - circular icon buttons */
.floating-navbar .nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    background: #111;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: background 0.25s ease, transform 0.2s ease;
    position: relative;
}

.floating-navbar .nav-link:hover {
    background: rgb(239, 199, 250);
    color: #000;

}

/* Tooltip Styling */
.nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    font-family: 'Tektur', sans-serif;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.nav-link:hover::after {
    opacity: 1;
}

/* Hidden class */
.hidden {
    display: none !important;
}

.arrow-keys-hint {
    position: absolute;
    left: 20px;
    top: 20rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 20px;
    z-index: 999;
    gap: 5px;
}

.arrow-key-row {
    display: flex;
    gap: 5px;
}

.arrow-key {
    background-color: #222;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 5px;
    font-family: "Press Start 2P", monospace;
    box-shadow: 2px 2px 0 #000;
}

.arrow-key i {
    pointer-events: none;
}

/* ...existing code... */

/* Responsive Styles */
@media (max-width: 1024px) {
    .game-container {
        margin-top: -2rem;
        max-width: 80vw;
        max-height: 70vh;
    }
    .modal {
        max-width: 90vw;
        padding: 1.2rem;
    }
    .floating-navbar {
        gap: 24px;
        padding: 8px 10px;
    }
    .arrow-keys-hint {
        display: none;
        top: 12rem;
        left: 10px;
        font-size: 18px;
    }
}

/* ...existing code... */

@media (max-width: 768px) {
    body {
        padding: 0.5rem;
    }
    .game-container {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        margin-top: 0;
    }
    canvas, .canvas {
        width: 95vw !important;
        height: 60vw !important;
        max-width: 100vw;
        max-height: 70vw;
        padding: 0.5rem;
        border-width: 2px;
        box-sizing: border-box;
        display: block;
        margin: 0 auto;
    }
    .modal {
        max-width: 90vw;
        padding: 1rem;
    }
    .floating-navbar {
        gap: 16px;
        padding: 6px 6px;
        top: 10px;
    }
    .floating-navbar .nav-link {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    .arrow-keys-hint {
        top: 8rem;
        left: 5px;
        font-size: 16px;
    }
    .score {
        font-size: 1.1rem;
    }
    .instructions {
        font-size: 0.7rem;
    }
    .modal-title {
        font-size: 1.3rem;
    }
    .modal-close-btn {
        font-size: 0.9rem;
        padding: 0.7rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0.2rem;
    }
    .game-container {
        width: 100vw;
        max-width: 100vw;
        max-height: 100vh;
        margin-top: 0;
    }
    canvas, .canvas {
        width: 98vw !important;
        height: 60vw !important;
        max-width: 100vw;
        max-height: 70vw;
        padding: 0.2rem;
        border-width: 2px;
        box-sizing: border-box;
        display: block;
        margin: 0 auto;
    }
    .modal {
        max-width: 80vw;
        padding: 0.5rem;
        border-width: 2px;
    }
    .floating-navbar {
        gap: 8px;
        padding: 4px 2px;
        top: 10px;
        justify-content: space-between;
        width: 58vw;
        left: 50%;
        transform: translateX(-50%);
    }
    .floating-navbar .nav-link {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }
    .arrow-keys-hint {
        display: none;
    }
    .score {
        font-size: 0.9rem;
    }
    .instructions {
        font-size: 0.6rem;
    }
    .modal-title {
        font-size: 1rem;
    }
    .modal-close-btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    .start-screen {
        font-size: 1.1rem;
        padding: 0.5rem;
    }
    #start-button {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }
}