@media (max-width: 1400px) {
    .button-icon {
        display: inline-block !important;
    }
}

@media (max-width: 1000px) {
    h1 {
        font-size: 60px;
        margin: 20px;
    }

    #title-container {
        display: none !important;
    }
}

@media (max-height: 880px) {
    .instructions-container {
        display: none !important;
    }
}

@media (max-height: 600px) {
    #title-container {
        display: none !important;
    }
}

@media (max-width: 854px) {
    canvas {
        width: 100vw !important;
        height: auto !important;
        display: block;
    }
}

@media (max-width: 854px) {
    .help-content {
        gap: 20px;
    }

    .menu-btn {
        font-size: 24px;
        min-width: 250px;
    }

    .menu-screen h2 {
        font-size: 36px;
    }

    .menu-overlay {
        max-width: 100vw;
        left: 0;
        right: 0;
        margin: 0 auto;
    }

    .menu-screen {
        padding: 20px !important;
        max-height: 100vh;
        overflow-y: auto;
        justify-content: flex-start;
        gap: 15px;
    }

    .menu-btn {
        font-size: 20px !important;
        min-width: 200px !important;
        padding: 10px 20px !important;
    }

    .menu-screen h2 {
        font-size: 32px !important;
        margin: 10px 0 !important;
    }

    .settings-options {
        gap: 15px !important;
        flex-wrap: wrap;
    }

    .setting-option {
        min-width: 200px !important;
        max-width: 200px !important;
        padding: 10px !important;
    }

    .setting-option img {
        width: 50px !important;
        height: 50px !important;
    }

    .setting-option p {
        font-size: 14px !important;
    }

    .help-column h3 {
        font-size: 24px !important;
    }

    .help-column p {
        font-size: 14px !important;
    }
}

@media (max-width: 732px) {
    #help-screen {
        gap: 4px;
    }
}

@media only screen and (max-height: 480px) {
    .menu-screen {
        gap: 12px;
    }

    .menu-btn {
        padding: 10px;
    }

    #level-select {
        margin-bottom: 20px;
    }

    #help-screen {
        margin-bottom: 12px;
    }

    .settings-options {
        margin: 0 0 !important;
    }

    .help-content {
        gap: 4px;
    }

    .help-column h3 {
        font-size: 20px;
    }

    .help-column p {
        font-size: 16px;
        font-weight: normal;
    }

    .menu-screen .back-btn {
        top: 8px;
        left: 8px;
        padding: 8px 16px;
        font-size: 18px;
    }

    .menu-overlay-back-btn {
        top: 8px;
        left: 8px;
        padding: 8px 16px;
        font-size: 18px;
    }

    #imprint-screen {
        gap: 4px;
    }

    .imprint-content h3 {
        font-size: 20px;
    }

    .imprint-content p {
        margin: 0;
    }

    #menu-overlay {
        max-height: 100vh;
    }
}

@media (max-width: 600px) {
    .menu-screen {
        gap: 10px;
        padding: 15px !important;
    }

    .menu-screen h2 {
        font-size: 28px !important;
    }

    .menu-btn {
        font-size: 18px !important;
        min-width: 180px !important;
        padding: 8px 15px !important;
    }

    .settings-options {
        gap: 10px !important;
    }

    .setting-option {
        min-width: 120px !important;
        max-width: 120px !important;
    }

    .help-column h3 {
        font-size: 20px !important;
        margin-bottom: 5px !important;
    }

    .help-column p {
        font-size: 12px !important;
        margin: 4px 0 !important;
    }

    .back-btn {
        font-size: 18px !important;
        padding: 8px 20px !important;
    }
}

@media only screen and (max-height: 400px) {
    .menu-overlay-back-btn {
        top: 4px;
        left: 4px;
        padding: 6px 12px;
        font-size: 16px;
    }
}

@media only screen and (max-height: 360px) {

    #menu-screen {
        transform: scale(0.9);
    }

    #imprint-screen {
        transform: scale(0.9);
    }

    #help-screen {
        transform: scale(0.9);
    }

    .settings-options {
        gap: 8px;
    }

    .setting-option {
        padding: 8px;
        min-width: 220px;
    }

    .settings-options img {
        height: 60px;
        width: 60px;
    }

    .settings-options p {
        font-size: 16px;
    }

}