@import url('https://fonts.googleapis.com/css2?family=Jacquard+12&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Tiny5&display=swap');

:root {
    --pri: #584838;
    --sec: #3b2e20;
    --bg: #2b2219;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    width: 100vw;
    overflow-x: hidden;
}
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.coolpixel {
  font-family: "Jacquard 12", system-ui;
  font-weight: 100;
  font-style: normal;
}
.regular {
  font-family: "Macondo", cursive;
  font-weight: 400;
}



/* ORIENTATION CHECK SCREEN */
#orientation-check-screen {
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #382c25;
    width: 100vw;
    height: 100vh;
    padding: 20vw;
    z-index: 100;
}
#orientation-check-screen img {
    position: absolute;
    opacity: 0.4;
    width: 60vw;
}
#orientation-check-screen h2 {
    color: white;
    text-align: center;
    font-size: 3vw;
    font-weight: 00;
    letter-spacing: 0.3vw;
    z-index: 100;
}



/* CONTENT */
#swipe-down-msg {
    position: absolute;
    top: 45vh;
    width: 100vw;
    text-align: center;
    color: white;
    font-size: 8vw;
    letter-spacing: 0.2vw;
}

#main-screen {
    position: relative;
    top: 100vh;
    padding: 8vw;
}
#content {
    position: relative;
    display: grid;
    grid-template-columns: 80% 20%;
    grid-template-rows: 25% 50% 25%;
    background-color: var(--pri);
    width: 100%;
    height: 100%;
    border: white 0.5vw solid;
    border-radius: 5vw;
    padding: 5vw;
}

.point-button {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--sec);
    height: 80%;
    border: 0.5vw white solid;
    border-radius: 10vw;
    margin: auto;
    aspect-ratio: 1/1;
    transform: rotate(90deg);
}
.point-button p {
    text-align: center;
    color: white;
    font-size: 25vw;
    letter-spacing: 1vw;
}

#counter {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 10% 10% 10% 10% 10% 10% 10% 10% 10% 10%;
    grid-column: 2;
    grid-row-start: 1;
    grid-row-end: 4;
    background-color: var(--bg);
    border: 0.5vw white solid;
}
.counter-point {
    background-color: white;
    border-radius: 3vw;
    margin: 1vw;
}
.counter-point.golden {
    border: 0.5vw #f7d154 solid;
}
.counter-point.red {
    border: 0.5vw #9c1212 solid;
}

#bellring {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70%;
    margin: auto;
    transform: rotate(90deg);
}
#bellring img {
    width: 90%;
    transition: scale 0.05s ease-out;
}
#bellring.finish img {
    animation: bellring-animation 2s ease-in-out infinite;
}
#bellring.clicked img {
    scale: 1.3;
}
#bellring h3 {
    position: absolute;
    background-color: white;
    padding: 3vw;
    border: 0.5vw black solid;
    border-radius: 10vw;
    text-align: center;
    color: var(--bg);
    font-size: 8vw;
    font-weight: 900;
    aspect-ratio: 10/3;
}



/* GAME OVER SCREEN */
#gameover-screen {
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1vw white solid;
    border-radius: 5vw;
}
#gameover-screen #stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg);
    padding: 8vw;
    border: 0.1vw white solid;
    border-radius: 5vw;
    transform: rotate(90deg);
    color: white;
}
#gameover-screen #winner {
    font-size: 10vw;
    letter-spacing: 2vw;
}
#gameover-screen #winner.dourado {
    color: #f7d154;
}
#gameover-screen #winner.bordo {
    color: #9c1212;
}



/* ANIMATIONS */

@keyframes bellring-animation {
    0% {
        scale: 1;
        transform: rotate(0deg);
    }
    15% {
        scale: 1.2;
        transform: rotate(-10deg);
    }
    30% {
        scale: 1.5;
        transform: rotate(10deg);
    }
    40% {
        transform: rotate(-5deg);
    }
    45% {
        transform: rotate(5deg);
    }
    50% {
        transform: rotate(-5deg);
    }
    55% {
        transform: rotate(5deg);
    }
    60% {
        transform: rotate(-5deg);
    }
    65% {
        transform: rotate(5deg);
    }
    70% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
    80% {
        scale: 0.8;
        transform: rotate(-5deg);
    }
    100% {
        scale: 1;
        transform: rotate(0deg);
    }
}