* {
    margin: 0;
    padding: 0;
    font-family: "Pixelify Sans", sans-serif;
}
body {
    background: url("../images/background.png"), #38e062;
    /* background-image: url("../images/background.png"); */
    background-size: contain;
    background-repeat: repeat-x;
}
button.startbutton {
    width: 50vw;
    height: 10vh;
    border-radius: 90px;
    background-color: lime;
    color: rgb(146, 146, 255);
    font-size: 5vh;
    text-align: center;
    margin: auto;
}
button.startbutton:hover {
    background-color: rgb(146, 146, 255);
    color: lime;
}
div.startbutton {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
}

div.playing-field {
    display: none;
    height: 100vh;
    grid-template-columns: 100%;
    grid-template-rows: 50vh 50vh;
    grid-template-areas: 
    "sky"
    "ground";
}
div.sky {
    display: grid;
    grid-area: "sky";
    /* height: 50%; */
    grid-template-rows: 100%;
}
div.ground {
    display: grid;
    grid-area: "ground";
    /* height: 50%; */
    grid-template-columns: 33% 33% 33%;
    grid-template-rows: 100%;
    grid-template-areas: "ranged melee enemies";

}
div.score {
    display: inline-block;
    position: absolute;
    top: 3vh;
    right: 3vw;
}
div.highscore {
    display: inline-block;
    position: absolute;
    top: 6vh;
    right: 3vw;
}
div.loading {
    display: none;
}
img.loadingCircle {
    position: absolute;
    height: 8vh;
    top: 45vh;
    left: 46vw;
    animation-name: spin;
    animation-duration: 4s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
div.loadingText {
    position: absolute;
    font-size: 3vh;
    top: 55vh;
    left: 45vw;
}
div.ranged {
    display: grid;
    grid-area: "ranged";
    grid-template-columns: 100%;
    grid-template-rows: 33% 33% 33%;
    grid-template-areas:
    "ranged1"
    "ranged2"
    "ranged3";
}
div.melee {
    display: grid;
    grid-area: "melee";
    grid-template-columns: 100%;
    grid-template-rows: 33% 33% 33%;
    grid-template-areas:
    "melee1"
    "melee2"
    "melee3";
}
div.enemies {
    display: grid;
    grid-area: "enemies";
    grid-template-columns: 100%;
    grid-template-rows: 33% 33% 33%;
    grid-template-areas:
    "enemy1"
    "enemy2"
    "enemy3";
}

div.ranged div {
    align-content: center;
    
}

div.ranged1 {
    grid-area: "ranged1";
}
div.ranged2 {
    grid-area: "ranged2";
}
div.ranged3 {
    grid-area: "ranged3";
}



div.enemy1 {
    grid-area: "enemy1";
}
div.enemy2 {
    grid-area: "enemy2";
}
div.enemy3 {
    grid-area: "enemy3";
}

/* div.ant1 {
    animation: linear;
    animation-name: walk;
    animation-duration: 10s;
}
div.ant2 {
    animation: linear;
    animation-name: walk;
    animation-duration: 10s;
}
div.ant3 {
    animation: linear;
    animation-name: walk;
    animation-duration: 10s;
} */


img.carrot-bow {
    height: 80px;
    position: absolute;
}
img.carrot {
    height: 80px;
    display: none;
    position: absolute;
    /* animation: linear;
    animation-name: shoot;
    animation-duration: 5s; */
}

/* div.ant1 {
    height: 100%;
    display: none;
}
div.ant2 {
    height: 100%;
    display: none;
}
div.ant3 {
    height: 100%;
    display: none;
} */

img.ant {
    height: 100px;
    display: none;
    position: absolute;
    /* animation: linear;
    animation-name: walk;
    animation-duration: 10s; */
    /* animation: linear infinite alternate;
    animation-name: step;
    animation-duration: 1s; */
}
img.bigAnt {
    height: 50%;
    display: none;
    position: absolute;
    top: 49vh;
}
img.dragon {
    height: 50%;
    display: none;
    position: absolute;
    top: 1vh;
}
div.end {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    gap: 3vh;
}
div.end-text {
    background-color: #ed1c24;
    color: #ffc20e;
    width: 50vw;
    height: 10vh;
    border-radius: 90px;
    font-size: 5vh;
    text-align: center;
    text-justify: center;
    line-height: 10vh;
}
div.playAgainButton {
    display: none;
    justify-content: center;
    align-items: center;
    width: 100vw;
    /* height: 100vh; */
}
button.playAgainButton {
    width: 50vw;
    height: 10vh;
    border-radius: 90px;
    background-color: lime;
    color: rgb(146, 146, 255);
    font-size: 5vh;
    text-align: center;
    margin: auto;
}
button.playAgainButton:hover {
    background-color: rgb(146, 146, 255);
    color: lime;
}
/* @keyframes shoot {
  0% {
    transform: translateX(-12vw);
  }
  100% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-8vw);
    transform: scaleX(-1); 
}
}
@keyframes walk {
    0% {
        transform: translateX(35vw);
    }
    100% {
        transform: translateX(-70vw);
    }
}
 @keyframes step {
    0% {
        src: url("../images/ant.png");
    }
    100% {
        src: url("../images/ant-walk.png");
    }
} */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}