
body {
font-family: 'Open Sans', sans-serif;

margin: 0px;
padding: 0px;

background: black;
width: 100vw;
height: 100vh;
color: white;
}

body::before {
    content: "互动视频";
    position: fixed;
    top: 18px;
    left: 20px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.78);
    font-size: 11px;
    letter-spacing: 2px;
    pointer-events: none;
}

#landing {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: grid;
    place-items: center;
    background: #080a0d;
    transition: opacity 280ms ease;
}

#landing.is-leaving {
    opacity: 0;
    pointer-events: none;
}

.landingContent {
    width: min(520px, calc(100% - 48px));
    text-align: center;
}

.eyebrow {
    margin: 0 0 18px;
    color: #e6ff3f;
    font-size: 12px;
    letter-spacing: 2px;
}

.landingContent h1 {
    margin: 0;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 72px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0;
}

.landingCopy {
    margin: 22px 0 32px;
    color: rgba(243, 244, 237, 0.72);
    font-size: 16px;
    line-height: 1.6;
}

.experienceChoices {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}

.experienceButton {
    width: min(252px, 100%);
    min-height: 92px;
    border: 1px solid rgba(243, 244, 237, 0.42);
    border-radius: 0;
    padding: 16px;
    background: transparent;
    color: #f3f4ed;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.experienceButton:hover,
.experienceButton:focus-visible {
    border-color: #e6ff3f;
    background: #e6ff3f;
    color: #080a0d;
}

.choiceLabel,
.choiceDetail {
    display: block;
}

.choiceLabel {
    font-size: 15px;
}

.choiceDetail {
    margin-top: 7px;
    opacity: 0.65;
    font-size: 12px;
}

.experienceButton:disabled {
    border-color: rgba(243, 244, 237, 0.2);
    color: rgba(243, 244, 237, 0.42);
    cursor: wait;
}

.experienceButton:disabled:hover {
    background: transparent;
    border-color: rgba(243, 244, 237, 0.2);
    color: rgba(243, 244, 237, 0.42);
}

@media (max-width: 480px) {
    .landingContent h1 {
        font-size: 58px;
    }

}

/* Keep the experience landscape on touch devices, including Safari where
   orientation locking and document fullscreen are not available. */
@media (pointer: coarse) {
    body.mobileVideoExperience {
        overflow: hidden;
    }

    body.mobileVideoExperience::before {
        display: none;
    }

    body.mobileVideoExperience #container {
        position: fixed;
        inset: 0;
        width: 100vw !important;
        height: 100vh !important;
    }

    body.mobileVideoExperience .passageVideo {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
    }
}

@media (pointer: coarse) and (orientation: portrait) {
    body.mobileVideoExperience #container,
    body.mobileVideoExperience #landing {
        top: 50% !important;
        right: auto !important;
        bottom: auto !important;
        left: 50% !important;
        width: 100vh !important;
        height: 100vw !important;
        transform: translate(-50%, -50%) rotate(90deg);
        transform-origin: center;
    }
}



/*colors here, layout below*/
.passageLink, .inactiveLink {
    text-decoration: none;
    color: #f3f4ed;
}

.passageLink:hover, .passageLink.active {
    background-color:#e6ff3f;
    color: #080a0d;
}

#bar {
    background-color: #e6ff3f;
}

#barBackground {
    background-color: white;

}

#choicesContainer {
    background-color: rgba(10, 12, 16, 0.84);
    border-top: 1px solid rgba(230, 255, 63, 0.5);
}


#container {    
    position: absolute;
    margin: auto;
    top:0;bottom:0; 
    left:0;right:0; 
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden;
}




/* choices are overlaid */
.passageVideo {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
}


#choicesContainer {
    font-size:30px;
    width: 100%; 
    height: 160px;
    position: absolute;
    margin: auto;
    bottom:0; 
    left:0;right:0; 
    vertical-align: middle;
    z-index:2147483647 !important;
}

#choicesContainer {
    position: absolute;
    bottom: -160px;
    -webkit-animation: slide 0.5s forwards;
    animation: slide 0.5s forwards;
}

/* Two-way branches occupy half the original height and reveal more video. */
#choicesContainer.choicesCount2 {
    height: 80px;
    bottom: -80px;
    background-color: rgba(10, 12, 16, 0.54);
}

#choicesContainer.choicesCount2 .tableChoices {
    height: 70px;
}


@-webkit-keyframes slide {
    100% { bottom: 0; }
}

@keyframes slide {
    100% { bottom: 0; }
}



/* optional, different layouts for different number of choices
.choicesContainer.layout1 {
}

.choicesContainer.layout2 {
}
*/

/* classes for table layout */
.tableChoices { 

width: 100%;
height: 150px; /* must be specified in pixels because CSS in 2020 still sucks*/
table-layout:fixed;
border-collapse:collapse;
border-spacing: 0px;
border: 0;
}

.tableChoice, .tableChoices tbody, .tableChoices tr {
    border: none;
    border-spacing: 0px;
}


#barBackground {
    display: block;
    width: 100%;
    height: 10px;
}

#bar {
    display: block;
    height: 100%;
    width: 10px;
    margin: auto;
}

.passageLink {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    
}



/* End passages */
#passage {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    pointer-events: none;
}

.passageBody {
    text-align: center;
}

.endingMessage {
    margin-bottom: 24px;
    font-size: 22px;
}

.endingActions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

#passage .passageLink {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 152px;
    min-height: 44px;
    height: auto;
    border: 1px solid rgba(243, 244, 237, 0.58);
    box-sizing: border-box;
    color: #f3f4ed;
    pointer-events: auto;
}

#passage .passageLink:hover,
#passage .passageLink:focus-visible {
    border-color: #e6ff3f;
}

#holdButton {
    display: none;
    position: absolute;
    left: 50%;
    top: auto;
    bottom: 18%;
    z-index: 2147483647;
    transform: translate(-50%, -50%);
    min-width: 180px;
    min-height: 52px;
    border: 1px solid #ff4747;
    border-radius: 0;
    padding: 0 24px;
    background: rgba(0, 0, 0, 0.86);
    color: #ffffff;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
}

#holdButton:hover,
#holdButton:focus-visible {
    background: #ff4747;
    color: #080a0d;
}

#passage a {
    color: #999999;
}


/* for placeholder text */
.passageBody {
}


/* classes for div layout

.choice {
    
    display: inline-block;
    text-align: center;
    margin-top: 1em;
    
}


.choice.layout1 {
    width: 100%;
}
.choice.layout2 {
    width: 50%; 
}

*/

/***** CONTROLS ****/

#menuContainer {
    width: 100%; 
    height: 20px;
    position: absolute;
    margin: auto;
    bottom:0; 
    left:0;right:0; 
    vertical-align: middle;
    padding-left: max(20px, env(safe-area-inset-left));
    padding-bottom: max(5px, env(safe-area-inset-bottom));
    
    z-index:20 !important;
    user-select: none
}

.button {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    opacity: 0.7;
    background-size: contain;
    background-repeat: no-repeat;
}

.button:hover {
    opacity: 1;
}


#play {
    background-image: url(icons/play.svg);
}

#home {
    background-image: url(icons/home.svg);
    position: static;
}

#pause {
    background-image: url(icons/pause.svg);
}

#next {
    background-image: url(icons/next.svg);
}

#previous {
    background-image: url(icons/previous.svg);
}

#ffd10 {
    background-image: url(icons/ffd10.svg);
}

#rewind10 {
    background-image: url(icons/rewind10.svg);
}

video::-webkit-media-controls {
    display:none !important;
  }


