/* Responsive */

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

    h1 {
        display: none;
    }
    .container {
        width: auto;
        height: auto;
    }
}

@media only screen and (max-width: 720px) {
    .startButtonLine {
        margin-top: 30px;
    }
    
    .menuButtonLine {
        margin-bottom: 20px;
    }

    h2 {
        margin: 10px;
    }

    .infoText span {
        padding: 10px;
    }

    #settingsButton {
        height: 35px;
        width: 75px;
    }

    #fullscreenButton {
        height: 35px;
        width: 75px;
        display: none;
    }

    #controlButton {
        height: 35px;
        width: 75px;
    }

    #restartGame {
        height: 35px;
        width: 75px;
    }

    #settingsButton img {
        width: 28px;
        height: 28px;
    }

    #fullscreenButton img {
        width: 24px;
        height: 24px;
    }

    .bottomButtonLine {
        bottom: 0;
    }

    .topButtonLine {
        top: 0px;
    }
}

@media only screen and (max-width: 600px) {
    .menu {
        padding: 8px;
    }

    .closeMenu {
        margin: 0;
    }

    #hud img {
        width: 24px;
        height: 24px;
    }

    #hud button {
        width: 35px;
        height: 35px;
    }
}

@media only screen and (max-width: 480px) {
    p {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .gameMenuButtonLine {
        top: -12px;
    }
    h2 {
        margin: 5px;
    }
    
}

@media only screen and (max-width: 460px) {
    .bottomButtonLine {
        bottom: -8px;
    }
}

@media only screen and (max-width: 380px) {
 
    .controlImage {
        width: 20px;
        height: 20px;
    }
}

@media only screen and (max-width: 360px) {
  
    #settingsButton {
        height: 30px;
        width: 45px;
    }

    #fullscreenButton {
        height: 30px;
        width: 45px;
    }

    #controlButton {
        height: 30px;
        width: 45px;
    }

    #restartGame {
        height: 30px;
        width: 45px;
    }

    #settingsButton img {
        width: 24px;
        height: 24px;
    }

    #fullscreenButton img {
        width: 20px;
        height: 20px;
    }

    #controlButton img {
        width: 28px;
        height: 28px;
    }

    .bottomButtonLine {
        bottom: -12px;
    }

    .topButtonLine {
        top: -8px;
    }
}

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

    .container {
        height: 100vh;
        width: auto;
    }

    .menu {
        padding: 8px;
    }

    .controlImage {
        width: 20px;
        height: 20px;
    }
}

@media only screen and (max-height: 450px) {
    .topButtonLine {
        top: 0px;
    }
}

@media only screen and (max-height: 400px) {
  
    #settingsButton {
        height: 35px;
        width: 75px;
    }

    #fullscreenButton {
        display: none;
        height: 35px;
        width: 75px;
    }

    #controlButton {
        height: 35px;
        width: 75px;
    }

    #restartGame {
        height: 35px;
        width: 75px;
    }

    #settingsButton img {
        width: 28px;
        height: 28px;
    }

    #fullscreenButton img {
        width: 24px;
        height: 24px;
    }

    .bottomButtonLine {
        bottom: -8px;
    }
}

@media only screen and (max-height: 380px) {
  
    .closeMenu {
        margin: 0;
    }

    #hud img {
        width: 24px;
        height: 24px;
    }

    #hud button {
        width: 35px;
        height: 35px;
    }

    .gameMenuButtonLine {
        top: -12px;
    }
}

@media only screen and (max-height: 320px) {
    p {
        margin-top: 8px;
        margin-bottom: 8px;
    }
}

@media (pointer: coarse) {
    .controlImageTouch {
        display: block;
    }
}

@media not (pointer: coarse) {
    .controlImage {
        display: block;
    }

    
}

@media only screen and (min-width:320px) and (max-width:767px) and (orientation:portrait) {
    .mobile-phone-warning {
        display: flex;
        width: auto;
        height:  auto;
        position: absolute;
        background-color: rgba(0, 0, 0, 3);
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 25px;
        align-items: center;
        text-align: center;
        justify-content: center;
        z-index: 101;
        font-size: 32px;
        color: rgb(148, 0, 0);
        text-shadow: -1px 0 white, 0 1px white, 1px 0 white, 0 -1px white;
        margin: 0px;
    }
}

