@import "./variables.css";

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: transparent;
  scroll-behavior: smooth;
}

main, body {
  display: block;
  position: relative;
  overflow: visible;
}



body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gray-80) url("../assets/images/BlackWhiteOverlay.jpg") center/cover no-repeat;
  opacity: 1;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.3s ease;
}

html[data-theme="light"] body::before {
  opacity: 0.50;
}

html[data-theme="dark"] body::before {
  opacity: 1;
}

section > * {
  position: relative;
  z-index: 2;
}

h1 {
    font-family: var(--fontfamily__primary);
    font-weight: 700;
    font-size: 8rem;
    color: var(--gray-10);
    text-align: center;
}

h2 {
    font-family: var(--fontfamily__primary);
    font-weight: 700;
    font-size: 6.5rem;
    color: var(--gray-10);
    margin-top: 4rem;
    margin-bottom: 0.5rem;
}

p {
    font-family: var(--fontfamily__secondary);
    font-size: 2rem;
    color: var(--gray-10);
    margin-left: 10rem;
    margin-right: 10rem;
}

small {
    font-family: var(--fontfamily__secondary);
    color: var(--gray-100);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.05rem;
}

footer {
    background-color: var(--gray-10);
    padding: var(--footer-padding);
    text-align: center;
}

a {
    text-decoration: none;
}

section {
  margin-bottom: var(--margin-section);
  position: relative;
}

.reflection h2 {
  margin-left: 10rem;
}



/* text colors */

#about-font:hover {
    color: var(--teal-60);
}

#recipe-font:hover {
    color: var(--navy-60);
}

#tribute-font:hover {
    color: var(--orange-60);
}

#field-guide-font:hover {
    color: var(--sky-60);
}

#landing-page-font:hover {
    color: var(--purple-60);
}

#reflection-font {
    text-align: center;
}




/* nav stuff */
#nav-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--gray-10);
  box-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.nav-inner {
  max-width: var(--section-max-width);
  margin: 0 auto;
  padding: var(--nav-padding);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--nav-gap);
}

#nav-bar ul {
  display: flex;
  justify-content: center;
  gap: var(--nav-list-gap);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: nowrap;
  margin-top: .5rem;
}

.nav-link {
  font-family: var(--fontfamily__secondary);
  font-size: var(--nav-font-size);
  color: var(--gray-100);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  line-height: 1;
}

.nav-link:hover {
  color: var(--teal-60);
}

#nav-toggle {
  display: none;
  width: var(--nav-toggle-size);
  height: var(--nav-toggle-size);
  background: var(--gray-80);
  border-radius: var(--nav-toggle-border-radius);
  padding: var(--nav-toggle-padding);
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

#nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--gray-10);
  border-radius: 2px;
}





/* rectangle settings */
.my-rectangle {
    width: var(--rectangle-width);
    height: var(--rectangle-height);
    background-color: var(--gray-10);
}

#about-rectangle,
#tribute-rectangle,
#landing-page-rectangle {
  margin-left: var(--margin-large);
}

#recipe-rectangle,
#field-guide-rectangle {
  margin-right: var(--margin-large);
  margin-left: auto;
}

#about-rectangle        { background-color: var(--teal-60);      }
#recipe-rectangle       { background-color: var(--navy-60);  }
#tribute-rectangle      { background-color: var(--orange-60);     }
#field-guide-rectangle  { background-color: var(--sky-60); }
#landing-page-rectangle { background-color: var(--purple-60);     }




/* alignment by section */
#about-font {
    margin-left: var(--margin-large);
}

#recipe-section {
    text-align: right;
}

#recipe-font {
    margin-right: var(--margin-large);
}

#tribute-font {
    margin-left: var(--margin-large);
}

#field-guide-section {
    text-align: right;
}

#field-guide-font {
    margin-right: var(--margin-large);
}

#landing-page-font {
    margin-left: var(--margin-large);
}


/* hero section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brick-wall {
  position: absolute;
  inset: 0;
  background: var(--gray-80);
  display: flex;
  flex-direction: column;
  gap: var(--brick-wall-gap);
  padding: var(--brick-wall-padding);
}

.brick-row {
  display: flex;
  gap: var(--brick-gap);

  width: 130vw;
  margin-left: -15vw;
}

.brick-row.offset {
  transform: translateX(10vw);
}

.brick {
  flex: 0 0 var(--brick-width);
  height: var(--brick-height);
  background: var(--gray-100);
  border-radius: var(--brick-border-radius);
  transition: background 0.25s ease;
}

/* Hover colors */
.brick:hover { cursor: pointer; }

.brick:nth-child(5n + 1):hover { background: var(--teal-60); }
.brick:nth-child(5n + 2):hover { background: var(--purple-60); }
.brick:nth-child(5n + 3):hover { background: var(--navy-60); }
.brick:nth-child(5n + 4):hover { background: var(--orange-60); }
.brick:nth-child(5n + 5):hover { background: var(--sky-60); }

/* Hero text */
.hero-content {
  position: relative;
  z-index: 3;
  color: var(--gray-10);
}

.hero-content h1 {
  font-size: 8rem;
  font-weight: 800;
}

section img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 80%;
  height: auto;
  margin-top: var(--img-margin-top);
}

section img:hover {
  transform: translateY(var(--img-hover-translate));
}

footer img {
  width: 180px;
  height: auto;
  margin: 0 0.5rem;
}

#footer-imgs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin: 2rem 0;
}


/* footer */
#contact-section {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-intro {
  font-size: 2rem;
  color: var(--gray-100);
  margin: 0 auto;
}

.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--footer-icons-gap); 
}

.footer-icons img {
  width: var(--footer-icon-size);
  height: auto;
  display: block;
}

.footer-disclaimer {
  max-width: 900px;
  margin: 0 auto;
  color: var(--gray-100);
  line-height: 1.5;
}

.footer-copyright {
  display: block;
  margin-top: 1rem;
  color: var(--gray-100);
}

.decor-brick {
  position: absolute;
  z-index: 0;     /* behind content */
  opacity: 1;      /* stays fully visible */
}

.decor-brick.brick {
  flex: none;
  width: var(--decor-brick-width);
  height: var(--brick-height);
}











@media (max-width: 768px) {

  h1 {
    font-size: 3.25rem;
    margin: 0 1.5rem;
    text-align: center;
  }

  h2 {
    font-size: 2.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0.35rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    text-align: left;
  }

  p {
    font-size: 1.25rem;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  section {
    margin-bottom: var(--margin-section-mobile);
    text-align: left; 
  }

  .hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
  }

   .brick-wall {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--brick-wall-padding-mobile);
    gap: var(--brick-wall-gap-mobile);                          
  }

  .brick-row {
    width: 220vw;
    margin-left: -60vw;
    display: flex;
    justify-content: center;
    gap: var(--brick-gap-mobile);
  }

  .brick {
    flex: 0 0 var(--brick-width-mobile);
    height: var(--brick-height-mobile);
    border-radius: var(--brick-border-radius-mobile);
  }

  .hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    margin: 0;
    padding: 0;
  }

  #about-font,
  #recipe-font,
  #tribute-font,
  #field-guide-font,
  #landing-page-font,
  #reflection-font {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
    text-align: left;
  }

  #recipe-section,
  #field-guide-section {
    text-align: left;
  }

  .my-rectangle {
    width: 100%;
    max-width: none;
    margin-top: 0;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  #about-rectangle,
  #tribute-rectangle,
  #landing-page-rectangle,
  #recipe-rectangle,
  #field-guide-rectangle {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  #nav-toggle {
  display: flex;
  background: var(--gray-10);
  border: none;
}

#nav-toggle span {
  background: var(--gray-100); 
}

#nav-bar ul {
  display: none;
}

#nav-bar.open ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--gray-10);
}

#nav-bar.open ul li a {
  font-size: 1.5rem;
  color: var(--gray-100);
}

  section img {
    max-width: 100%;
  }

  .brick-row {
    gap: 16px;
    width: 140vw;
    margin-left: -20vw;
  }

  .brick {
    flex: 0 0 var(--brick-width-tablet);
    height: var(--brick-height-tablet);
  }

  /* footer */
  footer {
    padding: var(--footer-padding-mobile);
    text-align: left;
  }

  #contact-section {
    max-width: 100%;
    gap: 1.5rem;
  }

  .footer-intro {
    font-size: 1.4rem;
    margin: 0 1.5rem;
    text-align: left;
  }

  #footer-imgs {
    justify-content: flex-start;
    gap: var(--footer-icons-gap-mobile);
    margin: var(--footer-icons-gap-mobile);
  }

  footer img {
    width: var(--footer-icon-size);
  }

  .footer-disclaimer,
  .footer-copyright,
  small {
    font-size: 0.9rem;
    margin: 0 1.5rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}



.wick {
  stroke: var(--gray-40);
  stroke-linecap: round;
}

.theme-icon:hover {
  transform: scale(1.08);
}

.theme-menu {
  display: none;
}

.theme-dropdown.open .theme-menu {
  display: block;
}

.theme-dropdown button{
  background-color: var(--gray-80);
  color: var(--gray-10);
}