/* General body setup */
body {
  font-family: Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: rgba(128, 128, 128, 0.195);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Phone container */
.iphone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: white;
  border: solid 6px rgba(0, 0, 0, 0.825);
  max-width: 370px;
  width: 95%;
  height: 90dvh;
  border-radius: 50px;
  position: relative;
  box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.35);
  padding: 20px;
  box-sizing: border-box;
}

/* Notch */
.notch {
  background-color: rgba(0, 0, 0, 0.721);
  height: 35px;
  width: 90px;
  border-radius: 20px;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: transform 0.2s;
}
.notch:active {
  transform: translateX(-50%) scale(1.1);
}

/* Title */
h1 {
  margin-top: 60px;
  margin-bottom: 20px;
  font-size: 1.5em;
}

/* Choice buttons layout */
.choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}


.choice-btn {
  font-size: 2.5em;
  background-color: white;
  border: 2px solid black;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-btn:hover {
  transform: scale(1.1);
  background-color: rgba(0, 0, 0, 0.05);
}


.player,
.computer {
  font-size: 1.2em;
  font-weight: bold;
  margin: 5px 0;
}

#resultDisplay {
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 0;
  text-align: center;
}

/* Scores */
.playerScore,
.computerScore {
  font-size: 1em;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.721);
  margin: 5px 0;
}


.backSpace {
  height: 4px;
  width: 120px;
  background-color: rgba(0, 0, 0, 0.721);
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
}

/* Colors */
.greenText,
#playerDisplay, #playerScore {
  color: rgba(0, 128, 0, 0.759);
}

.redText,
#computerDisplay, #computerScore {
  color: tomato;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .iphone {
    border-width: 4px;
    border-radius: 30px;
    padding: 15px;
  }

  .choice-btn {
    width: 70px;
    height: 70px;
    font-size: 2em;
  }

  #resultDisplay {
    font-size: 1.2em;
  }

  .player,
  .computer,
  .playerScore,
  .computerScore {
    font-size: 0.95em;
  }

  .notch {
    height: 25px;
    width: 60px;
    top: 10px;
  }

  .backSpace {
    width: 80px;
    height: 3px;
  }
}

/* Remove tap highlight on mobile*/
.notch{
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.choice-btn {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

