
    body, html {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
      scroll-behavior: smooth;
      background-color: white;
    }

/* Login / Sign Up Page Container */
main {
  padding: 40px;
  background-color: #f4f4f4;
  box-sizing: border-box;
}



/*added for loginin and sign up forms*/
h2 {
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 30px;
}
/* Form Container */
form {
  width: 100%;
  max-width: 500px;
  margin: 80px auto 20px auto;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

form label {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  background-color: #f9f9f9;
  box-sizing: border-box;
}

form input[type="email"],
form input[type="password"],
form input[type="text"],
form input[type="date"],
form input[type="tel"] {
  font-size: 16px;
}

form input:focus {
  border-color: #0077cc;
  outline: none;
}

form button {
  width: 100%;
  padding: 12px;
  background-color: #0077cc;
  color: white;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #005fa3;
}

/* Center and Align the Form */
.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-top: 50px;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.7);
  color: white;
  display: flex;
  justify-content: space-between; /* Space out left and right sections */
  align-items: center;
  padding: 12px 48px;
  z-index: 1000;
  box-sizing: border-box; /* Ensures padding doesn't affect the layout */
}

nav .logo {
  font-weight: bold;
  font-size: 28px;
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  padding: 12px 24px;
  border-radius: 5px;
  flex-shrink: 0; /* Prevent the logo from shrinking */
}

nav .logo:hover {
  background-color: rgba(255, 255, 255, 0.2); /* Subtle hover effect */
}

/* Left section: Logo */
nav .nav-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-grow: 1; /* Allow it to take available space */
}

/* Right section: Buttons */
nav .nav-right {
  display: flex;
  justify-content: flex-end; /* Align buttons to the right */
  align-items: center;
  gap: 20px; /* Space between buttons */
  flex-shrink: 0; /* Prevent the right section from shrinking */
}

nav .nav-right .buttons {
  display: flex;
  gap: 20px; /* Space between buttons */
}

nav .nav-right a {
  padding: 10px 20px;
  background: rgba(0,0,0,0.7);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 22px;
  transition: background-color 0.2s;
}

nav .nav-right a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

/* Sign-up button */
.sign-up-btn {
  background-color: white;
  color: white;
  border-radius: 5px;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 22px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  display: inline-block; /* ensures padding works */
  cursor: pointer;
}

.sign-up-btn:hover {
  background-color: #7b7b7f;
  color: white;
}

/* Login button with unique styling */
.login-btn {
  background: #f39c12; /* Bright color for the login button */
  color: white;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 22px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
}

.login-btn:hover {
  background-color: #7b7b7f; /* Darker shade on hover */
}





    /* Hero */
    .hero {
      height: 100vh;
      position: relative;
      overflow: hidden;
       z-index: 0;  
    }

    .hero video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: -1; 
    }

    .hero-text {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: white;
       z-index: 1; 
    }

    .hero-text h1 {
      font-size: 50px;
      margin-bottom: 20px;
    }

    .hero-text a {
      display: inline-block;
      margin-top: 10px;
      padding: 18px 36px;
      background: #0077cc;
      color: white;
      text-decoration: none;
      border-radius: 5px;
      font-size: 25px;
    }

 .fleet {
  padding: 80px 20px;
  margin-top: 0; 
  background-color: #ffffff;
  text-align: center;
  position: relative;
  z-index: 0; 
}

.fleet h2 {
  margin-bottom: 30px;
}

.fleet-wrapper {
  position: relative;
  max-width: 100%;
  margin: auto;
  overflow-x: auto; /* horizontal scroll allowed */
  display: flex;
  justify-content: center; /* Center the entire fleet container */
}

.fleet-container {
  display: flex;
  flex-wrap: nowrap;  /* Force single row */
  justify-content: center; /* Horizontally center the items */
  gap: 20px;
  padding: 20px 40px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.fleet-container::-webkit-scrollbar {
  display: none; /* hide scrollbar Chrome/Safari */
}

.fleet-container {
  scrollbar-width: none; /* hide scrollbar Firefox */
}


.plane-card {
  flex: 0 0 380px;
  min-width: 380px;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.plane-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.plane-info {
  padding: 15px;
  text-align: center;
}

.plane-info h3 {
  margin: 0 0 10px;
}

.plane-info p {
  margin-bottom: 15px;
  font-weight: bold;
}

.plane-info button {
  padding: 10px 15px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.plane-info button:hover {
  background: #005fa3;
}

.scroll-btn {
  all: unset;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.scroll-btn.left {
  left: 10px;
}

.scroll-btn.right {
  right: 10px;
}

.scroll-btn:hover {
  background: rgba(0,0,0,0.9);
}

/* Positioning on smaller screens */
@media (max-width: 768px) {
  .scroll-btn.left {
    left: 5px;
  }

  .scroll-btn.right {
    right: 5px;
  }

  /* Optional: reduce size of scroll buttons for smaller screens */
  .scroll-btn {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}


    /* Booking */
  .book {
  display: flex;
  flex-wrap: wrap;
  padding: 80px 20px;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
}

.book-left {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-left img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.plane-stats {
  display: flex;
  justify-content: space-between; /* horizontal layout on desktop */
  width: 100%;
  margin-top: 20px;
  gap: 15px;
}

.plane-stats .stat {
  text-align: center;
}

.plane-stats .stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #000;
}

.plane-stats .stat-label {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
}

.book-right {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.book-right h3 {
  color: #0077cc;
  font-size: 20px;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 10px;
}

.book-price {
  font-size: 38px;
  font-weight: 900;
  line-height: 46px;
  margin: 0 0 20px 0;
}

.flight-duration {
  margin-bottom: 20px;
}

.duration-value {
  font-size: 28px;
  font-weight: 700;
  color: #0077cc;
}

.duration-label {
  font-size: 14px;
  color: #888;
  margin-top: 6px;
  line-height: 1.5;
}

.book-btn {
  padding: 12px 24px;
  background: #0077cc;
  color: white;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-weight: 700;
}

.book-btn:hover {
  background: #005fa3;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .book {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-left, .book-right {
    width: 90%;
  }

  

  .plane-stats .stat-value {
    font-size: 28px;
  }

  .plane-stats .stat-label {
    font-size: 16px;
  }

  .book-right h3 {
    font-size: 24px;
  }

  .book-price {
    font-size: 48px;
  }

  .duration-value {
    font-size: 36px;
  }

  .book-left img {
    max-width: 90%;
    margin-bottom: 20px;
  }
}

  /* Table Styling in Modal */
table {
    width: 100%;
    border-collapse: collapse;
   
}

table th,
table td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ccc;
}

table th {
    background-color: #0077cc;
    color: rgb(0, 0, 0);
}

table td {
    background-color: #f9f9f9;
}

table tr:nth-child(even) td {
    background-color: #f1f1f1;
}

table tr:hover {
    background-color: #f1f1f1;
}



/* Modal Overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for better focus */
    z-index: 1000;
    padding-top: 30px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 8px; /* Rounded corners */
    width: 90%;
    max-width: 450px;
    max-height: 80%; /* Restrict the height */
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    animation: fadeIn 0.3s ease-out;
}

/* Modal Header */
.modal h2 {
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Input Styles */
.modal-content input[type="date"],
.modal-content input[type="time"],
.modal-content input[type="email"],
.modal-content input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-size: 16px;
}

/* Confirm Button */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #0077cc; /* background */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #005fa3; /* Darker  on hover */
}

/* Close Button */
.close-btn {
    color: #bbb;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Close Button Hover */
.close-btn:hover,
.close-btn:focus {
    color: #333; /* Darker color on hover */
    text-decoration: none;
}

/* For scrollable content */
.modal-content p,
.modal-content table {
    max-height: 70vh; /* Adjust this for your needs */
    overflow-y: auto;
}




.success-message {
    background-color: #d4edda; /* Light green background */
    color: #155724; /* Dark green text */
    border: 1px solid #c3e6cb; /* Border matching background */
    padding: 15px;
    margin: 80px 0 20px 0; /* Added margin-top to ensure it's below the navbar */
    border-radius: 5px;
    font-size: 1.2em;
    text-align: center;
}


.success-message p {
    margin: 0;
    font-weight: bold;
}

 .container {
        display: flex;
        justify-content: center; /* Centers the content horizontally */
        align-items: center;     /* Centers the content vertically */
        height: 25vh;           /* Make the container take the full viewport height */
        flex-direction: column;  /* Stack the elements vertically */
    }

    .plane-select {
        font-size: 18px;   /* Larger font size */
        padding: 12px;     /* Increase padding */
        width: 300px;      /* Set a fixed width for better control */
        text-align: center; /* Center text inside the select box */
        border-radius: 5px; /* Rounded corners for the dropdown */
        border: 1px solid #ccc; /* Border style */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow effect */
    }

    .my-flights-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 80px;  /* clears nav at top + footer at bottom */
}

/* Flights table */
.my-flights-container table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.my-flights-container th,
.my-flights-container td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.my-flights-container th {
    background-color: #f2f2f2;
}

.my-flights-container tr:nth-child(even) {
    background-color: #f9f9f9;
}

.my-flights-container a {
    color: #007bff;
    text-decoration: none;
}

.my-flights-container a:hover {
    text-decoration: underline;
}

.table tr.paid-flight td {
  background-color: #d4edda !important;
  color: #155724 !important;
}



