/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Wrapper for the entire content */
.container {
  max-width: 700px;
  width: 100%;  /* Ensure the container is responsive on smaller screens */
  min-width: 375px; /* You can keep this to ensure it doesn’t get too narrow on small devices */
  margin: auto;
  padding: 0 15px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .container {
    padding: 0 10px; /* Reduce padding on smaller screens */
  }

  h1 {
    font-size: 0.9em;
  }

  h2 {
    font-size: 0.8em;
  }

  /* New rule for flight details text */
  #flightDetails p {
    font-size: 0.8em; /* Reduce font size by 20% on mobile */
  }

  p {
    font-size: 0.8em;
  }

  input {
    width: 100%; /* Increase the input field width on smaller screens */
    font-size: 0.9em;
  }

  button {
    padding: 8px 16px; /* Make buttons more touch-friendly */
    font-size: 0.9em;
  }

  #banner-container {
    width: 100%; /* Make the banner container take full width */
    padding: 5px; /* Reduce padding to fit better on small screens */
    box-sizing: border-box; /* Ensure padding is included in total width */
  }

  .banner {
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center-align content */
    padding: 10px; /* Keep some padding for spacing */
    width: 100%; /* Ensure the banner takes full width */
    border-width: 4px; /* Adjust border width for smaller screens */
    box-sizing: border-box; /* Include padding and border in the element's total width */
    margin: 10px 0; /* Add some margin for spacing */
  }

  .icon {
    width: 50px; /* Reduce icon size */
    height: 50px; /* Reduce icon size */
    margin-bottom: 10px; /* Add spacing below the icon */
  }

  .status_banner {
    font-size: 20px; /* Further reduce font size for smaller screens */
    margin: 5px 0; /* Add some margin for spacing */
  }

  .status {
    font-size: 14px; /* Reduce status text size */
    margin: 5px 0; /* Add spacing */
  }

  .text p {
    font-size: 12px; /* Reduce font size of paragraph text */
    line-height: 1.2; /* Maintain line height */
    text-align: center; /* Center text alignment */
    margin: 5px 0; /* Add spacing */
  }
}
  img, video {
    max-width: 100%;
    height: auto;
  }

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  font-size: 1.2em;
  color: #4B4B4B;
  background-color: #F8F8F8;
  display: flex;
  flex-direction: column;
}

/* Header styles */
header {
  width: 100%;
  background-color: inherit; /* Same as page background */
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0; /* Prevent shrinking */
  position: relative; /* Remove position absolute to prevent overlap */
}

.header-content {
  text-align: center;
}

#svgLogo2 {
  display: block;
  margin: 0 auto 5px; /* Centers the logo and adds space below it */
  width: 60px;
  height: 60px;
}

#portrait {
  display: block;
  margin: 0 auto 10px; /* Centers the logo and adds space below it */
  width: 100px;
  height: 100px;
}

/* Body styles */
body {
  padding-top: 0; /* Removed offset as header is no longer fixed */
  padding-bottom: 0; /* Removed offset as footer is no longer fixed */
  flex: 1 0 auto; /* Allow the body to grow and shrink as needed */
}

.section {
  padding: 5px;
  margin: 5px 0;
  align-items: center; /* Center items vertically */
  flex-grow: 1; /* Allow sections to take up remaining space */
}

/* Footer styles */
footer {
  width: 100%;
  background-color: inherit;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0; /* Prevent shrinking */
  position: relative; /* Remove position fixed to prevent overlap */
}

footer a {
  color: #4B4B4B;
  text-decoration: none;
  padding: 0 10px;
}

title {
  font-size: 1.2em;
  color: #4B4B4B;
  text-transform: lowercase;
}

p {
  font-size: 1em;
  text-align: center;
  line-height: normal;
  color: #4B4B4B;
}

h1 {
  font-size: 1.2em;
  text-align: center;
  font-weight: bold;
  color: #4B4B4B;
  text-transform: lowercase;
}

h2 {
  font-size: 0.75em;
  text-align: center;
  font-weight: 300;
  color: #ababab;
}

h3 {
  font-size: 0.5em;
  text-align: center;
  font-weight: 300;
  color: #ababab;
}

h5 {
  font-size: 0.6em;
  text-align: center;
  font-weight: 300;
  color: #ababab;
}

h4 {
  text-align: center;
  transition: opacity 1s ease-in-out;
  opacity: 0;
  color: #ababab;
}
.status {
  font-weight: bold;
}
.details {
  font-weight: 300;
  color: #ababab;
}
.on-time {
  color: #ACDBAA;
}
.delayed {
  color: #FEE683;
}
.cancelled {
  color: #FE8383;
}
a {
  color: #ababab;
  text-decoration: none;
  padding: 2px 2px 2px 2px;
}

#contactus {
  scroll-margin-top: -500px;
}

button {
  border: 2px 2px 2px 2px;
  border-color: #4B4B4B;
  border-radius: 5px;
  background-color: transparent;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  line-height: normal;
  color: #4B4B4B;
  padding: 5px 5px 5px 5px;
}

.button-link {
  font-size: 1em;
  display: inline-block;
  padding: 10px 20px;
  background-color: #F8F8F8; /* Button background color */
  /* border-color: #4B4B4B;  Border color  */
  color: #4B4B4B; /* Text color */
  text-align: center;
  text-decoration: none;
  border-radius: 5px; /* Rounded corners */
  font-weight: bold;
  border: 2px solid #4B4B4B;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
  padding: 5px 5px 5px 5px;
}

.button-link:hover {
  background-color: #4B4B4B; /* Background color on hover */
  color: #F8F8F8; /* Text color on hover */
  border-color: #F8F8F8; /* Border color on hover */
}

input {
  width: 43%;
  padding: 16px 12px 12px 12px;
  border: 2px solid #d3d3d3;
  border-radius: 4px;
  background-color: white;
  color: #000; /* Change to black */
  font-size: 0.8em;
  text-align: center;
  text-transform: uppercase;
}

input:focus {
  border: 3px solid #ACDBAA;
}

#userInput::placeholder {
  color: #d3d3d3;
  font-size: 1em;
  text-align: center;
  text-transform: uppercase;

}

#banner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center content vertically */
  /*  width: 60%; */
  margin: 0 auto; /* Center the banner horizontally */
  padding: 20px; /* Add padding for better spacing */
}

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  border-radius: 15px;
  background-color: white;
  border: 8px solid;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

#delayed-banner {
  border-color: #FE8383;
  color: #FE8383;
}

#ontime-banner {
  border-color: #ACDBAA;
  color: #ACDBAA;
}

.icon {
  width: 70px;
  height: 70px;
  margin-right: 10px;
}

.text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center text within the container */
}

.text p {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: inherit;
}

.status_banner {
  margin: 5px 0 0 0;
  font-size: 50px;
  font-weight: bolder;
  text-transform: uppercase;
}
.status {
  margin: 5px 0 0 0;
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
}

/* Utility classes for additional colors */
.text-green { color: #ACDBAA; }
.text-red { color: #FE8383; }
.text-yellow { color: #FEE683; }
.text-blue { color: #7BB6E9; }
