@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: #2f2f2f;
}

/* LAYOUT */
header {
  position: relative;
  height: 47.5vh;
  border-bottom: 7px solid #eee;
}

main {
  height: 60vh;
  color: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left {
  width: 35%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.right {
  width: 35%;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 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: #2f2f2f;
  font-size: 5rem;
  width: 125px;
  height: 110px;
  display: flex;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  align-items: center;
  justify-content: center;
}

.between {
  font-size: 1.4rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.again {
  position: absolute;
  top: 2rem;
  left: 2rem;
}

.guess {
  background: none;
  border: 3px solid #eee;
  font-family: inherit;
  color: inherit;
  font-size: 4rem;
  padding: 2.25rem;
  width: 22.5rem;
  text-align: center;
  display: block;
  margin-bottom: 3rem;
}

.btn {
  border: none;
  background-color: #eee;
  color: #222;
  font-size: 1.75rem;
  font-family: inherit;
  padding: 1.75rem 2.75rem;
  cursor: pointer;
}

.btn:hover {
  background-color: #ccc;
}

.message {
  margin-bottom: 2rem;
}

.label-score {
  margin-bottom: 2rem;
}

@media screen and (min-width: 1400px) {
  header {
    height: 45vh;
  }
  main {
    height: 40vh;
  }
}

@media (max-width: 600px) {
  header {
    height: 40vh;
  }
  main {
    height: 65vh;
    justify-content: center;
    flex-direction: column-reverse;
    align-content: center;
  }

  h1 {
    font-size: 3rem;
    line-height: 1.5;
  }

  .left,
  .right {
    width: 100%;
  }

  .message,
  .label-score {
    margin-bottom: 1.5rem;
  }

  .right {
    font-size: 1.5rem;
    text-align: center;
  }

  .guess {
    margin-top: 25px;
  }

  .number {
    width: 110px;
    height: 95px;
  }

  .btn {
    font-size: 1.5rem;
    padding: 1.5rem 2.5rem;
  }

  .between {
    font-size: 1rem;
    position: absolute;
    top: 3.5rem;
    right: 1rem;
  }
}
