
.adviesBox {
  display: none;
  margin: 32px auto 0 auto;
  padding: 24px 32px;
  background: #f5f5f7;
  color: #333;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  max-width: 600px;
  width: 100%;
  font-size: 18px;
  text-align: left;
  position: relative;
  z-index: 10;
  min-height: 48px;
}

.adviesBox .closeBtn {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
  z-index: 20;
  transition: color 0.2s;
}
.adviesBox .closeBtn:hover {
  color: #d32f2f;
}

.adviesBox.show {
  display: block;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.dark-mode .adviesBox {
  background: #2f2f2f;
  color: #f5f5f7;
  box-shadow: 0 2px 12px rgba(0,0,0,0.30);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f5f5f7;
  overflow-x: hidden;
}

main {
  flex: 1;
}

header {
  background: #97B6B8;
  border-bottom: 1px solid #e2e2e6;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
 
.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a:hover {
  color: #0077ff;
}

.toggle {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: #e4e4ea;
  padding: 3px;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.toggle::before,
.toggle::after {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  line-height: 1;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.toggle::before {
  content: "☀";
  left: 6px;
  color: #f59e0b;
  opacity: 1;
}

.toggle::after {
  content: "☾";
  right: 6px;
  color: #4b5563;
  opacity: 0.75;
}

.toggle-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
  transform: translateX(0);
  transition: transform 0.2s ease;
}

.toggle.on {
  background: #111827;
}

.toggle.on::before {
  opacity: 0.45;
}

.toggle.on::after {
  color: #f8fafc;
  opacity: 1;
}

.toggle.on .toggle-circle {
  transform: translateX(18px);
  background: #ffffff;
}

.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.03em;
  align-items: start;
}

.logo a {
  display: block;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.logo picture,
.logo img {
  display: block;
}

.footer {
  background: #97B6B8;
  padding: 40px 0;
  text-align: center;
  color: white;
  font-family: system-ui, sans-serif;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-icon {
  font-size: 32px;
  background: rgba(255, 255, 255, 0.25);
  padding: 14px;
  border-radius: 12px;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-info p {
  margin: 6px 0;
  font-size: 16px;
  font-weight: 500;
}

img {
  max-width: 100%;
  height: auto;
}


.checklistBackground {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 100vw;
  align-items: center;
  justify-content: center;
}

.checklistContainer {
  background: #97B6B8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 20px;
  max-width: 800px;
  width: 100%;
  text-align: center;
  height: 700px;
  margin-top: 80px;
  margin-bottom: 80px;
  transition: height 0.4s cubic-bezier(0.4,0,0.2,1);
}



.checklistContainer.advice-shown {
  height: 1000px;
}

.itemsLeft {
  list-style: none;
  text-align: left;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  padding: 0;
}

.itemsLeft li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f5f5f7;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.items {
  accent-color: #97B6B8;
  width: 10px;
  height: 16px;
  margin: 0 8px 0 0;
  flex-shrink: 0;
  transition: width 0.2s, height 0.2s;
}



.submit {
  display: block;
  margin: 32px auto 0 auto;
  padding: 16px 48px;
  background: #f5f5f7;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s, transform 0.1s;
}

.submit:hover, .submit:focus {
  background: #868686;
  transform: translateY(-2px) scale(1.03);
  outline: none;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dark-mode {
  background: #404040;
  color: #f5f5f7;
}

.dark-mode header {
  background: #6D6B68;
  border-bottom: 1px solid #374151;
}

.dark-mode .footer {
  background: #6D6B68;
}

.dark-mode a {
  color: #e5e7eb;
}

.dark-mode a:hover {
  color: #ffffff;
}

.dark-mode .checklistContainer{
background:#666666;
}

.dark-mode .itemsLeft li {
  background: #2f2f2f;
  color: #f5f5f7;
}

.dark-mode .submit{
  background:#616161;
}
.dark-mode .submit:hover{
  background:#363636;
}

@media (max-width: 900px) {
  .checklistContainer {
    max-width: 75vw;
    padding: 12px;
    margin-top: 32px;
    margin-bottom: 32px;
  }
}

@media (max-width: 600px) {
  .checklistContainer {
    max-width: 75vw;
    padding: 6px;
    min-width: 0;
  }
  .adviesBox, .adviesBox.show {
    padding: 12px 6px;
    font-size: 15px;
    min-width: 0;
    max-width: 98vw;
  }
  .itemsLeft li {
    font-size: 13px;
    padding: 8px 4px;
    gap: 8px;
  }
  .submit {
    padding: 12px 16px;
    font-size: 16px;
  }
  .adviesBox .closeBtn {
    top: 4px;
    right: 8px;
    font-size: 18px;
  }
}

@media (max-width: 500px) {
  .itemsLeft li {
    font-size: 13px;
    line-height: 1.2;
    padding: 6px 6px;
  }
    .items {
      height: 16px;
      max-height: 16px;
      min-height: 12px;
      width: 10px;
      max-width: 16px;
    }

  }


@media (max-width: 430px) {

    .checklistContainer {
    max-width: 75vw;
    padding: 6px;
    min-width: 0;
    height: auto;
  }
  .itemsLeft li {
    font-size: 12px;
    line-height: 1.1;
    padding: 6px 6px;
  }
    .items {
      height: 14px;
      max-height: 14px;
      min-height: 10px;
      width: 8px;
      max-width: 14px;
    }

  }

  /* Responsive header for tablets and smaller screens */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    text-align: center;
  }

  .nav-left {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .nav-links a {
    font-size: 16px;
  }
}
