
* {
  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-face {
  font-family: 'garamondt-regular';
  src: url('./fonts/Garamondt-Regular.woff') format('woff');
}


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


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



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

}


@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);
    -webkit-text-stroke-width: 1pt;
}

.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 {
  display: flex;            /* Side-by-side layout */               /* Space between columns */
  padding: 40px 0px;
  width: calc(100% - 80px); /* Adjust for padding/margin */
  margin-left: 160px;
padding-right: 40pt;
    
}

.project-text{
 font-size: 17pt;
 text-align: justify;    
   max-width: 700px;
}


.project-gallery {
  display: none;
  display: contents;  
  flex-wrap: wrap;          /* Wrap on small screens */
  justify-content: center;  /* Center images */
  gap: 20px;
  margin-top: 20px;
  padding-left: 150pt;
}

.project-media {
  content: 0 0 100%;            /* 3 images per row */
  max-width: 100%;
  height: auto;
  display: block;
  gap: 80px;
}

.project-media img {
  width: 100%;
  height: auto;
  display: block;
}


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

/* <!-------- SLIDE DECK -----------------------------------------------------------------------------> */

#slidedeck {
  z-index: 3003; /* on top of #common-template */
  position: fixed; /* for z-index to work */
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0,0,0,0.8);
  color: white;
  text-align: center;
  padding: 43px 0 43px 0;
}

#slidedeck-flex-container {
  height: 100%;
  display: flex;
}

#slidedeck-flex-container div:nth-child(2) div {
  margin-top: 21px;
  font-size: 1vw;
  line-height: 1.5vw;
  flex: 1 0 700px;
}

/* ARROWS */
#slidedeck-flex-container > div:first-child, #slidedeck-flex-container > div:last-child {
  display: flex;
  font-size: 100px;
  justify-content: center;
  align-items: center;
  user-select: none;
    flex: 1 0 20%;
}

#slidedeck-flex-container > div:first-child span, #slidedeck-flex-container > div:last-child span {
  cursor: pointer
}

#slidedeck img {
  height: 88%;
  width: 100%;
  object-fit: contain;
}

#slidedeck.closed, .display-none {
  display: none;
}

.grid-item {
  cursor: pointer;
  width: 100%;
  z-index: 3001; /* on top of #common-template */
  position: relative; /* for z-index to work */
}

.grid-item:hover{
  cursor: zoom-in;
}



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











/* <!-------- VIDEO DIV BELL  -----------------------------------------------------------------------------> */


.video-shots-row {
  display: flex;
  gap: 40px;              /* spacing between shots */
  justify-content: center;
  flex-wrap: wrap;        /* allows wrapping on small screens */
  margin-top: 40px;
  padding-left: 10pt;
  margin-right: 60px;
}

.shot {
  width: 500px;
  height: auto;
  overflow: hidden;
  border-radius: 2px;
  transition: box-shadow 0.3s ease; /* Smooth animation */
}

.shot video {
  width: 100%;            /* ensures video fits the .shot container */
  height: auto;
  display: block;
  object-fit: cover;
}


.shot:hover {
  box-shadow: 0 8px 20px rgba(252, 191, 255, 0.561),
    0 0 10px rgba(255, 31, 0, 0.2);
}


/* STYLING THE PARAGRAPHS*/

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



/* <!--------  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 QUERY FOR SCREENS <= 700px -------------------- */



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


    /* Keep the page scrolling vertically */
  html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
  }

    /* 🔹 Hide the menu container on mobile */
  .menuContainer {
    display: none !important;
  }

  /* Make main content full width and remove sidebar offset */
  main, .project-section, .content {
    margin-left: 0 !important;
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box;
  }

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

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

    /* Popups */
  .modal {
    width: 90%;
    max-width: 500px;
    font-size: 16px;
    z-index: 1000;
  }

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


  .project-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    gap: 2em;
    width: 100%;
    margin-left: 0;
    padding: 10px;
  }

 .project-text h1{
    text-align: center;
  hyphens: auto;
  font-size: 40pt;
  margin-top: 3.5em;
}


  .project-text {
    order: 1;
    width: 95%;
    margin: 0;
    text-align: left;
    font-size: 16pt;
    text-align: justify;
    hyphens: auto;
  }

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


  .video-shots-row {
  display: flex;             /* spacing between shots */
  justify-content: center;
  flex-wrap: wrap;        /* allows wrapping on small screens */
  margin-top: 40px;
  margin-left: 3em;
}

.shot {
  width: 420px;
  height: auto;
  overflow: hidden;
  transition: box-shadow 0.3s ease; /* Smooth animation */
}

}

@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: rgb(6, 9, 75) ;
    text-shadow: 0 0 4px #d59bf7 !important;
  }

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

