
/* 
  Name: Michelle Nguyen
  Date: June 8, 2026
  Project: CSS Zen Garden - Beyond HTML Basics
  Theme: Night Gallery

  I used only CSS to restyle the Zen Garden HTML.
  The goal was to make the page feel like a modern digital gallery or portfolio.
*/

/* Basic reset so spacing is easier to control */
* {
  box-sizing: border-box;
}

/* Main page background and default text styling */
body {
  margin: 0;
  padding: 40px 20px;
  background: linear-gradient(135deg, #101018, #1c1f2b, #2c2638);
  color: #f4f0ff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
}

/* Main container: creates a centered card layout */
.page-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 35px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* Header section: makes the title feel more like a hero section */
header {
  text-align: center;
  padding: 45px 20px;
  border-radius: 24px;
  background: radial-gradient(circle at top left, #8f6cff, transparent 35%),
              radial-gradient(circle at bottom right, #ff7bbd, transparent 35%),
              #161622;
  margin-bottom: 30px;
}

/* Large title styling */
h1 {
  margin: 0;
  font-size: 64px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
}

/* Subtitle styling */
h2 {
  font-size: 22px;
  font-weight: normal;
  color: #d8ccff;
  margin-top: 10px;
}

/* Section headings */
h3 {
  color: #ffd166;
  font-size: 24px;
  margin-top: 35px;
  border-left: 6px solid #ff7bbd;
  padding-left: 12px;
}

/* Paragraph styling for readability */
p {
  font-size: 17px;
  color: #ece8ff;
  max-width: 70ch;
}

/* Links */
a {
  color: #9ee7ff;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 1px solid #9ee7ff;
}

/* Hover effect gives the page some interaction */
a:hover {
  color: #ffd166;
  border-bottom-color: #ffd166;
}

/* Main content sections get their own cards */
.summary,
.preamble,
.explanation,
.participation,
.benefits,
.requirements {
  background-color: rgba(255, 255, 255, 0.06);
  padding: 24px;
  margin-bottom: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Layout: puts main content and sidebar next to each other on wider screens */
@media (min-width: 850px) {
  .page-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
  }

  .intro,
  .main {
    grid-column: 1;
  }

  .sidebar {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

/* Sidebar styling */
.sidebar {
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* Sidebar sections */
.design-selection,
.design-archives,
.zen-resources {
  margin-bottom: 28px;
}

/* Removes default bullet points for cleaner navigation */
.sidebar ul {
  list-style-type: none;
  padding-left: 0;
}

/* Sidebar list items look like small buttons */
.sidebar li {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.08);
}

/* Sidebar hover effect */
.sidebar li:hover {
  background-color: rgba(255, 209, 102, 0.16);
}

/* Footer buttons */
footer {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Footer links styled as buttons */
footer a {
  background-color: #ff7bbd;
  color: #14141f;
  padding: 10px 16px;
  border-radius: 999px;
  border-bottom: none;
}

/* Footer hover state */
footer a:hover {
  background-color: #ffd166;
  color: #14141f;
}

/* Extra decorative shapes using the existing extra divs */
.extra1 {
  position: fixed;
  width: 180px;
  height: 180px;
  background: rgba(158, 231, 255, 0.12);
  border-radius: 50%;
  top: 40px;
  left: 30px;
  z-index: -1;
}

.extra2 {
  position: fixed;
  width: 220px;
  height: 220px;
  background: rgba(255, 123, 189, 0.10);
  border-radius: 50%;
  bottom: 30px;
  right: 40px;
  z-index: -1;
}

.extra3 {
  position: fixed;
  width: 160px;
  height: 160px;
  border: 2px solid rgba(255, 209, 102, 0.25);
  transform: rotate(20deg);
  top: 45%;
  right: 8%;
  z-index: -1;
}

/* Hide unused extra elements */
.extra4,
.extra5,
.extra6 {
  display: none;
}

/* Mobile adjustments so the title does not get too huge */
@media (max-width: 600px) {
  body {
    padding: 20px 10px;
  }

  .page-wrapper {
    padding: 20px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 18px;
  }
}

