@font-face {
    font-family: "gallery_para";
    src: url(../css/fonts/BananaGrotesk-Regular.woff2) format("truetype");
  }
  @font-face {
    font-family: "gallery_title";
    src: url(../css/fonts/CooperMdBT-Regular.woff2) format("truetype");
  }
  
  /* Loader Module */
  
  * {
    -webkit-user-drag: none;
    /* Prevents dragging of images/divs etc */
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                      supported by Chrome and Opera */
  }
  
  :root {
    --bar-color2:white;
    --bar-color1:#F79B7A;
    --bar-shadow1:#717171;
    --bar-shadow2:#F79B7A;
    --bar-border:0%;
    --bar-border2:100%;
    --bar-border3:0em;
    --bar-font:#F79B7A;
  }
  
  h1 {
    font-family: "gallery_title";
  }
  
  #para {
    font-family: "gallery_para";
  }
  
  #loader_container {
    
      position: absolute;
      z-index: 7;
      left: 0;
      right: 0;
      bottom: 1.5vh;
      margin: 0 auto;
      width: 100vw;
      max-width: 300px;
      text-align: center;
      transition: opacity 1s; 
      opacity:1; 
      font-family: "gallery_para";
      font-size: 1.5rem;
      color: var(--bar-font);  
      display: flex;
      flex-direction: column;
      align-content: center;
      justify-content: flex-start;
      flex-wrap: wrap
     
    }
  
  #coverImage {
    position: absolute;
    z-index: 6;
    background-image: url(../css/images/backdrop.jpg);
    transition: opacity 1s;
    opacity:1;
    background-color:white;
    background-size:cover;
    filter:blur(1vw);
  
    background-position: center center; 
    background-repeat: no-repeat;
    transition: opacity 1s;
  }
    
  #bar_container {
      height: 24px;
      background: #dcdbd7;
      border-radius: 20px;
      border-top: 1px solid #cfcec9;
      border-bottom: 1px solid #f7f6f4;
      box-shadow: 0 -1px 0 #bab9b4;
      margin-bottom: 24px;
      position: relative;
      transition: opacity 2s;
    }
  
    #progress_bar { 
      background-color: #dcf1c6; 
      background-image: linear-gradient(to bottom, var(--bar-color1) var(--bar-border), var(--bar-color2) var(--bar-border2));
      height: 110%;
      position: absolute;
      top: -3px;
      left: 0px;
      border-top: 1px solid #e5ebf4;
      border-radius: 20px;
      box-shadow: 0 3px 10px var(--bar-shadow1),0 0 0 var(--bar-border3) var(--bar-shadow2);
      width: 10%;
      transition: width 0.1s ease-in-out;    
    }
    
  /* Loader 2 */
  .loader-2 {
      display: block;
      margin: 10px auto;
      height: 32px;
      width: 32px;
      -webkit-animation: loader-2-1 3s linear infinite;
      animation: loader-2-1 3s linear infinite;
    }
    @-webkit-keyframes loader-2-1 {
      0% {
        -webkit-transform: rotate(0deg);
      }
      100% {
        -webkit-transform: rotate(360deg);
      }
    }
    @keyframes loader-2-1 {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }
    .loader-2 span {
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      margin: auto;
      height: 32px;
      width: 32px;
      clip: rect(16px, 32px, 32px, 0);
      -webkit-animation: loader-2-2 1.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
      animation: loader-2-2 1.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
    }
    @-webkit-keyframes loader-2-2 {
      0% {
        -webkit-transform: rotate(0deg);
      }
      100% {
        -webkit-transform: rotate(360deg);
      }
    }
    @keyframes loader-2-2 {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }
    .loader-2 span::before {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      margin: auto;
      height: 32px;
      width: 32px;
      border: 3px solid transparent;
      border-top: 3px solid #F79B7A;
      border-radius: 50%;
      -webkit-animation: loader-2-3 1.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
      animation: loader-2-3 1.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
    }
    @-webkit-keyframes loader-2-3 {
      0% {
        -webkit-transform: rotate(0deg);
      }
      100% {
        -webkit-transform: rotate(360deg);
      }
    }
    @keyframes loader-2-3 {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }
    .loader-2 span::after {
      content: "";
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      margin: auto;
      height: 32px;
      width: 32px;
      border: 3px solid rgba(209, 209, 209, 0.5);
      border-radius: 50%;
    }
    
    *:before,
    *:after {
      box-sizing: border-box;
    }
/* Main Module */

html, body {
  height: 100%;
  width: 100%;
  overflow:hidden;
  margin:0;
  padding:0;
  display:flex;   
  justify-content: center;
}

#renderCanvas {
  display:block;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0; 
  z-index: 1
 
}

#text {
  opacity: 0;
  width: 70vw;
  color: #F79B7A;
  font-size: 2.8vh;
  text-align: center;
  pointer-events: none; 
  transition: opacity 2s;
}

@media screen and (orientation:landscape) {
  #text {font-size: 3.5vh};
}

/* The Modal (background) */
.modal {
    position: absolute;
    display: none;
    opacity:0;
    align-items: center;
    justify-content: center;
    transition: opacity 500ms;
    z-index: 9;
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */

}

/* Modal Content */
.modal-content {
    
    position: relative;
    display: flex;
    background-color: transparent;
    margin: 0 auto;
    padding: 0;
    ; 
    height:50%;
    max-height: 330px;
    max-width: 60%;
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}


.modal-text {
    display: flex;
    flex:1;
    justify-content: center;
    align-content: center;
    align-items: center;    
    flex-direction: column;
    text-align: center;
    background-color: white;
    padding:2%;
    border: 2px solid black;
    border-radius: 30px;
    width: 100%;
}

img {   
    object-fit: contain;  
}

#modal-image {
    display: flex;     
    flex:1;
    width:100%;
    margin-left:-1.5%; 
   
}

/* Add Animation */
@-webkit-keyframes animatetop {
    from {
        top: -50%;     
    }

    to {
        top: 0%;    
    }
}

@keyframes animatetop {
    from {
        top: -50%;     
    }

    to {
        top: 0%;   
    }
}

/* The Close Button */
.close {
    position: absolute;
    z-index: 10;
    color: black;
    right:5%;
    font-size: 50px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: red;
    text-decoration: none;
    cursor: pointer;
}


.modal-body {
    padding: 2px 16px;
}

@media screen and (max-device-width: 767px) and (orientation: portrait) {
    .modal-content {   
        height:80%;  
        max-height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;        
    
    }
    #modal-text {  
        flex:1;      
        background-color: white;   
        text-align: center;     
        height:100%;
        min-width: 100%;
        border: 2px solid black;
        border-radius: 20px 20px 0px 0px;     
    
    }

    #modal-image {
        flex:1;
        align-items: flex-start;
        height:100%;
        margin-left:0%; 
        margin-top:-2%;
     
    }
    img {
        width:100%;
        transform: scale(1.05);
    }
}

@media screen and (max-device-width: 767px) and (orientation: landscape) {

    img {
       height:100%;      
    }
}
/* Slider Menu */

#buttons {

    /* width:fit-content;  */
    max-width: fit-content;
    right: 0;
    top: 10%;
    height: auto;
    z-index: 1;

}

.sidenav {
    height: 100%;
    transform: translateX(-250px);
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav li {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    color: #818181;
    display: block;
    transition: 0.3s;
    cursor: pointer;
}

.closebtn {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
    cursor: pointer;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.sidenav li {
    list-style: square;
    margin: 10px;
    font-family: "gallery_para";
    border-radius: 3px;
    font-size: min(3vh, 3vw);
    cursor: pointer;
}

.sidenav li:hover {
    color: white;
}

.sidenav li:active {
    color: #F79B7A;
}

.sidenav .activeSelection {
    color: #F79B7A;
}

#openButton {
    font-size: min(6vh, 6vw);
    cursor: pointer;
    position: fixed;
    z-index: 1;
    left: 50px;
    top: 10%
}

@media only screen and (orientation:landscape) {
 
    #openButton {
        font-size: min(5vh, 5vw);
    }

}


@media only screen and (max-device-height : 568px) and (orientation:landscape) {
    #buttons {
        top: 0;
    }

    #openButton {
        top:5%;     
    }

    .sidenav li {
        padding: 0px 0px 0px 15px;

    }
}
