@import url('https://fonts.googleapis.com/css2?family=Rye&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rye', cursive;
    /* cursor: none; */
    cursor:url("./assets/snipe.png") 40 40, auto;
} 

body {
    background-image: url("./assets/carnivalbackground.jpg");
    background-size: 100%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position-y: -5cm;
    height: 100vh;
    text-align: center;
    overflow: hidden;
   }

button {
    color: #000;
    border: 2px solid #fff;
    background: #fac;
    padding: 20px 45px;
    font-size: 0.5cm;
    margin: 0px auto;
    outline: none;
    /* cursor: none; */
    text-align: center;
}

.container {
    /* background: blue; */
    position: relative;
    overflow: hidden;
    height: 71%;   
    width: 71%;
    margin: 16% auto 0;
}

.instructions {
    position: absolute;
    top: 57%;
    left: 40%;
    text-shadow: 2px 2px pink;
    font-size: 35px;
}

.instructions-body {
    position: absolute;
    top: 68%;
    left: 28.5%;
    color: white;
    text-shadow: 2px 2px black;
    font-size: 20px;

}

.bullet {
    position: absolute;
    height: 50px;
    z-index: 2;
    transform: translate(70%, 70%);
    transform: translate(-442%, -516%)
}

/* .cursor {
    position: absolute;
    height: 100px;
    transform: translate(30%, 30%);
    pointer-events: none;
    z-index: 2;
    transition: 0.3 transform ease;
    transform-origin: 100% 100%;
} */

.targetBoard {
    /* position: absolute;
    top: randTop + "px";
    left: randLeft + "px";
    size :inherit; */
    height: 60px;
    width: 60px;
    display: none;
}

img::selection{
    background: transparent;
}

.startButton {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%,0%);
    z-index: 999;
}

.nextLevel {
    position: absolute;
    top: 66%;
    left: 50%;
    transform: translate(-50%,0%);
    z-index: 999;
    display: none;
}

.score {
    position: absolute;
    color: white;
    left: 2%;
    top: 12%;
    font-size: 24px;
    text-shadow: 2px 2px black;
}

.goal {
    position: absolute;
    color: white;
    left: 2%;
    top: 20%;
    font-size: 24px;
    text-shadow: 2px 2px black;
}

.level {
    position: absolute;
    color: white;
    left: 2%;
    top: 4%;
    font-size: 24px;
    text-shadow: 2px 2px black;
}

.title {
    font-size: 80px;
    position: absolute;
    text-shadow: 8px 8px pink;
    text-shadow: 2px 2px white;
    top: 2%;
    left: 50%;
    transform: translate(-50%, 0%);
    color: black;
}

.timer {
    font-size: 24px;
    position: absolute;
    text-align: right;
    top: 4%;
    right: 2%;
    color: white;
    text-shadow: 2px 2px black;
}

.hiScore {
    font-size: 24px;
    position: absolute;
    text-align: right;
    top: 12%;
    right: 2%;
    color: white;
    text-shadow: 2px 2px black;
}

.gameOver {
    position: center;
    text-align: center;
    top: 50%;
    margin-top: 100px;
    margin-bottom: 100px;
    color: white;
}

.finalScore {
    margin-top: -50px;
    margin-bottom: 10px;
}

.youPassed {
    position: center;
    text-align: center;
    top: 50%;
    margin-top: 100px;
    margin-bottom: 100px;
    color: white;
}