@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

/* General Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  /* display: flex;
  flex-direction: column; */
  text-align: center;
  min-height: 100vh;
  margin: 0;
  transition: background 0.2s linear;
}

header {
  width: 100%;
  height: 10vh;
  border-bottom: 10px double black;
  justify-content: space-between;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.container {
  display: flexbox;
  width: 100%;
}

.child1 {
  align-content: center;
  border-right: 10px double black;
  width: 50%;
  height: 100vh;
}

.child2 {
  width: 50%;
  height: 100vh;
  align-content: center;
}

/* Toggle Switch Styles */
.checkbox {
  opacity: 0;
  position: absolute;
}

.checkbox-label {
  background-color: #111;
  width: 50px;
  height: 26px;
  border-radius: 50px;
  position: relative;
  padding: 5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fa-moon {
  color: #f1c40f;
}

.fa-sun {
  color: #f39c12;
}

.checkbox-label .ball {
  background-color: #fff;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.checkbox:checked + .checkbox-label .ball {
  transform: translateX(24px);
}

/* Dark Mode Styles */
body.dark {
  background-color: #011f26;
}

body.dark a {
  color: azure;
}
body.dark a:hover {
  color: #c2c0a6;
}

body.dark header {
  border-bottom: 10px double #fbf9ef;
}

body.dark .child1 {
  border-right: 10px double #fbf9ef;
}

body.dark .card {
  border: 2px solid #fbf9ef;
}

body.dark h1,
body.dark {
  color: #fbf9ef;
}

body.dark ul {
  color: #fbf9ef;
}

body.dark .card h2 {
  border-bottom: 2px solid #fbf9ef;
}

/* Responsive Design */
@media screen and (max-width: 800px) {
  .container {
    flex-direction: column;
  }

  .child1 {
    width: 100%;
    height: 50vh;
    border-right: none;
  }

  .child2 {
    width: 100%;
    height: 50vh;
  }
}
