@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Roboto:wght@400;500&display=swap');

body {
  font-family: "Source Sans Pro", sans-serif;
  background-color: #fff;
  transition: background-color .3s linear;
}

.boxes {
  display: flex;
}
.box {
  height: 40px;
  border-right: 1px solid #c7c7c7;
  flex: 1;
  width: 20px;
}

.main-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.problem {
  margin: 0;
  font-size: 5rem;
  padding: 10px;
}

@keyframes showError {
  50% {
    color: red;
    transform: scale(1.3);
  }
}

.on-error {
  animation: 0.45s showError;
}

.progress {
  border: 1px solid #c7c7c7;
  border-right: none;
  position: relative;
  margin: 0 auto; /* places the progress bar at the center */
  max-width: 900px;
}

.progress-inner {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  background-color: #7ecc00;
  opacity: 0.57;
  transform: scaleX(0);
  transform-origin: center left;
  transition: transform 0.3s ease-out;
}

.overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.91);
  display: flex;
  justify-content: center; /*horizontal align*/
  align-items: center; /*vertical align*/
  opacity: 0;
  visibility: hidden;
  transform: scale(1.2);
  transition: all 0.3s ease-out;
}

body.overlay-is-open .overlay {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

body.overlay-is-open .main-ui {
  filter: blur(4px);
}

.end-message {
  font-size: 2.02rem;
}
.reset-game {
  background-color: rgb(29, 29, 151);
  border-radius: 6px;
  padding: 10px;
  color: aliceblue;
  font-size: 1.09rem;
}

.reset-game:hover {
  cursor: pointer;
  background-color: rgb(23, 23, 187);
}

.overlay-inner {
  text-align: center;
}

/* theme changer section */
.theme-changer-section {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  height: 30vh;
  margin: 0;
}

.label {
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 50px;
  height: 26px;
  width: 50px;
  padding: 5px;
  position: relative;  
  transform: scale(1.2)
}
.fa-moon {
  color: #f1c40f;
  
}
.fa-sun {
  color: #f39c12;
}

.ball {
  width: 30px;
  height: 30px;
  background-color: #fff;
  position: absolute;
  border-radius: 50%;
  transition: transform 0.2s linear;
  left: 5%;
}

.checkbox {
 position: absolute;
  opacity : 0;
}

.checkbox:checked + .label .ball {
 /*  background-color: purple; */
   transform: translateX(24px);
 }
 
 body.dark {
   background-color: #292c35;
   transition: background-color .3s linear;
 }
 body.dark p {
   color: white;
 }
 body.dark .progress-inner {
  background-color: #5DADE2;
 }

body.dark .progress {
  border-color: #1ABC9C;
}
body.dark .problem {
  color: #EAEDED;
}
body.dark .overlay {
  background-color: rgba(55, 49, 49, 0.91);
}
/* title below the button-toggle, changes when theme changes */
body.dark .theme-name::after {
  content: 'Dark theme'
}
body .theme-name::after {
  content: 'Light theme'
}

