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

:root {
  --color-white: #eee;
  --color-white-hover: #ccc;
  --color-black: #222;
  --color-gray-dark: #333;
}

body {
  font-family: 'Press Start 2P', sans-serif;
  color: var(--color-white);
  background-color: var(--color-black);
  /* background-image: radial-gradient(
    circle,
    #303030,
    #282828,
    #202020,
    #191919,
    #111111,
    #111111,
    #111111,
    #111111,
    #191919,
    #202020,
    #282828,
    #303030
  ); */

  background-image: linear-gradient(
    to right top,
    #000000,
    #0d0d0d,
    #161616,
    #1d1d1d,
    #252525,
    #2c2c2c,
    #333333,
    #3b3b3b,
    #434343,
    #4c4c4c,
    #555555,
    #5e5e5e
  );
  height: 100vh;
  padding: 2rem;
}

/* BUTTONS */
.btn {
  border: none;
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 2rem 3rem;
  font-family: 'Press Start 2P', sans-serif;
  font-size: 2rem;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--color-white-hover);
}

/* LAYOUT */
header {
  height: 35vh;
  position: relative;
  border-bottom: 7px solid var(--color-white);
}

main {
  height: 65vh;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

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

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

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

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

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

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

.guess {
  background: none;
  border: 4px solid var(--color-white);
  font-family: inherit;
  color: inherit;
  font-size: 5rem;
  padding: 2.5rem;
  width: 25rem;
  text-align: center;
  display: block;
}

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

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

@media screen and (max-width: 768px) {
  .right {
    text-align: center;
    margin-top: 45px;
  }
  .left {
    margin-top: 56px;
    gap: 1.2rem;
  }
  .again {
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    top: 57rem;
    left: 9rem;
  }
  .check {
    padding: 1.8rem 2.8rem;
    font-size: 1.8rem;
  }
  .number {
    font-size: 4.5rem;
    width: 10rem;
    padding: 2rem 0;
  }
  header > h1 {
    font-size: 3rem;
    text-align: center;
    line-height: 5rem;
  }
  p {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 500px) {
  header > h1 {
    font-size: 2rem;
  }
  .number {
    font-size: 4rem;
    width: 10rem;
  }
  .guess {
    width: 15rem;
    padding: 2rem;
  }
  .message {
    margin-bottom: 5rem;
    height: 3rem;
    line-height: 2rem;
  }
  .right {
    text-align: center;
    margin-top: 0px;
  }

  h1 {
    font-size: 2rem;
  }
  p {
    font-size: 1.2rem;
  }

  .again {
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    top: 57rem;
    left: 4rem;
  }
  .check {
    padding: 1.6rem 2.6rem;
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 980px) {
  .between {
    position: static;
  }
}
