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

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: 'Press Start 2P', sans-serif;
  color: #eee;
  background-color: #222;
  /* background-color: #60b347; */
}

/* LAYOUT */
header {
  position: relative;
  height: 35vh;
  border-bottom: 7px solid #eee;
}

main {
  height: 65vh;
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.left {
  width: 52rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.right {
  width: 52rem;
  font-size: 2rem;
}

/* ELEMENTS STYLE */
h1 {
  font-size: 4rem;
  text-align: center;
  position: absolute;
  width: 100%;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.number {
  background: #eee;
  color: #333;
  font-size: 6rem;
  width: 15rem;
  padding: 3rem 0rem;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.between {
  font-size: 1.4rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.again {
  position: absolute;
  top: 2rem;
  left: 2rem;
}

.guess {
  background: none;
  border: 4px solid #eee;
  font-family: inherit;
  color: inherit;
  font-size: 5rem;
  padding: 2.5rem;
  width: 25rem;
  text-align: center;
  display: block;
  margin-bottom: 3rem;
}

.btn {
  border: none;
  background-color: #eee;
  color: #222;
  font-size: 2rem;
  font-family: inherit;
  padding: 2rem 3rem;
  cursor: pointer;
}

.btn:hover {
  background-color: #ccc;
}

.message {
  margin-bottom: 8rem;
  height: 3rem;
}

.label-score {
  margin-bottom: 2rem;
}

@media only screen and (max-width: 900px) {
  h1 {
    font-size: 3rem;
  }

  .between {
    font-size: 1.2rem;
  }

  .number {
    font-size: 4rem;
  }

  .btn {
    font-size: 1.2rem;
  }

  .guess {
    font-size: 3rem;
  }

  .right {
    font-size: 1.6rem;
  }
}

@media only screen and (max-width: 900px) {
  h1 {
    font-size: 2.5rem;
  }

  .number {
    width: 13rem;
    font-size: 3rem;
  }

  .btn {
    padding: 1.5rem 2rem;
  }

  .number {
    width: 16rem;
  }

  .right {
    font-size: 1.4rem;
  }
}

@media only screen and (max-width: 700px) {
  .guess {
    width: 20rem;
  }
}

@media only screen and (max-width: 500px) {
  header {
    border-bottom: 4px solid #eee;
  }

  h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 1.2rem 1.5rem;
  }

  .number {
    width: 10rem;
    padding: 2.5rem 0rem;
  }

  .guess {
    width: 16rem;
    font-size: 2rem;
    padding: 2rem;
  }

  .right {
    font-size: 1.2rem;
  }
}

@media only screen and (max-width: 400px) {
  header {
    border-bottom: 3px solid #eee;
  }
  h1 {
    font-size: 1.8rem;
  }
  .btn {
    padding: 1rem 1.2rem;
  }

  .between {
    font-size: 1rem;
    top: 3rem;
    right: 1rem;
  }

  .right {
    width: 48rem;
    font-size: 1rem;
  }

  .message {
    margin-bottom: 5rem;
    height: 1rem;
  }

  .guess {
    border: 3px solid #eee;
    width: 12rem;
    padding: 1.5rem;
  }
}

@media only screen and (max-width: 316px) {
  h1 {
    line-height: 2;
  }
  .between {
    font-size: 0.8rem;
    top: 2rem;
  }

  .again {
    top: 2rem;
    left: 1rem;
  }

  .btn {
    font-size: 1rem;
  }

  .number {
    font-size: 3rem;
    width: 10rem;
    padding: 2.2rem 0;
  }

  .left {
    width: 50rem;
  }
}
