@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;
}

/* 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;
  padding: 2rem;
  gap: 2rem;
  flex-wrap: nowrap;
}

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

.right {
  width: 52rem;
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ELEMENTS STYLE */
h1 {
  font-size: 4rem;
  text-align: center;
  position: absolute;
  width: 100%;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
   animation-name: continious-scale;
   animation-delay: 0s;
   animation-fill-mode: both;
  animation-duration: 5s;
  /* animation-iteration-count: infinite;  */
  animation-timing-function:ease-in-out;
}
h1:hover {
 
  /* scale: 1.05; */
  color: #ccc;
}
.number {
  background: #eee;
  color: #333;
  font-size: 6rem;
  width: 15rem;
  padding: 3rem 0;
  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 {
  scale: 1.05;
  transform: translateY(2px);
  background-color: #ccc;
}

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

.label-score {
  margin-bottom: 2rem;
}
@keyframes continious-scale {
 
  0% {
    transform: translateX(50%);
  }
  50% {
    transform: translateX(-50%);
  }
  75% {
    transform: translateX(-25%);
  }
  100% {
    transform: translateX(-50%);
}

  
}
/* MOBILE (phones) */
@media (max-width: 576px) {
  html {
    font-size: 40.5%;
  }

  header {
    height: 30vh;
    border-bottom-width: 6px;
  }
  h1{
    font-size: 3rem;
    margin-bottom: 1rem;
      transform: translate(-50%, -50%);
  
  main {
    display: flex;
    /* align-items: center; */
    justify-content: center;
    flex-direction: row;
    gap: 10rem;
    padding: 2rem;
    margin: 1rem;
    height: auto;
    transform: translate(0% ,100%);

  }

  .left {
    display: flex;
    width: 70%;
    padding-top: 2rem;
  }

  .right {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    /* background-color: purple; */
    width: 100%;
    font-size: 1.8rem;
    padding: 0 1rem 2rem;
    align-items: center;
  }
  
  .between {
    font-size: 1.5rem;
    top: 1.6rem;
    right: 2.6rem;
  }

  .again {
    top: 1.6rem;
    left: 1.6rem;
  }

  .guess {
    font-size: 3rem;
    padding: 1.8rem;
    width: 15rem;
    margin-bottom: 2rem;
  }

  .btn {
    font-size: 1.8rem;
    padding: 1.6rem 2.4rem;
  }

  .message {
    margin-bottom: 6rem;
    height: auto;
  }

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

  .label-highscore {
    display: flex;
    /* width: 100%; */
    font-size: inherit;
  }
}

/* SMALL TABLET / LARGE PHONE */
 @media (min-width: 577px) and (max-width: 768px) {
  html {
    font-size: 50%;
  }

  header {
    height: 22vh;
  }

  main {
    /* background-color:rebeccapurple; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10rem;
    padding: 2rem;
    margin: 1rem;
    height: auto;
    transform: translate(0% ,100%);
  }

  .left,
  .right {
    width: 50%;
  }

  h1 {
  line-height:1.5rem;
    font-size: 2.6rem;
    /* position: relative; */
    /* transform: translateX(-50%); */
    /* left: 50%; */
    /* top: 0; */
    margin-bottom: 1rem;
  }

  .number {
    font-size: 4rem;
    width: 13rem;
    padding: 2.5rem 0;
    /* position: absolute; */
    transform: translate(-50% -70%);
    left: 50%;
    margin: 1rem 0;
  }

  .guess {
    font-size: 3.6rem;
    width: 18rem;
    padding: 2rem;
    top: 6rem;
    /* position: inherit; */
  }
/*
  .btn {
    font-size: 1.6rem;
    padding: 1.8rem 2.6rem;
  }

  .right {
    font-size: 1.8rem;
    align-items: center;
  } */
} 

/* TABLET / SMALL LAPTOP */
@media (min-width: 769px) and (max-width: 1024px) {
  html {
    font-size: 57%;
  }

  header {
    height: 28vh;
  }

  main {
    flex-direction: row;
    gap: 2.5rem;
    padding: 2.5rem;
  }

  .left,
  .right {
    width: 48%;
  }

  h1 {
    font-size: 3.2rem;
    position: absolute;
    top: 48%;
    transform: translate(-50%, -50%);
  }

  .number {
    font-size: 5rem;
    width: 14rem;
    padding: 2.7rem 0;
    transform: translate(-50%, 50%);
  }

  .guess {
    font-size: 4.2rem;
    width: 22rem;
    padding: 2.3rem;
  }

  .btn {
    font-size: 1.8rem;
    padding: 1.9rem 2.8rem;
  }

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

/* LAPTOP / 14" TUNING (common 1366px width and above) */
@media (min-width: 1025px) and (max-width: 1365px) {
  html {
    font-size: 62.5%;
  }

  header {
    height: 32vh;
  }

  main {
    gap: 3rem;
    padding: 3rem;
  }

  .left,
  .right {
    width: 46%;
  }

  h1 {
    font-size: 3.8rem;
  }

  .number {
    font-size: 5.8rem;
    width: 15rem;
    padding: 3rem 0;
  }

  .guess {
    font-size: 4.8rem;
    width: 24rem;
    padding: 2.4rem;
  }

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

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

/* LARGE SCREENS (>= 1366px) - widen spacing and scale up nicely */
@media (min-width: 1366px) {
  html {
    font-size: 68%;
  }

  header {
    height: 36vh;
  }

  main {
    gap: 4rem;
    padding: 4rem;
  }

  .left,
  .right {
    width: 44%;
  }

  h1 {
    font-size: 4.4rem;
    top: 52%;
  }

  .number {
    font-size: 6.6rem;
    width: 18rem;
    padding: 3.4rem 0;
  }

  .guess {
    font-size: 5.6rem;
    width: 28rem;
    padding: 2.6rem;
  }

  .btn {
    font-size: 2.2rem;
    padding: 2.2rem 3.4rem;
  }

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