body, html {
  margin: 0; 
  padding: 0; 
  height: 100%;
  font-family: 'Times New Roman', Times, serif;
  font-weight:200;
  background-color: rgb(199, 171, 72); /* solid red for multiply to work */
  user-select: none;
  color: #b71e0d;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}


body::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;      /* Make the image cover the entire area */
  background-position: center; /* Center it */
  background-repeat: no-repeat;
  opacity: 0.1;                /* Adjust for desired opacity */
  z-index: -1;                  /* Keep behind content */
}

#noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: color-dodge;
  z-index: 0;
}

a:link {
  color: #b71e0d;
}

a:visited {
  color: #b71e0d; /* or specify a desired color, e.g., #0000FF for blue */
}

.nav-mobile,
.mobile-only {
  display: none;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100px;
  z-index: 2;
  box-sizing: border-box;
  pointer-events: none;  /* make whole header click-through */ 
}

.about {
  display: flex;               /* enable flex layout */
  flex-direction: column;      /* stack children vertically */
  justify-content: center;     /* vertical centering */
  align-items: center;         /* horizontal centering */
  min-height: calc(100vh - 100px); /* full viewport minus header height */
  box-sizing: border-box;
}

.logo {
  display: flex;
  pointer-events: auto;  /* enable pointer events on logo and nav */
  margin-top: 260px;
  margin-left: 0px;
  width: 350px;
  pointer-events: none;
}

.about .logo {
  pointer-events: auto;
}

.content {
  max-height: calc(100vh - 120px); /* adjust based on footer height */
  overflow-y: auto;
  box-sizing: border-box;
}

.nav-desktop {
  display: flex;
  margin-right: 40px;
  margin-top: 40px;
  font-size: 30px;
  gap: 2rem;
  list-style: none;
  padding: 0;
  user-select: text;
}

.nav-desktop a {
  text-decoration: none;
  font-size: 40px;
  transition: color 0.3s ease;
  cursor: pointer;
  pointer-events: auto;  /* enable pointer events on logo and nav */

}

.nav-desktop a:hover {
  color: rgb(255, 238, 0);
}

.text-wrapper-about { 
  margin-top: 20px; 
  margin-left: 30%; 
  margin-right: 30%; 
  display: block; 
  padding: 30px 5% 5%; 
  width: 30%; 
  text-align: justify; 
  text-justify: inter-word; 
  user-select: text; 
  font-size: 26px; 
  text-decoration: none;
} 

.text-wrapper-about a { 
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease; 
  pointer-events: auto; 
  user-select: text; 
} 

.text-wrapper-about a:hover { color: rgb(255, 238, 0); }
  
  
.about footer { 
  position: sticky; 
  display: flex; 
  bottom: 0; 
  justify-content: space-between;
  align-items: left; 
  padding: 30px 3%; 
  width: 100%; 
  box-sizing: border-box; 
  pointer-events: none; 
  margin-top: auto; 
} 
.contact-links { 
  display: flex; 
  justify-content: space-between; /* now works again */ 
  width: 100%; 
} 

footer { 
  position: sticky; 
  display: flex; 
  bottom: 0; 
  justify-content: center; 
  align-items: left; 
  padding: 30px 3%; 
  width: 100%; 
  box-sizing: border-box; 
  pointer-events: none; 
  margin-top: auto; 
} 

footer a { 
  text-decoration: none; 
  font-size: 40px; 
  transition: color 0.3s ease; 
  pointer-events: auto; 
  user-select: text; 
} 

footer a:hover { color: rgb(255, 238, 0); }

#canvas-container {
  position: fixed;
  flex: 1;
  top: 0;  /* below header */
  bottom: 0;
  left: 0;
  right: 0;
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

canvas:active {
  cursor: grabbing;
}

.shadow-overlay {
  position: absolute;
  box-shadow: 15px 15px 10px rgba(85, 79, 67, 0.5);
  pointer-events: none; /* so canvas events pass through */
}

::selection {
  color: #d6240d;
  background-color: rgb(107, 39, 35);
}

#gallery {
  touch-action: none;
  -ms-touch-action: none;
  
}

#hoverDescription {
  position: fixed;
  background: url(Images/ExplainerBG.jpg);
  background-size: cover;   /* fills the box, may crop */
  /* background-size: contain;  fits the whole image inside, may leave empty space */
  /* background-size: 100% 100%;  stretches the image to exactly fit */
  background-position: center; /* centers the image */
  background-repeat: no-repeat; /* prevents tiling */
  padding: 30px 20px;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  z-index: 1100;
  user-select: text;
  max-width: 300px;  
  border: 2px solid #bb3523; /* ← shorthand for width + style + color */
}

h3 {
  text-align: center;
}

li {
  text-align: left;
  text-justify: none; 
}

.founder {
  font-style: italic;
  font-size: 20px;
  line-height: 120%;
}

.point-box {
    padding: 3%;
    padding-right: 5%;
}

/* Style the title */
#hoverDescription h2 {
  font-size: 40px;
  margin: 0 0 8px 0;
  font-weight: bold;
}

/* Style the info subtitle */
#hoverDescription p em {
  font-size: 20px;
  margin: 0 0 10px 0;
  display: block;
  font-style: normal;
}

/* Style the main description paragraph */
#hoverDescription p {
  font-size: 14px;
  margin: 0 0 10px 0;
}

@media only screen and (max-width: 768px) {
  .index .contact-links {
    display: none;
  }
 .nav-desktop, .desktop-only {
  display: none;
  }

  body {
    min-height: 100vh;
    font-size: 14px;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center; /* center everything horizontally */
  }

    header {
    margin-top: 30px;
    position: fixed;
    display: flex;
    flex-direction: column; /* logo in middle */
    justify-content: center;
    align-items: left;
  }

  li {
  text-align: left;
  text-justify: none; 
}

  .point-box {
    padding: 7%;
    padding-right: 10%;
}

  /* Only the logo contributes to height */
  .logo-container {

    display: flex;
    justify-content: center;
    align-items: center;
  }

  .logo {
    width: 150px;
    margin-top: 40%;
    pointer-events: none;
  }
  .about .logo {
    pointer-events: auto;
  }

  #hoverDescription {
  position: fixed;
  max-width: 280px;
  padding: 30px 20px;
  color: #bb3523;
  line-height: 1.4;
  pointer-events: none;
  opacity: 0;
  z-index: 1100;
  user-select: text;
  width: 90%;               /* optional width */
}

 #hoverDescription a {
  font-size: 20px;
 }
  .nav-mobile {
  display: flex;
  flex-direction: column;   /* stack links vertically */
}

.nav-mobile a {
  display: block;           /* makes link fill parent width */
  width: 100%;              /* full width */
  text-align: center;       /* center text */
  font-size: clamp(40px, 4vw, 28px); /* responsive font */
  font-weight: bold;

}

.contact-links {
  display: flex;
  flex-direction: column;   /* stack links vertically */
}

.contact-links a {
  display: block;
  width: 100%;
  text-align: center;
  font-size: clamp(26px, 4vw, 30px);
  line-height: .5em;      /* good readable spacing */
  font-weight: bold;
  color: #bb3523;
  margin: 10px 0;          /* add breathing room between links */
}

.text-wrapper-about {
  display: block;
  width: 90%; /* give some padding from edges */
  margin: auto;
  margin-top: 110px;
  font-size: 1.6em;
  text-align: justify; 
  user-select: text;
  line-height: 1.2em; /* better readability */
}

.text-wrapper-about h1 {
  display: none;
  text-align: center;
  line-height: 1.5em;
  user-select: text;
}

  footer {
  position: fixed;
  bottom: 5%;
  padding: 0px;
  padding-bottom: constant(safe-area-inset-bottom); /* old iOS Safari */
  padding-bottom: env(safe-area-inset-bottom);      /* modern Safari */
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* make sure it stays above */
}
}