/* fonts */
@import url("https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;0,1000;1,200&display=swap");
/*icons*/
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css?v=1234");

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  padding: 0 0 10% 0;
  font-family: "Nunito", sans-serif;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-x: hidden;
  position: relative;
}

/* .page-content {
  width: 100%;
} */

#version {
  color: #333;
}

/* home page header */
.home-page-header .header {
  /* background-color: #99cccc69; */
  background-color: #99ccff;
  background-image: linear-gradient(to bottom, #99ccff 25%, #ccccff);
  width: 100%;
  border-radius: 7px;
  padding-bottom: 7px;
}

.home-page-header .header .settings .settings-icon-wrapper {
  background-color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  float: right;
  position: relative;
  padding: 15px;
  margin: 20px 20px 0 0;
}

.home-page-header .header .settings .settings-icon-wrapper i {
  position: absolute; /* Center the icon */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 17px;
  color: #555;
}

.home-page-header .header .settings .settings-icon-wrapper i:hover {
  cursor: pointer;
  color: #6633FF;
}

.home-page-header .header .settings {
  position: relative;

}

.home-page-header .header .settings #setting-items {
  width: 300px;
  height: 150px;
  /*background: #FFCC99; /*#c8ccd0;*/
  background: linear-gradient(180deg, #FFCC99, #ffcc994d);
  padding: 30px 20px;
  position: absolute;
  right: 50px;
  top: 50px;
  width: fit-content;
  border-radius: 13px;
  box-shadow: -5px 5px 10px rgba(66, 66, 66, 0.5);
  overflow: hidden;
}

.home-page-header .header .settings #setting-items .setting-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

/* Dim horizontal separator */
.home-page-header .header .settings #setting-items .separator {
  width: 100%;
  height: 1px;
  background-color: rgb(147, 215, 241);
  margin: 0.5rem 0;
}

/* Styling for the switch */
.home-page-header .header .settings #setting-items .setting-item .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.home-page-header .header .settings #setting-items .setting-item .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.home-page-header .header .settings #setting-items .setting-item .switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 13px;
}

.home-page-header .header .settings #setting-items .setting-item .switch .slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.4s;
  border-radius: 13px;
}

.home-page-header .header .settings #setting-items .setting-item .switch input:checked+.slider {
  background-color: #2196f3;
}

.home-page-header .header .settings #setting-items .setting-item .switch input:focus+.slider {
  box-shadow: 0 0 1px #2196f3;
}

.home-page-header .header .settings #setting-items .setting-item .switch input:checked+.slider:before {
  transform: translateX(20px);
}

/* Hide the checkbox input */
.home-page-header .header .settings #setting-items .setting-item .switch input[type="checkbox"] {
  display: none;
}

.home-page-header .header nav {
  display: flex;
  justify-content: center;
  height: 100%;
  font-family: "Nunito", sans-serif;
}

.home-page-header .header nav ul {
  display: flex;
  list-style: none;
  padding: 0;
  align-self: self-end;
}

.home-page-header .header nav li {
  margin-right: 10px;
  padding: 0 20px;
  /* Add initial spacing */
}

.home-page-header .header nav a {
  text-decoration: none;
  color: black;
  font-size: medium;
  font-weight: 600;
  padding-bottom: 7.5px;
  border-bottom: 2px solid transparent;
  margin-bottom: 4px;
  position: relative;
}

.home-page-header .header nav a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease-in-out;
  /* Add transition */
}

/* .home-page-header .header nav a:hover::before, */
.home-page-header .header nav a.active::before {
  width: 100%;
  /* Expand the width on hover */
}

.home-page-header .header nav a:hover {
  text-decoration: none;
}

.hidden {
  display: none;
}

/* footer */
footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  border-radius: 0 0 7px 7px;
  font-family: "Nunito", sans-serif;
  z-index: 7;
  background-image: radial-gradient(circle, #ccccff 25%, #99ccff);
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.footer p {
  font-size: smaller;
  font-weight: bold;
}

/* credit: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_css_modal_bottom */
/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
  -webkit-animation-name: fadeIn;
  /* Fade in the background */
  -webkit-animation-duration: 0.4s;
  animation-name: fadeIn;
  animation-duration: 0.4s;
}

/* Modal Content */
.modal-content {
  position: fixed;
  left: 50%;
  top: 50%;
  background-color: #fefefe;
  width: 300px;
  transform: translate(-50%, -50%);
  -webkit-animation-name: slideIn;
  -webkit-animation-duration: 0.4s;
  animation-name: slideIn;
  animation-duration: 0.4s;
}

/* The Close Button */
.modal-header .close {
  color: white;
  float: right;
  font-size: 20px;
  font-weight: bold;
  line-height: 20px;
}

.modal-header .close:hover,
.modal-header .close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal-header {
  padding: 10px 16px;
  background-color: #547b7b;
  color: white;
}

.modal-body {
  padding: 2px 16px;
}

.modal-footer {
  padding: 2px 16px;
  background-color: #5cb85c;
  color: white;
}

/* credit: https://www.w3schools.com/css/tryit.asp?filename=trycss_forms */
input[type="email"] {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type="submit"] {
  width: 100%;
  background-color: #336666;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #478585;
}

/* animations */

@keyframes loading_transform {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes pulsate {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@-webkit-keyframes slideIn {
  from {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 50%;
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    top: -300px;
    opacity: 0;
  }

  to {
    top: 50%;
    opacity: 1;
  }
}

@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Media queries */
/* Styles for screen sizes less than 400px */
@media screen and (max-width: 399px) {

  /* Your styles here */
  .home-page-header .header {
    height: 10vh;
  }
}

/* Styles for screen sizes between 400px and 600px */
@media screen and (min-width: 400px) and (max-width: 599px) {

  /* Your styles here */
  .home-page-header .header {
    height: 13vh;
  }
}

/* Styles for screen sizes between 600px and 800px */
@media screen and (min-width: 600px) and (max-width: 799px) {

  /* Your styles here */
  .home-page-header .header {
    height: 15vh;
  }
}

/* Styles for screen sizes between 800px and 1000px */
@media screen and (min-width: 800px) and (max-width: 999px) {

  /* Your styles here */
  .home-page-header .header {
    height: 20vh;
  }
}

/* Styles for screen sizes between 1000px and 1200px */
@media screen and (min-width: 1000px) and (max-width: 1199px) {

  /* Your styles here */
  .home-page-header .header {
    height: 33vh;
  }
}

/* Styles for screen sizes between 1200px and 1400px */
@media screen and (min-width: 1200px) and (max-width: 1399px) {

  /* Your styles here */
  .home-page-header .header {
    height: 33vh;
  }
}

/* Styles for screen sizes greater than 1400px */
@media screen and (min-width: 1400px) {

  /* Your styles here */
  .home-page-header .header {
    height: 33vh;
  }
}



/* Dark Mode */
body.dark-mode {
  background-color: #2e2e35;
}


body.dark-mode .home-page-header .header {
  background: rgba(0, 0, 0, 0.3);
}

body.dark-mode .home-page-header .header nav a {
  color: #fff;
}

body.dark-mode .home-page-header .header nav a::before {
  background-color: #fefefe;
}

body.dark-mode .home-page-header .header .settings .settings-icon-wrapper {
  background-color: transparent;
}


body.dark-mode .home-page-header .header .settings .settings-icon-wrapper i {
  color: #ccc;
}

body.dark-mode .home-page-header .header .settings .settings-icon-wrapper i:hover {
  color: #9999FF;
}

body.dark-mode .home-page-header .header .settings #setting-items {
  /* box-shadow: -5px 5px 10px #ffffff21; */
  background: linear-gradient(180deg, #996666, #666699);
  color: #fff;
  z-index: 3;
}

body.dark-mode .home-page-header .header .settings #setting-items .separator {
  background-color: #dfdcdc;
}

body.dark-mode .modal-header {
  background-color: #233535;
}

body.dark-mode .modal-content input[type="email"] {
  background-color: #2e2e35;
  color: #fff;
}


body.dark-mode .modal-content input[type="email"]::placeholder {
  color: #ccc;
}

body.dark-mode .modal-content {
  background-color: #2e2e35;
}

body.dark-mode footer {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}


body.dark-mode footer div small#version {
  color: #ccc;
}