body,
html {
  margin: 0%;
  overflow-x: hidden;
  width: 100vw;
  font-family: "Righteous", sans-serif;
}

h1,
h2,
h3,
h5,
h6,
p {
  color: #0b8067;
}

h4 {
  color: #ffffff;
  margin-left: 3%;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #2196f3;
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #2196f3;
}

.switch input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.righteous-regular {
  font-family: "Righteous", sans-serif;
  font-weight: 400;
  font-style: normal;
}

header {
  background-color: #007057;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.themebtn {
  background-color: inherit;
  font-family: "Righteous", sans-serif;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
}

.theme {
  position: relative;
  display: inline-block;
  margin-left: 10%;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #0b8067;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  flex-direction: column;
}

.theme-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.theme-option:hover {
  background-color: #0c0e0c;
}

.theme:hover .dropdown-content {
  display: flex;
}

.theme:hover .themebtn {
  background-color: #0b8067;
  transition: ease 0.3s;
}

nav {
  display: flex;
  flex-direction: row;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 3px;
  margin-right: 3vw;
}

.logo {
  width: 70px;
  height: 70px;
  margin: 1%;
  margin-left: 2vw;
  border-radius: 50%;
  border: solid #0b8067 2px;
}

.problems {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  margin-top: 5vh;
}

.problem {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5vh;
  width: 20vw;
  height: 22vh;
  border: solid #0b8067 2px;
}

.problem p {
  margin-left: 3%;
}

.container {
  display: flex;
  flex-direction: column;
  margin-top: 5vh;
}

.container h1,
.container p {
  margin-left: 2%;
}

.banner {
  margin: 6vh 0 0;
  padding: 22px 0 34px;
  background-color: #007b63;
  display: grid;
  grid-template-columns: 56px 205px 240px 205px 56px;
  justify-content: center;
  column-gap: 24px;
  align-items: center;
}

.banner h2 {
  grid-column: 1 / -1;
  text-align: center;
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 50px;
}

.left,
.center,
.right {
  background-color: #00a084;
  border-radius: 6px;
  min-height: 320px;
  padding: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.center {
  transform: scale(1.06);
  z-index: 2;
}

.left,
.right {
  transform: scale(0.93);
  filter: blur(2px);
}

.banner-img {
  width: 100%;
  height: 245px;
  object-fit: cover;
  border-radius: 6px 6px 0 0;
}

.left p,
.center p,
.right p {
  margin: 0;
  color: #ffffff;
  font-size: 31px;
  line-height: 1;
  text-align: center;
}

.left button,
.center button,
.right button,
.prev,
.next {
  font-family: "Righteous", sans-serif;
  color: white;
  border: none;
  cursor: pointer;
}

.left button,
.center button,
.right button {
  padding: 10px 24px;
  border-radius: 4px;
  background-color: #ffffff;
  color: #007057;
  font-size: 30px;
  line-height: 1;
}

.prev,
.next {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  background-color: rgba(0, 165, 136, 0.85);
  font-size: 42px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}

.banner.is-sliding-next .left {
  animation: slide-next-left 320ms ease;
}

.banner.is-sliding-next .center {
  animation: slide-next-center 320ms ease;
}

.banner.is-sliding-next .right {
  animation: slide-next-right 320ms ease;
}

.banner.is-sliding-prev .left {
  animation: slide-prev-left 320ms ease;
}

.banner.is-sliding-prev .center {
  animation: slide-prev-center 320ms ease;
}

.banner.is-sliding-prev .right {
  animation: slide-prev-right 320ms ease;
}

@keyframes slide-next-left {
  0% {
    transform: scale(0.93) translateX(0);
    filter: blur(2px);
  }
  50% {
    transform: scale(0.93) translateX(-8px);
    filter: blur(3px);
  }
  100% {
    transform: scale(0.93) translateX(0);
    filter: blur(2px);
  }
}

@keyframes slide-next-center {
  0% {
    transform: scale(1.06) translateX(0);
  }
  50% {
    transform: scale(1.02) translateX(-8px);
  }
  100% {
    transform: scale(1.06) translateX(0);
  }
}

@keyframes slide-next-right {
  0% {
    transform: scale(0.93) translateX(0);
    filter: blur(2px);
  }
  50% {
    transform: scale(0.93) translateX(-8px);
    filter: blur(1px);
  }
  100% {
    transform: scale(0.93) translateX(0);
    filter: blur(2px);
  }
}

@keyframes slide-prev-left {
  0% {
    transform: scale(0.93) translateX(0);
    filter: blur(2px);
  }
  50% {
    transform: scale(0.93) translateX(8px);
    filter: blur(1px);
  }
  100% {
    transform: scale(0.93) translateX(0);
    filter: blur(2px);
  }
}

@keyframes slide-prev-center {
  0% {
    transform: scale(1.06) translateX(0);
  }
  50% {
    transform: scale(1.02) translateX(8px);
  }
  100% {
    transform: scale(1.06) translateX(0);
  }
}

@keyframes slide-prev-right {
  0% {
    transform: scale(0.93) translateX(0);
    filter: blur(2px);
  }
  50% {
    transform: scale(0.93) translateX(8px);
    filter: blur(3px);
  }
  100% {
    transform: scale(0.93) translateX(0);
    filter: blur(2px);
  }
}

.actxt {
  margin-left: 5%;
}

.acContainer {
  display: flex;
  flex-direction: row;
  margin-top: 5vh;
  justify-content: space-around;
}

.ac {
  display: inline-block;
  background-color: #007057;
  border-radius: 10px;
}

.ac button {
  font-family: "Righteous", sans-serif;
  text-align: center;
  width: 80%;
  padding: 10px 24px;
  border: none;
  background-color: inherit;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  margin-left: 10%;
  margin-right: 10%;
}

footer {
  background-color: #007057;
  height: 60px;
  margin-top: 6%;
}

body.dark-mode {
  background-color: #11151a;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode p,
body.dark-mode .actxt {
  color: #d8eee9;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #182229;
}

body.dark-mode .dropdown-content {
  background-color: #1f2c35;
}

body.dark-mode .theme:hover .themebtn {
  background-color: #1f2c35;
}

body.dark-mode .problem {
  border-color: #5aa194;
}

body.dark-mode .banner {
  background-color: #1a2730;
}

body.dark-mode .left,
body.dark-mode .center,
body.dark-mode .right,
body.dark-mode .ac {
  background-color: #22323d;
}

body.dark-mode .left button,
body.dark-mode .center button,
body.dark-mode .right button {
  background-color: #d8eee9;
  color: #1a2730;
}

body.dark-mode .prev,
body.dark-mode .next {
  background-color: #2d4250;
}

@media (max-width: 1200px) {
  .banner {
    grid-template-columns: 40px 180px 220px 180px 40px;
    column-gap: 14px;
  }

  .banner h2 {
    font-size: 42px;
  }

  .left p,
  .center p,
  .right p {
    font-size: 24px;
  }

  .left button,
  .center button,
  .right button {
    font-size: 24px;
  }

  .problem {
    width: 23vw;
    min-height: 170px;
    height: auto;
    padding: 10px;
  }
}

@media (max-width: 900px) {
  header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    padding: 10px;
  }

  .theme {
    margin-left: 0;
  }

  nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  nav a {
    margin-right: 0;
  }

  .container h1,
  .container p {
    margin-left: 4%;
    margin-right: 4%;
  }

  .problems {
    flex-wrap: wrap;
    gap: 12px;
  }

  .problem {
    width: 45%;
    min-height: 160px;
    height: auto;
    margin-top: 2vh;
  }

  .banner {
    grid-template-columns: 46px 1fr 46px;
    row-gap: 16px;
    padding: 18px 10px 24px;
  }

  .left,
  .right {
    display: none;
  }

  .center {
    grid-column: 2;
    max-width: 320px;
    width: 100%;
    justify-self: center;
    transform: none;
    opacity: 1;
  }

  .banner h2 {
    font-size: 36px;
  }

  .center p {
    font-size: 24px;
  }

  .center button {
    font-size: 24px;
  }

  .actxt {
    margin-left: 4%;
  }

  .acContainer {
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 4%;
  }

  .ac {
    width: 100%;
    max-width: 430px;
  }
}

@media (max-width: 600px) {
  body,
  html {
    width: 100%;
  }

  .logo {
    width: 42px;
    height: 42px;
  }

  .themebtn,
  nav a {
    font-size: 14px;
  }

  .problem {
    width: 100%;
  }

  .banner {
    grid-template-columns: 36px 1fr 36px;
    padding: 16px 8px 20px;
  }

  .banner h2 {
    font-size: 30px;
  }

  .center p {
    font-size: 20px;
  }

  .center button,
  .ac button {
    font-size: 20px;
  }

  .prev,
  .next {
    width: 30px;
    height: 30px;
    font-size: 30px;
  }
}
