@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
    --font-title: "Poppins", sans-serif;
    --first-color: #fff;
    --second-color: #000;
    --third-color: rgba(223, 216, 216, 0.9);
}

body {
    font-family: var(--font-title);
    padding: 0px;
    margin: 0px;
    overflow-x: hidden;
    background-image: url(../img/sfondosfumatura.png);
    background-repeat: no-repeat;
    background-size: cover;
}

body.noscroll {
    overflow: hidden;
}

p {
    margin: 0px;
    font-size: 16px;
}

h1 {
    font-size: 24px;
}

/* COVER */

.site-cover {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-cover .cover-video {
    width: 100vw;
    height: 100vh;
    position: absolute;
    z-index: -1;
}

.site-cover .cover-title .title p {
    text-align: center;
    font-size: 120px;
    margin-bottom: 0px;
    color: rgb(223, 12, 36);
    font-weight: 800;
    text-shadow: 2px 2px 4px var(--first-color);
}

.site-cover .cover-title .subtitle p {
    text-align: center;
    font-size: 40px;
    margin-bottom: 0px;
    font-weight: 600;
    color: rgb(223, 12, 36);
    text-shadow: 2px 2px 4px var(--first-color);
}

/* Button scroll */

.button-scroll {
    margin-top: 142px;
    left: 50%;
    position: absolute;
    color: var(--first-color);
}

/* SECTIONS */

.section {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 40px 20%;
    text-align: center;
}

.section p {
    margin-bottom: 16px;
    color: var(--first-color);
}

.section h1 {
    color: var(--first-color);
}

/* .section img {
    width: 100%;
} */

.section .column {
    padding: 0px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.section .anchor {
    padding-top: 90px;
    margin-top: -90px;
}

/* Video */

.layout-video {
    width: 100%;
    margin: 0px;
    padding: 0px;
    height: 100vh;
}

.layout-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-video .anchor {
    padding-top: 0px;
    margin-top: 0px;
}

/* Image */

.layout-image {
    width: 100%;
    margin: 0px;
    padding: 0px;
    height: 100vh;
}

.layout-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-image .anchor {
    padding-top: 0px;
    margin-top: 0px;
}

/* Big text */

.layout-big-text {
    height: 50vh;
    margin-top: 10%;
}

.layout-big-text h1 {
    font-size: 50px;
    text-align: center;
}

.layout-big-text p {
    font-size: 30px;
    text-align: right;
}

/* Columns */

.column {
    margin-left: 20px;
    width: max-content;
}

/* Columns (one column) */

.layout-1-1 {
    display: flex;
}

.layout-1-1 .column {
    width: 80%;
}

.layout-1-1 h1 {
    font-weight: 700;
    line-height: 120px;
}

.layout-1-1 p {
    font-weight: 600;
}

/* Columns (two columns): 1/2 + 1/2 */

.layout-1-2-1-2 {
    height: 100vh;
    font-size: 30px;
    text-align: left;
    font-weight: 400;
    display: flex;
}

/* .layout-1-2-1-2 .column {
    width: 50%;
} */

/* Columns (three columns): 1/3 + 1/3 + 1/3 */

.layout-1-3-1-3-1-3 {
    text-align: center;
    display: flex;
    padding: 0px 10px;
    margin-left: 6%;
}

.layout-1-3-1-3-1-3 .column {
    width: 33.333%;
}

/* ORBITA */

.orbita {
    position: relative;
    height: 45vh;
}

#orbita {
    width: 100%;
    height: 100%;
}

.imgorbita2 {
    z-index: -1;
    position: absolute;
    left: -27%;
}

.subtitleorbita2 {
    position: absolute;
    width: 52%;
    z-index: 1;
    top: 38%;
    left: 70%;
    text-align: right;
    font-weight: 400;
    font-size: 30px;
    color: var(--first-color);
    float: right;
}

.imgorbita1 {
    z-index: -1;
    position: absolute;
    top: 58%;
    left: -22%;
}

.subtitleorbita {
    position: absolute;
    width: 53%;
    z-index: 1;
    top: 124%;
    left: 69%;
    text-align: right;
    font-weight: 400;
    font-size: 30px;
    color: var(--first-color);
    float: right;
}

/* QUOTE */

#quote {
    height: 50vh;
    margin-top: 36%;
}

#quote h1 {
    font-size: 50px;
    text-align: center;
}

/* APERTURA */

.imgapertura {
    width: 280%;
    margin-bottom: 20%;
    margin-left: -52%;
}

/* STAGES */

.titlestage {
    margin-top: 10%;
    font-weight: 400;
    font-size: 30px;
    color: var(--first-color);
}

/* SPACEMAN */

.titlespaceman {
    text-align: center;
    font-weight: 700;
    font-size: 110px;
    color: var(--first-color);
}

.spaceman {
    position: relative;
}

.lunarmoduleillustator {
    z-index: -1;
    width: 70%;
}

#spacemanBA {
    position: absolute;
    z-index: 1;
    top: 73%;
    left: 25.5%;
}

#spacemanBA:hover {
    background-image: url(../img/Buzz_Aldrin.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#spacemanNA {
    position: absolute;
    z-index: 1;
    top: 82.5%;
    left: 47.1%;
}

#spacemanNA:hover {
    background-image: url(../img/Neil_Armstrong.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

#spacemanMC {
    position: absolute;
    z-index: 1;
    top: 73%;
    left: 69%;
}

#spacemanMC:hover {
    background-image: url(../img/Michael_Collins.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

/* SATURN V */

#sectionsaturnv {
    background-image: url(../img/sfondo.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.titlesaturnv {
    margin-left: -15%;
    text-align: left;
    font-weight: 700;
    font-size: 90px;
    color: var(--first-color);
}

.subtitlesaturnv {
    margin-top: -12%;
    margin-left: -15%;
    width: 84%;
    text-align: left;
    font-weight: 400;
    font-size: 30px;
    color: var(--first-color);
}

.imgsaturnv {
    width: 150%;
    text-align: right;
    margin-left: 62px;
}

.buttoninfo {
    cursor: pointer;
    position: absolute;
    z-index: 999;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 50%;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    text-transform: uppercase;
    transition: all 600ms cubic-bezier(0.75, -0.5, 0, 1.75);
}

.buttoninfo:hover {
    z-index: 1000;
    -webkit-transform: scale(2.5);
    -ms-transform: scale(2.5);
    transform: scale(2.5);
}

.buttoninfo::before {
    content: "";
    position: absolute;
    width: 0px;
    height: 0px;
    border-radius: 50%;
    z-index: 99;
    border: 2px solid rgba(255, 255, 255, 0);
}

.buttoninfo:hover:before {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 1);
}

.buttoninfo::after {
    content: "+";
    position: absolute;
    font-size: 2rem;
    font-weight: 400;
    color: var(--second-color);
}

.buttoninfo:hover:after {
    content: attr(data-hotspot);
    font-weight: 700;
    font-size: 0.4rem;
}

#SIC {
    top: 69.5%;
    left: 80%;
    text-align: center;
}

#SII {
    left: 102%;
    text-align: center;
}

#SIVB {
    top: 30%;
    left: 84%;
    text-align: center;
}

#ML {
    top: 22.4%;
    left: 99%;
    text-align: center;
}

#MS {
    left: 83%;
    top: 18%;
    text-align: center;
}

#MC {
    left: 99%;
    top: 15%;
    text-align: center;
}

/* Page dim for modal and menu */

.page-dim {
    content: "";
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0);
    z-index: 9998;
    -webkit-transition: all 500ms ease-in-out;
    -o-transition: all 500ms ease-in-out;
    transition: all 500ms ease-in-out;
    pointer-events: none;
}

.page-dim.active {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Card info */

.modal {
    position: fixed;
    width: 70vw;
    height: 70vh;
    /* display: -webkit-box;
    display: -ms-flexbox; */
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    opacity: 0;
    width: 100%;
    margin-top: 50px;
    pointer-events: none;
    transform: translateY(45px);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    z-index: 99999;
    pointer-events: all;
}

.modal p:last-child {
    padding-bottom: 45px;
}

.modal-inner {
    display: flex;
    position: relative;
    max-width: 1400px;
    background-color: var(--first-color);
    overflow-y: scroll;
    margin: auto;
    z-index: 9999;
}

.modal-inner h2 {
    color: var(--second-color);
}

.modal-inner p {
    color: var(--second-color);
    font-size: 18px;
}

.modal-inner > div {
    padding: 2rem;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.modal-left {
    width: 100%;
    min-height: 50vh;
    background: no-repeat center center;
    background-size: cover;
}

.modal-right {
    height: auto;
}

.modal-close {
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: 0px;
    width: 20px;
    height: 20px;
    padding: 20px;
    background-color: white;
    z-index: 9999;
    pointer-events: all;
}

@media (min-width: 800px) {
    .modal-inner {
        width: 90vw;
        max-height: 80vh;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
        height: calc(100% - 20px);
    }

    .modal-inner > div {
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        -ms-flex-preferred-size: 0;
        flex-basis: 0;
        padding: 3rem;
    }

    .modal-left {
        height: 100%;
    }

    .modal-right {
        height: 100%;
    }

    .modal-close {
        width: 30px;
        height: 30px;
    }
}

/* SATURN V PARTENZA */

#sectionstart {
    margin-left: 78px;
    margin-bottom: -38px;
    height: 100vh;
    background-image: url(../img/razzostart.png);
    background-repeat: no-repeat;
    background-size: 105%;
    background-position: center;
}

.start {
    position: relative;
    top: 20%;
    left: -16%;
    width: 80%;
    line-height: 120px;
}

.titlestart {
    font-weight: 600;
    font-size: 110px;
    color: var(--first-color);
    text-align: left;
    margin: 0;
}

.subtitlestart {
    margin-top: 10px;
    font-weight: 500;
    font-size: 40px;
    color: var(--first-color);
    text-align: left;
}

/* COUNTDOWN */

.sectioncountdown {
    height: 100vh;
    padding: 40px;
    background-image: url(../img/sfondo.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.titlecountendown {
    position: relative;
}

#count {
    position: absolute;
    left: 45%;
    color: var(--first-color);
    font-size: 15rem;
}

.button-start {
    position: absolute;
    left: 46%;
    margin-top: 340px;
    width: auto;
    height: auto;
    visibility: hidden;
    color: var(--first-color);
    font-size: 20px;
    font-weight: 600;
    padding: 0.5em 1.25em;
    border: 1.5px solid var(--first-color);
    border-radius: 5.5em;
}

.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

/* FOOTER */

.site-footer {
    background-color: var(--second-color);
    padding: 20px;
}

.site-footer p {
    color: var(--first-color);
    margin-bottom: 0px;
}
