/* ==================================================
   GLOBAL
   ================================================== */

html {
    color-scheme: light;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    color: #000000;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.03),
            rgba(255,255,255,0.03)
        ),
        url("../background.jpg");

    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}


/* ==================================================
   PAGE
   ================================================== */

.page {
    width: 100%;
    max-width: 1200px;

    margin: 0 auto;

    padding: 25px 15px 30px;

    box-sizing: border-box;
}


/* ==================================================
   HEADER
   65% WIDTH
   ================================================== */

.header {
    width: 65% !important;

    margin: 0 auto 22px !important;

    padding: 7px 20px;

    box-sizing: border-box;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 2.4fr)
        minmax(0, 1fr);

    align-items: center;

    gap: 10px;

    background:
        rgba(255,255,255,0.55);

    border:
        1px solid rgba(255,255,255,0.65);

    border-radius: 15px;

    box-shadow:
        0 4px 18px rgba(0,0,0,0.14);

    backdrop-filter: blur(4px);
}


.header-logo {
    display: flex;

    width: 100%;

    align-items: center;
    justify-content: center;
}


.header-logo.left {
    justify-self: center;
}


.header-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;

    /*
     * Visually removes white backgrounds from
     * black artwork on light translucent panels.
     */
    mix-blend-mode: multiply;
}


/* Hei Matau Manaia */

.header-logo.left img {
    width: 100px;
    max-height: 100px;
}


/* BELIGHT text */

.header-logo.center img {
    width: 430px;
    max-height: 105px;
}


/* Ship */

.header-logo.right img {
    width: 100px;
    max-height: 160px;
}


/* ==================================================
   POSITION CARD
   45% WIDTH
   ================================================== */

.position-card {
    width: 45% !important;

    margin: 0 auto 22px !important;

    padding: 17px 20px 16px;

    box-sizing: border-box;

    background:
        rgba(255,255,255,0.55);

    border:
        1px solid rgba(255,255,255,0.65);

    border-radius: 15px;

    box-shadow:
        0 5px 20px rgba(0,0,0,0.17);

    backdrop-filter: blur(4px);

    color: #000000;
}


/* ==================================================
   TITLES
   ================================================== */

.position-title,
.received-title {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;
}


.position-title {
    margin: 0 0 13px;
}


.received-title {
    margin: 14px 0 13px;
}


.position-title h1,
.received-title h2 {
    margin: 0;

    font-size: 15px;

    line-height: 1.3;

    font-weight: 700;

    color: #000000;
}


/* ==================================================
   ICONS
   ================================================== */

.compass-icon,
.clock-icon {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;
}


.compass-icon svg,
.clock-icon svg {
    display: block;

    width: 100%;
    height: 100%;
}


/* ==================================================
   COORDINATES
   Three compact rows
   ================================================== */

.coordinates {
    display: flex;

    flex-direction: column;

    gap: 0;

    margin: 0;
    padding: 0;
}


.coordinate {
    width: 100%;

    text-align: center;

    margin: 0;
    padding: 0;
}


.coordinate-value {
    display: block;

    margin: 0;
    padding: 0;

    font-size: 15px;

    line-height: 1.65;

    font-weight: 700;

    white-space: nowrap;

    color: #000000;
}


/*
 * The descriptive text from the PHP output
 * is deliberately not displayed.
 */

.coordinate-label {
    display: none;
}


/* ==================================================
   RECEIVED
   ================================================== */

.received {
    margin: 0;
    padding: 0;

    border: 0;
}


/* ==================================================
   TIMES
   Three compact rows
   ================================================== */

.times {
    display: flex;

    flex-direction: column;

    gap: 0;

    margin: 0;
    padding: 0;
}


.time {
    width: 100%;

    text-align: center;

    margin: 0;
    padding: 0;
}


.time-value {
    display: block;

    margin: 0;
    padding: 0;

    font-size: 15px;

    line-height: 1.65;

    font-weight: 700;

    white-space: nowrap;

    color: #000000;
}


/* ==================================================
   MINUTES AGO
   ================================================== */

.minutes-ago {
    display: block;

    margin: 0;
    padding: 0;

    text-align: center;

    font-size: 15px;

    line-height: 1.65;

    font-weight: 700;

    color: #000000;
}


/* ==================================================
   MAP
   ================================================== */

.map-container {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 12px;
    overflow: hidden;
    border-radius: 13px;
    border: 0;
    background: rgba(255,255,255,0.55);
    box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.map-container iframe {
    display: block;

    width: 100%;

    height: 500px;

    border: 0;
}


/* ==================================================
   FOOTER
   ================================================== */

.footer {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 20px;

    margin-top: 24px;

    color:
        rgba(255,255,255,0.90);

    font-size: 11px;

    letter-spacing: 5px;

    text-shadow:
        0 1px 4px rgba(0,0,0,0.6);
}


.footer-line {
    width: 70px;

    height: 1px;

    background:
        rgba(255,255,255,0.75);
}


/* ==================================================
   LEGAL LINK BOX
   ================================================== */

.footer > a {
    display: inline-block;

    max-width: calc(100% - 20px);

    padding:
        5px
        12px;

    box-sizing: border-box;

    background:
        rgba(255,255,255,0.55);

    border:
        1px solid rgba(255,255,255,0.65);

    border-radius: 6px;

    box-shadow:
        0 2px 8px rgba(0,0,0,0.10);

    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);

    color: #000000;

    text-decoration: none;

    text-align: center;
}


.footer > a:visited,
.footer > a:hover,
.footer > a:active {
    color: #000000;
}


.footer > a:hover {
    text-decoration: underline;
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 900px) {

    .header {
        width: 75% !important;
    }

    .position-card {
        width: 60% !important;
    }
}


/* ==================================================
   SMALL TABLET / LARGE PHONE
   ================================================== */

@media (max-width: 700px) {

    .page {
        padding:
            15px 8px 25px;
    }


    .header {
        width: 85% !important;

        grid-template-columns:
            minmax(0, 0.9fr)
            minmax(0, 1.8fr)
            minmax(0, 0.9fr);

        gap: 5px;

        padding:
            7px 8px;
    }


    .header-logo.left img {
        width: 90px;
    }


    .header-logo.center img {
        width: 210px;
    }


    .header-logo.right img {
        width: 95px;
    }


    .position-card {
        width: 75% !important;

        padding:
            16px 10px 15px;
    }
}


/* ==================================================
   VERY NARROW PHONE
   ================================================== */

@media (max-width: 450px) {

    .header {
        width: 90% !important;
    }


    .position-card {
        width: 95% !important;
    }


    .coordinate-value,
    .time-value {
        white-space: normal;

        font-size: 14px;
    }


    .position-title h1,
    .received-title h2 {
        font-size: 14px;
    }


    .map-container iframe {
        height: 450px;
    }


    .footer {
        gap: 10px;

        flex-wrap: wrap;

        text-align: center;
    }


    .footer > a {
        flex: 0 1 auto;

        text-align: center;
    }
}


/* ==================================================
   SLIDESHOW
   ================================================== */

.slideshow-container {

    /*
     * Enough room for a minimum 500px high image
     * plus controls.
     */

    height: 590px;

    margin-top: 28px;

    overflow: hidden;

    /*
     * Same transparent white / glass appearance
     * as the Position box.
     */

    background:
        rgba(255, 255, 255, 0.62);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


.slideshow-container iframe {

    display: block;

    width: 100%;
    height: 100%;

    border: 0;

    background: transparent;
}