@import url('https://fonts.googleapis.com/css?family=Barlow');

body { 
    margin: 0;
    font-family: 'Barlow', sans-serif;
    font-size: min(1.5vw, 1.5vh);
    overflow: hidden;
}

/* Shader canvas */
#shaderCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensures shader canvas is below the text canvas */
}

/* Foto canvas */
#fotoCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image: url('/img/green-candles-diagram-trans-kl.png');
    background-size: cover;
    mix-blend-mode:hue;
    opacity: 0.7;
}

#content-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: fixed;
}

/***********************************************/
/* Header                                      */
/***********************************************/

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1000;
}

#header > .nav-links {
    display: flex;
    justify-content: flex-end;
    padding: min(0.2vw, 0.2vh);
}

#header > .nav-links > .nav-link {
    font-size: 0.7rem;
    margin: 0 10px;
}

#header > .nav-links > .nav-link > a {
    line-height: 1em;
    color: #DDDDDD;
    text-shadow: rgb(33, 33, 38) 1px 0px 0px, rgb(33, 33, 38) 0.540302px 0.841471px 0px, rgb(33, 33, 38) -0.416147px 0.909297px 0px, rgb(33, 33, 38) -0.989992px 0.14112px 0px, rgb(33, 33, 38) -0.653644px -0.756802px 0px, rgb(33, 33, 38) 0.283662px -0.958924px 0px, rgb(33, 33, 38) 0.96017px -0.279415px 0px;
    text-decoration: none;
    cursor: pointer;
}

/***********************************************/
/* Modal                                       */
/***********************************************/

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: none; /* Enable scroll if needed */
}
  
/* Modal Content */
.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 960px;
    padding: min(2vh, 2vw) !important;
}

#modal-body {
    text-align:left;
    line-height: 1em;
    font-size: 1rem;
    color: #DDDDDD;
    text-shadow: rgb(33, 33, 38) 1px 0px 0px, rgb(33, 33, 38) 0.540302px 0.841471px 0px, rgb(33, 33, 38) -0.416147px 0.909297px 0px, rgb(33, 33, 38) -0.989992px 0.14112px 0px, rgb(33, 33, 38) -0.653644px -0.756802px 0px, rgb(33, 33, 38) 0.283662px -0.958924px 0px, rgb(33, 33, 38) 0.96017px -0.279415px 0px;
    text-decoration: none;
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 65vh;
    padding-right: 0.6vw;
}

#modal-body > p > a, #modal-body > ul > li > a, #modal-body > ol > li > a {
    color: rgb(155, 155, 155);
    text-decoration: none;
}

#modal-body > p > a:hover, #modal-body > ul > li > a:hover, #modal-body > ol > li > a:hover {
    color: rgb(221, 221, 221);
}

#modal-body > h2 {
    font-size: 1.1vw;
    line-height: 1.6vw;
}

#modal-body > h3 {
    font-size: 0.9vw;
    line-height: 1.4vw;
    margin-bottom: 0.3vw;
}

#modal-body > p, #modal-body > div, #modal-body > ul > li, #modal-body > ol > li, #modal-body > ul, #modal-body > ol {
    font-size: 0.7vw;
    line-height: 1.1vw;
    margin-top: 0;
}


/* The Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    opacity: 1;
    font-weight: bold;
    margin-left: 14px;
    margin-top: -14px;
}
  
.close:hover,
.close:focus {
    color: white;
    opacity: 0.6;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
      transform: translate(-50%, -50%) scale(0.1);
      opacity: 0;
    }
    to {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
  }
  
  @keyframes zoomOut {
    from {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
    to {
      transform: translate(-50%, -50%) scale(0.1);
      opacity: 0;
    }
  }
  
  .modal-content {
      /* Your existing styles, ensure to include will-change for performance */
      will-change: transform, opacity;
      animation-fill-mode: forwards; /* Keeps the modal in the state of the last keyframe when the animation completes */
  }
  
  .modal-content.zoom-in {
      animation: zoomIn 0.5s ease, scale 0.5s ease;
  }
  
  .modal-content.zoom-out {
      animation: zoomOut 0.5s ease, scale 0.5s ease;
  }
  
  .modal-content {
      /* Existing styles */
      animation-fill-mode: forwards; /* Keeps the element in the state of the last keyframe when the animation completes */
  }
  
  .modal-content.slide-in {
      animation: slideIn 0.5s ease-out;
  }
  
  .modal-content.slide-out {
      animation: slideOut 0.5s ease-out;
  }

.custom-scrollbar::-webkit-scrollbar {
    width: 0.8vw;
    max-width: 10px;
  }

  /* Track */
  .custom-scrollbar::-webkit-scrollbar-track {
    background: transparent; /* Making track transparent */
  }

  /* Handle */
  .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgb(118, 118, 118);
    border-radius: 4px;
    cursor: all-scroll;
  }

  /* Handle on hover */
  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgb(155, 155, 155);
  }