@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap");

html,
body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(68, 6, 214, 1) 0%,
    rgba(20, 0, 50, 1) 70%,
    rgba(0, 0, 0, 1) 100%
  );
  background-repeat: no-repeat;
  background-size: cover;
}

.title {
  font-family: "IBM Plex Mono", monospace;
  color: #fff;
  font-size: 64px;
  font-weight: 800;
  display: flex;
  justify-content: center;
  align-items: center;
}

#app {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
  width: 500px;
  height: 300px;
  box-sizing: border-box;
}

p,
label {
  font-family: "IBM Plex Mono", monospace;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-size: 16px;
  font-weight: 500;
}

button {
  font-family: "IBM Plex Mono", monospace;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  color: #fff;
  background-color: #0f172a;
  border: none;
  border-radius: 6px;
}

button:hover {
  background-color: #1e293b;
  font-weight: 600;
}

input {
  height: 35px;
  border-radius: 6px;
  border: 2px solid black;
  padding: 0 8px;
}
#score {
  position: relative;
  left: 42%;
}

#inputSubmitForm {
  display: flex;
  margin-bottom: 50px;
}

#inputNumber {
  width: 372px;
  margin-top: 4px;
}

canvas {
  width: 100%;
  height: 40px;
  margin-top: 10px;
  border: 3px solid #1e293b;
  border-radius: 6px;
}

#rangeNumberContainer {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

#rangeNumberMin,
#rangeNumberMax {
  width: 50%;
  font-family: "IBM Plex Mono", monospace;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-top: 5px;
}

#rangeNumberMax {
  text-align: right;
}

#buttonContainer {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 10px;
}

#buttonContainer > button {
  width: 80px;
  height: 40px;
  font-size: 18px;
}
.clicked {
  background-color: rgb(255, 0, 0);
}

#submitBtn {
  width: 80px;
  height: 40px;
  position: relative;
  top: 32px;
}

#restartBtn {
  width: 80px;
  height: 40px;
  position: relative;
  left: 10px;
  margin: 10px auto;
  padding: 10px;
}

#gameText {
  position: absolute;
  right: 45%;
  top: 37%;
}

@media (max-width: 600px) {
  /* #app,
  .title,
  #startText,
  #buttonContainer {
    border: 1px solid red;
  } */

  #app {
    width: 375px;
    margin: 0;
  }

  .title {
    width: 375px;
    font-size: 32px;
    text-align: center;
  }

  #score {
    left: 35%;
  }

  #inputNumber {
    width: 80%;
  }

  #inputSubmitForm {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #startText {
    width: 80%;
    margin: 10px auto;
    text-align: center;
  }

  #sentence {
    width: 80%;
    margin: 10px auto;
    padding-top: 10px;
    text-align: center;
  }

  #buttonContainer button {
    margin: 10px 0;
  }
  #gameText {
    width: 100%;
    left: 10%;
    top: 35%;
  }
  canvas {
    margin-top: 30px;
    width: 80%;
    height: 40px;
  }
}
