@import "puckanimation.css";
@import "playeranimation.css";
@import "actualpuckanimation.css";

/*the trackbar for hitting the puck*/
body {
    overflow:hidden;
    margin: 0px;
    padding: 0px;
}

.countdown {
    display:flex;
    position: absolute;
    height: 100vh;
    width: 100vw;
    justify-content: center;
    align-items: center;
    font-size: 150px;
    font-family:'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

#three-count {
    color:rgb(255, 51, 51);
    animation-delay: 0s;
}
#two-count {
    color:rgb(255, 166, 32); 
    animation-delay: 1s;   
}
#one-count {
    color:rgb(48, 176, 255);
    animation-delay: 2s;
}
#start-count {
    color:rgb(43, 226, 30);
    animation-delay: 3s;
}

.countd {
    position: absolute;
    text-align: center;
    opacity: 0;
    animation: countanim 1s forwards;
}

@keyframes countanim {
    0% {
        opacity: 0%;    
        transform: rotate(30deg);
    }
    99% {
        opacity: 100%;
        transform: rotate(0deg);
    }
    100% {
        opacity: 0;
    }

}

.trackcontainer{
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    min-height: 100vh;

    counter-reset: goal-count 0;
}

.trackcontainer input[type="checkbox"]:checked {
    counter-increment: goal-count;
}

.trackcontainer .count::after {
    content: counter(goal-count);
    font-weight: bold;
}

.hitzone{
    position: absolute;
    z-index: 10;
    right: 625px;


    height: 50px;
    width: 40px;
    background-color: rgb(103, 246, 87);
    pointer-events: auto;
}

.pucktrack{
    height: 50px;
    width: 100%;
    background-color:rgb(210, 227, 255); 
}

.goal-display {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    position: absolute;
    top: 0px;
    left: 10px;
}

h3 {
    margin-bottom: 0px;
}
p {
    margin-top: 0px;
}

.win-screen {
    visibility: hidden;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    height: 100vh;
    width: 100vw;
    background-color: rgb(73, 255, 73);
    font-family: "Luckiest Guy", cursive;
    font-weight: 300;
    color: white;
}

#go-again {
    text-decoration: none;
    color:rgb(0, 11, 16);
}

.loss-screen {
    visibility: hidden;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 25;
    height: 100vh;
    width: 100vw;
    background-color:rgb(241, 18, 18);
    font-family: "Luckiest Guy", cursive;
    font-weight: 300;
    opacity: 90%;
}
h1 {
    margin: 0px;
    font-size: 75px;
}
.whitecolor {
    color: white;
}

#restart {
    text-decoration: none;
    color:rgb(0, 11, 16);
}
.buttoncontainer {
    background-color:rgb(248, 245, 245);
    margin-top: 15px;
    padding: 6px;
    border-radius: 2px;
}

.trackcontainer:has(#pucknoteclicked:checked):has(#pucknoteclicked2:checked):has(#pucknoteclicked3:checked):has(#pucknoteclicked4:checked):has(#pucknoteclicked5:checked) .win-screen {
    animation: youwin 2s 2.3s linear forwards;
}

.trackcontainer:has(input[type = "checkbox"]:not(:checked)) .loss-screen {
    animation: yalost 2s 24.5s linear forwards;
}

@keyframes youwin {
    0% {
        visibility: hidden;
    }

    100% {
        visibility: visible;
    }
}

@keyframes yalost {
    0% {
        visibility: hidden;
    }

    100% {
        visibility: visible;
    }
}