h1 {
  text-align: center;
  text-decoration: underline;
  font-size: 3rem;
}
.allText {
  width: 84vw;
  min-height: 100vh;
  font-size: 20px;
  padding: 10px;
  margin: 10px;
}
.App {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.checkbox {
  opacity: 0;
  position: absolute;
  display: none;
}
.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  width: 60px;
  height: 30px;
  background-color: #f0f0f0;
  border-radius: 15px;
  border: 1px solid white;
  position: relative;
  transition: background-color 0.3s;
}
.checkbox-label .fas {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 55%;
  transform: translateY(-50%);
}
.checkbox-label .fa-moon {
  left: 10px;
  color: #f4ec8b;
}
.checkbox-label .fa-sun {
  right: 5px;
  color: #f39c12;
}
.checkbox-label .ball {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}
.checkbox:checked + .checkbox-label .ball {
  transform: translateX(30px);
}
.checkbox:checked + .checkbox-label {
  background-color: #363837;
}
.checkbox-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100px;
}
.confirmed {
  opacity: 0;
  z-index: -1;
  transition: opacity 0.2s, margin-left 0.6s;
  animation: slideOut 0.6s forwards;
}
.fullscreenContainer {
  cursor: pointer;
  font-size: x-large;
}
.fa-rotate {
  cursor: pointer;
}
.firstClick {
  opacity: 1;
  cursor: default;
  transition: opacity 0.8s, margin-left 0.6s;
  animation: slideIn 0.6s forwards;
}
.dark {
  background-color: #363837;
  color: white;
  transition: background-color 0.5s, color 0.5s;
}
.icon-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.light {
  background-color: white;
  color: black;
  transition: background-color 0.5s, color 0.5s;
}
.red {
  color: red;
}
#startWriting {
  cursor: pointer;
  font-weight: bold;
  color: lightblue;
  transition: color 0.5s;
  &:hover {
    color: rgb(66, 66, 237);
  }
}
.toolBar {
  display: flex;
  justify-content: space-between;
  width: 98%;
  gap: 10px;
  margin-bottom: -20px;
}


@keyframes slideIn {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}
@keyframes slideOut {
  0% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
  100% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
}
