@media all and (orientation : landscape){
    /*.choix {
        display: none;
        position: absolute;
        display: table;
        font-family: 'Frutiger Neue LT Regular';
        font-size: 68%;
        color: white;
        text-decoration-line: none;
        background-color: rgb(255, 119, 43, 0.6);
        left: 36.25%;
        top:50%;
        width: 27.45%;
        text-align: center;
        padding-top: calc(2vw + 0px);
        padding-bottom: calc(2vw + 0px);
        line-height: normal;
        text-decoration-line: none;
        z-index: 1;
    }*/
    
    .choix>a {
        position: absolute;
        display: table;
        font-family: 'Frutiger Neue LT Regular';
        font-size: 60%;
        color: white;
        text-decoration-line: none;
        background-color: rgb(255, 119, 43, 0.6);
        left: 50%;
        transform: translate(-50%,-50%);
        top:70%;
        width: 24%;
        text-align: center;
        padding-top: calc(1vw + 0px);
        padding-bottom: calc(1vw + 0px);
        line-height: normal;
        text-decoration-line: none;
        z-index: 1;
    }
    
    .choix>a:nth-of-type(1) {
        top: 48%;
    }
    
    .choix>a:nth-of-type(2) {
        top: 66%;
    }
    
    .choix>a:nth-of-type(3) {
        top: 78%;
    }
    
    .choix>a:nth-of-type(4) {
        top: 36%;
    }
    
    .choix>a:nth-of-type(5) {
        top: 22%;
    }
    
    .choix>a:nth-of-type(6) {
        top: 8%;
    }
    .abandon,
    .victoire {
        /*réinitialise le style des choix du css global*/
        left: initial !important;
        top: initial !important;
        position: initial !important;
        border: none;
        text-align: center;
        text-decoration: none;
    }

    .abandon {
        position: fixed !important;
        bottom: 5.5%;
        left: 56% !important;
        transform: translateX(-50%);
        width: 80px !important;
        display: block !important;
        padding: 8px 0px !important;
    }

    .victoire {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translateX(-50%);
    }
    .boutonplay {
        display: none;
        position: absolute;
        left: 12%;
        bottom: 5%;
        box-sizing: border-box;
        border-style: solid;
        border-width: 16px 0px 16px 25px;
        border-color: transparent transparent transparent white;
        background-color: transparent;
        z-index: 1;
    }
    
    .boutonplay:hover {
        border-color: transparent transparent transparent rgb(255, 119, 43);
    }
    
    .boutonpause {
        display: block;
        position: absolute;
        left: 12%;
        bottom: 5%;
        height: 32px;
        border-style: double;
        border-width: 0px 0px 0px 25px;
        border-color: white;
        background-color: transparent;
        z-index: 1;
    }
    
    .boutonpause:hover {
        border-color: transparent transparent transparent rgb(255, 119, 43);
    }
    
    .boutonchoix {
        display: block;
        position: absolute;
        bottom: 5%;
        left: calc(50% - 16px);
        background-color: transparent;
        width: 32px !important;
        height: 32px;
        background-size: cover;
        background-image: url(../../ressources/medias/picto/arrow.png);
        cursor: pointer;
        border: 0;
        overflow: hidden;
        z-index: 1;
    }
    .boutoncarte {
        display: block;
        position: absolute;
        bottom: 5%;
        right: 34%;
        background-color: transparent;
        z-index: 1;
        width: 22px;
        height: 32px;
        background-size: cover;
        background-image: url(../../ressources/medias/picto/carte.png);
        cursor: pointer;
        overflow: hidden;
    }
    
    .boutonFermer {
        display: block;
        position: absolute;
        top: 1%;
        right: 1%;
        background-color: transparent;
        z-index: 1;
        width: 32px;
        height: 32px;
        background-size: cover;
        background-image: url(../../ressources/medias/picto/cancel.png);
        cursor: pointer;
        overflow: hidden;
    }
    
    .boutonOptions {
        display: block;
        position: absolute;
        bottom: 5%;
        left: 34%;
        z-index: 1;
        width: 32px;
        height: 32px;
        background-size: cover;
        background-image: url(../../ressources/medias/picto/config.png);
        background-color: inherit;
        cursor: pointer;
    }
    
    .boutonreplay {
        display: block;
        position: absolute;
        left: 12%;
        bottom: 5%;
        background-color: transparent;
        z-index: 1;
        width: 30px;
        height: 32px;
        background-size: contain;
        background-image: url(../../ressources/medias/picto/replay.png);
        cursor: pointer;
        overflow: hidden;
    }
    
    .boutonscript {
        display: block;
        position: absolute;
        bottom: 5%;
        right: 12%;
        background-color: transparent;
        z-index: 1;
        width: 24px;
        height: 32px;
        background-size: contain;
        background-image: url(../../ressources/medias/picto/script.png);
        cursor: pointer;
        border: 0;
        padding: 0px !important;
        overflow: hidden;
    }
}
@media all and (orientation : portrait){
    /*.choix {
        display: none;
        position: absolute;
        display: table;
        font-family: 'Frutiger Neue LT Regular';
        font-size: 68%;
        color: white;
        text-decoration-line: none;
        background-color: rgb(255, 119, 43, 0.6);
        left: 0%;
        top:50%;
        width: 100%;
        text-align: center;
        padding-top: calc(2vw + 0px);
        padding-bottom: calc(2vw + 0px);
        line-height: normal;
        text-decoration-line: none;
        z-index: 1;
    }*/
    
    .choix>a {
        position: absolute;
        display: table;
        font-family: 'Frutiger Neue LT Regular';
        font-size: 68%;
        color: white;
        text-decoration-line: none;
        background-color: rgb(255, 119, 43, 0.6);
        left: 36.25%;
        top:50%;
        width: 27.45%;
        text-align: center;
        padding-top: calc(2vw + 0px);
        padding-bottom: calc(2vw + 0px);
        line-height: normal;
        text-decoration-line: none;
        z-index: 1;
    }
    
    .choix>a:nth-of-type(1) {
        top: 48%;
    }
    
    .choix>a:nth-of-type(2) {
        top: 66%;
    }
    
    .choix>a:nth-of-type(3) {
        top: 78%;
    }
    
    .choix>a:nth-of-type(4) {
        top: 36%;
    }
    
    .choix>a:nth-of-type(5) {
        top: 22%;
    }
    
    .choix>a:nth-of-type(6) {
        top: 8%;
    }
    .abandon,
    .victoire {
        /*réinitialise le style des choix du css global*/
        left: initial !important;
        top: initial !important;
        position: initial !important;
        border: none;
        text-align: center;
        text-decoration: none;
    }

    .abandon {
        position: fixed !important;
        bottom: 18%;
        left: 51% !important;
        transform: translateX(-50%);
        width: 80px !important;
        display: block !important;
        padding: 10px 0px !important;
    }

    .victoire {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translateX(-50%);
    }
    video {
        max-height: calc(100% - 50px);
    }
    .boutonplay {
        display: none;
        position: absolute;
        left: 28%;
        bottom: 5%;
        box-sizing: border-box;
        border-style: solid;
        border-width: 16px 0px 16px 25px;
        border-color: transparent transparent transparent white;
        background-color: transparent;
        z-index: 1;
    }
    
    .boutonplay:hover {
        border-color: transparent transparent transparent rgb(255, 119, 43);
    }
    
    .boutonpause {
        display: block;
        position: absolute;
        left: 28%;
        bottom: 5%;
        height: 30px;
        border-style: double;
        border-width: 0px 0px 0px 25px;
        border-color: white;
        background-color: transparent;
        z-index: 1;
    }
    
    .boutonpause:hover {
        border-color: transparent transparent transparent rgb(255, 119, 43);
    }
    
    .boutonchoix {
        display: block;
        position: absolute;
        bottom: 5%;
        left: calc(50% - 16px);
        background-color: transparent;
        width: 32px !important;
        height: 32px;
        background-size: cover;
        background-image: url(../../ressources/medias/picto/arrow.png);
        cursor: pointer;
        border: 0;
        overflow: hidden;
        z-index: 1;
    }
    .boutoncarte {
        display: block;
        position: absolute;
        bottom: 5%;
        right: 32%;
        background-color: transparent;
        z-index: 1;
        width: 22px;
        height: 32px;
        background-size: cover;
        background-image: url(../../ressources/medias/picto/carte.png);
        cursor: pointer;
        overflow: hidden;
    }
    
    .boutonFermer {
        display: block;
        position: absolute;
        top: 1%;
        right: 1%;
        background-color: transparent;
        z-index: 1;
        width: 32px;
        height: 32px;
        background-size: cover;
        background-image: url(../../ressources/medias/picto/cancel.png);
        cursor: pointer;
        overflow: hidden;
    }
    
    .boutonOptions {
        display: block;
        position: absolute;
        bottom: 5%;
        left: 22%;
        z-index: 1;
        width: 30px;
        height: 30px;
        background-size: cover;
        background-image: url(../../ressources/medias/picto/config.png);
        background-color: inherit;
        cursor: pointer;
    }
    
    .boutonreplay {
        display: block;
        position: absolute;
        left: 40%;
        bottom: 5%;
        background-color: transparent;
        z-index: 1;
        width: 26px;
        height: 28px;
        background-size: contain;
        background-image: url(../../ressources/medias/picto/replay.png);
        cursor: pointer;
        overflow: hidden;
    }
    
    .boutonscript {
        display: block;
        position: absolute;
        bottom: 5%;
        right: 37%;
        background-color: transparent;
        z-index: 1;
        width: 22px;
        height: 30px;
        background-size: contain;
        background-image: url(../../ressources/medias/picto/script.png);
        cursor: pointer;
        border: 0;
        padding: 0px !important;
        overflow: hidden;
    }
}

@font-face {
    font-family: 'Frutiger Neue LT Regular';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/Frutiger Neue LT.woff') format('woff');
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #888;
}

tw-story {
    padding: 0 0;
}

html {
    overflow: hidden;
}

button {
    padding: 0;
    border: 0;
}

video {
    display: block;
    width: 80%;
    margin: auto;
    position: absolute;
    top: 50%;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}
.imagefond {
    display: block;
    margin: auto;
    height: 100vh;
    border: none;
}

iframe {
    display: block;
    margin: auto;
    width: 100%;
    height: 100vh;
    border: none;
}


#btnRetourArriere,
#btnRetourAvant {
    width: 32px;
    height: 32px;
    position: absolute;
    background-size: cover;
    border: 0;
}

#btnRetourArriere {
    background-image: url(../../ressources/medias/picto/arrowleft.png);
    bottom: 5%;
    left: 46%;
}

#btnRetourAvant {
    background-image: url(../../ressources/medias/picto/arrowright.png);
    bottom: 5%;
    left: 52.4%;
}



.plan {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0%;
}



.scripts,
.scripts>h1,
.scripts>h3,
.scripts>p,
.scripts>p:nth-of-type(2),
.closescript {
    z-index: 5;
}

.options,
.options>h1,
.boutonAide,
.closeOptions {
    z-index: 3;
}

.scripts,
.options {
    display: block;
    position: absolute;
    background-color: rgba(20, 62, 134);
    width: 100%;
    transition: height 0.95s ease, opacity 0.5s;
    height: 0%;
    width: 100%;
    left: 0%;
    top: 0%;
}

.scripts {
    opacity: 1;
}

.options {
    opacity: 0.95;
}

.scripts>h1,
.options>h1 {
    display: none;
    font-size: 3vw;
    opacity: 0;
    color: white;
    transition: opacity 0.60s;
    margin: auto;
    margin-top: 50px;
    text-align: center;
}

.scripts>h3 {
    display: none;
    position: absolute;
    bottom: 8%;
    left: 30%;
    font-size: 2.5vw;
    opacity: 0;
    color: white;
    transition: opacity 1s;
}

.scripts>p {
    display: none;
    opacity: 0;
    position: absolute;
    top: 10%;
    color: white;
    /*overflow-y: scroll;*/
    font-size: 90%;
    height: 45vh;
    line-height: 24px;
    width: 100%;
    text-align: center;
    transition: opacity 0.80s;
}

.scripts>p:nth-of-type(2) {
    display: none;
    opacity: 0;
    position: absolute;
    top: 62%;
    color: white;
    overflow-y: hidden;
    font-size: 90%;
    height: 12vh;
    line-height: 24px;
    width: 100%;
    text-align: center;
    transition: opacity 0.80s;
}

.logo1 {
    display: none;
    position: absolute;
    height: 9%;
    width: 20%;
    bottom: 2%;
    left: 2%;
    transition: opacity 1.5s;
}

.logo2 {
    display: none;
    position: absolute;
    height: 9%;
    width: 15%;
    bottom: 2%;
    left: 27%;
    transition: opacity 1.5s;
}

.logo3 {
    display: none;
    position: absolute;
    height: 7%;
    width: 32%;
    bottom: 2%;
    right: 22%;
    transition: opacity 1.5s;
}

.logo4 {
    display: none;
    position: absolute;
    height: 9%;
    width: 17%;
    bottom: 2%;
    right: 2%;
    transition: opacity 1.5s;
}

.closescript,
.closeOptions {
    position: absolute;
    display: none;
    opacity: 0;
    border: none;
    top: 1%;
    right: 1%;
    width: 30px;
    height: 30px;
    font-size: 30px;
    color: white;
    background-color: transparent;
    transition: opacity 0.10s;
    cursor: pointer;
}

.closescript:hover,
.closeOptions:hover {
    color: rgb(255, 119, 43);
}

.closescript:focus,
.closeOptions:focus {
    outline: none;
    box-shadow: none;
}

.passage>p>a:hover {
    color: white;
    opacity: 1;
}

.boutonjeu>a:nth-of-type(1) {
    display: block;
    position: absolute;
    bottom: 0%;
    left: 0%;
    background-color: rgb(255, 119, 43, 0.6);
    ;
    height: 8vh;
    width: 50vw;
    line-height: 3;
    text-align: center;
    font-family: 'Frutiger Bold';
    font-size: 20px;
    color: white;
}

.boutonjeu>a:nth-of-type(2) {
    display: block;
    position: absolute;
    bottom: 0%;
    right: 0%;
    background-color: rgb(255, 119, 43, 0.6);
    ;
    height: 8vh;
    width: 50vw;
    line-height: 3;
    text-align: center;
    font-family: 'Frutiger Bold';
    font-size: 20px;
    color: white;
}
.options {
    opacity: 1;
    color: white;
}

.subDiv,
.fontDiv {
    display: none;
}

.switch,
.optionsText {
    position: absolute;
    margin: 0;
}

.subSwitch,
.fontSwitch {
    left: 170px;
}

.subDiv {
    margin: auto;
    margin-top: 9%;
    width: 230px;
}

.fontDiv {
    margin: auto;
    width: 330px;
    height: 0px;
    margin-top: 2%;
}

.fontDiv input {
    width: 100px;
}

.fontDiv>input:nth-child(2) {
    margin-left: 294px;
    margin-top: 12px;
}

.KeyboardShortcutDiv {
    display: none;
    margin: auto;
    width: 570px;
    height: 100px;
    margin-top: 10px;
}

.KeyboardShortcutDiv table {
    margin: 25px 0 0 40px;
}

.subText {
    width: 120px;
}

.fontText {
    width: 274px;
}

.boutonAide {
    display: none;
    position: absolute;
    bottom: 15%;
    left: calc(50% - 54px);
    background-color: rgb(255, 119, 43, 0.6);
    color: white;
    font-family: 'Frutiger Neue LT Regular';
    padding: 8px 15px;
    transition: opacity 0.60s;
    cursor: pointer;
    z-index: 4;
}


/* The switch - the box around the slider */

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}


/* Hide default HTML checkbox */

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}


/* The slider */

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


/* Rounded sliders */

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

@media all and (orientation : portrait){ 
    video {
        object-fit: cover;
        width: 100%;
        height: 100vh;
        /* Fallback for browsers that do not support Custom Properties */
        height: calc(var(--vh, 1vh) * 100);
    }
    .imagefond,
    iframe {
        display: block;
        position: absolute;
        top: 0%;
        border: none;
        height: 103%;
        width: 100%;
        left: 0%;
    }
    .boutonplay {
        left: 1%;
    }
    .boutonpause {
        left: 1%;
    }
    .boutonreplay {
        left: 1%;
    }
    .boutoncarte {
        bottom: inherit;
        top: 1%;
        right: 1%;
    }
    .boutonFermer {
        top: 1%;
        right: 1%;
    }
    .boutonOptions {
        bottom: inherit;
        left: 1%;
        top: 1%;
    }
    .boutonscript {
        right: 1%;
    }
    .plan {
        height: 100%;
        width: 100%;
        left: 0%;
    }
    .choix>a {
        width: 100vw;
        left: 0vw;
    }
    .scripts,
    .options {
        left: 0%;
        width: 100%;
    }
    .scripts>h1,
    .options>h1 {
        font-size: 11vw;
    }
    .scripts>h3 {
        font-size: 9vw;
    }
}

#custom-seekbar {
    height: 20px;
    outline: thin solid rgb(255, 119, 43);
    overflow: hidden;
    position: absolute;
    bottom: 0;
    cursor: pointer;
}

#custom-seekbar span {
    background-color: rgb(255, 119, 43);
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 0px;
}
@media all and (orientation : landscape) {
    #btnRetourArriere {
        left: 35%;
    }
    #btnRetourAvant {
        left: calc(65% - 32px);
    }
}
@media all and (orientation : portrait){ 
    .abandon {
        font-size: 13px;
        width: 72px !important;
    }
    #btnRetourArriere {
        left: 20%;
    }
    #btnRetourAvant {
        left: calc(80% - 32px);
    }
}
video {
    background-size: 50px 50px;
    background-position: center;
}

::cue {
    font-size: 1.2em;
}