* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: "Nova Mono", monospace;
    color: azure;
}

body {
    background-color: #0B192C;
    text-align: center;
}

header {
    background-color: #000015;
    padding: 1rem;
    margin-bottom: 2rem;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: bolder;
}

h2 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scoreboard {
    font-weight: bolder;
    text-align: center;
}

.score-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    padding: 0.5rem;
    flex-wrap: wrap;
}

.score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.play-again-message {
    visibility: hidden;
}

#playerScoreBox p { 
    color: #3D3BF3;
}

#computerScoreBox p {
    color: #FF2929;
}

.hands-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 10vw, 8rem);
}


.hands-container .hand {
    transform: rotate(90deg);
    width: clamp(80px, 20vw, 250px);
}

.computer-hand-container .hand {
    transform: rotate(90deg) scaleY(-1);
}

.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.gesture-btn {
    border: 2px solid azure;
    border-radius: 2em;
    color: gold;
    background-color: #000020;
    padding: 0.6rem 1rem;
    font-size: 1em;
    font-weight: bolder;
    min-width: 160px;
}

.button-container button:hover {
    color: #000020;
    background-color: gold;
    cursor: pointer;
    transform: scale(1.15);
}

.footer {
    margin-top: 2rem;
    padding: 1rem;
    color: azure;
    font-size: clamp(0.8rem, 2vw, 1rem);
    text-align: center;
}

/* animations */
.animate-player {
    animation: player-hand-motion 0.5s ease-in-out 3;
}

.animate-computer {
    animation: computer-hand-motion 0.5s ease-in-out 3;
}

@keyframes player-hand-motion {
    0%   { transform: translateY(0) rotate(90deg); }
    25%  { transform: translateY(-20px) rotate(80deg); }
    50%  { transform: translateY(0) rotate(80deg); }
    75%  { transform: translateY(20px) rotate(100deg); }
    100% { transform: translateY(0) rotate(90deg); }
}

@keyframes computer-hand-motion {
    0%   { transform: translateY(0) rotate(90deg) scaleY(-1); }
    25%  { transform: translateY(-20px) rotate(100deg) scaleY(-1); }
    50%  { transform: translateY(0) rotate(80deg) scaleY(-1); }
    75%  { transform: translateY(20px) rotate(80deg) scaleY(-1); }
    100% { transform: translateY(0) rotate(90deg) scaleY(-1); }
}
