/*
* {
    border: 1px solid red;
}
*/

* {
    box-sizing: border-box;
  }

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    scroll-behavior: smooth;
    overflow: hidden;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
}

#loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
  }
  
  .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #000;
    border-top-color: #ccc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  #loading-bar-container {
    width: 80%;
    height: 10px;
    background: #000;
    margin-top: 20vw;
    border-radius: 5px;
    overflow: hidden;
  }
  
  #loading-bar {
    width: 0%;
    height: 100%;
    background: #ccc;
    transition: width 0.3s ease;
  }

  /* Opener Section */

  #opener {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }


  .openerBackground {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../temp_RTU_LiepA.PNG');
    background-size: cover;
    background-position: center;
    transform: scale(1);
    animation: zoomIn 10s ease-out forwards;
    z-index: 0;
  }

  .overlay-text {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 2.5rem;
    text-align: center;
    margin-top: 40vh;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    white-space: pre-line; /* enables line breaks */
  }
  
  .cursor {
    display: inline-block;
    border-left: 2px solid white;
    animation: blink 0.7s steps(1) infinite;
    margin-left: 2px;
  }
  
  @keyframes blink {
    50% { border-color: transparent; }
  }
  
  @keyframes zoomIn {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(1.1); /* zoom in 10% */
    }
  }

.navbar {
    display: flex;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.5s ease;
    padding: 10px;
    justify-content: space-evenly;
    align-items: center;
    z-index: 3;
    opacity: 0;
}

.overlay-text {
  font-family: Arial, sans-serif;
  font-weight: bold;
  cursor: pointer;
}

#aFrameExhibition {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  cursor: pointer;
}

#aFrameExhibition img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aframeTitle {
  position: absolute;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  transform: translate(-50%, -50%);
  color: white;
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-align: center;
  width: 90%;
  font-size: clamp(1rem, 2vw, 2rem);
}

.button {
    margin: 0 10px;
    padding: 10px;
    font-family: Arial, sans-serif;
    text-decoration: none;
    color: #333;
    border: 1px solid #333;
    border-radius: 5px;
}

.logo {
    width: 50px;
    height: 50px;
    background-image: url('../../../../assets/header/logo.png');
    background-size: cover;
    border-radius: 50%;
}

.gifSeries {
    background-color: #250000;
}

.glitchArt {
    background-color: #000025;
}

.responsiveArtwork {
    background-color: #aa00aa;
}

#a-frameExhibition {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00aaaa;
}

.textSingle{
    position: relative;
    z-index: 1;
    color: white;
    font-size: 2.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

#p5 {
    display: flex;
}

.analog {
    width: 100%;
    height: 100vh;
    background-color: #0000aa;
}

.digital {
    width: 100%;
    height: 100vh;
    background-color: #aa0000;
}

.p5_landscape {
    width: 100%;
    height: 100vh;
    background-color: #aaaa00;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-wrap: wrap;
  }
  
  .card {
    position: relative;
    width: 33.33%;
    height: 100vh;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
  }
  
  .card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
  }
  
  /* Text overlay + gradient */
  .text-overlay {
    position: absolute;
    bottom: -50vh; /* Hidden initially */
    left: 0;
    width: 100%;
    padding: 100px;
    text-align: center;
    color: white;
    font-size: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    transition: bottom 0.4s ease;
  }
  
  /* Hover effect */
  .card:hover img {
    filter: grayscale(0%);
  }
  
  .card:hover .text-overlay {
    bottom: 0;
  }