@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono&display=swap');

:root{
  --color-background:#f4e8f0;
  --color-header:#fa9bc5;
  --color-player:#3495c7;
  --color-computer:#ea6742;
  --color-button:#eaa4ae;
}

html {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-background);
  font-family: 'Noto Sans JP', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
}

.start-page{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
}
.rules{
  margin:1rem;
  border:2px solid #000;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 10px 20px -5px rgba(0,0,0,0.5)
}

.game{
  margin:1rem;
  border:2px solid var(--color-button);
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 10px 20px -5px rgba(0,0,0,0.5)
}

.btn{
  height:100px;
  width:200px;
  cursor:pointer;
  border:none;
  font-size:20px;
  font-family: 'Roboto Mono', monospace;
  font-weight:bolder;
}

.btn:hover{
  background-color:#ecb4c3;
  color:#fff;
}

.rules-container{
  max-width:600px;
  padding:1rem;
  margin:auto;
}

.back{
  margin:auto;
  height:40px;
  width:90%;
  font-size: 25px;
  letter-spacing: 0.2rem;
  font-weight:400;
  border-radius:10px;
  background-color: #fff;
  cursor:pointer;
}
.back:hover{
  color:#fff;
  background-color: var(--color-header);
  border:none;
}

.game-container{
  width:530px;
  height:600px;
  background-color: whitesmoke;
  border-radius:5px;
  box-shadow:0 10px 20px -5px rgba(0,0,0,0.5);
}

.header {
  background: var(--color-header);
  height:100px;
  border-top-left-radius: 5px;
  border-top-right-radius:5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

h1 {
  color: white;
  font-size: 30px;
}

.player-container {
  margin: 50px;
}

h2 {
  margin-bottom: 20px;
}

.far {
  font-size: 50px;
  margin-right: 40px;
  User-select: none;
}

#player .far,
#player .choice{
  color:var(--color-player);
  cursor:pointer;
}

#computer .far,
#computer .choice{
  color:var(--color-computer);
}

#player .far:last-of-type,
#computer .far:last-of-type{
  margin-right:0;
}

.selected{color:black !important}

.reset-icon {
  font-size: 30px;
  cursor: pointer;
  margin-left: 50px;
}

.reset-action{
  transform:scale(0.9);
  color:var(--color-player)
}

.result-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.result-text {
  font-size: 40px;
  margin: unset;
  margin-top: 20px;
}

/* Media Query: Large Smartphone (Vertical) */
@media screen and (max-width: 600px) {
  .rules-container{
    padding:2rem;
  }
  .rules-container>p{
    text-align: justify;
  }
  .game-container {
    width:95%;
    height: 580px;
  }

  h1 {
    font-size: 24px;
  }

  .player-container {
    margin: 50px 0 25px 25px;
  }

  .far {
    margin-right: 20px;
  }

  .reset-icon {
    margin-top: 25px;
    margin-left: 25px;
  }
}

/* Media Query: iPhone (Vertical) */
@media screen and (max-width: 376px) {
  .game-container {
    height: 550px;
  }

  h1 {
    font-size: 22px;
  }

  .player-container {
    margin: 43px 0 25px 20px;
  }

  .far {
    font-size: 43px;
  }

  .reset-icon {
    margin-top: 15px;
  }

  .result-container {
    margin: 0 20px;
  }
}
