* {
    margin: 0;
    padding: 0;
    text-align: center;
}
body,html{
    overflow: hidden;
}
body {
  margin: 0;
  text-align: center;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("RPS.png") center/cover no-repeat;
  filter: blur(10px);
  z-index: -1;
}

h1{
    background-color: #1e1414;
    color: white;
    height: 5rem;
    line-height: 5rem;
}

h2 {
    color: #1e1414;
    font-size: 1.75rem;
    margin: 2rem;
    font-weight: normal;
}

.choice {
    height: 170px;
    width: 170px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.choice:hover{
    cursor: pointer;
    transform: scale(1.05);
}

img{
    height: 150px;
    width: 150px;
    object-fit: cover;
    border-radius: 50%;
}
img:hover{
    border: 5px solid #1e1414;;
}

.choices {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 5rem;
    flex-wrap: wrap;
}

.scoreboard{
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin-top: 3rem;
    gap: 5rem;
}

#user-score, #comp-score{
    font-size: 5rem;
}

.msg-container{
        margin-top: 3rem;
}

#msg {
    background-color:  #1e1414;
    color:white;
    font-size: 2rem;
    display: inline;
    padding: 1rem;
    border-radius: 1rem;
}

.game-over {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.game-over h1 {
font-size: 5rem;
color: black;
text-align: center;
justify-content: center;
animation: popIn 0.6s ease-out, pulse 1.5s infinite;
background-color: transparent;
}

@keyframes popIn {
0% { transform: scale(0); opacity: 0; }
80% { transform: scale(1.1); opacity: 1; }
100% { transform: scale(1); }
}

@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}

#restart {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 1.2rem;
    background: white;
    border: 2px solid #1e1414;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#restart:hover {
    transform: scale(1.1);
    background-color: #1e1414;
    color: white;
    border: 2px solid white;
}

@media (max-width: 768px) {
    .choice {
        height: 120px;
        width: 120px;
    }
    img {
        height: 100px;
        width: 100px;
    }
    #user-score, #comp-score {
        font-size: 3rem;
    }
    #msg {
        font-size: 1.5rem;
        padding: 0.8rem;
    }
    .choices {
        gap: 1.5rem;
        margin: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
        line-height: 3rem;
        height: 3rem;
    }
    .choices {
        flex-direction: column;
    }
    .choice {
        height: 90px;
        width: 90px;
    }
    #user-score, #comp-score {
        font-size: 3rem;
    }
    .scoreboard {
        font-size: 2rem;
        gap: 2rem;
    }
    #msg {
        font-size: 1rem;
        padding: 0.5rem;
    }
    body::before {
        background-size: contain;
        background-repeat: repeat-y;
        filter: blur(6px);
    }
}

