* {
    box-sizing: border-box;
}

:root {
    --black: #1e1e1e;
    --sand: #FFECC5;
    --rose: #E77658;
    --light-rose: #F1C1B4;
    --yellow: #F2BC41;
    --green: #009D5C;
    --light-green: #9CD9BA;
    --blue: #6BA6D6;
    --light-blue: #C2D2DF;
}

.level-style {
    background-color: var(--light-green) !important;
    border: 3px solid var(--green) !important;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    display: flex;
    justify-content: center;
    position: relative;
    color: var(--black);
    font-family: "baloo-2", sans-serif;
    font-weight: 400;
    font-style: normal;
}

#canvas-ghost {
    position: absolute;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 9 / 16;
}

#canvas1 {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    width: 100%;
    height: 100%;
    max-width: 540px;
    border: 5px solid white;
    background-image: url('img/background.png');
    background-size: cover;
    background-repeat: no-repeat;
}

.btn {
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 15px;
    padding: 5px 10px;
    color: var(--black);
    text-decoration: none;
    white-space: nowrap;
    margin: 5px;
}

#restartButton {
    background-color: var(--light-green);
    border: 3px solid var(--green);
}

#mainMenuButton {
    background-color: var(--light-rose);
    border: 3px solid var(--rose);
}

#score-background {
    background-color: var(--sand);
    border: 3px solid var(--yellow);
    padding: 15px 0 15px 25px;
    width: 150px;
    border-radius: 0 0 25px 0;
    position: absolute;
    left: 0;
    z-index: 99;
}


#game-over-background {
    background-color: var(--light-blue);
    border: 3px solid var(--blue);
    border-radius: 25px;
    position: absolute;
    top: 350px;
    left: 50%;
    transform: translate(-50%);
    display: none;
    flex-direction: column;
    z-index: 9;

    h1 {
        text-align: center;
        margin: 0;
    }

    div {
        margin: 0 15px 0 15px;
        display: flex;
        justify-content: space-between;
    }
}

#next-wave {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translateX(-50%);
    z-index: 9;
    background-color: var(--sand);
    border: 3px solid var(--yellow);
    border-radius: 25px;
    padding: 15px 25px;
    display: none;

    h1 {
        margin: 0;
        text-align: center;
        white-space: nowrap;
    }

    h2 {
        text-align: center;
        font-weight: 100;
        margin: 0;
        white-space: nowrap;
    }

}

#display-wave-complete span {
    text-decoration: underline;
    font-weight: 800;
}

#wave-countdown {
    text-align: center;
    font-size: xx-large;
    font-weight: 800;
}

@keyframes swing-rotate {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }

    75% {
        transform: rotate(-5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

#kite-body {
    position: absolute;
    left: 35%;
    top: 10%;
    width: 35%;
    animation: swing-rotate 2s ease-in-out infinite;
    transform-origin: center;
    scale: 0;
    transition: scale 1s ease;
}