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

@font-face {
  font-family: 'HersheyFuturaTriplex';
  src: url('fonts/Hershey-Noailles-Futura-Triplex-Light.otf') format('opentype');
  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;
}



@font-face {
  font-family: 'HersheyOldFrench';
  src: url('fonts/Hershey-Noailles-OldFrench-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* second font face*/
@font-face {
  font-family: 'HoverFont';
  src: url('fonts/Hershey-Noailles-Times-Triplex-Italic-Bold.otf') format('opentype'); /* Replace with actual font */
  font-weight: normal;
  font-style: normal;
}

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

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


body {
  display: flex;
  font-family: 'HersheyOldFrench', sans-serif;
  font-weight: normal;
  font-style: normal;
}


  .project-text h1 {
  padding-bottom: 0.5em;
  font-family: 'HersheyOldFrench';
  font-size: 2.8em;
  letter-spacing: 0.5px;
  color: #1f1828;
  text-shadow: none;
}


/* <!--------  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);      
}

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

.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';
  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);
}

/* 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: 22px;
  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: 'HersheyTriplexFutura', 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);
}



/*PORTFOLIO 25*/

a{
  text-decoration: none;
  color: rgb(0, 0, 0);
}

a:visited{
  text-decoration: none;
  color: black;
}

.menuContainer{
  z-index: 3000;
  position: fixed;
  right: 80px;
  height:30px;
  border: 0px solid black;
  margin-top: 6px;
  font-family: 'menu-Regular', 'HersheyTriplexFutura';
  font-size: 22px;
  text-align: center;
  background-color: white;
      text-shadow: 
  0 0 1px rgba(255, 247, 0, 0), 
  0 0 6px rgb(255, 0, 238),
   0 0 10px rgb(255, 255, 0);
}

.menuEntree{
  width:30px;
  height:inherit;
  display:inline-block;
  border-left: 1px solid black;
  border-top: 1px solid black;
  border-right: 0px;
  border-bottom: 1px solid black;
  margin:0px;
  padding:0px;
  background-color: white;
}

.menuEntreeLast{
  width:30px;
  height:inherit;
  display:inline-block;
  border-left: 1px solid black;
  border-top: 1px solid black;
  border-right: 1px solid black;
  border-bottom: 1px solid black;
  margin:0px;
  padding:0px;
  background-color: white;
}

.menuEntree p, .menuEntreeLast p{
  width:30px;
  height:30px;
    padding-top: 4px;
}

#actif{
  background-color: rgb(255, 0, 208);
}

#actif a{
  color: white;
}

.menuEntree:hover, .menuEntreeLast:hover, .boutonEnglobe:hover{
  animation: colorchange 0.5s;
  -webkit-animation-iteration-count: infinite;
  cursor: pointer;
}

/*menu*/

/*animations*/

@keyframes colorchange{
  0%   {background: red;}
  25%  {background: yellow;}
  50%  {background: blue;}
  75%  {background: green;}
  100% {background: red;}
}

@keyframes colorchange-text{
  0%   {color: red;}
  25%  {color: yellow;}
  50%  {color: blue;}
  75%  {color: green;}
  100% {color: red;}
}

/* <!-------- 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, rgba(38, 255, 0, 0.439), rgb(226, 238, 255), rgba(38, 255, 0, 0.439));
  padding: 40px;
  border: 2px solid black;
  width: 500px;
  max-width: 90%;
  font-family: 'HersheyTriplexFutura', sans-serif;
  font-size: 20px;
  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 1px rgba(255, 247, 0, 0), 
  0 0 6px rgb(255, 0, 238),
   0 0 10px 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: 40px;
  font-weight: normal;
  margin-bottom: 20px;
  font-family: 'Anthony';
  text-align: center;
}

/*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;
}

.contact-links a {
  display: inline-block;
  transition: transform 0.3s ease;
 font-family: 'HersheyTriplexFutura', sans-serif;
   font-size: 20pt;
}

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


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


/*END OF WINDOW POPUP CONTACT*/






.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: justify;    
   max-width: 700px;
   hyphens: auto;
}


.project-text p {
  max-width: 700px;
}



.project-video video.hover-shadow {
  width: 100%;              /* Match container width */
  max-width: 850px;         /* Same as images */
  height: auto;
  display: block;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-video video.hover-shadow:hover {
  box-shadow: 0 0px 24px rgba(255, 0, 217, 0.4);
}

/* Optional: center video like images */
.project-video {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem; 
}

.project-credits p{
  margin-left: 10px;
  text-align: middle;
}

.book-images {
  padding: 1rem 2rem 3rem;
}

.book-gallery {
  display: flex;
  flex-direction: column;    /* Already vertical, keeps images stacked */
  align-items: center;
  gap: 2rem;
}

.image-media img {
  width: 100%;
  max-width: 850px;
  height: auto;
  display: block;
}


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



/* Sidebar general styling remains the same */
.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);      
}

/*  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;               
}





  
  /* General small-screen adjustments for 700px and below */
@media screen and (max-width: 700px) {


  

     .menuContainer {
    display: none !important;
  }


  .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;
  }

  /* Adjust logo */
  .logo {
    font-size: 35px;
    padding-left: 2pt;
  }

  /* 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: 7pt;
  }

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

  /* 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 */
  .modal {
    width: 90%;
    max-width: 500px;
    font-size: 16px;
    z-index: 1000;
  }

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

  .project-text {
   text-align: justify;
   hyphens: auto;
  }

  /* Force content to stack vertically and fill width */
  main, .project-section, .content {
    margin-left: 0 !important;
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .project-gallery {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;        /* center horizontally */
    justify-content: center !important;    /* center vertically */
    gap: 20px !important;
    width: 100% !important;
    min-height: 100vh !important;          /* fill viewport height */
    margin: 0 auto !important;
    padding: 20px 12px !important;
    box-sizing: border-box;
  }

  .project {
    width: 90% !important;
    max-width: 900px !important;
    height: auto !important;
    display: block !important;
    padding: 12px !important;
    margin: 0 auto !important;             /* center horizontally */
    border: 1px solid #000 !important;
    box-sizing: border-box;
  }

  .project img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
  }

  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
  }

  .nav-links a {
    font-size: 18px !important;
  }

  .buttons button, button {
    font-size: 18px !important;
    padding: 8px !important;
  }


  .project-text {
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;                     /* center text */
    hyphens: auto;
  }

  .project-text h1 {
    text-align: center;                     /* center heading */
    font-size: 40pt;
    margin-top: 3em;
  }

}

@media screen and (max-width: 700px) {
  /* ensure family name and style still applied on mobile */
  .garamondt {
    font-family: 'garamondt', serif !important;
    font-weight: 700 !important;
    font-style: italic !important;
    font-size: 18pt !important;
    color: #ffffff !important; /* keep contrast; change to black if background is light */
    -webkit-text-stroke-width: 0.1pt !important;
  -webkit-text-stroke-color: #000;
  text-shadow: 0 0 4px rgba(255, 0, 251, 0.621);
  }

  /* If a parent is forcing color, be explicit for spans inside project text */
  .project-text .garamondt {
    color: #ffffff !important;
  }
}
