#glCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#shaderCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
}
@font-face {
    font-family: 'LTKai-1';
    src: url('LTKai-1.woff') format('woff');
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'LTKai-1', Arial, sans-serif;
    color: #fff;
}

:root {
    --base-font-size: 16px;
}

@media screen and (min-width: 1920px) {
    :root {
        --base-font-size: 16px;
    }
}

@media screen and (max-width: 1280px) {
    :root {
        --base-font-size: 12px;
    }
}


body {
    font-size: var(--base-font-size);
}


button {
    font-family: 'LTKai-1', Arial, sans-serif;
}

.menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    background-color: transparent;
}



.menu.active {
    display: flex;
}

.game-title {
    font-size: 8rem;
    margin-bottom: 2rem;
    color: #00ff00;
    text-shadow: 0 0 0px #00ff00;
    text-align: center;
}

.options-title {
    font-size: 5vmin;
    margin-bottom: 2vmin;
    color: #00ff00;
}

.menu-buttons, 
.options-container, 
.world-buttons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 80%;
    max-width: 500px;
}

.options-container {
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.sound-controls, 
.additional-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.options-container label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}
.options-container label input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    cursor: pointer;
    appearance: none;
    background-color: transparent;
    border: 3px solid #00ff00;
    border-radius: 4px;
    position: relative;
}
.options-container label input[type="checkbox"]:checked {
    background-color: #00ff00;
}

.options-container label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 1rem;
}

#world-select-menu {
    transform: translateY(-5%); 
}

.world-buttons {
    gap: 1.5rem;
}

.world-button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.level-btn:hover {
    background-color: #000;
    color: #00ff00;
    transform: scale(1.05);
    box-shadow: 0 0 10px #00ff00;
    transition: all 0.3s ease;
}

.level-btn:hover:disabled {
    background-color: #333;
    color: #666;
    transform: none;
    box-shadow: none;
    cursor: not-allowed;
}

.world-unlock-info {
    color: #00ff00;
    font-size: 1rem;
    opacity: 0.7;
    text-align: center;
}


.round-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    background-color: #00ff00;
    border: 3px solid #00ff00;
    color: #000;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
}


.round-btn:hover {
    background-color: #000;
    color: #00ff00;
    transform: scale(1.05);
    box-shadow: 0 0 15px #00ff00;
}

.round-btn:disabled {
    background-color: #333;
    border-color: #666;
    color: #666;
    cursor: not-allowed;
}

.back-button {
    position: absolute;
    bottom: 3rem;
    width: auto;
}

.level-select {
    display: none;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5vmin;
    margin: 2vmin 0;
}

.level-btn {
    padding: 2vmin;
    font-size: 1.8vmin;
    background-color: #00ff00;
    border: 0.3vmin solid #00ff00;
    color: #000;
    cursor: pointer;
    border-radius: 3vmin;
    transition: all 0.3s ease;
}

.level-btn:disabled {
    background-color: #333;
    border-color: #666;
    color: #666;
    cursor: not-allowed;
}
input[type="checkbox"] {
    width: 2vmin;
    height: 2vmin;
}
.back-button {
    position: absolute;
    bottom: 5vmin;
}

@media screen and (max-height: 720px) {
    .game-title {
        font-size: 5rem;
        margin-bottom: 1rem;
    }

    .round-btn:hover {
        background-color: #000;
        color: #00ff00;
        transform: scale(1);
        box-shadow: 0 0 5px #00ff00;
    }

    .menu-buttons, 
    .options-container, 
    .world-buttons {
        gap: 1rem;
        width: 90%;
        max-width: 400px;
    }

    .world-buttons {
        max-height: 70vh;
        overflow-y: auto;
        overflow-x: auto;
    }

    .world-button-container {
        gap: 0.3rem;
    }

    .world-unlock-info {
        font-size: 0.9rem;
    }

    .round-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
    }
}

.options-container label {
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    gap: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    width: 100%;
    max-width: 300px; 
    margin: 0 auto;
}

.options-container label input[type="checkbox"] {
    margin-right: 1rem; 
    order: -1; 
}

#level-select-container {
    margin-bottom: 4rem;
}

.back-button {
    position: absolute;
    bottom: 2rem;
    width: auto;
}