* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #73c8eb;
  font-family: 'Lilita One';
  height: 100vh;
}

.wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}

h1 {
  font-size: 4.5vw;
  text-align: center;
  letter-spacing: 0.4vw;
}

.counter, .gameboard {
  width: 70vw;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.counter {
  justify-content: space-around;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: bold;
  font-size: 18px;
}

button {
  font-family: inherit;
  font-weight: bold;
  font-size: 18px;
  padding: 5px 15px;
  box-shadow: slategrey 2px 2px 2px;
}

button:active {
  box-shadow: slategrey 1px 1px 1px;;
}

.gameboard {
  justify-content: center;
  position: relative;
}

#result {
  position: absolute;
  align-self: center;
  z-index: 40;
  width: 80%;
  padding-left: 40px;
  padding-right: 40px;
  border-radius: 4px;
  background-color: #73c8ebf1;
  text-align: center;
  font-size: 0px;
  -webkit-text-stroke: 4px black;
  transition-property: font-size;
  transition-duration: 500ms;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}

#stone, #paper, #scissors {
  width: 33%;
  height: 0;
  padding-bottom: 33%;
  position: relative;
  display: flex;
  justify-content: center;
}

#stone img, #paper img, #scissors img {
  position: absolute;
  max-width: 100%;
}

footer {
  width: 80%;
  margin-bottom: 4vh;
  padding: 0 1em;
  display: flex;
  justify-content: space-around;
  align-items: baseline;
  flex-wrap: wrap;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 600;
}

footer span {
  margin: 0 1em;
}

footer i {
  color: black;
  font-size: 2em;
  margin-left: 0.5em;
}

@media screen and (min-device-width: 300px) and (max-device-width: 800px) and (orientation: portrait) {
  html {
    transform: rotate(-90deg);
    transform-origin: left top;
    width: 100vh;
    overflow-x: hidden;
    position: absolute;
    top: 100%;
    left: 0;
  }

  body {
    height: 100vw;
  }

  h1 {
    font-size: 4.5vh;
    text-align: center;
    letter-spacing: 0.4vh;
  }
  
  .gameboard, .counter {
    width: 70vh;
  }
  
  footer {
    margin-bottom: 4vw;
    padding: 0 0.5em;
    flex-wrap: wrap;
    font-size: 0.75em;
  }
  
  footer span {
    margin: 0 0.5em;
  }
  
  footer i {
    font-size: 1.5em;
    margin-left: 0.5em;
  }
}
