/* BEGIN reset */

/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: stable;
}

/*
    10. Create a root stacking context
  */
#root,
#__next {
    isolation: isolate;
}

/* END reset */

:root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

    --primary: #004477;
    --secondary: #005500;
    --error: #BB0000;

    --white: #FFFFFF;
    --black: #000000;

    --forest-green: #015234;
    --traffic-orange: #E65100;

    --header-height: 60px;

    color: var(--black);

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    overscroll-behavior: none;
}

/* BEGIN utilities */

.text-white {
    color: var(--white);
}

.text-black {
    color: var(--black)
}

.bold {
    font-weight: bold;
}

.d-flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.align-center {
    align-items: center;
}

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

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.link {
    color: blue;
}

.error-message {
    color: var(--error);
}

.grid {
    margin: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    grid-gap: .5rem;
    max-width: 1000px;
}


@media (min-width: 768px) {
    .grid {
        grid-template-columns: repeat(12, 1fr);
        grid-gap: 1rem;
    }

    .col-2 {
        grid-column: auto/span 2;
    }

    .col-3 {
        grid-column: auto/span 3;
    }

    .col-4 {
        grid-column: auto/span 4;
    }

    .col-6 {
        grid-column: auto/span 6;
    }

    .col-8 {
        grid-column: auto/span 8;
    }

    .col-12 {
        grid-column: auto/span 12;
    }
}

.mx-auto {
    margin: 0 auto;
}

.my-auto {
    margin: auto 0;
}

.flex-wrap {
    flex-wrap: wrap;
}

.card {
    width: 100%;
    border-radius: .5rem;
    overflow: hidden;
    min-height: fit-content;
}

.card-title {
    padding: .5rem;
    padding-left: 1rem;
    font-size: large;
}

.card-text {
    padding: .5rem;
}

.link-list {
    gap: .25rem;
    padding: .5rem 1rem;
}

.link-list.line-break {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    flex-direction: column;
}

.link-list.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.link-list a {
    text-decoration: none;
    color: inherit;
}

.link-list.line-break a {
    padding-left: 1.5rem;
}

.link-section {
    align-self: stretch;
    width: 100%;
    color: skyblue;
    font-size: 1rem;
}

.hero-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    max-height: 250px;
    max-width: 250px;
    /* Maintain aspect ratio */
    width: auto;
    height: auto;
}

/* END utilities */

/* BEGIN page structure */

/* Force page to be full height */
html,
body {
    height: 100%;
}

/* Set content to be a flex column */
body {
    display: flex;
    flex-direction: column;
}

/* Force the main to take up as much space as possible */
main {
    margin: 1rem;
    margin-top: 2rem;
    flex: 1 0 auto;
}

/* Disallow footer shrinking */
footer {
    flex-shrink: 0;
}

/* END page structure */

/* BEGIN header.php */

#logo-wrapper {
    left: .5rem;
    top: .5rem;
    z-index: 2000;
    position: absolute;
}

#logo-wrapper>img {
    max-width: min(250px, 35vw);
}

#specials-button {
    position: absolute;
    top: 100px;
    right: 1rem;
    padding: .25rem;
}

#specials-button>img {
    max-height: min(80px);
}

.specials-title {
    color: orangered;
    font-size: large;
    font-weight: bold;
}

.specials-subtitle {
    color: brown;
}

#supporting-info {
    position: absolute;
    top: 1rem;
    right: 2rem;
    line-height: 1.2;
    text-align: left;
    font-size: large;
}

.header-content {
    background-image: url('/assets/images/design/pilothouse_top.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 150px;
    position: sticky;
}

.navbar {
    min-height: var(--header-height);
    background-color: var(--primary);
    /* Vertical padding only */
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: end;
}

.nav-container {
    /* Horizontal padding inside container */
    padding: 0 1rem;
    display: flex;
    /* Push brand and links apart */
    justify-content: space-between;

    /* Vertically center items */
    align-items: center;

    position: relative;
}

.nav-brand {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Navigation Links (Desktop Default) */
.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;

    column-gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;

    color: inherit;
}

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

.menu-toggle {
    /* Hide hamburger on desktop */
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.2rem;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 800px) {
    .nav-container {
        /* Allow items to wrap if needed, though typically handled by hiding links */
        flex-wrap: wrap;
    }

    .menu-toggle {
        /* Show hamburger on mobile */
        display: block;
        order: 1;
    }

    .nav-links {
        padding-left: 0;
        /* Hide links by default on mobile */
        display: none;

        /* Stack links vertically */
        flex-direction: column;
        text-align: center;
        /* Slightly different background for dropdown */
        background-color: #444;
        /* Take out of flow */
        position: fixed;
        /* Position below navbar (adjust based on navbar height) */
        top: var(--header-height);
        left: 0;
        right: 0;
        z-index: 999;
        /* Ensure it's below the sticky navbar but above content */
        overflow: hidden;
    }

    .nav-links.active {
        /* Make display visible while active */
        display: flex;
    }

    .nav-links li {
        margin-left: 0;
        /* Reset horizontal margin */
        flex: 1 1 auto;
    }

    .nav-links a {
        display: block;
        /* Make link take full width of li */
        padding: 0.5rem 1rem;
    }

    /* Animate hamburger to 'X' when active */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* END header.php */

/* BEGIN footer.php */

.footer-content {
    position: relative;
    justify-content: space-around;
}

.footer-content:not(.full-height) {
    background-image: url('/assets/images/design/background_waves.jpg');
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}

.footer-content.full-height::before {
    content: "";
    position: absolute;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-image: url('/assets/images/design/background_waves.jpg');
    top: max(-70vh, -800px);
    left: 0;
    right: 0;
    bottom: 0;

    z-index: -1;
}

.footer-content>p {
    text-align: center;
    padding: .5rem;
    font-weight: bold;
}

/* END footer.php */

/* BEGIN index.php */

.image-card {
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
    padding: .5rem;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

.h-divider {
    background-color: #444;
    height: 2px;
}

/* END index.php */

/* BEGIN manufacturer.php */

.point-sheet-stack {
    row-gap: .5rem;
}

.point-sheet {
    border-radius: .5rem;
    border: 2px solid var(--forest-green);
    padding: .5rem;
}

.point-sheet a {
    text-decoration: none;
    color: inherit;
}

.point-sheet-title {
    font-weight: bold;
}

.bg-green-gradient {
    background: var(--forest-green) !important;
    background: linear-gradient(0deg,
            rgba(1, 82, 52, 1) 0%,
            rgba(65, 171, 136, 1) 100%) !important;
}

.title-bar {
    max-width: 600px;
    border-radius: .5rem;
    padding: .5rem;
    margin-bottom: 1rem;
}

/* END manufacturer.php */

.body_headline {
    margin-left: 5%;
    margin-top: 3%;
    font-size: 18px;
    font-weight: bold;
    line-height: 120%;
}

.bodytxt_2 {
    font-size: 17px;
    color: #178c97 !important;
}

.bodytxt_3 {
    font-size: 17px;
    color: #178c97 !important;
    margin: 0 15px;
}

.bodytxt_4 {
    font-size: 15px;
    color: #353535 !important;
    line-height: 120%;
    max-width: 520px;
    margin: 0 2% 0 3%;
}

.list_txt {
    font-size: 17px;
    color: #178c97;
    margin: 0 0 0 20px;
}

A.maroon_link:link {
    font-family: Arial, Helvetica;
    color: #b66200;
    text-decoration: none;
    font-size: 12pt;
    font-weight: bold;
}

A.maroon_link:visited {
    font-family: Arial, Helvetica;
    color: #b66200;
    text-decoration: none;
    font-size: 12pt;
    font-weight: bold;
}

A.maroon_link:active {
    font-family: Arial, Helvetica;
    color: #b66200;
    text-decoration: none;
    font-size: 12pt;
    font-weight: bold;
}

A.maroon_link:hover {
    font-family: Arial, Helvetica;
    color: #0b837c;
    text-decoration: none;
    font-size: 12pt;
    font-weight: bold;
}

A.pagelink:link {
    color: #0b837c;
    font-size: 15pt;
    text-decoration: none;
}

A.pagelink:visited {
    color: #0b837c;
    font-size: 15pt;
    text-decoration: none;
}

A.pagelink:active {
    color: #0b837c;
    font-size: 15pt;
    text-decoration: none;
}

A.pagelink:hover {
    color: #b66200;
    font-size: 15pt;
    text-decoration: none;
}


.modal {
    font-size: 14px;
    color: #232323;
    font-family: "Roboto";
    display: none;
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    padding-top: -20px;
    /* Location of the box */
    left: 50vw;
    top: 50vh;
    translate: -50% -50%;
    /*background*/
    width: 100%;
    /* Full width */
    max-width: 800px;
    height: 65%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(200, 200, 200, 0.4);
    /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    /* top margin */
    border: 1px solid #cdcdcd;
    border-radius: 8px;
    width: fit-content;
    height: fit-content;
    max-width: 600px;
}

#click {
    display: none;
}

.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    font-family: sans-serif;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.resource-logo {
    max-width: 96px;
    max-height: 96px;
}

#slideshow-container {
    width: 100%;
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;

    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-layer.visible {
    opacity: 1;
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;


    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.overlay-content.visible {
    opacity: 1;
    /* Make overlay visible */
}


.red-box {
    padding: 1rem;
    border: 1px solid red;
    border-radius: 25px;
}

.text-over-blue-up {
    position: absolute;
    top: 25%;
    left: 8%;
    max-width: 85%;

    font-size: 24px;
    color: #2c518f;
}

.text-over-white {
    position: absolute;
    top: 25%;
    left: 8%;
    max-width: 85%;

    font-size: 24px;
    color: white;
    text-shadow: 2px 2px 4px black, 1px 1px 16px black, 0 0 5px black;
}

@media (max-width: 700px) {
    .text-over-white {
        font-size: 14px;
    }

    .text-over-blue-up {
        font-size: 14px;
    }
}

.scdn {
    text-shadow: 2px 2px 4px black, 1px 1px 16px black, 0 0 5px black;
}

.video-preview {
    width: 100%;
    max-height: 300px;
    height: auto;
    aspect-ratio: 16/9;
}

.center-all {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.my-2 {
    margin: 1rem 0;
}

.mt_icon {
    object-fit: contain;
    max-width: 100px;
    width: auto;
    height: auto;
}

.airtime-option {
    align-items: start;
    column-gap: 1rem;
    padding: .5rem;
}

.device_icon {
    width: 100%;
    max-width: 257px !important;
}

.body_headline {
    color: #178c97;
    font-size: 22px;
    margin-bottom: 1rem;
    font-weight: normal;
}

.inmarsat_device_image {
    border: 1px solid #acacac;
    border-radius: 12px;
    padding: 1rem;
    width: fit-content;
}

#movable-div {
    position: relative;
    width: 100%;
    /* Take full width of .target-div's content area */
    height: 100%;
    /* Take full height of .target-div's content area */
}

.target-link {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    max-width: 110px;
    width: 100%;
    height: 100%;
    position: absolute;
}

.carousel-track {
    height: 100%;
    width: 100%;
}

.carousel-item {
    height: 100%;
    width: 100%;
}

.carousel-link {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.target-div-container {
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: 305px;
}

.target-div {
    min-width: 50px;
    min-height: 180px;

    justify-content: space-around;

    margin: .5rem 1rem;

    border-radius: .5rem;

    border: 2px solid var(--traffic-orange);
    box-sizing: content-box;
}

.list-panel {
    margin: 0.5rem 0;
    flex-grow: 0;
    flex-shrink: 2;
    flex-basis: 250px;
    min-width: 150px;
}

.inner-manufacturer-list-card {
    height: fit-content;
}

.carousel-button {
    position: absolute;
    top: 50%;
    border: none;
    background: transparent;
    color: var(--traffic-orange);
    font-size: 2rem;

    /* Do a 5px outline around the arrows to separate from the background */
    -webkit-text-stroke: 5px white;
    paint-order: stroke fill;
}

.carousel-button.prev {
    left: 0;
    transform: translate(-50%, -50%);
}

.carousel-button.next {
    right: 0;
    transform: translate(50%, -50%);
}

.manufacturer-list-card {
    margin: 1rem 0;
    width: 100%;
    border-radius: .5rem;
    overflow: hidden;

    border: 2px solid var(--forest-green);
}

.selected-item {
    color: var(--traffic-orange);
}

.hidden {
    display: none !important;
}

.space-between {
    justify-content: space-between
}

ul {
    list-style-type: square;
}

.column-instructions {
    width: min(75%, 400px);
    margin: 0 auto;
}

.special-item:not(:last-child) {
    border-bottom: 1px solid #777;
    margin-bottom: .5rem;
    padding-bottom: .5rem;

}