/* ==========================
   LAYOUT
   ========================== */

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 2em;
}

/* Header */
.site-header {
  background: #333;
  color: #fff;
  padding: 1em;
  text-align: center;
  height: 200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.main-nav a {
  color: #45a29e;
  text-decoration: none;
  margin: 0 10px;
}
.main-nav a:hover {
  color: #f8f1e9;
}
.main-nav a:visited {
  color: #b294ff;
}

/* Footer */
footer {
  background: #333;
  color: #fff;
  padding: 1em 2em;
  height: auto; /* Let it grow naturally when stacked */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allows wrapping when screen is narrow */
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  text-align: center;
}

.footer-center { text-align: center; }
.footer-right { text-align: right; }

/* 📱 Responsive Footer: Stack vertically on small screens */
@media (max-width: 600px) {
  footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5em;
    padding: 1.5em 1em;
  }

  .footer-left,
  .footer-center,
  .footer-right {
    flex: none;
    width: 100%;
    text-align: center;
  }
}

/* Layout Container */
.layout-container {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 20px;
}

/* Slide Sidebar */
.slide-sidebar {
  position: fixed;
  top: 50%;
  left: -160px;
  width: 200px;
  transform: translateY(-50%);
  transition: left 0.3s ease;
  z-index: 2;
  background: transparent;
}

.slide-sidebar:hover {
  left: 0;
}

.peek {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 200px;
  background-color: grey;
  cursor: pointer;
  border-radius: 5px;
}

.slide-sidebar a {
  display: block;
  padding: 15px;
  color: grey;
  font-weight: bold;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide-sidebar:hover a {
  opacity: 1;
  transform: translateX(0);
}

.slide-sidebar:hover a:nth-child(1) { transition-delay: 0.1s; }
.slide-sidebar:hover a:nth-child(2) { transition-delay: 0.2s; }
.slide-sidebar:hover a:nth-child(3) { transition-delay: 0.3s; }
.slide-sidebar:hover a:nth-child(4) { transition-delay: 0.4s; }
