@media only screen and (max-width: 760px) {
    #mobileControls {
        display: flex;
    }
}


@media only screen and (pointer: coarse) and (max-width: 1399px) {
    .canva_main_div {
        height: 100vh;
        justify-content: center;
        align-items: center;
    }

    .legal_notice_mobile {
        display: flex;
    }

    h1 {
        display: none !important;
    }

}


@media only screen and (orientation: portrait) and (max-width: 1200px),
only screen and (orientation: portrait) and (max-height: 600px) {

    .canva_main_div,
    canvas,
    .relative,
    #icons,
    #startButton {
        display: none;
    }

    body::before {
        content: "Please rotate the device ↻";
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 20px;
        font-size: 24px;
        border-radius: 10px;
        z-index: 9999;
    }

    .h1_div {
        display: none;
    }

    .legal_notice_mobile {
        display: block !important;
    }
}


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

    canvas,
    .relative {
        width: 100%;
    }

    .start_button {
        position: fixed;
        top: 20px;
    }

    .icons_start {
        position: absolute;
        top: 20px;
    }

    h1 {
        display: none;
    }

    .legal-notice {
        display: none !important;
    }
}


@media only screen and (max-height: 520px) {
    .start_button {
        position: fixed;
        left: 20px;
    }

    .icons_start {
        position: fixed;
        right: 20px;

        img {
            width: 30px;
            height: 30px;
        }
    }
}


@media only screen and (max-height: 480px) {
    canvas {
        height: 100vh;
    }

    .legal-notice {
        display: none;
    }

    #mobileControls button {
        height: 45px;
        font-size: 20px;
    }
}


@media only screen and (max-height: 420px) {
    #mobileControls button {
        height: 40px;
        font-size: 18px;
    }
}