*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  height: 100vh;
  width: 100vw;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

body {
  width: 100%;
  height: 100%;
}

.reader {
  width: 100%;
  height: 100%;
  background-color: #221f3b;
  display: flex;
  justify-content: center;
}

.reader-display {
  width: 80%;
  height: 80%;
  padding: 2rem;
  margin-top: 4rem;
  position: relative;
}

.reader-display textarea {
  font-size: calc(0.8rem + 0.7vw);

  padding: 2rem;
  width: 100%;
  height: 100%;
  resize: none;
}

.reader-display textarea:focus {
  background-color: #5d54a4;
  color: white;
  outline: none;
  border: none;
}

.reader-controls {
  position: absolute;
  bottom: 0%;
  left: 0;

  height: 20%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
}

.number-input {
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: calc(1.2rem + 1.2vw);
  letter-spacing: 0.1rem;
}

.number-input input {
  text-align: center;
  background-color: #5d54a4;
  padding: 0.8em;
  color: white;
  font-size: calc(0.8rem + 0.7vw);
  outline: none;
  border: none;
  margin-left: 2rem;
  max-width: 3em;
}
.arrows {
  background-color: #5d54a4;
  padding: 0.5em;
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 0.3em solid transparent;
  border-right: 0.3em solid transparent;

  border-bottom: 0.3em solid white;
  margin-bottom: 0.2em;
  cursor: pointer;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 0.3em solid transparent;
  border-right: 0.3em solid transparent;

  border-top: 0.3em solid white;
  cursor: pointer;
}

button {
  outline: none;
  border: none;
  margin-left: 2rem;
  background-color: #5d54a4;
  padding: 0.8em 1em;
  color: white;
  font-size: calc(0.8rem + 0.7vw);
  cursor: pointer;
}

button:hover {
  filter: opacity(0.8);
}

.select{
  display: flex;
  align-items: center;
}

.select p{
  color: white;
  font-size: calc(1.2rem + 1.2vw);
  letter-spacing: 0.1rem;
}

select {
  margin-left: 2rem;
  background-color: #5d54a4;
  padding: 0.8em 1em;
  color: white;
  font-size: calc(0.8rem + 0.7vw);
  cursor: pointer;
  outline: none;
  border: none;
}

.upper{
  display: flex;
}

@media only screen and (max-width: 1100px) {
  .reader-controls{
    flex-direction: column;
    gap: 2rem;
  }

}

@media only screen and (max-width: 600px) {
  .reader-display {
    width: 90%;
    height: 80%;
    margin-top: 25%;
  }
  .reader-controls {
    top: 0;
    flex-wrap: wrap;
  }
}

@media only screen and (max-width: 500px) {
  .reader-display {
    margin-top: 35%;
  }
  .reader-controls {
    top: 2%;
    flex-wrap: wrap;
  }
}

.hide {
  display: none;
}

.disabledControl{
  user-select: none;
  pointer-events: none;
 background-color: #5d54a47a;
 opacity: 0.5;
}


