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

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

.right {
  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;
}

.icon {
  width: 35px;
  height: 55px;
}

.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;
  line-height: 40px;
  display: inline-block;
}

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

.move-in-right {
  animation: moveInRight 3s infinite;
  background-clip: text;
  color: transparent;
}

.pulsate {
  animation: pulsate 0.5s infinite;
}

.going-up {
  animation: goingUp 0.5s;
}

.show-modal {
  border: none;
  background-color: inherit;
  color: #444;
  border-radius: 10rem;
  cursor: pointer;
  display: flex;
  margin: 0px auto;
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.close-info-modal {
  position: absolute;
  top: 1.2rem;
  right: 2rem;
  font-size: 5rem;
  color: #eee;
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none;
}

.info-modal {
  position: absolute;
  font-size: 1.5rem;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  background-color: #222;
  overflow: auto;
  padding: 6rem;
  border-radius: 5px;
  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.info-modal-title {
  font-size: 4rem;
  font-weight: 600;
  display: inline-block;
  padding-bottom: 3rem;
  margin-left: 20%;
}
.info-modal-text {
  line-height: 2.75rem;
  padding: 1rem 0;
}

.info-modal::-webkit-scrollbar-track {
  border: 1px solid #000;
  padding: 2px 0;
  background-color: #404040;
}

.info-modal::-webkit-scrollbar {
  width: 10px;
}

.info-modal::-webkit-scrollbar-thumb {
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #eee;
  border: 1px solid #000;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 5;
}

.info-modal-box {
  padding: 4rem 4rem;
}

/* ANIMATIONS */
@keyframes moveInRight {
  from {
    background-image: linear-gradient(
      to right,
      #eee,
      #eee 83%,
      transparent 83%
    );
  }
  30% {
    background-image: linear-gradient(
      to right,
      #eee,
      #eee 83%,
      transparent 83%
    );
  }
  50% {
    background-image: linear-gradient(
      to right,
      #eee,
      #eee 86%,
      transparent 86%
    );
  }
  70% {
    background-image: linear-gradient(
      to right,
      #eee,
      #eee 94%,
      transparent 94%
    );
  }
  to {
    background-image: linear-gradient(to right, #eee, #eee 66.666666%);
  }
}

@keyframes pulsate {
  20% {
    color: transparent;
  }
}

@keyframes goingUp {
  50% {
    top: 10%;
  }
}
