/*
Rose: #FD007B
Bleu: #0A00FD
*/

@font-face {
    font-family: Bahnschrift;
    src: url(fonts/bahnschrift.ttf) format("truetype");
}

/** Global **/
body {
    font-family: Bahnschrift;
    background-color: #191919;
    margin:0;
    padding:0;
    color: #ffffff;
}

h2 {
    font-size: 1.75em;
    text-align: center;
}

#logo-header {
    max-width: 200px;
    padding: 0.5em 1.5em;
}

.gradient-separator {
    height: 0.5em;
    background: linear-gradient(to right, #0A00FD 20%, #FD007B 40%, #FD007B 60%, #0A00FD 80%);
    background-size: 200% auto;
    animation: separator-wave 3s linear infinite; 
}

@keyframes separator-wave {
    to {
        background-position: 200% center;
    }
}

/** Description **/
#description-container {
    background-image: url(images/let_me_pass_screenshot.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: calc(100vw * 540 / 1080);
}

#logo-lmp {
    display: block;
    margin: auto;
    width: calc(100vw * 350 / 1200);
    padding-top: 1em;
}

/** Banniere Video + Google Play **/
#banniere-badge {
    margin-bottom: 0;
    background-image: url(images/BanniereLMPBW.svg);
    background-size: cover;
    background-repeat: no-repeat;
}


/* Banniere badge */
#play-store-plus-video {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
}

#smartphone-container {
    background-image: url(images/Telephone_tour_alpha_resize.png);
    width: calc(631px * 250 / 350);
    background-repeat: no-repeat;
    background-size: contain;
    max-width: 100%;
    margin-top: 1.5em;
}

#gameplay-video {
    position: relative;
    z-index: 10;
    width: calc(100vw * 400 / 450);
    max-width: 400px;
    margin: 1.25em 1.75em;
    left: 0;
    top: 0;
    height: calc(calc(100vw * 208 / 400) - 2em);
    max-height: 208px;
    border-radius: 15px;
    transform: initial;
}

#google-play-link {
    display: block;
    text-align: center;
}

#google-play-badge {
    position: relative;
    width: 100%;
    max-width: 350px;
}

/* Car Container */
#left-triangle {
    background: linear-gradient(to right, #0A00FD 20%, #FD007B 40%, #FD007B 60%, #0A00FD 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-left 3s linear infinite;
}

@keyframes gradient-left {
    to {
        background-position: 200% center;
    }
}

#right-triangle {
    background: linear-gradient(to left, #FD007B 20%, #0A00FD 40%, #0A00FD 60%, #FD007B 80%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-right 3s linear infinite reverse;
}

@keyframes gradient-right {
    to {
        background-position: 200% center;
    }
}

@keyframes respiration {
    0% {
        filter: drop-shadow(5px 0 white) drop-shadow(0 5px 0 white) drop-shadow(-5px 0 white) drop-shadow(0 -5px 0 white);
    }
    50% {
        filter: drop-shadow(15px 0 white) drop-shadow(0 15px 0 white) drop-shadow(-15px 0 white) drop-shadow(0 -15px 0 white);
    }
    100% {
        filter: drop-shadow(5px 0 white) drop-shadow(0 5px 0 white) drop-shadow(-5px 0 white) drop-shadow(0 -5px 0 white);
    }
}

#big-car {
    position:relative;
    max-width: 100%;
    top: 16px;
    filter: drop-shadow(10px 0 white) drop-shadow(0 10px 0 white) drop-shadow(-10px 0 white) drop-shadow(0 -10px 0 white);
    animation: respiration 2s ease infinite;
}

.mini_car {
    cursor: pointer;
}

#flex-car-container {
    background-image: url(images/route.svg);
    background-repeat: no-repeat;
    background-attachment: scroll;
    background-position: right bottom;
    background-size: 70%;
}

.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: normal;
    align-content: normal;
}

.flex-items {
    width: 100%;
    margin-bottom: 32px;
}

.flex-items div {
    display: block;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
}

.flexbox-cars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.flexbox-cars div img {
    max-width: 80%;
    display: block;
    height: fit-content;
    margin: 1.5em auto;
    filter: drop-shadow(4px 4px 4px black);
    border-radius: 20px;
    transition: 0.3s;
}

.flexbox-cars div img:hover {
    max-width: 100%;
    margin: 0.5em auto;
}

.flexbox-cars div {
    border-radius: 1em;
    padding: 1em;
    box-sizing: content-box;
    max-width: calc(calc(100vw / 3) - 1em * 3);
    margin: 0.25em;
}

.flexbox-cars div:nth-child(1) {
    background:
        linear-gradient(0deg, #191919, #191919) 50% 50%/calc(100% - 20px) calc(100% - 20px) no-repeat,
        linear-gradient(130deg, #0a00fd 0%, #fd007b 100%) no-repeat 0 0/500% 500%;
}

.flexbox-cars div:nth-child(2) {
    background:
        linear-gradient(0deg, #191919, #191919) 50% 50%/calc(100% - 20px) calc(100% - 20px) no-repeat,
        linear-gradient(130deg, #0a00fd 0%, #fd007b 100%) no-repeat 50% 0/500% 500%;
}

.flexbox-cars div:nth-child(3) {
    background:
        linear-gradient(0deg, #191919, #191919) 50% 50%/calc(100% - 20px) calc(100% - 20px) no-repeat,
        linear-gradient(130deg, #0a00fd 0%, #fd007b 100%) no-repeat 100% 0/500% 500%;
}

.flexbox-cars div:nth-child(4) {
    background:
        linear-gradient(0deg, #191919, #191919) 50% 50%/calc(100% - 20px) calc(100% - 20px) no-repeat,
        linear-gradient(130deg, #0a00fd 0%, #fd007b 100%) no-repeat 0 50%/500% 500%;
}

.flexbox-cars div:nth-child(5) {
    background:
        linear-gradient(0deg, #191919, #191919) 50% 50%/calc(100% - 20px) calc(100% - 20px) no-repeat,
        linear-gradient(130deg, #0a00fd 0%, #fd007b 100%) no-repeat 50% 50%/500% 500%;
}

.flexbox-cars div:nth-child(6) {
    background:
        linear-gradient(0deg, #191919, #191919) 50% 50%/calc(100% - 20px) calc(100% - 20px) no-repeat,
        linear-gradient(130deg, #0a00fd 0%, #fd007b 100%) no-repeat 100% 50%/500% 500%;
}

.flexbox-cars div:nth-child(7) {
    background:
        linear-gradient(0deg, #191919, #191919) 50% 50%/calc(100% - 20px) calc(100% - 20px) no-repeat,
        linear-gradient(130deg, #0a00fd 0%, #fd007b 100%) no-repeat 0 100%/500% 500%;
}

.flexbox-cars div:nth-child(8) {
    background:
        linear-gradient(0deg, #191919, #191919) 50% 50%/calc(100% - 20px) calc(100% - 20px) no-repeat,
        linear-gradient(130deg, #0a00fd 0%, #fd007b 100%) no-repeat 50% 100%/500% 500%;
}
.flexbox-cars div:nth-child(9) {
    background:
        linear-gradient(0deg, #191919, #191919) 50% 50%/calc(100% - 20px) calc(100% - 20px) no-repeat,
        linear-gradient(130deg, #0a00fd 0%, #fd007b 100%) no-repeat 100% 100%/500% 500%;
}

/** Screenshot **/
#screenshot-container {
    display: block;
    margin-left: auto;
    margin-right: auto;
    background: url(images/InGame_7.png);
    background-size: cover;
    background-position: center;
}

#screenshot-container h2 {
    margin: 0;
    padding-top: 40px;
    padding-bottom: 20px;
}

#flexbox-screenshot {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 32px;
    height: 500px;
}

#flexbox-screenshot img {
    max-width: 90%;
    height: fit-content;
    filter: drop-shadow(8px 8px 8px black);
    border-radius: 20px;
    transition: 0.3s;
}

#flexbox-screenshot img:hover {
    max-width: 35%;
}

.ingame {
    cursor: zoom-in;
}

/** Factsheet **/
#factsheet-container {
    padding: 1em;
    display: block;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff;
}

#factsheet-container h2 {
    margin: 0;
    color: #191919;
    text-align: start;
    font-size: 64px;
}

#flexbox-factsheet > img {
    max-width: 100%;
    height: fit-content;
    padding-top: 50px;
    padding-bottom: 50px;
}

#factsheet-text-block p {
    text-align: left;
    color: #191919;
    font-size: 20px;
    font-weight: lighter;
}

#factsheet-text-block p span {
    color: #191919;
    font-weight: bold;
    font-style: normal;
}

.flexbox-factsheet-images {
    display: flex;
    flex-wrap: nowrap;
}

#lmp-logo-factsheet {
    position: relative;
    width: 350px;
    display: block;
    left: 63%;
    bottom: 225px;
}

span {
    font-weight: bold;
    font-style: italic;
    color:#2C86F5;
}

/** Header **/
#header-image {
    max-width: 100%;
    padding-top: 40px;
    padding-bottom: 40px;
}

/** Credit **/
#credit-container h2 {
    padding-top: 40px;
    padding-bottom: 20px;
}

#credit-container p {
    margin: 0;
}

#credit-text-block p {
    text-align: center;
}

#footer {
    display: block;
    margin: auto;
    padding: 2em;
    text-align: center;
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
	/* Logo Stratus */
    #logo-header {
        display: block;
        margin:auto;
    }

    /* Car Container */
    .flex-container {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: normal;
        align-content: normal;
        height: initial;
    }

    /* Screenshot Container */
    #flexbox-screenshot {
        height: initial;
    }
    
    #flexbox-screenshot {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        padding: 2.5em;
    }

    #flexbox-screenshot img {
        max-width: 100%;
        height: fit-content;
        filter: drop-shadow(8px 8px 8px black);
        border-radius: 20px;
        margin-bottom: 1em;
    }

    #flexbox-screenshot img:hover {
        max-width: 100%;
    }

    /* Factsheet */
    #lmp-logo-factsheet {
        position: relative;
        max-width: 500px;
        display: block;
        margin: auto;
        left: 0;
        bottom: 0;
        padding-bottom: 2em;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
	h2 {
        font-size: 2.5em;
    }

	/* Logo Stratus */
    #logo-header {
        display: block;
        margin:auto;
    }

    /* Car Container */
    .flex-container {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: normal;
        align-content: normal;
        height: initial;
        margin: auto;
    }

    .flexbox-cars div {
        max-width: calc(calc(100vw / 3) - 1.25em * 3);
    }

    /* Screenshot Container */
    #screenshot-container h2 {
        font-size: 2.5em;
    }

    #flexbox-screenshot {
        height: initial;
    }
    
    #flexbox-screenshot {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        max-width: calc(900px - 2em);
        margin: auto;
    }

    #flexbox-screenshot img {
        max-width: 100%;
        height: fit-content;
        filter: drop-shadow(8px 8px 8px black);
        border-radius: 20px;
        margin-bottom: 1em;
    }

    #flexbox-screenshot img:hover {
        max-width: 100%;
    }

    /* Factsheet */
    #factsheet-container {
        padding: 2em;
    }
    
    #lmp-logo-factsheet {
        position: relative;
        max-width: 500px;
        display: block;
        margin: auto;
        left: 0;
        bottom: 0;
        padding-bottom: 2em;
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    /* Banniere badge */
    #smartphone {
        height: calc(100vw * 150 / 375);
    }

    #gameplay-video {
        width: calc(100vw * 245 / 375);
        height: calc(100vw * 130 / 375);
    }

    /* Screenshot container */
    #screenshot-container h2 {
        font-size: 3.5em;
    }

    #flexbox-screenshot {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        padding: 1.5em;
    }

    .flexbox-cars div {
        max-width: calc(calc(100vw / 3) - 1.5em * 3);
    }

    #flexbox-screenshot img {
        max-width: 45%;
        height: fit-content;
        filter: drop-shadow(8px 8px 8px black);
        border-radius: 20px;
        margin-bottom: 1em;
    }

    #flexbox-screenshot img:hover {
        max-width: 45%;
    }

    #factsheet-container {
        padding: 4em;
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    /* Global */
    #container {
        max-width: 100%;
    }

    /** Trailer **/
    #flexbox-trailer iframe {
        width: 48%;
        margin-left: 0.5%;
        margin-right: 0.5%;
        height: 300px;
    }

    #flexbox-trailer iframe:nth-child(1) {
        margin-bottom: 0;
    }

    /** Screenshot **/
    #screenshot-container h2 {
        font-size: 5em;
    }

    #flexbox-screenshot img {
        max-width: 30%;
        -webkit-order: 0;
        -ms-flex-order: 0;
        order: 0;
        -webkit-flex: 0 1 25%;
        -ms-flex: 0 1 25%;
        flex: 0 1 25%;
        -webkit-align-self: auto;
        -ms-flex-item-align: auto;
        align-self: auto;
    }

    #flexbox-screenshot img:hover {
        max-width: 30%;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    /* Global */
    #container {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Header */
    #logo-header {
        display: initial;
        margin: initial;
    }

    /* Banniere badge */
    #play-store-plus-video {
        flex-direction: row;
        top: -140px;
    }

    #smartphone-container {
        background-image: url(images/Telephone_tour_alpha_resize.png);
        height: 250px;
        width: calc(631px * 250 / 350);
        background-repeat: no-repeat;
        background-size: cover;
    }

    #gameplay-video {
        position: relative;
        z-index: 10;
        width: 400px;
        margin: 1.25em 1.75em;
        left: 0;
        top: 0;
        height: 208px;
        border-radius: 15px;
        transform: initial;
    }

    #flex-car-container {
        background-image: url(images/route.svg);
        background-repeat: no-repeat;
        background-attachment: scroll;
        background-position: right bottom;
        background-size: 70%;
    }

    .flex-container {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: normal;
        align-content: normal;
        max-width: 1200px;
    }

    .flex-items {
        width: 100%;
        margin-bottom: 32px;
    }

    .flex-items div {
        display: block;
        flex-grow: 0;
        flex-shrink: 1;
        flex-basis: auto;
        align-self: auto;
        order: 0;
    }

    .flexbox-cars {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .flexbox-cars div img {
        max-width: 80%;
        display: block;
        height: fit-content;
        margin: 24px auto;
        filter: drop-shadow(4px 4px 4px black);
        border-radius: 20px;
        transition: 0.3s;
    }

    .flexbox-cars div img:hover {
        max-width: 100%;
        margin: 8px auto;
    }

    .flexbox-cars div {
        border-radius: 16px;
        padding: 16px;
        box-sizing: content-box;
        max-width: calc((1180px /2) / 4);
        margin: 4px;
    }

    #factsheet-container {
        padding: 8em;
    }

    #long-text {
        max-width: 60%;
    }

    #lmp-logo-factsheet {
        position: relative;
        width: 350px;
        display: block;
        margin: 0;
        float: right;
        bottom: 225px;
        padding-bottom: 0;
        left: initial;
    }
}

/** Modal **/
.o-1 {
    opacity: 1 !important;
}

.m-1 {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    top: 0;
    left: 0;
    transition: opacity 150ms ease-in;
    opacity: 0;
    z-index: 10;
    text-align: center;
    white-space: nowrap;
}

.m-1::before {
    content: '';
    width: 0;
    height: 100%;
    vertical-align: middle;
    display: inline-block;
}

.m-2 {
    position: fixed;
    background-color: rgba(0,0,0,0.75);
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
}

.m-3 {
    min-height: auto;
    padding: 30px;
    display: inline-flex;
    text-align: left;
    vertical-align: middle;
    white-space: normal;
    top: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    width: calc(100vw - 60px);
}

.m-4 {
    position: relative;
    width: 100%;
}

.m-5 {
    display: flex;
    flex-direction: row;
    margin: 0 -30px;
}

.m-6 {
    display: block;
    max-width: 100%; /* Full width */
    max-height: calc(100vh - 60px); /* Full height */
    cursor: zoom-out;
    object-fit: contain;
    margin: auto;
}