@import url('https://fonts.googleapis.com/css2?family=Bungee+Inline&family=Modak&family=MuseoModerno:ital,wght@0,100..900;1,100..900&family=Pixelify+Sans:wght@400..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quantico:ital,wght@0,400;0,700;1,400;1,700&family=Radio+Canada:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Micro+5&display=swap');
:root {
    --font-size-xsmall: 11px;
    --font-size-small: 16px;
    --font-size-medium: 32px;
    --font-size-large: 64px;
    --font-size-mlarge: 100px;
    --font-size-xlarge: 10vw;
}

body{
    margin: 0;
    background-color: black;
}
.pauseMenuButton{
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 30px;
    font-size: var(--font-size-large);
    font-family: 'Micro 5', sans-serif;
    color: rgb(67, 109, 13);
    background-color: greenyellow;
    transition: transform 200ms, filter 200ms;

    &:hover{
        transform: scale(110%);
        filter: brightness(120%);
    }
}

#gameOver{
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    display: none; 
    align-items: center; 
    justify-content: center;
    font-size: var(--font-size-xlarge);
    font-family: 'Micro 5', sans-serif;
    background-color: rgba(0, 0, 30, 0.5);
    color: white;
    cursor: default;
    /* pointer-events: none; */
}

#gameOverScore{
    font-size: var(--font-size-large);
    color: white;
    padding: 10px;
    padding-bottom: 40px;
}

#gamePausedDiv{
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    display: none; 
    align-items: center; 
    justify-content: center;
    font-size: var(--font-size-xlarge);
    font-family: 'Micro 5', sans-serif;
    background-color: rgba(0, 0, 30, 0.5);
    color: white;
    cursor: default;
    /*pointer-events: none;*/
}

.levelInfo{
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    display: flex; 
    align-items:flex-start; 
    justify-content: center;
    font-size: var(--font-size-large);
    font-family: 'Micro 5', sans-serif;
    background-color: rgba(0, 0, 30, 0.85);
    color: white;
    cursor: default;
}
.levelInfoItems{
    margin-left: 10%;
}
.levelInfoHome{
    width: 50px;
    color: white;
    left: 0;
    top: 0;
    margin: 20px;
    position: absolute;
    transform: scale(1);
    transition: transform 300ms, color 250ms;

    &:hover{
        transform: scale(1.3);
        color: rgb(88, 86, 228);
    }
}
.levelCompleteMenu{
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    display: none; 
    align-items: center; 
    justify-content: center;
    font-family: 'Micro 5', sans-serif;
    background-color: rgba(0, 0, 30, 0.5);
    color: white;
    cursor: default;
    animation: fadeIn 200ms forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.levelCompleteButtons{
    align-items: center; 
    display: flex;
    margin-top: 40%;
    position: absolute;
    color: yellowgreen;
    transform: skew(10deg);
    width: 80px;
    transition: transform 200ms, filter 200ms;

    &:hover{
        filter: brightness(150%);
        transform: scale(1.3) skew(10deg);
        cursor: pointer;
    }
}

.levelCompleteBox{
    position: relative;
    width: 800px;
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: left;
    /* justify-content: center; */
    background-color: rgba(0, 0, 0, 0.5);
    /* top: 50%; */
    /* left: 50%; */
    /* transform: translate(-50%, -50%) skew(-10deg); */
    transform: scale(0.8) skew(-10deg);
    border-radius: 5%;
    opacity: 0;
    animation: popUp 200ms forwards;
}

@keyframes popUp {
    from {
        transform: scale(0.2) skew(0deg);
        opacity: 0;
    }
    to {
        transform: scale(1) skew(-10deg);
        opacity: 1;
    }
}

#levelScore{
    font-family: "Radio Canada", sans-serif;
    font-size: var(--font-size-large);
    color: white;
    transform: skew(10deg);
    margin-left: 27%;
    margin-top: 10%;
}

#levelCompleteText{
    margin-left: -30px;
    margin-top: -20px;
    right: 0;
    padding: 10px; 
    background-color: #333; 
    width:auto; 
    text-align: center;
    border: 1px solid #222;
    font-size: var(--font-size-mlarge);
    box-shadow: 10px 10px #222;
    border-radius: 5%;
}

#playerInfo{
    position: fixed;
    top: 20px;
    right: 20px;
    font-family: 'Micro 5', sans-serif;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
    font-size: var(--font-size-large);
    color: white;
    display: flex;
    align-items: center;
    cursor: default;
    text-shadow: 2px 3px rgba(67, 109, 40, 40%);
}

#wavesDiv{
    position: fixed;
    top: 20px;
    left: 40px;
    /*font-family: "Radio Canada", sans-serif; */
    font-family: 'Micro 5', sans-serif;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
    font-size: var(--font-size-large);
    display: block;
    color: white;
    text-shadow: 2px 3px rgba(67, 109, 40, 40%);
}

#scoreDiv{
    position: fixed;
    top: 70px;
    left: 40px;
    /*font-family: "Radio Canada", sans-serif; */
    font-family: 'Micro 5', sans-serif;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
    font-size: var(--font-size-large);
    display: block;
    color: white;
    text-shadow: 2px 3px rgba(67, 109, 40, 40%);
}

.waveCountdown{
    right: 70px;
    bottom: 70px;
    display: flex;
    position: fixed;
    font-family: 'Micro 5', sans-serif;
    font-size: var(--font-size-large);
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
    color: white;
    text-align: left;
    text-shadow: 2px 3px rgba(67, 109, 40, 40%);
}

#countdownSVG{
    width: 40px; 
    margin-right: 10px;
    margin-top: 13px; 
    color: white;
    cursor: pointer;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.5));
    transition: transform 0.2s;

    &:hover{
        color: rgb(88, 86, 228);
        transform: scale(1.3);
    }
}

.previewMenu{
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 420px;
    font-size: var(--font-size-small);
    color: white;
    display: none;
    font-family: "Radio Canada", sans-serif;
    align-items: center;
    text-align: left;
    cursor: default;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 40px;
}

.upgradeMenu{
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: var(--font-size-small);
    color: white;
    display: flex;
    font-family: "Radio Canada", sans-serif;
    align-items: center;
    cursor: default;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 40px;
}

.upgradeBox{
    display: none;
    position: absolute;
    /* background-color: rgba(0, 0, 0, 0.3); */
    background: linear-gradient(
            to top, 
            rgba(67, 109, 40, 0.6), 
            rgba(0, 0, 0, 0));
    width: 172px;
    padding: 10px;
}

#shopButton{
    position: absolute;
    margin-left: 80%; 
    width: 30px; 
    color: yellow;
    display: none;
    transition: transform 200ms, color 200ms;

    &:hover{
        color: white;
        /* width: 33px; */
        transform: scale(120%);
        cursor: pointer;
    }
}

.shopMenu{
    position: fixed;
    bottom: 150px;
    left: 20px;
    width: 400px;
    font-size: var(--font-size-small);
    color: white;
    display: none;
    font-family: "Radio Canada", sans-serif;
    cursor: default;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 40px;
    align-items: center;
}

#specialHealButton, #attackBoostButton, #speedProjectileButton{
    margin: 28px;
    margin-top: 5px;
    margin-bottom: 5px;;
}

#specialHealLabel, #attackBoostLabel, #speedProjectileLabel{
    font-size: var(--font-size-small);
    color:aliceblue;
    text-align: center;
    display:grid;
    position: relative;
}

#upgradeButton{
    font-size: var(--font-size-xsmall);
    background-color: greenyellow;
    color: rgb(67, 109, 13);
    font-family: "Radio Canada", sans-serif;
    /* font-family: 'Micro 5', sans-serif; */
    font-weight: 700;
    border-radius: 10px;
    border-color: rgb(117, 204, 3);
    padding: 8.5px;
    transition: transform 200ms, filter 200ms, background-color 200ms;

    &:hover{
        background-color: rgb(180, 255, 170);
        cursor: pointer;
    }
}

#sellButton{
    font-size: var(--font-size-xsmall);
    background-color: rgb(255, 63, 63);
    color: rgb(109, 13, 13);
    font-family: "Radio Canada", sans-serif;
    /* font-family: 'Micro 5', sans-serif; */
    font-weight: 700;
    border-radius: 10px;
    padding: 8.5px;
    border-color: rgb(199, 16, 16);
    transition: transform 200ms, filter 200ms, background-color 200ms;

    &:hover{
        background-color: rgb(255, 150, 130);
        cursor: pointer;   
    }
}

#towerSelectionMenu{
    position: absolute;
    width: 192px;
    height: 192px;
    left: 20px;
    font-size: var(--font-size-xsmall);
    color: white;
    display: flex;
    font-family: "Radio Canada", sans-serif;
    align-items: center;
    cursor: default;
    background-color: rgba(0, 0, 0, 0);
    padding: 20px;
    border-radius: 40px;;
}

img{
    width: 70px;
    padding: 3px;
    margin-top: -5px;
    transition: transform 200ms, filter 200ms, background-color 200ms;
    border-radius: 20px;

    &:hover{
        background-color: rgba(0, 0, 0, 0.2);
        cursor: pointer;
        /*width: 75px;*/
        transform: scale(110%);
    }
}

label{
    font-size: var(--font-size-xsmall);
    position: absolute;
    color: white;
    font-weight: bold;
}

#musicButton, #musicPause{
    width: 50px; 
    margin: 10px; 
    /* color: rgb(70, 122, 21);  */
    color: greenyellow;
    transition: transform 200ms, filter 200ms, background-color 200ms;

    &:hover{
        transform: scale(110%);
        cursor: pointer;
        filter: brightness(140%);
    }
}

#pause{
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.2));
    transition: transform 200ms, color 200ms;

    &:hover{
        transform: scale(115%);
        color: rgb(88, 86, 228);
        cursor: pointer;
    }
}

.specialClass{
    position: absolute;
    padding: 7px;
    width: 35px;
    border-radius: 50%;
    text-align: center;
    font-family: "Radio Canada", sans-serif;
    font-weight: 700;
    cursor: pointer;
}

#redVignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(148, 0, 0, 0.5) 100%);
    pointer-events: none;
    display: none;
}

#nightTint{
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw;
    height: 100vh;
    background-image: radial-gradient(ellipse at center, rgba(0,0,10,0.5) 0%, rgba(10, 0, 40, 0.7) 100%);
    /* background-image: url("sprites/effects/night-tint.png");  */
    pointer-events: none;
    display: none;
}

#endlessTint{
    position: fixed;
    top: 0; 
    left: 0; 
    width: 2496px;
    height: 2112px;
    background-image: linear-gradient(rgba(61, 0, 141, 0.459) 0%, rgba(255, 255, 255, 0) 50%, rgba(255, 0, 119, 0.568) 100%);
    pointer-events: none;
    display: none;
}


/* mobiles etc */
@media only screen and (max-width: 932px) {
    body {
        overflow: auto !important;
        font-size: 8px;
    }
}

.loaderContainer {
    position: absolute;
    top: 0;
    height: 100vh;
    width: 100vw;
    font-family: 'Micro 5', sans-serif;
    /* font-family: "Radio Canada", sans-serif; */
    font-size: var(--font-size-mlarge);
    color: white;
    background-color: black; 
}
  
.loader {
    height: 20px;
    width: 250px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto; 
}
.loader--dot {
  animation-name: loader;
  animation-timing-function: ease-in-out;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  height: 20px;
  width: 20px;
  border-radius: 100%;
  background-color: black;
  position: absolute;
  border: 2px solid black; 
}
.loader--dot:first-child {
  background-color: #8cc759;
  animation-delay: 0.5s; 
}
.loader--dot:nth-child(2) {
  background-color: #8c6daf;
  animation-delay: 0.4s; 
}
.loader--dot:nth-child(3) {
  background-color: #ef5d74;
  animation-delay: 0.3s; 
}
.loader--dot:nth-child(4) {
  background-color: #f9a74b;
  animation-delay: 0.2s; 
}
.loader--dot:nth-child(5) {
  background-color: #60beeb;
  animation-delay: 0.1s; 
}
.loader--dot:nth-child(6) {
  background-color: #fbef5a;
  animation-delay: 0s; 
}
.loader--text {
  position: absolute;
  /* top: 200%; */
  /* left: 0; */
  /* right: 0; */
  top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* width: 4rem; */
  margin: auto; 
}
.loader--text:after {
    content: "Loading";
    animation-name: loading-text;
    animation-duration: 3s;
    animation-iteration-count: infinite;
}
  
@keyframes loader {
  15% {
    transform: translateX(0); }
  45% {
    transform: translateX(230px); }
  65% {
    transform: translateX(230px); }
  95% {
    transform: translateX(0); } 
}

@keyframes loading-text {
  0% {
    content: "Loading"; }
  25% {
    content: "Loading."; }
  50% {
    content: "Loading.."; }
  75% {
    content: "Loading..."; } 
}
  