@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,900;1,400&display=swap');

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

body {
  background-color: #2F4858;
  color: #FFC446;
}

header {
  text-align: center;
  font-weight: 900;
  font-size: 3rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin: 0 auto 1rem auto;
  background-color: #29404f;
}
.rules {
  text-align: center;
  font-style: italic;
}

.score {
  text-align: center;
}
.winnerDiv {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #29404f;
  margin-top: 1rem;
} 
.winner {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.playerImgs {
  display: flex;  
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.pImg {
  background-color: #29404f;
  border-radius: .75rem;
  padding: 1rem;
  cursor: pointer;
  transition: 0.3s;
  max-width: 152px;
  min-width: 100px;
}
.pImg:hover {
  background-color: #243a47;
}

.scoreWrapper {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 2rem;
  font-size: 1.25rem;
}
.choiceWrapper {
  display: flex;
  justify-content: space-around;
  text-align: center;
  margin-top: 2rem;
}

.reset {
  display: none;
  background-color: #FFC446;
  border-style: none;
  font-family: Roboto;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: 0.3s;
  cursor: pointer;
  border-radius: .75rem;
  padding: .75rem;
  color: #243845;
}
.reset:hover {
  background-color: #ffb417;
}

@media (max-width: 635px) {
  header {
    font-size: 2rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
  }
  .rules {
    font-size: 1.3rem;
  }
  .playerImgs {
    margin-left: 1rem;
    margin-right: 1rem;
    gap: 1rem;
    margin-top: 2rem;
  }
  .scoreWrapper {
    flex-direction: column;
    gap: .5rem;
  }
  .playerChoice {
    width: 140px;
  }
  .computerChoice {
    width: 193px;
  }
  .winner {
    font-size: 1.7rem;
    text-align: center;
    margin-right: 1rem;
    margin-left: 1rem;
  }
  .reset {
    font-size: 1.25rem;
  }
}