:root {
  --primary: #80C9D7;
  --secondary: #DAECDE;
  --text-light: #A16D3F;
  --text-dark: #653A21;
  --accent: #AED4B7;
  --radius: 16px;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  background-color: #DAECDE;
  color: #653A21;
  line-height: 1.6;
  /* background image: sibling images/ folder — use ../images and correct extension */
  background-image: url("../images/leaf-background.jpg")  
}

h1,h2,h3{
  font-family: 'Gorditas', cursive;
  color: #A16D3F;
  margin-bottom: 0.25rem;
  margin-top: 0;
}
p {
  margin-top: 0;
}
ul, ol {
  margin-top: 0;
  margin-bottom: 0;
}
li {
  margin-top: 0;
}
.site-header {
  text-align: center;
  padding: 1rem;
  background-color: var(--secondary);
}

.logo {
  max-width: 700px;
  display: block;
  margin: 0 auto 0.5rem;
  flex: auto;
  width: 100%;
}
.palm-tree {
  max-width: 50px;
  width: 100%;
  height: auto;
  margin: 0 1rem;
}
.side-nav {
  background-color: var(--primary);
  padding: 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 250; /* ensure nav sits above decorative elements */
}

.side-nav ul {
  list-style: none;
  padding: 0;
}

.side-nav a {
  display: block;
  color: var(--text-dark);
  text-decoration: none;
  padding: 0.5rem 0;
  font-weight: bold;
}

.side-nav a:hover {
  color: var(--text-light);
}

.content {
  margin-left: 220px;
  padding: 2rem;
  max-width: 800px;
}

section {
  margin-bottom: 2rem;
}
pre code {
  white-space: pre-wrap; /* Preserves whitespace and allows wrapping */
  word-wrap: break-word; /* Breaks long words to prevent overflow */
  overflow-wrap: break-word; /* Alias for word-wrap, ensures compatibility */
  flex: auto;
}
code {
  background-color: #DAECDE;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: auto;
  margin-top: auto;
  max-width: 100%;
  flex: auto;
}
pre {
  background-color: #DAECDE;
  padding: .25rem;
  border-radius: 8px;
  overflow-x: auto;
  height: auto;
  width: 800px;
  max-width: 800px;
}

.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.button {
  background-color: var(--secondary);
  color: var(--text-dark);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s;
}

.button:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.button.secondary {
  background-color: var(--secondary);
}

.button.secondary:hover {
  /* Swap to primary on hover so secondary also has a visible effect */
  background-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--accent);
  text-align: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
  /* ensure footer sits above the fixed side-nav */
  position: relative;
  z-index: 1000;
  width: 100%;
}

.footer .button-row {
  justify-content: center;
}

.footer .footer-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer .footer-icons img {
  max-width: 48px;
  height: auto;
}
.footer-words {
  max-width: 800px;
  font-size: 0.875rem;
  color: var(--text-dark);
  margin: 0 1rem;
} 
/* CASE STUDY PAGE */
.case-content {
  max-width: 700px;
  margin: 2rem auto;
  background: var(--secondary);
  padding: 2rem;
  border-radius: var(--radius);
}

.case-header {
  text-align: center;
  padding: 1rem;
}

.back-link {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
}

.back-link:hover {
  color: var(--text-dark);
}
/* Decorative elements */
.decor {
  position: absolute;
  z-index: 5; /* put decorations above the page background but behind content */
  opacity: 0.22;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Ensure main content and header are rendered above decorative elements */
.site-header,
.content {
  position: relative;
  z-index: 1;
}

.decor-isabelle {
  bottom: -300px;
  right: -20px;
  width: 320px;
  height: 320px;
  opacity: 75%;
  background-image: url(https://snipboard.io/njm6eL.jpg);
}

.decor-nan{
  bottom: -1100px;
  right: 150px;
  width: 200px;
  height: 200px;
  opacity: 75%;
  background-image: url(https://snipboard.io/Avur1L.jpg); 
}

.decor-bench {
  bottom: -1910px;
  left: 625px;
  width: 340px;
  height: 250px;
  background-image: url(https://snipboard.io/f6qWTK.jpg); 
  opacity: 75%;
}


.decor-flower {
  bottom: -2375px;
  right: 400px;
  width: 300px;
  height: 300px;
  opacity: 75%;
  background-image: url(https://snipboard.io/FsTYQA.jpg);
}

.decor-shell {
  bottom: -3175px;
  right: 600px;
  width: 300px;
  height: 300px;
  opacity: 75%;
  background-image: url(https://snipboard.io/DbVaOx.jpg);
}

/* Responsive */
@media (max-width: 800px) {
  .side-nav {
    position: relative;
    height: auto;
    border-radius: 0;
    text-align: center;
  }
  .side-nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
.decor {
  display: none;
}
  .content {
    margin-left: 0;
  }
}

