/* Colour Palette: 
 *
 * https://colors.artyclick.com/color-names-dictionary/color-names/deep-forest-green-color
 */

/* Custom Font */
@font-face {
  font-family: 'NoticiaText';
  src: url('/static/NoticiaText-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body,
html {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: 100%;

}

#color-index {
  /* Forest Palette */
  --sky-top: #0f2027;
  --sky-bottom: #203a43;
  --hill-back: #1c3b38;
  --hill-front: #244f45;
  --tree-dark: #0e2922;
  --deep-forest: #284513;
  --tree-light: #164234;
  --rock: #2f3638;
  --water-surface: rgba(46, 119, 103, 0.6);
  --sun-glow: rgba(255, 255, 255, 0.05);

  /* Morning Palette - Outise main text */
  --bg-top: #0f2027;
  --bg-bottom: #2c5364;
  --accent-light: rgba(40, 200, 150, 0.3);
  /* The Glow */
  --accent-shaft: rgba(255, 255, 255, 0.05);
  /* Diagonal Light */
  --card-bg: rgba(15, 32, 39, 0.65);
  --text-highlight: #a0ffc8;
}

html {
  height: 100vh;
}

body {
  height: max-content;
  min-height: 100vh;
  background:
    /* Layer 1: The Glow (Top Center) */
    radial-gradient(circle at 50% 10%, var(--accent-light) 0%, transparent 60%),
    /* Layer 2: Diagonal Light Shaft */
    linear-gradient(120deg, transparent 30%, var(--accent-shaft) 40%, transparent 60%),
    /* Layer 3: The Base Gradient */
    linear-gradient(to bottom, var(--bg-top), var(--bg-bottom));

  background-attachment: fixed;
  background-size: 100% 100vh;
  background-repeat: no-repeat;

  font-family: sans-serif;
  padding: 1% 3%;
}

main {
  position: relative;
  overflow-x: clip;
}

/* Landscape starts here */
.landscape-container {
  position: absolute;
  border-radius: 5px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
  z-index: -1;
}

/* --- The Sun/Moon Glow --- */
.moon-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--sun-glow) 0%, transparent 70%);
  border-radius: 50%;
}

/* --- Hills --- */
.hill {
  position: absolute;
  bottom: 0;
  border-radius: 100% 100% 0 0;
}

.hill-back {
  width: 120%;
  height: 50%;
  background-color: var(--hill-back);
  left: -10%;
  bottom: 15%;
  z-index: 1;
}

.hill-front {
  width: 150%;
  height: 40%;
  background-color: var(--hill-front);
  right: -20%;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.3);
}

/* --- Trees (Using Clip-path for Triangles) --- */
.tree {
  position: absolute;
  bottom: 0;
  width: 0;
  height: 0;
  /* This creates the triangle shape */
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  z-index: 3;
}

/* Tree Variants */
.tree-1 {
  width: 100px;
  height: 250px;
  background: linear-gradient(to right, var(--tree-dark) 50%, var(--tree-light) 50%);
  left: 10%;
  bottom: 25%;
  z-index: 1;
  /* Behind front hill */
}

.tree-2 {
  width: 150px;
  height: 350px;
  background: linear-gradient(to right, var(--deep-forest) 50%, var(--tree-dark) 50%);
  left: 75%;
  bottom: 10%;
  z-index: 3;
}

.tree-3 {
  width: 80px;
  height: 180px;
  background: var(--tree-dark);
  left: 85%;
  bottom: 35%;
  z-index: 1;
}

.tree-4 {
  width: 120px;
  height: 280px;
  background: linear-gradient(to left, var(--tree-dark) 50%, var(--tree-light) 50%);
  left: 5%;
  bottom: 5%;
  z-index: 3;
}

/* --- Rocks (Rounded Blobs) --- */
.rock {
  position: absolute;
  background-color: var(--rock);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  z-index: 4;
}

.rock-1 {
  width: 80px;
  height: 40px;
  bottom: 5%;
  left: 20%;
}

.rock-2 {
  width: 120px;
  height: 50px;
  bottom: 2%;
  right: 30%;
}

/* --- The Water (Glassmorphism) --- */
.water {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 15%;
  background: linear-gradient(to top, var(--water-surface), transparent);
  backdrop-filter: blur(4px);
  /* Blurs elements behind it */
  z-index: 5;
  overflow: hidden;
}

/* Water Reflection Lines */
.reflection {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  height: 2px;
  border-radius: 2px;
  animation: float 4s infinite ease-in-out;
}

.r-1 {
  width: 100px;
  top: 30%;
  left: 10%;
  animation-delay: 0s;
}

.r-2 {
  width: 150px;
  top: 50%;
  left: 70%;
  animation-delay: 1s;
}

.r-3 {
  width: 60px;
  top: 70%;
  left: 40%;
  animation-delay: 2s;
}

.content {
  position: relative;
  z-index: 10;
  text-align: left;
  color: #fff;
}

h1 {
  font-family: "NoticiaText";
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 5px;
  margin: 0;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);

}

h2 {
  font-family: "NoticiaText";
  font-size: 3.06rem;
  letter-spacing: 5px;
  margin: auto;
  text-align: center;
  text-shadow: 0 4px 9px rgba(0, 0, 0, 0.5);
}

p {
  font-size: 1.2rem;
  opacity: 0.8;
  letter-spacing: 2px;
  margin-top: 10px;
}


/*
 * Paragraph and history
 */

button.custom {
  margin-top: 20px;
  background: transparent;
  border: 2px solid #2a6650;
  border-radius: 30px;
  color: #a0ffc8;
  cursor: pointer;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

section.history {
  box-sizing: border-box;
  margin: 0 auto 2rem auto;
  padding: 0.4rem 10%;

  & div.text {
    max-height: 6.95rem;
    overflow: hidden;
    transition: max-height 0.55s ease-in-out;

    & p.paragraph {
      box-sizing: border-box;
      line-height: 1.52;
      margin: 1.3rem auto;
      padding: 0;
    }

    p.paragraph.first-clamp {
      position: relative;
    }

    /*
		p.paragraph.first-clamp::after {
			content: '';
			position: absolute;
			top:0;
			left: 0;
			width: 100%;
			height: 100%;
			background: linear-gradient(to bottom, transparent, rgba(5, 20, 16, 1));
			pointer-events: none;
			transition: opacity 0.4s;
		}
		*/

  }

  & div.text.collapsed {
    max-height: 134rem
  }
}

#park-evolution {
  aspect-ratio: 16 / 9;
  background-color: #2b241c;

  border: 12px solid #4a3b2a;
  border-radius: 6px;
  box-shadow:
    0 15px 25px rgba(0, 0, 0, 0.5),
    inset 0 0 100px rgba(0, 0, 0, 0.8);
  margin: auto;
  max-width: 800px;
  padding: 2px;
  position: relative;
  overflow: hidden;

  outline: 2px solid #8c7b6a;
  outline-offset: -14px;

  width: 100%;
}

#park-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

#park-image.fade-out {
  opacity: 0;
}

#year-label {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-family: sans-serif;
  font-size: 1.5rem;
  padding: 5px 15px;
  border-radius: 4px;
  font-weight: bold;
}

/* --- Vintage Photo Gallery --- */
.inner-figure {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 4rem 0;
  flex-wrap: row wrap;
}

.vintage-photo {
  margin: 0;
  padding: 0;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  width: 220px;
  height: auto;
  padding: 15px;
}

.vintage-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.photo-left {
  transform: translateY(0.4rem) rotate(-5deg);
}

.photo-right {
  transform: rotate(3deg);
}

/* --- Responsive Breakpoints --- */
@media (max-width: 990px) {
  body {
    padding: 3% 0;
  }

  h1 {
    font-size: 3.4vh;
  }

  p,
  .paragraph {
    font-size: 1.54vh;
    letter-spacing: 1px;
  }


  /*
  .moon-glow {
    width: 250px;
    height: 250px;
    top: 6%;
  }

  .hill-back {
    height: 45%;
    left: -15%;
  }

  .hill-front {
    height: 35%;
    right: -30%;
  }

  .tree-1 { width: 80px; height: 220px; }
  .tree-2 { width: 120px; height: 280px; left: 65%; }
  .tree-3 { width: 70px; height: 150px; left: 78%; }
  .tree-4 { width: 100px; height: 240px; left: 4%; }

  .water { height: 18%; }

  .photo-gallery { gap: 1rem; }
  .vintage-photo { width: 180px; padding: 12px; }

  #park-evolution { max-width: 100%; padding: 6px; }
  */


  button.custom {
    font-size: 1.64vh;
  }

  section.history{

    h1 {
      margin-top: -1.555vh;
    }

    div.text.collapsed {
      max-height: 230vh;
    }

    div.text {
      max-height: 20vh;
    }
  }
}

/*
@media (width <= 900px) {
  h1 {
    font-size: 2rem;
    letter-spacing: 2px;
    text-align: center;
  }

  p, .paragraph {
    font-size: 1.58vh;
  }

  .landscape-container {
    height: 45vh;
  }

  .moon-glow { width: 180px; height: 180px; top: 8%; }
  .hill-back { height: 40%; }
  .hill-front { height: 30%; }

  .tree-1 { width: 70px; height: 180px; left: 6%; }
  .tree-2 { width: 100px; height: 220px; left: 68%; }

  .photo-gallery {
    gap: 0.8rem;
    justify-content: center;
  }

  .vintage-photo { width: 140px; padding: 10px; }
  .photo-left { transform: rotate(-2deg); }
  .photo-right { transform: rotate(2deg); }

  section.history { padding: 0.6rem 4%; }

  #park-evolution {
    border-width: 8px;
    padding: 4px;
    max-width: 100%;
  }
}

@media (min-width: 1200px) {
  h1 { font-size: 4.6rem; }
  p, .paragraph { font-size: 1.25rem; }
  .photo-gallery { gap: 2.5rem; }
  .vintage-photo { width: 260px; padding: 18px; }
}
*/