@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
  color: #000;
}

.top-menu {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
}

.home-logo{
  height: 40px;
  margin-right: 15px;
}

/*dropdown*/
.dropdown {
    z-index: 100;
    margin-bottom: -150px;
}


/* SVG*/

/* selected seats*/
.selected-seat path {
    fill: #8E720B !important;
}


/*Empty seats*/
.empty-seat path {
    fill: #A3A3A3;
}

svg {
  transform-origin: center center; /* Prevent unintended scaling effects */
}


#svg-container {
    margin-top: 50px;
    scroll-behavior: smooth; /* Enables smooth scrolling */
}

#results {
    font-weight: 400;
    margin-top: 10px;
}


/*modals */

/*loader for images*/
#image-container {
  position: relative;
  height: 150px; 
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-around;
}

#image-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #2c2f34;
  border-top: 4px solid #FE0000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  display: none; /* Hidden by default */
}

@keyframes spin {
  from {
      transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
      transform: translate(-50%, -50%) rotate(360deg);
  }
}

#passenger-img {
  display: none; /* Initially hidden */
  max-width: 100%;
  max-height: 100%;
}



.close-modals {
    color: #000000;
    font-size: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}
  
  .modals {
    width: 400px;
    display: none;
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translate(-50%, -10%);
    z-index: 120;
    background-color: #fff;
    box-shadow: 5px 5px 5px 5px rgba(211, 211, 211, 0.539);
  }

  .modals.active {
    display: block;
  }
  
  .modals .modals-header{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 0.5rem;
    font-weight: 800;
  }
  
  .modals .modals-body {
    padding: 0 30px;
  }
  
  .modals ul {
    list-style-type: none;
  }

  .fa-solid {
    font-weight: 990;
    font-size: 12px;
    padding: 3px;
}

.modal-btn {
    font-weight: 600;
    display: flex; 
    align-items: center;
    justify-content: center;
}

#passenger-img {
  border-radius: 5px;
}
  
  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(15px);
  }
  
  #overlay.active {
    display: block;
  }
  
  #passenger-bio {
    color: #000000;
    font-weight: 600;
    font-size: 12px;
  }
  
  #passenger-bio:hover {
    color: #000000;
    font-weight: 300;
    text-decoration: none;
  }

.passenger-list li {
  font-size: 14px;
}

.info {
  font-weight: 600;
}

.info-section {
  display: flex;
}

/* Specific styling when both passengers are shown (seat 6F) */
.info-section:has(.kurdia[style*="display: block"]) {
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.info-section:has(.kurdia[style*="display: block"]) > div {
  flex: 1;
  max-width: 50%;
}

/* Align image containers at the same level */
.info-section:has(.kurdia[style*="display: block"]) #image-container,
.info-section:has(.kurdia[style*="display: block"]) .kurdia-image-container {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.kurdia-passenger-img {
  border-radius: 5px;
}



/*Responsiveness*/

@media only screen and (max-width: 768px) {
    .dropdown {
        margin-bottom: 135px;
    }

  svg {
        transform: scale(2.5);
        margin-top: 165px;

  }

    .modals{
        max-width: 300px;
    }
  }

@media only screen and (max-width: 768px) and (min-width: 500px)  {
    
    svg {
        transform: scale(1.5);  
    }

    .dropdown {
        z-index: 100;
        margin-bottom: -155px;
    }

  #svg-container {
        text-align: center;
        margin-top: 60px;
    }
  }

  @media only screen and (max-width: 500px) and (min-width: 300px)  {

    svg {
        
        transform: scale(3.5);
        
    }

  #svg-container {
        text-align: center;
        margin-top: 290px;
    }
}
