/* Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap');

/* Root */
:root {
  --primaryColor: #2979ff;
  --secondaryColor: #777;
  --backgrounColor: #2c2c2c;
}

/* All */
*{
  padding: 0;
  margin: 0;
  font-family: Poppins;
}

/* Body */
body {
  background-color: var(--backgrounColor);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title */
h1 {
  margin: 50px 0 20px 0;
  color:  var(--primaryColor);
}

/* Writing */
.display {
  height: 50vh;
  width: 80%;
  max-width: 900px;
  color: #fff;
  padding: 10px;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container-to-write {
  color: var(--secondaryColor);
  text-align: left;
  overflow: hidden;
}

.quote {
  color: var(--secondaryColor);
  text-align: left;
}

.author {
  margin-top: 10px;
  color: var(--primaryColor);
  font-size: 15px;
  text-align: left;
  width: 100%;
}

.true {
  color: #fff;
}

.false {
  color: #fc0839;
  animation: false .2s;
  text-decoration: underline;
}

@keyframes false {
  0% { 
    font-size: 25px;
  }
  100% {
    font-size: 20px;
  }
}

.letter {
  position: relative;
}

.cursor {
  color: var(--primaryColor);
  position: absolute;
  animation: cursor 1s infinite;
  top: -7px;
  left: -3px;
  font-size: 25px;
}

@keyframes cursor {
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Settings */
.container-settings {
  height: 100%;
  width: 50%;
  max-width: 300px;
}

.option {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.language {
  cursor: pointer;
  background: none;
  border: none;
  border: 2px solid white;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 500;
  color: var(--primaryColor);
  padding: 2px 0 0 5px;
}

.color {
  -moz-appearance: none;
  appearance: none;
  width: 45px;
  height: 30px;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 7px;
  cursor: pointer;
  display: flex;;
}

.color::-webkit-color-swatch {
  border-radius: 3px;
  border: none;
}

.color::-moz-color-swatch {
  border-radius: 3px;
  border: none;
}

.toggle {
  display: flex;
  justify-content: flex-start;
  padding: 0 3px;
  align-items: center;
  border-radius: 50px;
  height: 20px;
  width: 35px;
  border: 2px solid white;
  cursor: pointer;
}

.circle {
  height: 15px;
  width: 15px;
  border-radius: 50px;
  background-color: var(--secondaryColor);
}

.reset-settings {
  font-weight: 400;
  cursor: pointer;
  color: var(--primaryColor);
  border-bottom: 1px solid white;
}

.reset-settings:active {
  font-weight: 500;
}

/* Buttons */
.btns {
  margin-top: 20px;
  width: 40%;
  max-width: 15em;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.btns button {
  width: 45%;
  height: 50px;
  border-radius: 5px;
  font-size: 17px;
  cursor: pointer;
  border: none;
  font-weight: 500;
}

.primary {
  background-color: var(--primaryColor); 
  color: #fff;
}

.primary:hover {
  outline: 3px solid #fff;
}

.secondary {
  color: var(--primaryColor);
  background-color: #fff;
}

.secondary:hover {
  outline: 3px solid var(--primaryColor);
}

.keymap {
  font-size: 10px;
}

/* Hidden */
.hidden {
  display: none;
}
