@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");

/*Main setup*/

html {
  min-height: 100%;
  position: relative;
}

body {
  font-family: "Press Start 2P", sans-serif;
  margin: 0;
  color: #301515; 
}

/*Header and footer*/

header {
  text-align: center;
  height: 50px;
}

footer {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 0;
  box-sizing: border-box;
  min-height: 80px;
  padding-top: 5px;
  text-align: center;
  color: #fff;
  background-color: #301515;
}

/*Game area*/

.game-area {
  width: 85%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding-top: 2%;
}

.control {
  display: inline;
  margin: 2px;
  width: 120px;
  height: 50px;
}

#rock {
  background-color: #dd89c5;
  font-family: "Press Start 2P", sans-serif;
}

#paper {
  background-color: #6aadd0;
  font-family: "Press Start 2P", sans-serif;
}

#scissors {
  background-color: #dfd375;
  font-family: "Press Start 2P", sans-serif;
}

#messages {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  height: 20px;
}

/* Actual game zone*/

#game-zone {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
  margin-bottom: 6rem;
}

#versus {
  margin-left: 1%;
  margin-top: 5%;
}

.player {
  background-color: #ade6d0;
  float: left;
  width: 46%;
  height: fit-content;
  font-size: 10px;
  margin-top: 4rem;
  margin-bottom: 1rem;
  padding-bottom: 2rem;
}

#player-image {
  width: 55%;
  height: inherit;
}

.computer {
  background-color: #f09d80b0;
  float: right;
  width: 46%;
  height: fit-content;
  font-size: 10px;
  margin-top: 4rem;
  margin-bottom: 1rem;
  padding-bottom: 2rem;
}

#computer-image {
  width: 55%;
  height: inherit;
}

/* For mobile sreen seizes from 360px wide and down */
@media screen and (max-width: 360px) {

  /*Header and footer*/

  header {
  height: 150px;
  }

  header h1 {
    font-size: 30px;
  }

  footer {
    font-size: 12px;
    min-height: 100px;
  }

  /*Game area*/

  .game-area {
    width: 90%;
    padding-top: 2%;
  }

  .control {
    margin: -1px;
    width: 73px;
    height: 40px;
    font-size: 8px;
  }

  #messages {
    margin-top: 4rem;
    font-size: 1.2rem;
  }

  /* Actual game zone*/

  .player {
    font-size: 8px;
  }
  
  .computer {
    font-size: 8px;
  }

  #versus {
    margin-left: 3%;
    font-size: small;
  }
}