html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    background: black;
}
/* écriture du cahier */
@font-face {
    font-family: aurore;
    src: url("fonts/La Belle Aurore.ttf");
}

/* titres .mobile */
@font-face {
    font-family: Paint;
    src: url("fonts/Paint-JpZDE.ttf");
}

/* plugin Like/Dislike (coeur et chiffre) */
@font-face {
    font-family: "cookiemonster";
    src: url("fonts/Cookiemonster-gv11.ttf");
}

a:focus {
    outline: none;
    padding: 0;
}

.controls > button {
    box-shadow: -1px 1px 0 #1c030333;
}

.desktop {

    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;

    img.background {
        position: absolute;
        width: 1707px;
        height: auto;
    }

    .tv-frame {
        position: absolute;
        z-index: 1;
        width: 386px;
        height: 283px;
        left: 346px;
        top: 113px;
        overflow: hidden;
        border-radius: 20px;
    }
    .tv-frame iframe {
        width: 100%;
        height: 100%;
        position: absolute;
    }

    #popup-container {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        backdrop-filter: blur(3px) brightness(0.5);
        visibility: hidden;
    }
    #popup-container .popup {
        max-height: 690px;
        width: 850px;
        background: #000;
        display: flex;
        padding: 3px;
    }
    .popup .content {
        flex: 1;
        overflow: hidden;
        position: relative;
    }
    .popup .content img {
        position: absolute;
        width: inherit;
        top: -70px;
        left: -4vw;
        filter: brightness(0.8);
    }
    .popup .content .text-container {
        display: flex;
    }
    .popup .content .texte {
        font-family: aurore, "Consolas", monospace;
        position: relative;
        padding: 2rem;
        flex: 1;
    }
    .popup .content .texte:nth-child(2) {
        padding: 2rem 2rem 2rem 5rem;
    }
    .popup .content .texte p {
        color: #06080F;
        font-size: 24px;
    }
    .popup .content .texte a {
        color: #006B88;
    }
}

.mobile {
    display: none;
    background-image: url("images/BackRoomsWallpaper2.png");

    .site__header {
        margin-bottom: 0;
        border-bottom: none;
    }
    .site__header > h1 {
        transform: rotate(-1.5deg);
    }
    .site__header > h1 > a {
        font-family: Paint, serif;
        color: #1c030373;
        font-size: 48px;
        background: linear-gradient(to bottom left, #1c030373 30%, #1c03031c 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        transform: rotate(-2deg);
    }
    .site__header > h2 {
        font-family: Paint, serif;
        color: #1c030373;
        transform: rotate(2deg);
    }

    main > h1 {
        font-family: Paint, serif;
        text-align: center;
        font-size: xxx-large;
        color: #1c030373;
        background: linear-gradient(to bottom right, #1c030345 40%, #1c030300 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: -5px;
        margin-bottom: 5rem;
        transform: rotate(1deg);
    }

    p {
        font-family: Consolas, Monaco, monospace;
        color: #0A1A23;
        margin-bottom: 2rem;
    }
    a {
        color: #0b8be3;
    }
    .frame {
        padding: 2rem;
        margin: 0 auto 2rem auto;
        display: block;
    }
    p.frame:nth-of-type(1) {
        border-width: 10px;
        max-width: 450px;
    }
    p.frame:nth-of-type(2) {
        border-color: #BBB8A2 #c3bfa3 #A8A48B #c3bfa3;
        border-width: 12px;
    }
    p.frame:nth-of-type(3) {
        max-width: 500px;
    }
    .background {

        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-repeat: no-repeat;
        background-size: cover;
        background-image: url("images/background-mobile-b.jpg");
    }
    .container {
        background-image: url("images/background-mobile-d.jpg"), url("images/background-mobile-e.jpg");
        position: relative;
        padding: 5rem;
        overflow: hidden;
        background-repeat: no-repeat, repeat;
    }

    .ecran {
        background-image: url("images/ecran-haut.jpg");
        background-repeat: no-repeat;
        padding: 7px 6px 10px 5px;
        margin: 0 auto 2rem auto;
        background-size: 100% 100%;
        box-shadow: 0 15px 25px 5px #231d0b;
    }
    .ecran .is-type-video {
        margin: 0;
    }
}


/*-----------------------------
    Grille des liens
------------------------------*/
.mini-grid {
    display: flex;
    padding: 2rem;
    filter: sepia(0.6);
    flex-wrap: wrap;
    align-items: center;

}
.desktop .mini-grid {
    transform: rotateX(3deg);
    position: absolute;
    left: 426px;
    right: 0;
    top: 0;
    transform-origin: top right;
    width: 1280px;

    li.grid-item img {
        width: 60px;
    }
}
.mobile .mini-grid {
    justify-content: space-around;
    padding: 0;
    grid-gap: 0;
}

/*-----------------------------
    Cadre tableau
------------------------------*/
.frame {
    list-style: none;
    list-style-type: none;
    margin: 0px;
    text-align: center;
    display: inline-block;
    border-width: 5px;
    border-style: solid;
    border-color: #2F2D2D #434040 #4F4C4C #434040;
    background: #f5f5f5;
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#E5E4DF), to(#CDCDC6));
    background-image: -webkit-linear-gradient(#E5E4DF, #CDCDC6);
    background-image: -moz-linear-gradient(#E5E4DF, #CDCDC6);
    background-image: -o-linear-gradient(#E5E4DF, #CDCDC6);
    background-image: linear-gradient(#E5E4DF, #CDCDC6);
    box-shadow: inset 0 2px 5px rgba(0,0,0,.6),0 5px 2px rgba(0,0,0,.1), 0 10px 20px rgba(0,0,0,.8);
    position: relative;
    overflow: hidden;
    padding: 10px;
}

.frame p {
    border-width: 2px;
    border-style: solid;
    border-color: #BBBAB4 #C7C7BF #E5E4DF #C7C7BF;
    box-shadow:  0 -1px 1px rgba(0,0,0,.1), 0 1px 1px 1px rgba(255,255,255,.7);
    margin-bottom: 0;
    color: #6e6e6e;
}

/*-----------------------------
    tippy.js
------------------------------*/
.tippy-box,
.tippy-content {
    padding: 0;
}

.tippy-box[data-theme~='notebook'] {

    .tippy-content {
        border: 1px solid #3c330a;
    }
}
.tippy-box[data-theme~='label'] {

    .label {
        width: 300px;
        background: #000 url("images/grunge-paper-02.jpg");
        padding: 2rem;
    }
    h1, h2, h3 {
        color: rgba(204, 204, 204, 0.75);
        font-family: "Open Sans", "Consolas", monospace;
        margin-bottom: 0.3rem;
    }
    h1 { font-style: italic }
}

.tippy-box[data-theme~='info'] {

    background: #202122;
    color: rgba(204, 204, 204, 0.76);
    font-family: "Consolas", monospace;
    padding: 1rem;
    border-radius: 0;
}

/*-----------------------------
    .pt-page (transition de sections)
------------------------------*/
.pt-perspective {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.pt-page {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    overflow: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    background-size: cover;
}

.pt-page:nth-child(3) {

    .scene {
        perspective: 1280px;
        perspective-origin: center center;
    }

}

.pt-page-current,
.no-js .pt-page {
    visibility: visible;
}

.no-js body {
    overflow: auto;
}

.pt-page-ontop {
    z-index: 999;
}
.scene {
    width: 100%;
    height: 100%;
    transform-origin: top left;
}

/*-----------------------------
    Portes Ascenseur
------------------------------*/
.portes {
    position: absolute;
    width: 211px;
    height: 334px;
    left: 689px;
    top: 402px;
    overflow: hidden;
    clip-path: polygon(1.47% 0.00%, 0% 100%, 100% 100%, 100% 0%);

    .porte {
        background-repeat: no-repeat;
        background-size: 100% 334px;
        width: 106px;
        height: 334px;
        position: absolute;
        overflow: hidden;
        transition: transform 1.5s linear;
    }
    .gauche {
        background-image: url("images/porte-G-02.png");
    }
    .droite {
        background-image: url("images/porte-D.png");
        background-color: #837d6f;
        right: 0;
    }
    .ombre {
        height: 334px;
        position: fixed;
        width: 106px;
        content: "";
        background-repeat: no-repeat;
        background-size: contain;
        transition: transform 1.5s linear;
    }
    .gauche .ombre {
        background-image: url("images/porte-G-ombre.png");
        /*margin-left: -1px;*/
    }
    .droite .ombre {
        background-image: url("images/porte-D-ombre.png");
        width: 103px;
    }

    &.opened {
        .gauche, .droite .ombre {
            transform: translateX(-100%);
        }
        .droite, .gauche .ombre {
            transform: translateX(100%);
        }
    }

    #retourAccueil {
        position: absolute;
        width: 211px;
        height: 334px;
    }
}

/*-----------------------------
    Plugin - Likes & Dislikes
------------------------------*/
.pld-like-dislike-wrap {

    .coeur,
    .pld-like-count-wrap {
        font-family: cookiemonster, Consolas, Monaco, monospace;
        font-size: 48px;
        color: #1c030333;
    }
}
.mobile .pld-like-dislike-wrap {
    display: flex;
    justify-content: center;

    .coeur {
        color: #8e2b2b9e;
    }
}
.desktop .likes {
    position: absolute;
    top: 100px;
    left: 230px;
}

/*-----------------------------
    Animations
------------------------------*/

/* room walls */
.pt-page-rotateRoomLeftOut {
    -webkit-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
    -webkit-animation: rotateRoomLeftOut .8s both ease;
    animation: rotateRoomLeftOut .8s both ease;
}
.pt-page-rotateRoomLeftIn {
    -webkit-transform-origin: 0% 50%;
    transform-origin: 0% 50%;
    -webkit-animation: rotateRoomLeftIn .8s both ease;
    animation: rotateRoomLeftIn .8s both ease;
}
.pt-page-rotateRoomRightOut {
    -webkit-transform-origin: 0% 50%;
    transform-origin: 0% 50%;
    -webkit-animation: rotateRoomRightOut .8s both ease;
    animation: rotateRoomRightOut .8s both ease;
}
.pt-page-rotateRoomRightIn {
    -webkit-transform-origin: 100% 50%;
    transform-origin: 100% 50%;
    -webkit-animation: rotateRoomRightIn .8s both ease;
    animation: rotateRoomRightIn .8s both ease;
}

.translateDoorLeftIn {
    animation: translateDoorLeftIn 2s linear forwards;
}
.translateDoorLeftOut {
    animation: translateDoorLeftOut 2s linear forwards;
}
.translateDoorRightIn {
    animation: translateDoorRightIn 2s linear forwards;
}
.translateDoorRightOut {
    animation: translateDoorRightOut 2s linear forwards;
}


/* room walls */

@-webkit-keyframes rotateRoomLeftOut {
    from { }
    to { opacity: .3; -webkit-transform: translateX(-100%) rotateY(90deg); }
}
@keyframes rotateRoomLeftOut {
    from { }
    to { opacity: .3; -webkit-transform: translateX(-100%) rotateY(90deg); transform: translateX(-100%) rotateY(90deg); }
}

@-webkit-keyframes rotateRoomLeftIn {
    from { opacity: .3; -webkit-transform: translateX(100%) rotateY(-90deg); }
}
@keyframes rotateRoomLeftIn {
    from { opacity: .3; -webkit-transform: translateX(100%) rotateY(-90deg); transform: translateX(100%) rotateY(-90deg); }
}

@-webkit-keyframes rotateRoomRightOut {
    from { }
    to { opacity: .3; -webkit-transform: translateX(100%) rotateY(-90deg); }
}
@keyframes rotateRoomRightOut {
    from { }
    to { opacity: .3; -webkit-transform: translateX(100%) rotateY(-90deg); transform: translateX(100%) rotateY(-90deg); }
}

@-webkit-keyframes rotateRoomRightIn {
    from { opacity: .3; -webkit-transform: translateX(-100%) rotateY(90deg); }
}
@keyframes rotateRoomRightIn {
    from { opacity: .3; -webkit-transform: translateX(-100%) rotateY(90deg); transform: translateX(-100%) rotateY(90deg); }
}

/*-----------------------------
    Media queries
------------------------------*/
.mobile {
    display: none;
}
@media (min-width: 992px) {
    .container { width: 750px; }
}
@media screen and (max-width: 1023px) {
    .desktop { display: none; }
    .mobile { display: block; }

}
@media screen and (max-width: 700px) {
    .mobile .container {
        padding: 2rem;
    }
}
