body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-image: url(img/backgroundWeb.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Bungee Shade';
    font-size: 25px;
    color: black;

}

canvas {
    background-image: url(img/4.Maps/forest/Background/Bright/sky.png);
    display: block;
}


.content {
    position: relative;
    max-width: 1024px;
    max-height: 576px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0px 0px 6px 6px rgba(160, 10, 10, 0.7);
}

#content::backdrop {
    background-color: rgba(255,255,255,0);
}


.soundAndHotToPlay {
    position: absolute;
    top: 20px;

}


.startscreen {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1024px;
    max-height: 576px;
}

.howToPlayTheGame{
     display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1024px;
    max-height: 576px;
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold;
}

.info{
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold;
    display: flex;
    font-size: 25px;
    max-width: 1024px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0px 0px 6px 6px rgba(160, 10, 10, 0.7);
}

.info span{
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 20px;
}

.closeHowToPlay{
    position: absolute;
    bottom: 10%;
    background-color: orange;
    border: none;
    border-radius: 10px;
    font-size: 25px;
    padding: 10px;
    z-index: 2;
}

.textHowToPlay{
    position: absolute;
    background-color: rgba(0,0,0,0.4);
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.startImage {
    width: 1024px;
    height: 576px;
}

.startImageChar {
    position: absolute;

}

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


.startScreenFullscreen,
.startscreenSound,
.howToPlay,
.startscreenStart {
    border: none;
    background: none;
}

.startScreenFullscreen,
.howToPlay,
.startscreenSound {
    background-color: orange;
    border-radius: 100%;
    height: 50px;
    margin-bottom: 10px;
    margin-left: 30px;
}

.startScreenFullscreen img,
.howToPlay img,
.startscreenSound img {
    padding: 5px;
    width: 30px;
    height: 30px;
}



.startscreenStart {
    position: absolute;
    bottom: 75px;
    animation: btn-puls 1s ease-in-out infinite;
}

.startscreenStart img {
    width: 70px;
}

.startScreenFullscreen:hover,
.startscreenSound:hover,
.howToPlay:hover,
.closeHowToPlay:hover,
.startscreenStart:hover {
    transform: scale(1.1);
    transition: 250ms ease-in-out;
    cursor: pointer;
}


.winScreen {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;

}

.imageWin {
    position: absolute;
    top: 25%;
    left: 50%;
    transform: translateX(-50%);

}

.winScreenRestart {
    position: absolute;
    top: 65%;
    left: 41%;
    width: 170px;
}

.winScreenRestart:hover {
    cursor: pointer;
}

.victoryLine {
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold;
    font-size: 40px;
    position: absolute;
    top: 42.5%;
    transform: translateY(-50%);
    left: 50%;
    transform: translateX(-50%);
    color: rgb(0, 56, 238);
}

.restartLineWin {
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold;
    font-size: 30px;
    position: absolute;
    top: 62%;
    left: 50%;
    transform: translateX(-50%);
    color: rgb(0, 56, 238);
}

.restartLineWin:hover {
    cursor: pointer;
}

.defeatScreen {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
}

.imageDefeat {
    position: absolute;
    left: 430px;
    top: 13%;
    width: 135px;
}

.imageDefeatPaperForDefeatText {
    position: absolute;
    top: 310px;
    left: 400px
}

.defeatLine {
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold;
    font-size: 40px;
    position: absolute;
    top: 297px;
    left: 425px;
    color: rgb(0, 56, 238);
}

.restartLineDefeat {
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold;
    font-size: 30px;
    position: absolute;
    top: 432px;
    left: 439px;
    color: rgb(0, 56, 238);
}

.restartLineDefeat:hover {
    cursor: pointer;
}


.defeatScreenRestart {
    position: absolute;
    top: 450px;
    left: 423px;
    width: 170px;
}

.defeatScreenRestart:hover {
    cursor: pointer;
}

.d-none {
    display: none !important;
}

.howToPlayKeybindings {
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold;
    display: flex;
    font-size: 25px;
    max-width: 1024px;
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: 0px 0px 6px 6px rgba(160, 10, 10, 0.7);

}

.howToPlayKeybindings div {
    padding: 10px 20px 10px 20px
}

.howToPlayKeybindings img {
    width: 30px;
}


.rotatePhone {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgb(233, 109, 13);
    background: radial-gradient(circle, rgba(233, 109, 13, 1) 1%, rgba(198, 118, 42, 1) 11%, rgba(255, 158, 0, 1) 100%);
}

.rotatePhone span {
    font-family: 'Courier New', Courier, monospace !important;
    font-weight: bold;
    color: white;
    padding-left: 2%;
    padding-right: 2%;
}

.rotatePhone img {
    width: 200px;
    animation: rotatePhone-animation 2s linear infinite;
    filter: invert(100%) sepia(0%) saturate(7488%) hue-rotate(167deg) brightness(103%) contrast(106%);
}

@keyframes rotatePhone-animation {
    0% {
        transform: rotate(60deg);
    }

    50% {
        transform: rotate(-60deg);
    }

    100% {
        transform: rotate(60deg);
    }
}

@keyframes animate-button {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}


/*--Smartphone--*/

.mobileHud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.leftRightButtons {
    margin-left: 10px;
    padding-right: 20px;

}

.btn-left {

    margin-right: 30px;
}

.actionButtons {
    height: 80px;
    margin-right: 40px;
}

.actionButtons img {
    padding-left: 20px;
}


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

    .startscreen {
        width: 100%;
    }
}

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

    .startscreen {
        height: 100vh;
    }
}


/*--Smartphone--*/



@font-face {
    font-family: 'MyWebFont';
    src: url('myfont.ttf') format('truetype');
}

/* bungee-shade-regular - latin */
@font-face {
    font-display: swap;
    font-family: 'Bungee Shade';
    font-style: normal;
    font-weight: 400;
    src: url('./font/bungee-shade-v11-latin-regular.woff2') format('woff2');

}

@media (max-width: 1024px) {
    .howToPlayKeybindings,
    .info {
        width: 800px;
        font-size: 22px;
    }

    .startImage {
        width: 800px;
        height: 500px;
    }

    .title {
        font-size: 40px;
        top: 30px;
    }

    .startscreenStart {
        bottom: 60px;
    }

    .winScreenRestart {
        top: 67%;
   
    }

    .restartLineWin {
        top: 63.5%;
      
    }

}




@media(max-width: 920px) {

    .howToPlayKeybindings,
    .info {
        display: none;
    }
    
    .imageDefeat {
        left: 50%;
        transform: translateX(-50%);
    
    }

    .imageDefeatPaperForDefeatText {
        left: 50%;
        transform: translateX(-50%);
        top:58%;
    }

    .defeatScreenRestart {
        left: 50%;
        transform: translateX(-50%);
        top:83%;
    }

    .defeatLine {
        left: 50%;
        transform: translateX(-50%);
        top:56%;
    }

    .restartLineDefeat {
        left: 50%;
        transform: translateX(-50%);
        top:78%;
    }

    .imageWin {
        top:15%;
    }

    .victoryLine{
        top:35%;
    }

    .winScreenRestart {
        left: 50%;
        transform: translateX(-50%);
        top:73%;
    }

    .restartLineWin {
        top: 69%;
       
    }
}


@media(min-width: 920px){
    .mobileHud {
        display: none;
    }
}
@media(max-width: 860px){

    .victoryLine{
        top:35%;
    }
}



@media (max-width: 800px) {

    .howToPlayKeybindings {
        width: 650px;
    }

    .startImage {
        width: 650px;
        height: 450px;
    }

    .title {
        font-size: 35px;
        top: 25px;
    }

    .startscreenStart {
        bottom: 35px;
    }

    .imageDefeat {
        width: 110px;
    
    }


    .imageDefeatPaperForDefeatText {
        width: 170px;
        
    }

    .defeatScreenRestart {
        width: 140px;
        
    }

    .defeatLine {
        font-size: 30px;
    }

    .restartLineDefeat {
        font-size: 25px;
    }

    .imageWin {
        width: 450px;
    }

    .victoryLine{
        font-size: 35px;
    }
 
}

@media(max-width:750px) {
    
    .imageWin {
        width: 400px;
    }

    .winScreenRestart {
        width: 140px;
    }

    .restartLineWin {
        font-size: 23px;
    }
    
    
    .victoryLine{
        top: 33%;
    }
}

@media(max-width: 650px){
    .rotatePhone{
        display: flex;
    }
}



