/**
    explore.css for the Explore Antarctica V2 template
    to be included after the normal site-wide style.css stylesheet
**/

div.step {
    z-index: 1;
}
div.step p:first-child {
    padding-top: 2em;
}
div.step p:last-child {
    padding-bottom: 1.5em;
}
div.step > p,
div.step > ul,
div.step > li {
    max-width: 600px;
    margin: 1em auto;
    color: white;
}
div.step ul li:last-child {
    padding-bottom: 1em;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "bebas-neue-pro-semiexpanded", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    opacity: 1;
    color: white;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 0.5em;
}

h1, h2 {
    margin-bottom: -0.25em;
}

h1 {
    font-size: 2.5em;
}
h2 {
    font-size: 2.25em;
}
h3 {
    font-size: 2em;
}
h4 {
    font-size: 1.75em;
}
h5 {
    font-size: 1.5em;
}
h6 {
    font-size: 1.25em;
}

main {
    background-color: #222;
    grid-template-columns: 1fr;
    z-index: 0;
    grid-area: unset;
    display: unset;
    grid-template-columns: unset;
    grid-template-rows: unset;
    grid-template-areas: unset;
}
main article {
    grid-area: unset;
    margin: unset;
    padding: unset;
    perspective: 2px;
}

ul {
    list-style: disc;
}
ul li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

a {
    color: #6c93ff; /* a brighter variation of primary blue due to the dark theme */
    text-decoration: underline;
    transition-property: text-underline-offset, color;
    transition-duration: 200ms;
    text-underline-offset: 1px;
    cursor: pointer;
}
a:hover, a:focus {
    color: white;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
#maincontent {
    z-index: 1;
}
div.explore {
    z-index: 0;
    font-size: 1.2em;
    line-height: 1.4;
    background-color: rgba(0, 0, 0, 0.6);
}
div.explore-bg-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}
div.explore-bg {
    background-color: #222;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    width: 120%;
    height: 120%;
    position: absolute;
    top: -10%;
    left: -10%;
    right: 10%;
    bottom: 10%;
    z-index: -1;
    filter: brightness(.25);
}
.section {
    position: relative;
    display: block;
}

.body-wrapper {
    display: unset;
    grid-template-columns: unset;
    grid-template-rows: unset;
    grid-template-areas: unset;
    background-color: unset;
    margin: auto;
    max-width: 100%;
}

div.department-logo-container img {
    position: absolute;
    top: 30px;
    height: 160px;
    width: auto;
    padding-right: 25vw;
    padding-left: 3vw;
    opacity: 0.5;
}
div.department-logo-container img.dark {
    filter: brightness(0); /* make the logo black */
}

/* Image and video sections */
.section-img {
    display: grid;
    gap: 0.5em;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    width: 800px;
    max-width: 100%;
    height: auto;
    transition-duration: 200ms;
    transition-property: width, height, min-height, position;
    margin: 0 auto;
    position: relative;
    z-index: 0;
}
.section-img.is-active {
    width: 100%;
}
.section-img-main {
    position: relative;
    grid-column: span 2;
}
.section-img-secondary {
    position: relative;
    grid-column: span 1;
}
.section-video {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    text-align: center;
    transition-duration: 200ms;
    transition-property: width, height, min-height, position;
}
.section-video .embed-link {
    visibility: hidden; /* Hide embed links on feature articles */
}
.section-img-full {
    width: 100%;
    height: 100%;
    position: relative;
    object-fit: cover;
}
.section-img, .section-img picture, .section-img picture img {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
.section-img-fullscreen {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: absolute;
    z-index: 0;
    opacity: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition-property: opacity;
    transition-duration: 500ms;
}
.section-img-fullscreen-container .credit {
    display: inline-block;
    color: white;
    position: sticky;
    top: 96vh;
    margin-left: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    padding: 0.25em;
    z-index: 1;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}
.section-img-fullscreen:first-of-type {
    opacity: 1 !important;
}
.section-img-fullscreen-container {
    position: relative;
    width: 100%;
}
.section-img-fullscreen-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.section-img-fullscreen-title h1,
.section-img-fullscreen-title h2,
.section-img-fullscreen-title h3,
.section-img-fullscreen-title h4  {
    margin: 0.2em;
    font-size: 3em;
}
.section-img-fullscreen-title-container  {
    color: white;
    display: flex;
    align-items: center;
    padding: 2em;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.7);
    text-wrap: balance;
    word-wrap: normal;
    line-height: 1;
    box-sizing: border-box;
    margin: 0.5em;
    text-align: center;
}
.section-img-fullscreen-title-container img  {
    border-top: 1px solid white;
    margin: 1em 0.2em;
    padding: 1em 0.5em 0 0.5em;
    box-sizing: border-box;
}
.section-video-full-screen {
    position: sticky;
    width: 100%;
    height: 100vh;
    max-width: unset;
    top: 0;
    object-fit: cover;
    object-position: 50% 50%;
    z-index: 0;
}
.section-video-full-screen-container {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.text-box {
    color: white;
    display: flex;
    align-items: center;
    padding: 2em;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(0, 0, 0, 0.7);
    flex-direction: column;
    justify-content: center;
    word-wrap: normal;
    box-sizing: border-box;
    margin: 0.5em;
    text-align: left;
    z-index: 2;
}
.text-box p {
    margin-block: 0 !important;
}

/* Text boxes (over an image or video) */
.text-box-container {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}
.text-boxes-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.section-img-fullscreen .has-text-boxes {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.text-box p {
    max-width: 600px;
}
.text-box ul li {
    text-align: left;
    margin-bottom: 1em;
}

figure, video {
    margin: auto;
    width: 100%;
    height: 100%;
}
figcaption {
    color: white;
    text-align: center;
    padding-top: 0.25em;
}
.section-img-main figcaption,
.section-img-secondary figcaption {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 0.9rem;
    margin: auto;
    z-index: 0;
    padding: 1em;
    opacity: 0;
    transition: opacity 100ms;
    z-index: 0;
}
.section-img-main figure:hover figcaption,
.section-img-secondary figure:hover figcaption {
    opacity: 1;
}
figure .info-icon {
    opacity: 1;
    transition: opacity 100ms;
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}
figure:hover .info-icon {
    opacity: 0;
}
figure .info-icon svg {
    border-radius: 100%;
    box-shadow: 0px 0px 15px black;
}
figure .info-icon {
    border-radius: 100%;
    box-shadow: inset 0px 0px 30px black;
}
main .video-wrapper {
    --plyr-color-main: #0d1018;
}
.plyr--video {
    box-shadow: 0 0 1em #0000005c;
}
.for-mobile {
    content-visibility: hidden;
    display: none;
}

/* Scroll bar styling */
body::-webkit-scrollbar {
    width: 1em;
}
body::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color:rgb(40, 40, 40);
}
body::-webkit-scrollbar-thumb {
    background-color: rgb(170, 170, 170);
    outline: black 1px solid;
}

/* Pushy */
.pushy {
    border-left: white solid 1px;
    width: 250px;
    background: #0d1018;
    color: white;
    text-decoration: none;
    font-family: "bebas-neue-pro-semiexpanded", sans-serif;
    font-size: 1.25em;
    overflow-y: auto;
}
.pushy a {
    color: white;
}
.pushy a:hover, .pushy a:focus {
    color: white;
}
.pushy-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.pushy ul {
    list-style: none;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0.5em;
    opacity: 1;
    list-style: none;
    padding-top: 2em;
    padding-bottom: 2em;
}
.pushy ul li {
    margin: 0;
    padding: 0;
    opacity: 1;
}
.pushy ul li a {
    display: block;
    text-decoration: none;
    color: white;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
    transition-property: background-color;
    transition-duration: 100ms;
    line-height: 1.25;
    text-transform: uppercase;
}
.pushy ul li a::after {
    background-color: #f26522;
    content: '';
    display: block;
    position: relative;
    height: 1px;
    width: 0;
    left: 0;
    bottom: -1px;
    -webkit-transition: width 0.2s ease-in-out;
    -moz-transition: width 0.2s ease-in-out;
    -o-transition: width 0.2s ease-in-out;
    transition: width 0.2s ease-in-out;
}
.pushy ul li a:hover::after, .chapter-item.current > a::after {
    width: 100%;
}
.menu-btn, .edit-btn {
    position: fixed;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-decoration: none;
    z-index: 1;
    right: 0;
    font-family: "bebas-neue-pro-semiexpanded", sans-serif;
    padding: 1em 0.25em;
    font-size: 1em;
    background: #0d1018;
    border: 1px solid white;
    border-right: none;
    text-transform: uppercase;
}
.menu-btn:hover, .menu-btn:focus, .edit-btn:hover, .edit-btn:focus {
    border-color:#f26522;
}
.menu-btn-vertical {
    display: inline-block;
    text-orientation: sideways;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
}
.pushy-link.close-btn {
    background-color: transparent;
    border: none;
    color: white;
    font-weight: bold;
    align-self: flex-end;
    padding: 0.5em 1em;
    font-stretch: ultra-expanded;
}
.pushy-link.close-btn:hover {
    background-color: #f26522;
}
.site-overlay {
    backdrop-filter: brightness(0.4);
}

footer a {
    text-decoration: none;
}

/* Scroll down arrow */
#scroll-down-arrow-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    position: sticky;
    position: -webkit-sticky;
    top: 90vh;
    left: 50%;
    right: 50%;
}
#scroll-down-arrow-container img {
    width: 25px;
    height: auto;
    animation: 1s ease 1s infinite alternate slidedown;
}
@keyframes slidedown {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(10px);
    }
}

/* MEDIA QUERIES */
@media only screen and (max-width: 650px) {
    p, h1, h2, h3, h4, h5, h6 {
        max-width: 100%;
        width: 100%;
    }
    figure, video, .section-video {
        margin: auto;
        min-width: 100%;
    }
    .section-img, .section-video {
        min-width: unset;
        width: 100%;
        padding: 1rem;
    }
    .chapter-list, .chapteritem {
        display: none;
    }
    .text-box {
        width: 100%;
    }
}
@media only screen and (max-width: 550px) {
    .section-img-secondary {
        grid-column: span 2;
    }
}
@media (prefers-reduced-motion) {
    p, ul, li, .section-img, .chapter-list, .chapter-list ul li a {
        opacity: 1 !important;
        transition: none !important;
        transition-duration: 0.001 !important;
        transition-property: none !important;
    }
}

/* SUPPORT QUERIES & BROWSER CHECKS */
@supports (-webkit-hyphens:none) { /* Target Safari MacOS */
    div.explore-bg-container {
        display: none;
    }
    body {
        background-color: #111;
    }
}
/*@supports ( -webkit-touch-callout : none) or (-webkit-hyphens:none) { /* this addressess webkit (iOS) not supporting background-attachment-fixed */
@supports ( -webkit-touch-callout : none) { /* this addressess webkit (iOS) not supporting background-attachment-fixed */
    div.explore-bg {
        display: none;
    }
    div.explore-bg-container {
        background-color: #111;
    }
    .section-img {
        display: block;
        width: 100%;
        height: auto;
        min-width: none;
        max-width: none;
        padding: 0;
    }
    .section-img-main, .section-img-secondary {
        width: 100%;
        grid-column: unset;
        max-width: 800px;
        margin: 1em auto;
    }
    .section-img-fullscreen {
        background-attachment: scroll;
        opacity: 1 !important;
        width: 100%;
    }
    .section-img-fullscreen-container:not(.multiple) img {
        display: none;
    }
    .section-img-fullscreen.has-text-boxes {
        display: none;
    }
    .section-img-fullscreen-container.multiple {
        height: auto !important;
        max-height: none;
        margin-bottom: 1em;
    }
    .section-img-fullscreen-container.multiple > .section-img-fullscreen {
        background-image: unset !important;
        height: unset;
        position: relative;
        left: unset;
        right: unset;
        top: unset;
        bottom: unset;
    }
    .section-img-fullscreen-container .credit {
        display: none;
    }
    .section-img-fullscreen-container.has-text-boxes {
        height: auto !important;
        display: block;
        max-height: none;
    }
    .section-img-fullscreen-container {
        height: 100vh;
        max-height: 100vh;
    }
    .section-img-fullscreen-title {
        height: 100% !important;
    }
    .section-img-fullscreen-title-container {
        background-color: rgba(0, 0, 0, 0.75);
    }
    .section-img-fullscreen-container.has-text-boxes .text-box-container:last-of-type {
        padding-bottom: 1.5em;
    }
    .section-video-full-screen-container, .section-video-full-screen {
        display: none;
    }
    .text-box-container {
        position: relative;
        display: block;
        top: 1em;
        text-align: left;
        height: unset !important;
        max-width: 600px;
        margin: auto;
    }
    .text-boxes-container {
        display: block;
        position: relative;
        height: auto;
        margin-bottom: 2em;
    }
    .text-box-container.text-box {
        display: block;
        align-items: flex-start;
        text-align: left;
    }
    .text-box {
        position: relative;
        display: block;
        text-align: left;
        padding: unset !important;
        background: unset;
        backdrop-filter: unset;
    }
    .for-mobile {
        content-visibility: visible;
        display: initial;
    }
}

/* Scroll images */
.scroll-image-container {
    position: relative;
    display: block;
    text-align: center;
}
.scroll-progress {
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    position: fixed;
    top: 50vh;
    z-index: 2;
    left: 0;
    right: 0;
    opacity: 0;
}
.scroll-progress-line {
    position: fixed;
    top: 50%;
    left: 0;
    right: 0;
}
.scroll-progress-line::before {
    content: '';
    height: 1px;
    overflow: hidden;
    width: 100%;
    border-top: 3px dotted #f26522;
    /* background-color: #f26522; */
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50vh;
    left: 0;
    right: 0;
    z-index: 0;
}
.scroll-progress-text {
    background-color: #0d1018;
    border: 3px solid #f26522;
    padding: 0.5em 1em;
    z-index: 1;
    text-align: center;
    color: white;
    position: absolute;
    top: calc(-0.25em + 3px);
}
.scroll-progress-container {
    position: absolute;
    text-align: center;
    inset: 0;
}
.scroll-progress-milestone {
    position: absolute;
    right: 50px;
    background-color: #0d1018;
    border: 3px solid #f26522;
    padding: 0.5em 1em;
    color: white;
    z-index: 2;
}

/* Graph styling */
.apexcharts-text, 
.apexcharts-xaxis-label,
.apexcharts-yaxis-label,
.apexcharts-xaxis-title,
.apexcharts-yaxis-title {
    color: white !important;
}

/* Ice core widget */
input[type=range][orient=vertical] {
    writing-mode: vertical-lr;
    direction: ltr;
    vertical-align: bottom;
    margin: 0;
    padding: 0;
}
/** Attempting to prevent redraw flickwering on iOS */
#iceCoreWidget input[type=range] {
    appearance: none;
    background: #ccc;
    background: repeating-linear-gradient(20deg, rgb(221, 232, 241), rgb(221, 232, 241) 18px, #bbbbbb 20px, rgb(221, 232, 241) 22px);
    border: 2px solid #bbbbbb;
    cursor: pointer;
    width: 30px;
    min-height: 300px;
}
#iceCoreWidget input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default look */
    appearance: none;
    background-color:rgba(255, 0, 0, 0.75);
    height: 10px;
    width: 45px;    
}
#ice-core-slider {
    background: linear-gradient(rgb(74, 165, 207) 0%, rgb(211, 234, 245) 140px, rgb(110, 107, 107) 145px, rgb(224, 226, 230) 145px, rgb(224, 226, 230) 450px, rgb(87, 50, 15) 450px, rgb(34, 21, 4) 100%);
}
.range-wrap {
    position: relative;
}
.range-wrap .bubble {
    position: absolute;
    width: 100px;
    left: 125%;
    top: 0;
    transform: translateX(-1em) translateY(-8px);
    border-radius: 5px;
    color: black;
    padding: 0.1em 0.3em;
}
.pulse {
    box-shadow: 0 0 0 rgba(190, 163, 4, 0.75);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% {
        -moz-box-shadow: 0 0 0 0 rgba(190, 163, 4, 0.75);
        box-shadow: 0 0 0 0 rgba(190, 163, 4, 0.75);
    }
    40% {
        -moz-box-shadow: 0 0 15px 0 rgba(190, 163, 4, 0.75);
        box-shadow: 0 0 15px 0 rgba(190, 163, 4, 0.75);
    }
    100% {
        -moz-box-shadow: 0 0 20px 0 rgba(204, 44, 44, 0);
        box-shadow: 0 0 20px 0 rgba(204, 44, 44, 0);
    }
}
.arrow {
    display: inline-block;
    animation: arrow 1s infinite;
    animation-direction: alternate;
}
@keyframes arrow {
    from {
        transform: translateX(0px);
    }
    to {
        transform: translateX(-5px);
    }
}

/* Animation */
@keyframes slideprompt { /* Shown on mobile next to horizontal image galleries */
    from {
        transform: translate(0);
    }
    to {
        transform: translate(0.35em);
    }
}
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
.fade.visible {
    animation: 0.3s ease forwards fadeIn;
}
.fade:not(.visible) {
    animation: 0.3s ease forwards fadeOut;
}