:root {
  --burnt-sienna: #DD6E42;
  --prussian-blue: #003049;
  --magnolia: #E4DDE3;
  --thulian-pink: #C9769E;
  --cosmic-latte: #F7F3E3;
  --text-color: #1E212B;
}

/* General body setup */
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--magnolia);
  color: var(--text-color);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
}

/* Headers */
h1 {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--prussian-blue);
}

h2, h3, .tagline {
  font-family: 'Lora', serif;
}

.tagline {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: 1rem;
}

.description, p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

mark {
  background-color: rgba(221, 110, 66, 0.2);
  color: inherit;
  padding: 0 2px;
}

/* Page Stack */
.page-stack {
  position: relative;
  width: 21cm;
  max-height: 29.7cm;
  margin: 1rem auto;
  overflow: visible;
  flex-grow: 1;
  display: flex;
}

.page-container {
  background-color: var(--cosmic-latte);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  z-index: 2;
  position: relative;
  width: 100%;
  height: auto;
  transition: all 0.3s ease;
  overflow: hidden;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-stack::before, .page-stack::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--cosmic-latte);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1;
  transition: all 0.3s ease;
}

.page-stack::before {
  top: -10px;
  left: -10px;
}

.page-stack::after {
  top: -5px;
  left: -5px;
}

.page-stack:hover::before {
  transform: rotate(-1deg);
  top: -8px;
  left: -8px;
}

.page-stack:hover::after {
  transform: rotate(1deg);
  top: -3px;
  left: -3px;
}

.page-container > * {
  position: relative;
  z-index: 3;
}

/* Header */
header {
  padding: 2rem 0;
  background-color: transparent;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  max-height: 6rem;
  width: auto;
}

/* Main container for page content */
.container {
  height: calc(100% - 4rem);
  padding: 0 80px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landing-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: top;
  max-width: 700px;
  margin: 0 auto;
}

/* Button styles */
.button-container {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: var(--thulian-pink);
  color: var(--cosmic-latte);
  border: 2px solid var(--thulian-pink);
}

.button:hover {
  background-color: var(--cosmic-latte);
  color: var(--thulian-pink);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

/* Footer setup */
footer {
  background-color: transparent;
  color: var(--text-color);
  text-align: center;
  padding: 1rem 0;
  margin-top: 1rem;
}

.footer-content {
  font-size: 0.8rem;
}

footer a {
  color: var(--prussian-blue);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Navigation styles */
#sidebar {
  max-height: 29.7cm; /* A4 height */
  width: 250px;
  position: fixed;
  z-index: 1000;
  top: 1rem;
  left: -220px; /* Show 30px of the sidebar */
  background-color: var(--cosmic-latte);
  overflow-y: auto;
  transition: 0.3s;
  padding: 1rem 0;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

#sidebar:hover {
  left: 0;
}

.sidebar-logo {
  max-width: 40px; /* Adjust as needed */
  height: auto;
}

#sidebar ul {
  list-style-type: none;
  padding: 0;
  margin-top: 1rem; /* Add some space below the logo */
}

#sidebar ul li a {
  padding: 10px 15px;
  text-decoration: none;
  font-size: 18px;
  color: var(--prussian-blue);
  display: block;
  transition: 0.3s;
}

#sidebar ul li a:hover {
  background-color: var(--thulian-pink);
  color: var(--cosmic-latte);
}

.sidebar-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem;
  height: 40px; /* Adjust as needed */
}

.welcome-text {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: var(--prussian-blue);
  margin-right: auto; /* Push the text to the left */
  opacity: 0;
  transition: opacity 0.3s ease;
}

#sidebar:hover .welcome-text {
  opacity: 1;
}

.hamburger-menu {
  font-size: 30px;
  cursor: pointer;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 999;
  color: var(--prussian-blue);
  transition: 0.3s;
}

/* Desktop styles */
@media (min-width: 769px) {
  #sidebar {
    left: -220px;
  }

  #sidebar:hover {
    left: 0;
  }

  .hamburger-menu {
    display: none;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .page-stack {
    width: 95%;
    height: auto;
    min-height: 95vh;
    margin: 1rem auto;
  }

  .page-container {
    height: auto;
    min-height: 95vh;
  }

  header {
    padding: 1.5rem 0;
  }

  .logo {
    max-height: 4rem;
  }

  .container {
    padding: 0 20px;
    height: auto;
  }

  #sidebar {
    width: 100%;
    left: -100%;
    top: 0;
    height: 100vh;
    max-height: none;
  }

  .sidebar-header {
    justify-content: space-between; /* Spread out welcome text and logo on mobile */
  }

  .welcome-text {
    opacity: 1; /* Always visible on mobile */
  }
  .hamburger-menu {
    display: block;
  }
}

@media (max-height: 800px) {
  .page-stack {
    height: auto;
    min-height: 95vh;
  }

  .page-container {
    height: auto;
    min-height: 95vh;
  }
}
