:root {
  --background-color-light: #fff;
  --text-color-light: #333;
  --background-color-dark: #333;
  --text-color-dark: #fff;
}

body {
  background-color: var(--background-color-light);
  color: var(--text-color-light);
  font-family: sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

body.dark {
  background-color: var(--background-color-dark);
  color: var(--text-color-dark);
}

.theme-switch-wrapper {
  display: flex;
  align-items: center;
  position: absolute;
  top: 15px;
  right: 15px;
}

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

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

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

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

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

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

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

#contact {
  margin-top: 2rem;
  padding: 2rem;
  border-top: 1px solid #ccc;
}

#contact h2 {
  margin-bottom: 1rem;
}

#contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}

#contact label {
  margin-bottom: 1rem;
}

#contact input,
#contact textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#contact button {
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background-color: #2196F3;
  color: white;
  cursor: pointer;
  font-size: 1rem;
}

