@media (max-width: 1920px) {
    canvas {
        position: relative;
    }
}

@media (min-width: 1180px) and (orientation: landscape) {
    .mobile-buttons-left {
        position: fixed;
        left: 10px;
        bottom: 50%; 
        filter: brightness(3.5);
    }

    .mobile-buttons-right {
        position: fixed;
        right: 10px;
        bottom: 50%;
        filter: brightness(3.5);
    }
}

@media (min-width: 1024px) and (orientation: portrait) {
    .mobile-buttons-left {
        position: fixed;
        left: 10px;
        bottom: 50%;
        filter: brightness(3.5);
    }

    .mobile-buttons-right {
        position: fixed;
        right: 10px;
        bottom: 50%;
        filter: brightness(3.5);
    }
}

@media only screen and (min-width: 930px) and (max-width: 950px) and (orientation: landscape) {
    .game-button {
        padding: 0 30px;
    }

    h1 {
        margin-bottom: 0;
    }

    .mobile-buttons-left {
        left: 169px;
    }

    .mobile-buttons-right {
        right: 169px;
    }

    label, input, span {
        display: none;
    }
}

@media only screen and (orientation: landscape) and (max-width: 932px) and (min-width: 820px) {
    #restartButton {
        background: linear-gradient(to bottom, #FFDB05, #FF4500); 
        color: #ffffff;
        position: absolute;
        bottom: 8%; 
        left: 25%;
        padding: 12px 24px; 
    }

    #backToStartButton {
        background: linear-gradient(to bottom, #FFDB05, #FF4500); 
        color: #ffffff;
        position: absolute;
        bottom: 8%; 
        left: 50%;
        padding: 12px 24px; 
    }

    #restartButton:hover {
        transform: scale(1.05);
    }

    .mobile-buttons-left {
        bottom: 2px;
        left: 147px;
    }

    .mobile-buttons-right {
        bottom: 2px;
        right: 147px;
    }
}

@media only screen and (max-width: 768px) and (orientation: landscape) {
    .game-button {
        display: none;
    }

    .container {
        justify-content: center;
    }
}

@media only screen 
  and (min-device-width: 414px) 
  and (max-device-width: 896px) 
  and (orientation: landscape) {

    .game-button {
        padding: 0 30px;
    }

    h1 {
        font-size: 130px;
    }
}

@media only screen 
  and (min-device-width: 412px) 
  and (max-device-width: 915px) 
  and (orientation: landscape) {  

    .game-button {
        padding: 0 30px;
    }

    #backToStartButton {
        background: linear-gradient(to bottom, #FFDB05, #FF4500); 
        color: #ffffff;
        position: absolute;
        bottom: 8%; 
        left: 50%;
        padding: 12px 24px; 
    }

    #restartButton {
        left: 25%;
    }
}


@media only screen and (orientation: landscape) and (max-width: 768px) {
    #restartButton {
        background: linear-gradient(to bottom, #FFDB05, #FF4500); 
        color: #ffffff;
        position: absolute;
        bottom: 8%; 
        left: 25%;
        padding: 12px 24px; 
    }

    #restartButton:hover {
        transform: scale(1.05);
    }

    #backToStartButton {
        background: linear-gradient(to bottom, #FFDB05, #FF4500); 
        color: #ffffff;
        position: absolute;
        bottom: 8%; 
        left: 50%;
        padding: 12px 24px; 
    }
}

@media only screen and (max-width: 750px) {
    h1 {
        text-wrap: nowrap;
        /* font-size: 115px; */
        margin-top: 40px;
    }
}

@media only screen and (max-width: 750px) and (orientation: landscape) {
    .game-button {
        font-size: 18px;
        padding: 8px 20px;
        margin: 13px;
        flex: 0 0 18%;
    }

    .container {
        flex-direction: row;
        flex-wrap: wrap; 
        justify-content: space-evenly;
    }

    .mobile-buttons-left {
        left: 30px;
        bottom: 10px;
    }

    .mobile-buttons-right {
        right: 30px;
        bottom: 10px;
    }

    label, input, span {
        display: none;
    }
}

@media only screen and (max-width: 720px) {
    canvas {
        width: 100%;
    }
}

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

    #gameContainer {
        width: 100%;
        height: 100vh;
    }
}

@media (max-width: 580px) {
    h1 {
        text-wrap: nowrap;
        font-size: 85px;
    }
}

@media (max-width: 430px) {
    h1 {
        text-wrap: nowrap;
        font-size: 65px;
    }
}

@media (max-width: 370px) {
    h1 {
        text-wrap: nowrap;
        font-size: 65px;
    }
}

@media (max-width: 340px) {
    h1 {
        text-wrap: nowrap;
        font-size: 55px;
    }
}
