@import url(https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap);
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300,600);

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .brick-fade-in {
    opacity: 0;
    animation-name: fadeIn;
    animation-duration: 2s; /* Adjust the duration as needed */
    animation-fill-mode: forwards;
  }
  

.popup-container {
    display: none; /* Hidden by default */
    position: fixed;
    font-weight: 100;
    color: white;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(9px); 
    z-index: 1000;
    opacity: 0; /* Start with the popup invisible */
    transition: opacity 0.8s ease-in-out; /* Fade in the popup */
  }

  /* State of the popup when it's visible */
.popup-container.active {
    display: block;
    opacity: 1;
  }

  /* Class to be added via JavaScript for visible popup */
.popup-visible {
    opacity: 1; /* Make popup visible */
  }
  
  
  .popup-inner {
    position: relative;
    width: 100%;
    height: 100%;
  }
  
  .popup-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 5%;
    opacity: 0; /* Start with the content invisible */
    animation: fadeInContent 0.3s ease-in-out 0.3s forwards;
    /* Additional styling as needed */
  }

  /* Keyframes for content fade-in animation */
@keyframes fadeInContent {
    to {
      opacity: 1;
    }
  }

  .popup-image-container {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .popup-video-container {
    flex: 1.5; 
    display: flex;
    justify-content: center; 
    align-items: center;
    width: 100%;
    
  }

  .video-wrapper {
    /* width: 100%; */
    /* display: flex; */
    justify-content: center;
    align-items: center;
  }

  .popup-scene-container {
    flex: 1.5; 
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%; 
    height: 80%; 
    overflow: hidden;
    border-radius: 4px;
  }
  
  #popup-scene-iframe {
    width: 100%; /* Full width of the container */
    height: 100%; /* Full height of the container */
    /* Additional styling for the 3D scene */
  }
  
  .popup-image {
    max-width: 80%;
    max-height: 100%;
    height: auto;
  }

  .video-wrapper {
    width: 100%; /* Full width of their container */
    max-height: 100%;
    display: flex;
    justify-content: center; /* Center the video horizontally */
    align-items: center; /* Center the video vertically */
    overflow: hidden;
  }

  .popup-video {
    max-width: 90%; /* Video will not exceed the width of the container */
    max-height: 90%; /* Video will not exceed the height of the container */
    height: auto; /* Maintain aspect ratio */
    width: auto; /* Maintain aspect ratio */
    margin: auto; /* Center the video in the container */
  }

  #brick-3 .popup-video {
    max-width: 100%; /* Video will not exceed 90% of the width of the container */
    max-height: 100%; /* Video will not exceed 90% of the height of the container */
}
  
  .popup-title-container {
    height: 100%;
    flex: 1; /* Adjust as needed */
    display: flex;
    flex-direction: column; /* Stack title and description vertically */
    justify-content: center;
    align-items: flex-start;
    padding: 10px 10px 10px 60px; /* Add some padding */
    font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

    /* Additional styling as needed */
  }
  
  .popup-title {
    text-transform: uppercase;
    color: #83a5f3;
    font-weight: 400;
    margin-bottom: 20px;
    margin-right: 20%;
  }
  
  .popup-description {
    font-weight: 200;
    color: #83a5f3; /* Lighter color for description */
    font-size: 16px; /* Smaller font size for description */
    /* Additional styling for the description */
  }

  .arcade-studio-link {
    text-decoration: none;
    color: inherit; 
    transition: transform 0.2s ease-in-out;
    display: inline-block;
  }

.arcade-studio-link:hover {
    cursor: pointer;
    transform: translateY(-2px);
}

  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .close-btn-container {
    /* Default styles for larger screens, if any */
    /* If there are no specific styles needed, you can leave this empty */
}

.close-text {
  display: none; /* Hide the text on larger screens */
  color: #83a5f3cd; /* Text color, adjust as needed */
  font-size: 14px; /* Text size, adjust as needed */
  font-weight: 100;
  margin: 0;
  padding: 0;
  text-align: center;
}


  .close-btn {
    position: absolute;
    top: 24px; /* Adjust as needed */
    right: 24px; /* Adjust as needed */
    width: 25px; /* Size of the button */
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    animation: fadeIn 0.5s ease-in-out forwards;
    transition: transform 0.3s ease;
    
  }
  
  .close-btn::before, .close-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1.5px; /* Width of the lines */
    height: 100%;
    background-color: #83a5f3; /* Color of the lines */
  }
  .close-btn:hover {
    transform: scale(0.8); 
  }
  
  .close-btn::before {
    transform: translateX(-50%) rotate(45deg); /* Diagonal line */
  }
  
  .close-btn::after {
    transform: translateX(-50%) rotate(-45deg); /* Diagonal line */
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }




  /* Media query for mobile screens */
@media screen and (max-width: 768px) {
  .popup-container{
    backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
  }
  .popup-content {
    overflow-y: auto; /* Allows scrolling */
    -webkit-overflow-scrolling: touch; /* Smoother scrolling on iOS */
    padding-top: 10%; /* Reduced padding */
    flex-direction: column; 
    max-height: 100vh; /* Allows the popup content to fit within the viewport height */
  }

  .popup-image-container, .popup-video-container, .popup-scene-container {
    
    width: 100%; /* Full width for smaller screens */
    /* margin-bottom: 20px; Add some space between the media and the title */
  }

  .popup-image, .popup-video, #popup-scene-iframe {
    
    max-width: 100%;
    max-height: 90%;
  }
  .popup-video{

  /* margin-left: -250px; */
  }

  .popup-title-container {
    width: 100%; /* Full width for title and description */
    padding: 10px; /* Adjust padding for smaller screens */
    align-items: left; /* Center the title and description */
    text-align: left; /* Center the text */
    justify-content: flex-start;
    max-height: 90%;
    flex: 2;
  }

  .popup-title {
    margin-right: 5%;
  }

  .close-btn-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black; /* Black background */
    display: flex;
    cursor: pointer;
    justify-content: center; /* Center the button horizontally */
    padding: 10px 0; /* Some padding above and below the button */
    z-index: 1002; /* Ensure it's above other elements */
  }

  .close-btn {
    position: relative; /* Relative to the container */
    top: auto; /* Reset top position */
    right: auto; /* Reset right position */
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    /* Center the button lines within the new container */
    margin: auto;
  }
  .close-btn::before, .close-btn::after {
    /* Adjust the ::before and ::after styles if necessary */
    display: none;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg); 
  }
  .close-text {
    display: block; /* Show the close text on mobile */
  }

  /* .close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  } */
}
  