* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background-color: #e2dfdf;
  transition: background-color 0.5s;
  padding-bottom: 100px;
}

body.night {
  background-color: #131313;
}

h1 {
  font-size: 4rem;
  color: #000;
  margin-top: 9rem;
  margin-bottom: 4rem;
  transition: color 0.5s;
  font-family: "Tagesschrift", cursive;
}

body.night h1 {
  color: #fff;
}

a:link {
  text-decoration: none;
}

a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:active {
  text-decoration: none;
}

.photo {
  width: 400px;
  height: 360px;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 2rem;
  background: #eee;
  border: 3px solid #444;
  transition: border-color 0.5s;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s;
}

.toggle {
  position: relative;
  width: 300px;
  height: 80px;
}

.toggle input {
  display: none;
}

label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  background-color: #00aaff;
  border: 4px solid #383838;
  position: relative;
  padding: 0 20px;
  cursor: pointer;
  transition: background-color 0.5s;
}

body.night label {
  background-color: #004182;
}

.icon {
  width: 50px;
  height: 50px;
  z-index: 2;
  position: relative;
}

.slider {
  position: absolute;
  width: 70px;
  height: 70px;
  background-color: #38b6ff;
  border-radius: 50%;
  top: 3px;
  left: 8px;
  transition: left 0.5s, background-color 0.5s;
  z-index: 1;
}

body.night .slider {
  left: calc(100% - 80px);
  background-color: #003c78;
}

.info-section {
  margin-top: 200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.card {
  width: 100%;
  max-width: 1700px;
  margin-top: 100px;
  height: 900px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #fff;
  color: #000;
}

.card .line {
  margin: 50px auto;
  width: 95%;
  height: 10px;
  background-color: #000;
}

.card.evil .line {
  background-color: #000000;
}

.card .content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 2rem;
}

.card img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
}

.card .text {
  max-width: 50%;
  font-family: "Quicksand", sans-serif;
}

.card .text h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 2rem;
  font-family: "Tagesschrift", cursive;
  text-align: center;
}

.card .text p {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.6;
  text-align: justify;
}

.card.kind {
  background-color: transparent;
  color: #000;
}

.card.evil {
  background-color: transparent;
  color: #000000;
}

body.night .card.evil {
  color: #fff;
}

body.night .card.kind {
  color: #fff;
}

body.night .card .line {
  background-color: #fff;
}

/* Logo footer grid */

#logo-header {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #000;
  font-family: "Tagesschrift", cursive;
  transition: color 0.5s;
}

.logo-footer {
  width: 100%;
  margin-top: 80px;
  padding: 40px 20px 80px;
}

.logo-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
  justify-items: center;
}

.logo-caption {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
}

.logo-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-item {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d3d2d2;
  border-radius: 12px;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.3s ease, border-color 0.3s ease;
}

.logo-item img {
  width: 50px;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

body.night .logo-item {
  background: #1c1c1c;
  border-color: #eaeaea;
}

body.night .logo-item:hover {
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

@media (max-width: 900px) {
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .logo-grid {
    grid-template-columns: 1fr;
  }
}
