@import url("https://fonts.googleapis.com/css2?family=Roboto");

:root {
  --light-color: #f4f4f4;
  --primary-color: #003699;
  --modal-duration: 1s;
  --win-color: #009e60;
  --lose-color: #ff0000;
}

body {
  font-family: Roboto, sans-serif;
  background-color: lightblue;
  line-height: 1.6;
}
h1 {
  color: yellow;
  font-family: "Press Start 2P";
  font-size: 20px;
  font-weight: 400;
}
.container {
  margin: 0;
  overflow: hidden;
  padding: 0;
  text-align: center;
  overflow: hidden;
  /* added */
}
.gameIcons {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  grid-gap: 1rem;
  margin: 0;
  text-align: center;
}


table {
  margin: 0 auto;
  border: 4px solid #212121;
  font-size: 20px;
  color: #212121;
  background-color: #fff;
}

table th[colspan="2"] {
  border-bottom: 3px solid #212121;
  text-transform: uppercase;
}

table th,
table td {
  padding: 15px;
}

table tr:nth-of-type(2) th {
  padding-bottom: 0;
}

table td#user-score,
table td#computer-score {
  text-align: center;
  font-size: 17px;
  font-weight: bolder;
}
.restart-btn {
  font-family: "Press Start 2P";
  font-size: 14px;
  font-weight: 400;
  background: var(--light-color);
  color: #333;
  padding: 0.4rem 1.3rem;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  border: none;
  margin-bottom: 1rem;
}
.restart-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
.choices {
  display: grid;
  grid-auto-flow: column;
  justify-content: center;
  grid-gap: 1rem;
  margin: 0;
  text-align: center;
}
.choice {
  height: 150px;
  width: 150px;
  border: 0px;
  cursor: pointer;
  transition: all 0.2s ease-out;
}
.choice:hover {
  color: var(--primary-color);
  color: rebeccapurple !important;
  transform: rotate(6deg);
}
.choice:active {
  transform: translateY(4px);
}
@media (max-width: 700px) {
  .choice {
    font-size: 110px;
  }
}
@media (max-width: 500px) {
  .choice {
    font-size: 80px;
  }
}
.text-win {
  color: var(--win-color);
}
.text-lose {
  color: var(--lose-color);
}
.container1 {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
}
#box {
  width: 500px;
  height: 100px;
  margin: 10px;
  background-color: #ffffff;
  text-align: center;
  box-sizing: border-box;
  border-radius: 15px;
}

#message {
  font-family: "Press Start 2P";
  font-size: 16px;
  font-weight: 400;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: #fff;
  text-align: center;
  margin: 10% auto;
  width: 350px;
  border-radius: 10px;
  padding: 3rem;
  box-shadow: 0 5px 8px 0 rgba(0, 0, 0, 0.2), 0 7px 20px 0 rgba(0, 0, 0, 0.17);
  animation-name: modalopen;
  animation-duration: var(--modal-duration);
}
.modal-content h1 {
  margin-bottom: 1rem;
}
.modal-content p {
  font-size: 1.2rem;
  margin-top: 1rem;
}
@keyframes modalopen {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
