@import url('https://fonts.googleapis.com/css?family=Press+Start+2P&display=swap');

* {
  margin: 0px;
  padding: 0px;
  box-sizing: inherit;
}

html {
  font-size: 65%;
  box-sizing: border-box;
}

body {
  font-family: 'Press Start 2P', sans-serif;
  color: #ffffff;
  background-color: #000000;
}

header {
  position: relative;
  height: 35vh;
  border-bottom: 7px solid #ffffff;
}

.x {
  height: 65vh;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.l {
  width: 52rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.r {
  width: 52rem;
  font-size: 2rem;
}

h1 {
  font-size: 4rem;
  text-align: center;
  position: absolute;
  width: 100%;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.n {
  background: #ffffff;
  color: #000000;
  font-size: 6rem;
  width: 20rem;
  padding: 3rem 0rem;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
}

.y {
  font-size: 1.4rem;
  position: absolute;
  top: 2rem;
  right: 2rem;
}

.btn2 {
  position: absolute;
  top: 2rem;
  left: 2rem;
}

.guess {
  background: none;
  border: 4px solid #ffffff;
  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: #ffffff;
  color: #000000;
  font-size: 2rem;
  font-family: inherit;
  padding: 2rem 3rem;
  cursor: pointer;
}

.btn:hover {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid white;
}

.btn:active {
  scale: 1.05;
  transition: all 0.2s ease-out;
}

.msg {
  margin-bottom: 8rem;
  height: 3rem;
}

.score {
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  html {
    font-size: 50%;
  }

  header {
    height: 30vh;
  }

  h1 {
    font-size: 2.4rem;
    top: 55%;
  }

  .n {
    width: 12rem;
    font-size: 3.5rem;
    padding: 1.5rem 0;
  }

  .x {
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 1.5rem;
    height: auto;
  }

  .l {
    width: 100%;
    text-align: center;
  }
  .r {
    width: 100%;
    text-align: center;
  }

  .guess {
    width: 16rem;
    font-size: 3rem;
    padding: 1.5rem;
  }

  .btn {
    font-size: 1.5rem;
    padding: 1.2rem 2rem;
  }

  .btn2 {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
  }

  .y {
    font-size: 1rem;
  }

  .msg {
    margin-bottom: 4rem;
  }
}
