* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



@font-face {
  font-family: 'Anthony';
  src: url('fonts/Anthony.woff') format('opentype'); 
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Avert';
  src: url('fonts/AvertaDemoPECuttedDemo-Regular.otf') format('opentype'); /* Replace with actual font */
  font-weight: normal;
  font-style: normal;
}


@font-face {
  font-family: 'garamondt';
  src: url('./fonts/Garamondt-Italic.woff') format('woff');
  font-style: italic;
  font-weight: normal;
}

.garamondt {
  font-family: 'Garamondt', serif;
  font-weight: bold;
    font-size: 23pt;
  font-style: normal;
  color: rgb(255, 255, 255);
  -webkit-text-stroke-width: 0.1pt;
  -webkit-text-stroke-color: rgb(70, 6, 75) ;
  text-shadow: 0 0 3px rgb(251, 0, 255);
}

/* Apply the font */
body {
  display: flex;
  font-family: 'Avert', sans-serif;
  font-weight: normal;
  font-style: normal;
      background-color: #000;
}


  .project-text h1 {
  padding-bottom: 0.5em;
 font-family: 'Avert', sans-serif;
  font-size: 2.8em;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: none;
  text-align: left;
}

#showZineTextButton {
  color: white !important;
}
/* <!--------  SIDEBAR -----------------------------------------------------------------------------> */

.sidebar {
  position: fixed;         
  top: 0;                 
  left: 0;               
  width: 240px;
  height: 100vh;         
  background: linear-gradient(to right, rgb(1, 33, 63), rgb(226, 238, 255), rgb(1, 33, 63));
  border-right: 2px solid black;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  overflow-y: auto;        
  z-index: 1000;
  box-shadow: 0 0 20px 5px rgba(255, 0, 247, 0.7);      
}

main, .project-section, .content {
  margin-left: 240px; 
  padding: 20px;
}

.sidebar-arrow {
  font-family: 'garamondt-regular';
  font-size: 60px;           
  color: black;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.sidebar-arrow:hover {
  color: #ff00ee;
  transform: scale(1.3);
  -webkit-text-stroke: #000;
  -webkit-text-stroke-width: 0.8pt;
  text-shadow: 0 0 8px #04ff00;
}



.nav-links-horizontal {
  display: flex;             
  gap: 20px;                 
  justify-content: center;   
  margin-top: 60pt;   
}




.logo {
  position: relative;
  display: inline-block;
font-family: 'Anthony', sans-serif;
  font-size: 35px;
  font-weight: normal;
  margin-bottom: 20px;
  cursor: pointer;
  -webkit-text-stroke: 1.5px #000;
  color: rgb(0, 0, 0); 
  text-align: justify;
  hyphens: auto;
  text-shadow: 
  0 0 1px rgba(255, 247, 0, 0), 
  0 0 6px rgb(255, 0, 238),
   0 0 10px rgb(255, 255, 0);
  transition: transform 0.25s cubic-bezier(0.25, 1.25, 0.5, 1.0);
    text-decoration: none;
}

/* Shrink on click */
.logo:active {
  transform: scale(0.9);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 5px; 
  margin-top: 30pt;
  margin-bottom: 30pt;
  height:20px;
  width:20px;
}

.nav-links a {
  color: black;
  text-decoration: none;
  font-size: 22px;
  transition: color 0.3s ease, padding-left 0.2s ease;
  margin-bottom: 20pt;
}

.nav-links a:hover,
.jump-links a:hover {
  color: #FF1F00; 
  padding-left: 8px;
}


.buttons {
  margin: 10px 0;
  margin-bottom: 20pt;
   margin-top: 10pt;

}

/* color change for buttons */
@keyframes flicker-colors {
  0%   { background-color: #FF1F00; }
  25%  { background-color: #FFD700; }
  50%  { background-color: #00FFFF; }
  75%  { background-color: #FF69B4; }
  100% { background-color: #FF1F00; }
}

@font-face {
  font-family: 'HersheyTriplexFutura';
  src: url('fonts/Hershey-Noailles-Futura-Triplex-Light.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* <!-------- BUTTONS -----------------------------------------------------------------------------> */






button {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background-color: rgba(79, 49, 49, 0);
  border: 0.01px solid black;
  border-radius: 12px; 
  cursor: pointer;
  font-size: 20px;
  position: relative;
  box-shadow: 0 0 10px 5px rgba(0, 255, 17, 0.7);
  color: black;
  transition: background-color 0.3s ease, color 0.3s ease;
 -webkit-text-stroke-width: 1pt;
    font-family: 'Avert', sans-serif;
}



/* Underline animation */
button::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 20px;
  height: 2px;
  width: 0;
  background-color: #FF1F00;
  transition: width 0.3s ease;
}

/* Code button hover */
button.code-btn:hover {
  color: black;
  animation: flicker-colors 1s infinite;
}

button.code-btn:hover::after {
  background-color: black;
  width: calc(100% - 40px);
}

/* Donate button hover */
button.donate-btn:hover {
  color: black;
  animation: flicker-colors 1s infinite;
}

button.donate-btn:hover::after {
  background-color: black;
  width: calc(100% - 40px);
}




/* <!-------- -----------------------------------------------------------------------------> */









/* <!-------- POPUPS OF BUTTONS -----------------------------------------------------------------------------> */


/*BEGINNING OF WINDOW POPUP ABOUT*/

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-overlay img {
  width: 50px;       
  height: auto;      /* maintain aspect ratio */
  display: block;    /* stack vertically */
  margin: 10px 0 0 0; /* vertical spacing, aligned left */
   opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay[style*="display: flex"] {
  opacity: 1;
}


/* Popup Modal Box */
.modal { 
  background: linear-gradient(to bottom, rgb(255, 255, 255), rgb(226, 238, 255), rgb(38, 255, 0));
  padding: 40px;
  border: 2px solid black;
  width: 500px;
  max-width: 90%;
 font-family: 'Avert', sans-serif;
  font-size: 30px;
  color: black;
  position: relative;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  text-align: left;
  border-radius: 12px;
  -webkit-text-stroke: 1pt black;
  text-shadow: 
  0 0 2px rgba(255, 247, 0, 0), 
  0 0 2px rgb(255, 0, 238),
   0 0 2px rgb(255, 255, 0);
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: black;
  transition: transform 0.1s ease; 
}

.close-btn:active {
  transform: scale(0.9); 
}


/* Title Styling */
.popup-title {
  font-size: 60px;
  font-weight: normal;
  margin-bottom: 20px;
  font-family: 'Anthony';
  text-align: center;
}

.modal {
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/*END OF WINDOW POPUP ABOUT*/

/*BEGINING OF WINDOW POPUP CONTACT*/
.contactPopup {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column; /* Stack children vertically */
  align-items: center;    /* Center horizontally */
  justify-content: flex-start; /* Align items from top */
  z-index: 1000;
  background: transparent;
text-decoration: none;
}

.contact-links a {
  display: inline-block;
  transition: transform 0.3s ease;
  font-family: 'Avert', sans-serif;
  font-size: 20pt;
  text-decoration: none;
  color: black; /* or white, #ff00ee, etc. */
}

.contact-links a:hover {
  transform: scale(1.1);
}


.contactPopup p {
  margin-top: 10px;
  text-align: center;
}


/*END OF WINDOW POPUP CONTACT*/











/* <!-------- TEXT  -----------------------------------------------------------------------------> */


.project-section {
  margin-left: 240px; /* offset equal to sidebar width */
  padding: 60px 40px;
  width: calc(100% - 240px);
}


.project-text {
  font-size: 17pt;
  margin-bottom: 40px;  
   margin-left: 30px;
   text-align: left;    
   max-width: 700px;
   hyphens: auto;
   color: #ffffff;
}


.project-media {
  flex: 1;                     /* image takes remaining space */
  display: flex;
  justify-content: center;     /* center image horizontally */
  align-items: flex-start;
}

.project-image img {
  width: 100%;                  /* scale image down */           /* optional max width */
  height: auto;                /* preserve aspect ratio */
  display: block;
  margin-right: 50pt;
}


.gallery-container {
    margin-left: 240px;      /* Same width as sidebar */
    display: flex;
    justify-content: right; /* Center gallery in remaining space */
    width: calc(100% - 240px);
}
.gallery {
    width: calc(100% - 240px); /* Account for sidebar */
    max-width: 1500px;

    margin: 50px auto;
    margin-left: calc(240px + auto);

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gallery img {
    width: 100%;
    display: block;
}

/* Images that span the entire width */
.gallery .wide {
    grid-column: 1 / 4;
}


.scroll-image {
    grid-column: 1 / 4;        /* keeps it full width in your grid */
    display: flex;             /* puts images in a row */
    gap: 20px;

    overflow-x: auto;          /* enables horizontal scrolling */
    overflow-y: hidden;

    scroll-snap-type: x mandatory; /* optional: snap scrolling */
    -webkit-overflow-scrolling: touch; /* smooth mobile swipe */

    padding-bottom: 10px;
}

/* each image behaves like a slide */
.scroll-image img {
    flex: 0 0 auto;           /* prevents shrinking */
    height: 400px;            /* adjust to your layout */
    width: auto;

    scroll-snap-align: start; /* optional snap effect */
    border-radius: 4px;       /* optional styling */
}


/* <!--------  MENU TOGGLE (STAR) -----------------------------------------------------------------------------> */



.sidebar {
  width: 240px;
  height: 240vh;
  background-color: #F1FF00;
  border-right: 2px solid black;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  transition: transform 0.3s ease;
}

/*  menu at the bottom-left */
.menu-toggle {
  display: none;
  position: fixed;
  bottom: 10px;   /* position from the bottom */
  left: 20px;     /* position from the left */
  color: #000000;
  background-color: #f2ff001a; /* optional background for contrast */
  padding: 10px;
  cursor: pointer;
  z-index: 10000;
  text-align: center;

  /* Shadow */
  box-shadow: 0px 0px 5px yellow;  
  border: 2px solid black;         
  border-radius: 4px;               
}






@media screen and (max-width: 768px) {

  /* ===== MAIN SECTION ===== */
  .project-section {
   margin-left: 0;         /* remove sidebar offset */
    width: 100%;            /* full width */
    padding: 10px;
    flex-direction: column; /* stack content vertically */
    gap: 20px;
  }

  /* ===== TEXT ===== */
  .project-text {
    font-size: 14pt;
    margin-left: 0;
    margin-bottom: 25px;
    max-width: 100%;
  }

  /* ===== MEDIA BLOCK ===== */
  .project-media {
    justify-content: flex-start;
  }

  .project-image img {
    width: 100%;
    margin-right: 0;
  }

  /* ===== GALLERY WRAPPER ===== */
  .gallery-container {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  /* ===== GRID becomes single column ===== */
  .gallery {
    width: 90%;
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px 0;
  }

  /* wide images stop spanning columns */
  .gallery .wide {
    grid-column: auto;
  }

  /* ===== SCROLL IMAGE (horizontal spreads) ===== */
  .scroll-image {
    grid-column: auto;
    display: flex;
    overflow-x: auto;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }

  .scroll-image img {
    height: 220px;   /* smaller for phone */
    flex: 0 0 auto;
    width: auto;
    scroll-snap-align: start;
  }

}




@media screen and (max-width: 700px) {



 body {
  flex-direction: column;
  align-items: stretch;
}
  .logo {
    font-family: 'Anthony', sans-serif;
    font-size: 35px;
    margin-left:none;
  }

  .sidebar-arrow {
    font-family: 'garamondt-regular';
  }

 .menuContainer {
    display: none !important;
  }

  #showZineTextButton {
  font-family: 'Avert', sans-serif;
}

  .nav-links a,
  button,
  .project-text,
  .project-text h1,
  .contact-links a {
    font-family: 'Avert', sans-serif;
  }

  .popup-title {
    font-family: 'Anthony', sans-serif;
  }
  
  /* Sidebar now acts as a top navigation bar */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; /* even spacing */
    background: linear-gradient(
      to bottom,
      rgb(1, 33, 63),
      rgb(226, 238, 255),
      rgb(1, 33, 63)
    );
        box-shadow: 0 4px 12px rgba(4, 255, 0, 0.311);
    border-bottom: 2px solid black;
    border-right: none;
    padding: 5px 0;
    overflow-x: auto;
  }

  /* Hide scrollbar in mobile */
  .sidebar::-webkit-scrollbar {
    display: none;
  }


  /* Make nav links horizontal */
  .nav-links {
    flex-direction: row;
    gap: 10px;
    margin: 0;
  }

  .nav-links a {
    font-size: 18px;
    margin: 0;
  }

  /* Stack buttons vertically */
  .buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0px;
    padding-right: 15pt;
    margin-right: 4em;
  }

  /* Full-width buttons */
  button {
    width: 100%;
    padding: 5px;
    font-size: 16px;
    text-align: center;
  }

  /* Main content below the top bar */
  main,
  .content {
    margin-left: 0 !important;
    margin-top: 90px !important;
    padding: 16px;
    width: 100% !important;
  }

  .project-text {
    margin-left: 0 !important;
    text-align: left !important;
    font-size: 16pt;
    width: 100%;
  }
    .project-text h1 {
    font-size: 40pt;
    margin-left: 0;
    text-align: center;
    hyphens: auto;
    margin-top: 3.5em;;
  }


  .project-text p {
   text-align: center;
}

.modal {
  width: 90%;
  max-width: 500px;
  padding: 20px;
  font-size: 25px;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1000;
}


  .modal h1 {
    font-size: 50px;
  }

  .popup-title {
    font-size: 28px;
  }
}