@font-face {
    font-family: 'Rubik';
    src: url('../../shared/fonts/Rubik-Regular.woff2') format('woff2'),
    url('../../shared/fonts/Rubik-Regular.woff') format('woff'),
    url('../../shared/fonts/Rubik-Regular.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../../shared/fonts/Rubik-Medium.woff2') format('woff2'),
    url('../../shared/fonts/Rubik-Medium.woff') format('woff'),
    url('../../shared/fonts/Rubik-Medium.ttf') format('ttf');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../../shared/fonts/Rubik-Light.woff2') format('woff2'),
    url('../../shared/fonts/Rubik-Light.woff') format('woff'),
    url('../../shared/fonts/Rubik-Light.ttf') format('ttf');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Rubik';
    src: url('../../shared/fonts/Rubik-Bold.woff2') format('woff2'),
    url('../../shared/fonts/Rubik-Bold.woff') format('woff'),
    url('../../shared/fonts/Rubik-Bold.ttf') format('ttf');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

html, body {
    font-family: 'Rubik', Helvetica, Arial, sans-serif;
    font-size: 16px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    margin : 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.absolute-fill {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.hidden {
    display: none !important;
}

.put-to-back {
    z-index: -100 !important;
}

.disabled {
    opacity: 0.3;
}

.mobile-br {
    display: none;
}

iframe {
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    z-index: 400;
}

/* Start screen */
#startScreen {
    z-index: 500;
    background: #a8bb8e url("../images/start_background_portrait.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #1c248a;
}

#introAnimation {
    width: 100%;
    height: 100%;
    z-index: 600;
}

#introAnimation video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screen-container {
    /* aspect-ratio: 3 / 4; */
    height: 100%;
    width: 100%;
    min-width: 0;
    position: relative;
}

.start-content {
    position: relative;
    top: 35%;
    padding: 0 15%;
}

.start-logo {
    width: 40%;
    min-width: 110px;
    max-width: 244px;
    height: auto;
}

.start-content h1 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    margin-top: 25px;
}

.start-content p {
    color: #ffffff;
    font-size: 20px;
    font-weight: 300;
}

.start-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 15% 35px 15%;
}

.start-bottom strong {
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
}

#startReady {
    cursor: pointer;
}

@media (max-width: 400px) {
    .start-content h1 {
        font-size: 20px;
    }

    .start-content p {
        font-size: 18px;
    }

    .start-bottom strong {
        font-size: 20px;
    }
}

.corner-button {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    pointer-events: auto;
}

.corner-button img {
    display: block;
}

.corner-button div {
    position: absolute;
    top: 70px;
    right: 0;
    left: 40px;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
    font-family: 'Rubik', Helvetica, Arial, sans-serif;
}

.corner-button div.blue-text, .corner-button.blue-text div {
    color: #000000;
    font-weight: 700;
}

.corner-button div img {
    width: auto;
    margin-bottom: 5px;
}

.spin {
    animation: spin 1.1s cubic-bezier(0.785, 0.135, 0.150, 0.860) infinite both;
}

@keyframes spin {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Scan marker screen */
#markerOverlay {
    z-index: 300;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 75px;
    display: flex;
    align-items: center;
    padding: 0 25px;
}

.bottom-bar h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0 60px 0 0;
}

.bottom-bar p {
    font-size: 16px;
    font-weight: 300;
    margin: 0;
}

.bottom-bar-label {
    color: #ffffff;
    margin: auto;
    height: 100%;
    text-align: center;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

.bottom-bar-label strong {
    font-size: 16px;
    font-weight: 500;
}

.bottom-bar-label p {
    font-size: 14px;
}

.bg-white {
    background: #ffffff;
    color: #000000;
}

@media (max-width: 400px) {
    .bottom-bar h2 {
        font-size: 18px;
    }

    .bottom-bar p {
        font-size: 14px;
    }
}

/* AR active screen */
#arActiveOverlay {
    z-index: 300;
    pointer-events: none;
}

/* Reset button */
#resetButton {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 100;
    text-align: center;
    color: #ffffff;
    font-size: 14px;
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

#resetButton img {
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

/* Crew options overlay */
#airCrewOverlay {
    z-index: 300;
    pointer-events: none;
}

/* Camera overlay */
#cameraOverlay {
    z-index: 300;
    pointer-events: none;
}

/* 360 overlay */
#internal360Overlay {
    z-index: 300;
    pointer-events: none;
}

.fov-audio-button {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
}

.fov-audio-button img {
    width: 40px;
    height: auto;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

/* Capture overlay */
#captureOverlay {
    z-index: 400;
}

.capture-button, .share-button {
    margin: 0 auto 15px auto;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    pointer-events: auto;
    cursor: pointer;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.5));
}

.capture-button img {
    width: 38px;
    height: auto;
}

.share-button img {
    width: 30px;
    height: auto;
}

/* Help screens */
#helpScreen, #helpScreen1, #helpScreen2, #helpScreen3 {
    z-index: 500;
}

.help-background {
    background: #e2e1dd url("../images/help_background_portrait.jpg") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.help-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.help-top {
    position: relative;
    width: 100%;
    flex: 1;
    margin-top: 10%;
    background-image: linear-gradient(to right, transparent 50%, white 50%);
}

.help-top-content {
    background: transparent url("../images/help_top_background.svg") left center/auto 100% no-repeat;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0 10%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.help-top-content img {
    width: 70%;
    height: auto;
    max-height: 70%;
}

.help2 .help-top-content img {
    width: 110%;
    margin-right: -10%;
}

.help-middle {
    width: 100%;
    flex: 0.65;
}

.help-content, .help-content-padding {
    height: 100%;
    margin: 0 10%;
    display: flex;
    padding-top: 10%;
    box-sizing: border-box;
}

.help-content-padding {
    padding-top: 10%;
}

.help-num {
    width: 50px;
    color: #000000;
    font-weight: 300;
    font-size: 20px;
    text-align: center;
    line-height: 30px;
}

.help-main {
    flex: 1;
    padding-right: 12px;
}

.help-content h2, .help-content-padding h2 {
    margin: 0;
    font-weight: 500;
    font-size: 24px;
    color: #000000;
}

.help-content p, .help-content-padding p {
    font-weight: 300;
    font-size: 20px;
    color: #000000;
}

.help-content a, .help-content-padding a {
    font-weight: 500;
    font-size: 14px;
    color: #000000;
}

.help-bottom {
    width: 100%;
    flex: 0.35;
}

@media (max-width: 575px) {
    .help-num {
        width: 40px;
        font-size: 18px;
        line-height: 26px;
    }

    .help-content h2, .help-content-padding h2 {
        font-size: 20px;
    }

    .help-content p, .help-content-padding p {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .help-num {
        width: 40px;
        font-size: 16px;
        line-height: 22px;
    }

    .help-content h2, .help-content-padding h2 {
        font-size: 18px;
    }

    .help-content p, .help-content-padding p {
        font-size: 16px;
    }
}

/* Nose art screen */
#noseArtScreen, #bombBayScreen {
    z-index: 400;
    pointer-events: none;
}

#noseArtOptions, #bombBayOptions {
    margin: 30px auto 30px auto;
    padding: 0;
    width: 100%;
    max-width: 500px;
}

.options-container {
    max-width: 500px;
    margin: 0 -1px 0 -1px;
    display: flex;
    flex-wrap: wrap;
}

.option {
    position: relative;
    width: 38%;
    margin: 1px;
    cursor: pointer;
    overflow: hidden;
    min-height: 60px;
    background: #000000;
}

.option.selected {
    background: #E31837;
}

/*
#noseArtSplide li {
    cursor: pointer;
}
*/

.option-image {
    width: 100%;
    height: auto;
    display: block;
}

.option-select {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0 6px 0 6px;
    /*background: rgba(0, 0, 0, 0.6);*/
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-weight: 500;
    font-size: 18px;
    color: #ffffff;
    text-align: center;
}

.option-select span:nth-of-type(1) {
    text-align: center;
}

.option span:nth-of-type(2) {
    display: inline-block;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 300;
    margin-top: 15px;
}

.selected .option-select {
    /*display: none;*/
}

/* Main content */
.hotspot-icon {
    width: 20px;
    height: auto;
    position: absolute;
    top: 18px;
    left: -30px;
}

.hide-button {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 8px;
    padding: 20px;
    font-size: 14px;
    color: rgba(57, 74, 89, 0.6);
    display: flex;
    align-items: center;
    cursor: pointer;
}

.x-icon {
    width: auto;
    height: 16px;
    margin-left: 10px;
}

.main-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 100%;
    background: #ffffff;
    padding: 10px 50px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    pointer-events: auto;
}

.main-container h2 {
    font-weight: 500;
    font-size: 20px;
    color: #000000;
}

.main-container h3 {
    font-weight: 500;
    font-size: 18px;
    color: #000000;
}

.main-container p {
    font-weight: 300;
    font-size: 14px;
    color: #000000;
}

.main-heading {
    position: relative;
    max-width: 500px;
    margin: auto;
    width: 100%;
}

.main-content {
    min-height: 90px;
    max-width: 500px;
    margin: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.scrollable-content {
    width: 100%;
    overflow: auto;
    padding-right: 20px;
    margin-right: -20px;
}

.row {
    display: flex;
    margin: 12px 0;
}

.row .image-container {
    flex: 1;
    margin-right: 1em;
    max-width: 332px;
}

.row .image-container img, .image-container img {
    width: 100%;
    height: auto;
}

.row .text-container {
    flex: 1;
}

.row .text-container p {
    margin: 0;
}

.corner-cutout {
    position: absolute;
    top: 0;
    left: 0;
    width: 5%;
    height: auto;
}

.read-more {
    font-weight: 500 !important;
    text-decoration: underline;
    cursor: pointer;
    margin-bottom: 0;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* Air Crew */
#airCrewScreen {
    z-index: 400;
    pointer-events: none;
}

#airCrewScreen .scrollable-content {
    padding-left: 28px;
    margin-left: -28px;
}

.crew-image-container {
    position: relative;
    flex: 0.4;
}

.crew-image-container .corner-cutout {
    left: -28px;
}

.crew-image {
    width: 100%;
    height: auto;
    margin-left: -28px;
}

.crew-bio-container {
    flex: 0.6;
}

.crew-bio-container h2, .crew-bio-container h3 {
    margin-top: 0;
}

.crew-bio-container p {
    margin: 8px 0;
    line-height: 16px;
}

.crew-bio-container strong {
    font-weight: 500;
}

#airCrewOptions {
    margin: 0 auto 0 auto;
    width: 100%;
    max-width: 500px;
}

#airCrewFooter {
    margin: 30px auto 20px auto;
    display: flex;
    align-items: center;
    max-width: 500px;
    width: 100%;
}

#airCrewFooter img {
    width: 40px;
    height: auto;
    margin: 0 15px 0 -28px;
    cursor: pointer;
}

#airCrewFooter p {
    font-weight: 400;
}

@media (max-width: 400px) {
    .mobile-br {
        display: block;
    }

    .hotspot-icon {
        width: 18px;
        top: 10px;
        left: -28px;
    }

    .hide-button {
        top: 5px;
        right: 0;
        font-size: 12px;
    }

    .x-icon {
        height: 14px;
    }

    .main-container {
        padding: 10px 39px;
    }

    .main-container h2 {
        font-size: 18px;
        margin: 8px 0;
    }

    .main-container h3 {
        font-size: 14px;
    }

    .main-container p {
        font-size: 12px;
    }

    .main-content {
        min-height: 58px;
    }

    .main-content h2 {
        font-size: 16px;
        margin: 8px 0 4px 0;
    }

    .row .image-container {
        margin-right: 10px;
    }

    #noseArtOptions, #bombBayOptions {
        margin: 20px auto 15px auto;
    }

    .option {
        min-height: 56px;
    }

    .option-select {
        padding: 0 6px 0 6px;
        font-size: 13px;
    }

    .option-select span:nth-of-type(2) {
        font-size: 12px;
        margin-top: 8px;
    }

    .nose-art-image {
        margin: -5px 0;
    }

    .crew-image-container .corner-cutout {
        left: -25px;
    }

    .crew-image {
        margin-left: -25px;
    }

    #airCrewScreen .scrollable-content {
        padding-left: 25px;
        margin-left: -25px;
    }

    #airCrewFooter {
        margin: 20px auto 10px auto;
    }

    #airCrewFooter img {
        margin: 0 15px 0 -25px;
    }
}

/* Device sensors popup overrides */
.a-dialog-text {
    font-family: 'Rubik', Helvetica, Arial, sans-serif;
    color: #394A59;
}

.a-dialog-button {
    font-family: 'Rubik', Helvetica, Arial, sans-serif;
}

.a-dialog-allow-button {
    background-color: #394A59 !important;
    font-weight: 500;
    color: #ffffff;
    border: 1px solid #394A59 !important;
}

.a-dialog-deny-button {
    background-color: #ffffff !important;
    color: #394A59;
    border: 1px solid #394A59 !important;
}

/* css animations */
.fade-out {
    animation: fade-out 0.3s linear forwards;
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.fade-in {
    animation: fade-in 0.3s linear forwards;
}

@keyframes fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.pulse {
    opacity: 1;
    pointer-events: auto;
    -webkit-animation: pulse 1s ease-in-out infinite both;
    animation: pulse 1s ease-in-out infinite both;
}

@keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
    50% {
        -webkit-transform: scale(1.1);
        transform: scale(1.1);
    }
    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}