@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%; /* Default base font size for rem (10px) */
  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 QUERIES */
@media (max-width: 1200px) { /* Large screens (laptops) */
  h1 {
    font-size: 3.5rem;
  }

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

  main {
    flex-direction: column;
    justify-content: center;
  }

  .left,
  .right {
    width: 45rem;
  }

  .guess {
    font-size: 4rem;
    width: 22rem;
  }

  .btn {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) { /* Tablets */
  html {
    font-size: 55%; /* Adjust base font size */
  }

  h1 {
    font-size: 3rem;
  }

  .number {
    font-size: 4rem;
    width: 12rem;
  }

  .left,
  .right {
    width: 100%;
    text-align: center;
  }

  .guess {
    font-size: 3.5rem;
    width: 20rem;
  }

  .btn {
    font-size: 1.6rem;
    padding: 1.5rem 2.5rem;
  }
}

@media (max-width: 480px) { /* Mobile Phones */
  html {
    font-size: 50%; /* Reduce base font size */
  }

  h1 {
    font-size: 2.5rem;
  }

  header {
    height: 30vh;
  }

  main {
    height: 70vh;
    flex-direction: column;
    align-items: center;
  }

  .number {
    font-size: 3.5rem;
    width: 10rem;
  }

  .guess {
    font-size: 3rem;
    width: 18rem;
  }

  .btn {
    font-size: 1.4rem;
    padding: 1rem 2rem;
  }

  .message {
    margin-bottom: 4rem;
  }
}

@media (min-width: 1600px) { /* Extra-large screens */
  html {
    font-size: 70%; /* Slightly larger base font size */
  }

  h1 {
    font-size: 5rem;
  }

  .number {
    font-size: 7rem;
    width: 18rem;
  }

  .left,
  .right {
    width: 60rem;
  }

  .guess {
    font-size: 6rem;
    width: 28rem;
  }

  .btn {
    font-size: 2.5rem;
    padding: 2.5rem 4rem;
  }
}
