* {
    margin-top: 0%;
    margin-bottom: 0%;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    user-select: none;
    caret-color: transparent;
    
}

body {
    background-color: #e5e5e5;
    min-height: 100vh;
    padding: 3rem;
    
}

.header-content {
    color: #666;
    text-align: center;
}

.header-content p {
    color: #666;
    line-height: 1.5px;
    text-align: center;
}

.header-content img {
    display: block;
    margin: 0 auto;
    max-width: 100%;   
    height: auto;       
    width: 400px;       
}

.navbar {
    background-color: #e5e5e5;
    overflow: hidden;
    position: left;
    z-index: 1000;
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: left;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    display: block;
    padding: 20px;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links a:hover {
    background-color: #e5e5e5;
    color: #e5e5e5;
}

.burger {
    display: none;
    cursor: pointer;
    margin: 20px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: -100%;
        transition: transform 0.5s ease-in;
    }

    .nav-links.active {
        display: flex;
        left: 0;
        background-color: #e5e5e5;
    }

    .burger {
        display: block;
    }

    /* Added your header scaling here */
    .header-content {
        padding: 0 15px; /* Adds a little margin on the sides */
    }

    .header-content p {
        font-size: 14px; /* Shrinks the text for mobile */
        line-height: 1.4; /* Fixed the 'px' issue for better spacing */
    }
}
.features {
    padding: 4rem 0;
    background: #e5e5e5;
   
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, max-content));
    justify-content: center;             
    gap: 5rem;                    
    margin: 0 auto;  
    max-width: 80%;
    margin: 0 auto;
    width: 100%;

}

.feature-card {
    padding: 2rem;
    background-color: lightsteelblue;
    border-radius: 10px;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    max-width: 300px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.feature-card * {
    pointer-events: none; /* prevents inner elements from blocking the link */
}

.feature-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    user-select: none;
}

.feature-link:hover .feature-card {
    transform: translateY(-10px);
}

.feature-link:visited,
.feature-link:hover,
.feature-link:active {
    text-decoration: none;
    color: inherit;
}


.iframe-container {
    width: 100%;
    display: block;
    text-align: center;
}


.iframe-container iframe {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16/9;
    margin: 2rem auto;
    max-width: 960px;
    

}

.iframe-container-alt {
    width: 100%;
    display: block;
    text-align: center;
}


.iframe-container-alt iframe {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16/9;
    margin: 2rem auto;
    max-width: 700px;
    

}


 /* ============================
   MYTABLE (1080PX MAX WIDTH)
   ============================ */
#myTable.dataTable {
    width: 100%;
    max-width: 1080px;
    margin: 2rem auto;
    table-layout: auto; /* keeps columns tidy */
    border-radius: 30px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: #3d3b2315;
}

/* ============================
   VESSEL TABLE (FULL WIDTH)
   ============================ */
#vesselTable.dataTable {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 2rem auto;
    table-layout: auto; /* allows natural column expansion */
    border-radius: 30px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 16px;
    background-color: #3d3b2315;
}

/* Vessel table header */
#vesselTable.dataTable thead th {
    color: #084f82;
    padding: 5px;
    border-bottom: 2px solid #ddd;
}

/* Vessel table cells */
#vesselTable.dataTable tbody td {
    color: #60649a;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

/* Hover effect */
#vesselTable.dataTable tbody tr:hover {
    background-color: #e5e5e5;
}


/* myTable header */
#myTable.dataTable thead th {
    color: #084f82;
    padding: 5px;
    border-bottom: 2px solid #ddd;
}

/* myTable cells */
#myTable.dataTable tbody td {
    color: #60649a;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

/* Hover effect */
#myTable.dataTable tbody tr:hover {
    background-color: #e5e5e5;
}

#vesselTable_wrapper {
    max-width: 1400px;   /* or whatever width feels right */
    margin: 0 auto;      /* centers the controls */
}

/* Optional: make the controls sit closer together */
#vesselTable_wrapper .dataTables_filter,
#vesselTable_wrapper .dataTables_length,
#vesselTable_wrapper .dataTables_paginate,
#vesselTable_wrapper .dataTables_info {
    padding-left: 10px;
    padding-right: 10px;
}



.dataTables_wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Styling for table headers */
table.dataTable thead th {
  color: #084f82;
  padding: 5px;
  border-bottom: 2px solid #ddd;
}

   /* Styling for table headers */
table.dataTable caption {
  color: #084f82;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: 24px;
  font-weight: bold;
  text-shadow: #084f82;
  margin-bottom: 1.8rem;
}

/* Styling for table cells */
table.dataTable tbody td {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: #60649a;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

/* Hover effect for table rows */
table.dataTable tbody tr:hover {
   background-color: #e5e5e5;;
}

   /* Footer styling */
.footer {
    background: #e5e5e5;
    color: #60649a;
    text-align: center;
    justify-content: center;
    gap: 2.5rem;
}

.footer a {
    display: inline-flex;
    transition: all 0.5s ease-in-out;
    font-size: 2rem;
    text-decoration: none;;
    color: inherit;
}

.highlight-downriver {
    background-color: rgba(255, 165, 0, 0.28) !important; /* buoy orange */
}

.highlight-upriver {
    background-color: rgba(0, 128, 255, 0.28) !important; /* channel marker blue */
}

.legend-container {
    text-align: left;
}

.legend-fieldset {
    border: none
    
}

.legend-item {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.color-box {
    width: 10px;
    height: 10px;
    margin-right: 5px;
}

.hover-info {
    display: block;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    max-width: 200px; /* Adjust as needed */
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    padding: 5px;
  }
  
  .tooltip.top {
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Make sure the tooltip is on top of other elements */
  .tooltip > * {
    z-index: 1000;
  }

.ais-map {
    max-width: 50%;
    margin: 0 auto;
    padding: 10px;
    border-radius: 8px;
    background: #f8f8f8;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    margin-bottom: 5rem;
    min-width: 300px;

}

.download-container {
    text-align: center;
    margin: 2rem 0;
}

.download-btn {
    background-color: lightsteelblue;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    user-select: none;
}

.download-btn:hover {
    background-color: lightsteelblue;;
    transform: translateY(-3px);
}

.download-btn:active {
    transform: translateY(0);
}

.side-panel {
  position: fixed;
  top: 0;
  width: 20vw; /* or px */
  height: 100vh;
  overflow: hidden;
  pointer-events: none; /* optional: makes them non-interactive */
}
.left-panel { left: 0; }
.right-panel { right: 0; }

@media (max-width: 1800px) {
  .side-panel {
    display: none;
  }
}
.side-panel video {
  width: 100%;        /* stretch video so each half fills a panel */
  height: 100%;
  object-fit: cover;
  opacity: .35;
  filter: brightness(.8) saturate(.7);
}
.left-panel video {
  object-position: left center;
  mask-image: linear-gradient(to right, black 0%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 92%, transparent 100%);
}

.right-panel video {
  object-position: right center;
   mask-image: linear-gradient(to left, black 0%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 0%, black 92%, transparent 100%);
}

.image-wrapper {
  width: 100%;       /* Changed from 480px */
  max-width: 480px;  /* Keeps it from getting too big on desktop */
  margin: 0 auto;
}

.image-wrapper img {
  display: block;
  width: 70%;           /* scales to wrapper */
  height: auto;          /* keeps aspect ratio */
}

.video-wrapper {
position: relative;
width: 100%;
max-width: 900px;
margin: 20px auto;
aspect-ratio: 16 / 9;
overflow: hidden;
border-radius: 8px;
background: #f8f8f8;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.video-wrapper iframe {
width: 100%;
height: 100%;
border: none;
}

.results-img {
border-radius: 8px;
background: #f8f8f8;
box-shadow: 0 2px 6px rgba(0,0,0,0.15);
padding: 10px;
}


.iframe-wrapper {
    width: 100%;
    max-width: 1260px;
    overflow: hidden;
    position: relative;
    margin: 20px auto;
    padding-top: 2rem;
   
}

/* Adjust scale to taste */
.scaled-iframe {
    width: 100%;      /* must be larger than wrapper */
    height: 100%;     /* must be larger than wrapper */
    transform: scale(.75);   /* zoom in */
    transform-origin: top left;
    border: none;
}

.iframe-container-dashboard {
    width: 100%;
    text-align: center;
}


.iframe-container-dashboard iframe {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16/9;
    margin: 2rem auto;
    max-width: 1440px;
    

}