@import url("https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@600;700&family=Open+Sans:wght@300;500&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(hsl(214, 47%, 23%), hsl(237, 49%, 15%)) no-repeat;
  min-height: 100vh;
  font-family: "Barlow Semi Condensed", sans-serif;
  padding: 50px 0;
}

.score-board {
  margin: auto;
  margin-bottom: 25px;
  width: 50vw;
  border: 3px hsl(217, 16%, 45%) solid;
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}

.title {
  width: min-content;
  color: white;
  font-size: 2.5rem;
  line-height: 2rem;
}

.score {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  background: white;
  padding: 1rem 3rem;
  border-radius: 10px;
}

.score-title {
  color: hsl(229, 64%, 46%);
  margin: 0;
}

#score {
  font-size: 4rem;
  color: hsl(229, 25%, 31%);
  margin: 0;
}

.container {
  background: url(bg-triangle.svg) no-repeat;
  background-size: 250px;
  width: fit-content;
  height: fit-content;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0;
  gap: 75px;
  background-position: 50%;
}

.colspan-2 {
  grid-column: 1/-1;
  justify-self: center;
}

.rock {
  border-color: hsl(349, 70%, 56%) !important;
  box-shadow: 0 7px 0 hsl(349, 71%, 52%) !important;
  background: url(icon-rock.svg) no-repeat white center !important;
}

.paper {
  border-color: hsl(230, 89%, 65%) !important;
  box-shadow: 0 7px 0 hsl(230, 89%, 62%) !important;
  background: url(icon-paper.svg) no-repeat white center !important;
}

.scissors {
  border-color: hsl(40, 84%, 53%) !important;
  box-shadow: 0 7px 0 hsl(39, 89%, 49%) !important;
  background: url(icon-scissors.svg) no-repeat white center !important;
}

.options {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  margin: 0;
  border: 1rem solid black;
  cursor: pointer;
  outline: none;
}

.options:active {
  transform: translateY(5px);
}

.game {
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: fit-content;
  row-gap: 30px;
  column-gap: 5rem;
  justify-items: center;
  text-transform: uppercase;
  color: white;
  font-size: 1rem;
}

#opponent {
  border-radius: 50%;
  margin: 0;
  outline: none;
  width: 13rem;
  height: 13rem;
  cursor: default;
  transform: none;
}

.opponent {
  background: hsla(237, 53%, 17%, 0.452);
  border: none;
}

#player {
  cursor: default;
  width: 13rem;
  height: 13rem;
}

#player:active {
  transform: none;
}

.result-div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 10px;
}

#result {
  font-size: 3.5rem;
  color: white;
  margin: 5px;
  text-transform: uppercase;
}

#play-again {
  outline: none;
  text-transform: uppercase;
  cursor: pointer;
  font-size: 1rem;
  color: hsl(349, 71%, 52%);
  padding: 10px 28px;
  background: white;
  border-radius: 5px;
  border: none;
  margin-top: 10px;
}
#play-again:active {
  transform: translateY(5px);
}

.footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  font-family: "Open Sans", sans-serif;
  color: #f5f5f5;
  background-color: black;
  padding: 10px 0px;
  font-size: min(2vw, 15px);
  position: fixed;
  left: 0px;
  bottom: 0px;
  width: 100%;
}

.invisible {
  display: none;
}

@media only screen and (max-width: 750px) {
  html {
    font-size: 70%;
  }
}

@media only screen and (max-width: 500px) {
  html {
    font-size: 50%;
  }
  .options {
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    margin: 0;
    border: 0.8rem solid black;
    cursor: pointer;
    outline: none;
  }
}

@media only screen and (max-width: 350px) {
  .score {
    padding: 0.5rem 1.5rem;
  }
}
