/* @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; */
  /* background-color: #60b347; */
  background-image: linear-gradient(rgba(35, 33, 33, 0.484), rgb(23, 22, 22)),
    url(./img/meo.jpg);
  background-size: cover;
}

/* LAYOUT */
header {
  position: relative;
  height: 35vh;
  border-bottom: 7px solid #eee;
}

main {
  height: 65vh;
  color: #eee;
  display: grid;
  align-items: center;
  justify-content: space-around;
}

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

.right {
  grid-column: 2;
  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;
}

.bottom {
  /* chuyển vào hai cột 1,2 */
  grid-column: 1 / 3;
}
.status {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.img-status {
  width: 30rem;
  height: 20rem;
  object-fit: cover;
  margin-bottom: 2rem;
  background-color: aliceblue;
  box-shadow: 0 12px 24px 0 rgb(249, 250, 250, 0.2);
  display: none;
}

.sound {
  position: absolute;
  top: 2rem;
  left: 25rem;
  cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
  html {
    font-size: 50%;
  }

  header {
    height: auto;
    padding: 2rem 1rem;
    text-align: center;
  }

  h1 {
    font-size: 3rem;
    position: static;
    transform: none;
  }

  .between {
    font-size: 1.2rem;
    position: static;
    margin-top: 1rem;
  }

  .again,
  .sound {
    position: static;
    margin: 1rem 0;
  }

  .number {
    font-size: 4rem;
    width: 10rem;
    padding: 2rem 0;
    position: static;
    transform: none;
    margin: 2rem auto;
  }

  main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 2rem 1rem;
  }

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

  .guess {
    width: 80%;
    font-size: 2rem;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .btn {
    width: 80%;
    font-size: 1.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .message,
  .label-score,
  .label-highscore,
  .status {
    font-size: 1.5rem;
  }

  .img-status {
    width: 80%;
    height: auto;
    margin: 0 auto;
  }
}