html {
  scroll-behavior: smooth;
}

/* Fixed Back to Top */
#backToTop {
  display:none;
  position:fixed;
  bottom:30px;
  right:30px;
  background:#004080;
  color:#fff;
  border:none;
  padding:10px 16px;
  border-radius:6px;
  cursor:pointer;
  z-index:1000;
}

#backToTop:hover {
  background-color: #0055a5;
}

/*----------MAIN SECTION-------------*/

#airport-main {

      width: 100%;
      max-width: 1500px;
      margin: 20px auto 0 auto;
      padding: 20px 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-left:  0px;
    }

/* Section container */
.section-airport {
  background: #f9f9f9;
  width: 80%;
  border: solid 2px #4B8589;
  margin: 25px auto 20px auto;   /* pushes section below top bar */
  padding: 20px;
  display: block;                 /* allows natural wrapping */
  box-sizing: border-box;
}

/* Heading wrapper */
.section-airport-head {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-airport-head h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
  color: steelblue;
  border-bottom: 2px dashed steelblue;
  padding-bottom: 5px;
  width: 100%;
}

.text-container-airport {
  display: flex;
  flex-direction: column;
  align-items: center;        /* center inner content */
  justify-content: center;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 30px;
  width: 93%;
  margin: 0 auto;             /* centers the box itself */
  box-sizing: border-box;
  line-height: 1.4;
  font-size: 0.95rem;
  color: #333;
  box-shadow: 2px 4px 10px 2px #999;
  text-align: center;         /* centers all text inside */
}

/* Flex container for the two items */
#grid-airport-container {
  display: flex;
  flex-wrap: wrap;           
  justify-content: center;    /* centers items in the row */
  align-items: flex-start;    
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Items */
.airport-item1, .airport-item2 {
  flex: 1 1 45%;
  min-width: 280px;
  background: #e2e2e2;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  text-align: center;         /* ensures item content is centered */
}

.airport-item1 {
  flex: 1 1 60%;
  min-width: 300px;
  height: 200px;
}

.airport-item2 {
  flex: 1 1 35%;
  min-width: 280px;
  height: 420px;
}

.airport-item1 p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  margin-left: 30px;
}



/*--.text-container-cork h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInLeft 1s ease-in-out;
    font-weight: 450;
    color: black;
    border-bottom: 2px dashed black;
    padding-bottom: 5px;
    margin-left: 30px;
    width: 90%;
  }

   .text-container-cork {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 30px;
    width: 96%;
    box-sizing: border-box;
    line-height: 1.4;
    font-size: 0.95rem;
    color: #333;
    box-shadow: 2px 4px 10px 2px #999;
  }--*/

  /*---------TABLES----------*/


.tg  {
  border-collapse:collapse;
  border-spacing:0;
  width: 98%;
  font-size: 14px;
  line-height: 1.4;  
  border: 2px solid black; 
  border-collapse: collapse;
  font-family:Arial, sans-serif;
  margin-right: 10px;
  margin-left: 2px;
}

.tg td {
  border-color:black;
  border-style:solid;
  border-width:1px;
  font-family:Arial, sans-serif;
  font-size:14px;
  line-height: 1.4; 
  overflow:hidden;
  padding: 0px 5px;
  word-break:normal;
}

.tg th{
  border-color:black;
  border-style:solid;
  border-width:1px;
  font-family:Arial, sans-serif;
  font-size:14px;
  font-weight:normal;
  overflow:hidden;
  padding: 0px 5px
  ;word-break:normal;
}

.tg td, 
.tg th {
  vertical-align: middle;   /* aligns text vertically center */
  text-align: center;       /* optional: center horizontally */
}

/*-------TL-------*/

.tl  { 
  border-collapse:collapse;
  border-spacing:0;
  width: 85%;
 margin-left: 0px;
 margin-bottom: 15px;
}

.tl td {
  border-color: #d7d7dc;
  border-style:solid;
  border-width:1px;
  font-family:Arial, sans-serif;
  font-size:12px;
  overflow:hidden;
  padding:10px 5px;
  word-break:normal;
}

.tl th{
  border-color: #d7d7dc;
  border-style:solid;
  border-width:1px;
  font-family:Arial, sans-serif;
  font-size:12px;
  font-weight:normal;
  overflow:hidden;
  padding:10px 5px;
  word-break:normal;
}

.tl .tl-k67b {
  border-color:#d7d7dc;
  color:#000000;
  text-align:center;
  vertical-align:top
}

.tl .tl-qk9t {
  background-color:#0d2c99;
  border-color:#d7d7dc;
  color:#ffffff;
  text-align:center;
  vertical-align:top
}

/* Style specifically for METAR section */
#metar-section {
  background-color: #f9f9f9;
  width: 100%;
  border: solid 2px #4B8589;
  margin: 0;
  padding: 20px 0;
  margin-bottom: 20px;
}

.metar-container {
  display: flex;
  flex-direction: column;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 30px;
  width: 94%;
  margin: 0 auto;
  box-shadow: 2px 4px 10px 2px #999;
}

.airport-item3 {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centers horizontally */
  justify-content: center;
  gap: 15px;
  padding-top: 10px;
  width: 100%;           /* take full width for centering */
}

.airport-item3 a {
  margin: 0 auto;        /* make sure link centers */
}

/* CheckWX widget container */
.checkwx-container {
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  width: 350px;
  text-align: center;
}

/* Link to full METAR details */
.checkwx-link {
  font-size: 16px;
  font-weight: 500;
  color: #004080;
  text-decoration: none;
  margin-top: 10px;
}

.checkwx-link:hover {
  text-decoration: underline;
}

/*----------AIRPORT PRECEDURES----------*/

.procedures-layout {
  display: flex;
  flex-direction: row;   /* side by side */
  align-items: flex-start;
  gap: 20px;             /* spacing between sidebar and content */
  width: 100%;
}

.data-grid-container {
  display: block;
  background-color: #f9f9f9;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  border-radius: 8px;
  border: 1px solid #ccc;
  flex: 1;               /* take all remaining width */
  max-height: 90vh;
}

.data-column-list {
  
  flex: 0 0 275px;       /* fixed width */
  max-height: 90vh;
  overflow-y: auto;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 10px;
  }

.data-column-list h4 {
  color: black;
  font-size: 0.9rem;
  text-align: left;
  margin-top: 5px;
  font-family: 'Nunito Sans', sans-serif !important;
 }

.data-column-list button {
  background-color: #f9f9f9;
  color: #808080;
  border: none;
  font-size: 0.8rem;
  font-family: 'Nunito Sans', sans-serif !important;
  text-align: left;
  cursor: pointer;
  margin-top: 0px;
 margin-bottom: 0px;
  position: relative;
  padding-left: 20px; /* space for arrow */
}

/* Chevron arrow */
.data-column-list button::before {
  content: "❯";  /* thin chevron */
  color: #808080;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.data-panel li.arrow::before {
  content: "►";  /* Solid arrowhead */
  color: #000000;
  font-weight: 500;
  margin-right: 5px;
}

/* Optional scrollbar styling */
.data-grid-container::-webkit-scrollbar {
  width: 8px;
}

.data-grid-container::-webkit-scrollbar-track {
  background: #e0e0e0;
}

.data-grid-container::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 4px;
}

.data-grid-container::-webkit-scrollbar-thumb:hover {
  background-color: #888;
}

.data-panel ul {
  list-style: none;   /* remove browser bullets */
  margin: 0;          /* no default margin */
  padding: 0;         /* no default indent */
}

.data-panel li {
  margin: 4px 0;
  font-size: 0.8em;
  font-weight: 200;
  text-indent: 0;     /* kill any text-indent */
  text-align: left;
  font-family: 'Nunito Sans', sans-serif !important;
  width: 100%;
}

.data-panel li.arrow::before {
  content: "►";          /* custom arrow */
  color: #0d2c99;        /* match your theme */
  font-weight: 600;
  margin-right: 6px;
  display: inline-block; /* ensures space between arrow and text */
  width: 1em;            /* keeps arrows aligned vertically */
}


.fade-underline{
  color:#0d2c99 !important;
  font-family: 'Nunito Sans', sans-serif !important;
  font-size:2.0em;
  font-weight: 500;
  display:block;
  text-align: left;
  width:100%;
  margin:0 0 12px;
  padding-bottom:6px;
  background-image: linear-gradient(to right, #0d2c99, rgba(13,44,153,0));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 2px;
}

.fade-underline1{
  color:#0d2c99 !important;
  font-family: 'Nunito Sans', sans-serif !important;
  font-size:1.35em;
  text-align: left;
  display:block;
  width:100%;
  margin:15px 0 12px;
  padding-bottom:6px;
  background-image: linear-gradient(to right, #616161, rgba(13,44,153,0));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
}

.fade-underline2{
  color:#0d2c99 !important;
  font-family: 'Nunito Sans', sans-serif !important;
  font-size:1.17em;
  text-align: left;
  display:block;
  width:100%;
  margin:15px 0 12px;
  padding-bottom:6px;
  background-image: linear-gradient(to right, #616161, rgba(13,44,153,0));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
}

.fade-underline3{
  color:#0d2c99 !important;
  font-family: 'Nunito Sans', sans-serif !important;
  font-size:1.50em;
  display:block;
  text-align: left;
  width:100%;
  margin:0 0 12px;
  padding-bottom:6px;
  background-image: linear-gradient(to right, #0d2c99, rgba(13,44,153,0));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 2px;
}

.fade-underline4{
  color:#0d2c99 !important;
  font-family: 'Nunito Sans', sans-serif !important;
  font-size:1.75em;
  font-weight: 500;
  display:block;
  text-align: left;
  width:100%;
  margin:0 0 12px;
  padding-bottom:6px;
  background-image: linear-gradient(to right, #0d2c99, rgba(13,44,153,0));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 2px;
}

/*--.data-panel .fade-underline1{
  color:#0d2c99 !important;
  font-size:1.00em;
  text-align: left;
  display:block;
  width:100%;
  margin:0 0 12px;
  padding-bottom:6px;
  background-image: linear-gradient(to right, #616161, rgba(13,44,153,0));
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 100% 1px;
}--*/

/*---------------------------------------------------------------*/

a.plain-link {
  all: unset;             /* remove ALL inherited styles */
  color: blue;            /* make it look like a link */
  cursor: pointer;        /* show pointer on hover */
}

a.plain-link:hover {
  text-decoration: underline; /* optional: underline on hover */
}
