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

body {
  background-color: #1a1919;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.firstContainer {
  display: flex;
  flex-direction: column;
  place-content: center;
  margin: 30px auto;
  background-color: chocolate;
  border-radius: 15px;
  border: 2px solid white;
}
.container {
  margin: 20px;
  border-radius: 25px;
}

.heading {
  background: radial-gradient(circle, #ffff0066, transparent);
  margin: 30px;
  border-radius: 15px;
  border: 5px solid #25272e;
}

.about {
  display: flex;
  flex-direction: row;
  place-content: center;
  border-radius: 15px;
  width: auto;
}

a {
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(180deg, #f44336, #ef5350);
  border-radius: 10px;
  border: 1px solid;
  margin: 10px;
  padding: 10px;
  animation-name: about;
  animation-duration: 20s;
  color: blue;
}
a:hover {
  background: linear-gradient(135deg, #f44336, #ef5350);
}
p{
  background: none;
  color: chocolate;
  animation: Author 20s infinite;
}

h1 {
  display: flex;
  flex-direction: row;
  position: relative;
  padding: 10px;
  margin: 20px auto;
  color: #25272e;
  font-size: 3.5rem;
  animation-duration: 10s;
  animation-name: particle;
}

.scoreboard {
  height: 100px;
  text-align: center;
  font-size: 40px;
  margin: 20px auto;
  width: 200px;
  background-color: #25272e;
  padding: 20px;
  border: 3px solid white;
  border-radius: 5px;
}

.scoreDisplay {
  position: relative;
  font-size: 1.2rem;
}

.scorePlayer {
  padding: 2px 10px;
  background: linear-gradient(180deg, #f44336, #ef5350);
  position: absolute;
  top: 10px;
  left: -80px;
  border: 5px solid #25272e;
  border-radius: 5px;
}

.scoreCompt {
  padding: 2px 10px;
  background: linear-gradient(180deg, #f44336, #ef5350);
  position: absolute;
  top: 10px;
  right: -80px;
  border-radius: 5px;
  border: 5px solid #25272e;
}

.Numberdisplay {
  animation: scorePop 0.4s ease;
}

.wintext {
  text-align: center;
  box-shadow: 0 0 20px green;
  border-radius: 10px;
}
.wintext,
#playerScoreDisplay {
  color: green;
  font-size: 2rem;
}

.losetext {
  text-align: center;
  animation: glow 0.5s ease forwards;
  box-shadow: 0 0 20px red;
  border-radius: 10px;
}

.losetext,
#computerScoreDisplay {
  color: rgb(209, 17, 17);
  font-size: 2rem;
}
#dot {
  font-size: 2rem;
}
.RPS {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
}

.rock {
  position: relative;
  right: -10px;
}
.paper {
  position: relative;
  right: -10px;
}
.scissors {
  position: relative;
  right: -10px;
}

#chioces {
  display: flex;
  flex-direction: row;
  place-content: center;
  margin-bottom: 30px;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

#chioces button {
  gap: 20px;
  padding: 20px;
  font-size: 5rem;
  min-width: 100px;
  margin: 0 10px;
  border-radius: 50px;
  border: 5px solid whitesmoke;
  cursor: pointer;
  background-color: #25272e;
  transform: scale(1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  filter: drop-shadow(0 2px 5px gold );
}

#chioces button:hover {
  opacity: 1;
  transition: background-color 0.5s ease;
  background-color: rgba(57, 59, 43, 0.555);
}

.play-comp {
  background-color: #25272e;
  padding: 10px;
  border-radius: 15px;
  border: 5px solid white;
}

.only-play-comp {
  gap: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}
#playerDisplay,
#computerDisplay {
  justify-content: space-around;
  font-size: 2rem;
  width: auto;
  padding: 10px;
  border: 2px solid white;
  border-radius: 10px;
  color: gold;
}

#resultDisplay {
  padding: 5px;
  font-size: 2rem;
  margin: 20px;
  
}

.resetBtn{
  display: flex; 
  flex-direction: column;
  align-items: center;
  justify-content: center;
  
}
#reset{
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(180deg, #f44336, #ef5350);
  border-radius: 10px;
  border: 1px solid;
  margin: 10px;
  padding: 10px;
   animation-name: about;
  animation-duration: 20s;
   color: blue;
}
#reset:hover{
  transition: 10ms;
  transform: translate(3px);
  background: linear-gradient(135deg, #f44336, #f80a0627);
}
@keyframes myAnimation {
  0% {
    left: 0px;
    top: 0px;
    right: 0px;
  }
  25% {
    left: 0px;
    right: 100px;
  }
  50% {
    left: -50px;
    right: 0px;
  }
  75% {
    left: 0px;
    right: 100px;
  }
  100% {
    left: 0px;
    right: 0px;
  }
}
@keyframes bounceIn {
  0% {
    transform: scale(0) translateY(100px);
    opacity: 0;
  }
  60% {
    transform: scale(1.2) translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: scale(1) translateY(0);
  }
}
@keyframes scorePop {
  0% {
    transform: scale(1);
    color: inherit;
  }
  50% {
    transform: scale(1.5);
    color: #00c853;
  }
  100% {
    transform: scale(1);
    color: inherit;
  }
}
@keyframes about {
  0% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.9);
    transform: scale(1.2);
  }
  100% {
    box-shadow: 0 0 0px rgba(255, 215, 0, 0.6);
    transform: scale(1);
  }
}
@keyframes Author{
  0%{
    color: chocolate;
    text-shadow: 0 0 5px chocolate;
  }
  50%{
    color: gold;
    text-shadow: 0 0 10px gold;
  }
  100%{
    color: chocolate;
    text-shadow: 0 0 5px chocolate;
  }
}

@media (max-width:500px){
  body{
    height: auto;
    width: 100%;
    font-size: 20px;
  }
  .firstContainer{
    width: auto;
    height: auto;
  }
  h1{
    font-size: 2rem;
  }

}