:root {
    --background-color: #211F1F;
    --accent-color1: #8d704e;
    --rotate-pattern-size: 100px;
}

* {
    box-sizing: border-box;
}

h1,
h2 {
    font-family: "futura-pt", sans-serif;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

h3 {
    font-family: "futura-pt", sans-serif;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

p,
a {
    font-family: 'Space Mono', monospace;
    font-size: 1em;
    line-height: 150%;
    margin: 0;
}

a {
    text-decoration: none;
}

a:hover {
    color: var(--accent-color1);
    text-decoration: underline;
}

@keyframes fadein-onload {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeup-onload {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(3px);
    }

    to {
        opacity: 1;
        transform: translateY(0px);
        filter: blur(0px);
    }
}

.hidden1 {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-20px);
    transition: all 2s;
    -webkit-transition: all 2s;
    transition-delay: 300ms;
}

.fade-in {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
    transition-delay: 300ms;
}

.section1 {
    background-color: #101010;
}

.background-image {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('../img/orrery/orrery-pattern-1.png');
    background-size: 100%;
    background-attachment: fixed;
    background-color: #101010;
    /* padding: 20rem; */
    text-align: center;
    overflow: hidden;
    animation: fadein-onload 4s;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.intro-text {
    z-index: 6;
    position: relative;
    animation: fadeup-onload 4s;
}

.background-image h1 {
    color: #fff;
    font-size: 6em;
    line-height: 1em;
    letter-spacing: 18px;
    /* mix-blend-mode: difference; */
}

.background-image h1 span {
    letter-spacing: 0px;
}

.background-image h3 {
    color: #fff;
    font-size: 2em;
    line-height: 1em;
    letter-spacing: 5px;
    margin-left: 30px;
}

.background-image h3 span {
    letter-spacing: 0px;
}

.hidden-image {
    z-index: 5;
    position: absolute;
    top: -20rem;
    left: calc(50% - 10rem);
    width: 12rem;
    height: 12rem;
    background-image: url('../img/orrery/orrery-pattern-1.png');
    background-size: 102%;
    background-attachment: fixed;
    background-color: var(--accent-color1);
    border-radius: 50%;

    border: 5px solid #fff;
    box-shadow: inset 0 0 30px #000, inset 0 0 10px #000;
}
.section2 {
    display: flex;
    flex-direction: row;
    height: 100vh;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    gap: 1em;
    padding: 8em;
}

.section2 > div {
    width: 350px;
    height: 400px;
    background-repeat: no-repeat;
    /* background-color: red; */
}

.section2 > div:first-child {
    background-image: url(../img/orrery/logo-color.png);
    background-size: 300px;
    background-position: center 50px;
}

.section2 > div:last-child {
    background-image: url(../img/orrery/orrery-animation-small-b-matte.gif);
    background-size: 315px;
    background-position: center 0px;
    transition-delay: 1200ms;
}

.section3 {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    /* height: 100vh; */
    align-items: center;
    padding: 8em 0 0;
    /* background-color: gray; */
    /* padding: 1em; */
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(10 , 1fr);
    grid-template-rows: repeat(6 , 1fr);
    grid-template-areas: 
        ". . . . image1 image1 image1 . . ."
        "image2 image2 image2 . image1 image1 image1 . image3 image3"
        "image2 image2 image2 . image1 image1 image1 . image3 image3"
        ". image4 image4 image4 image1 image1 image1 . image3 image3"
        ". image4 image4 image4 image1 image1 image1 . image3 image3"
        ". image4 image4 image4 image1 image1 image1 . . .";
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    height: 70vh;
    gap: 1em;
    padding: 1em;
    margin: 0 auto;
    /* background-color: orange; */
}

.mockup-grid > div {
    /* background-color: red; */
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    border-radius: 4px;

}

.mockup-grid > div:first-child {
    grid-area: image1;
    background-image: url(../img/orrery/poster-tube.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

}

.mockup-grid > div:nth-child(2) {
    grid-area: image2;
    background-image: url(https://images.unsplash.com/photo-1535905557558-afc4877a26fc);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition-delay: 1200ms;
}

.mockup-grid > div:nth-child(3) {
    grid-area: image3;
    background-image: url(../img/orrery/pexels-avan-wathman-14050823.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition-delay: 2000ms;
}

.mockup-grid > div:nth-child(4) {
    grid-area: image4;
    background-image: url(../img/orrery/book-set.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    transition-delay: 2800ms;
}

.wall-poster {
    /* display: flex; */
    width: 100%;
    height: 700px;
    background-image: url(../img/orrery/wall-glued-posters.png);
    background-position: center bottom;
    background-size: cover;
    background-attachment: fixed;
    margin-top: 8em;
}

.section4 {
	background-color: transparent;
	padding: 8em 5em;
	display: flex;
	flex-direction: row;
    height: 100vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
	justify-content: center;
	align-items: center;
	gap: 3em;
}

.section4 > .passage1 {
    flex: 0 1 45%;
}

.section4 > .passage2 {
    flex: 0 1 55%;
}

.section4 > .passage1 > p:first-child {
    font-size: 2em;
	font-weight: 600;
    letter-spacing: -1px;
}

.section4 > .passage2 > p {
	font-size: 1.5em;
    letter-spacing: -1px;
}

/* .section4::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100vh;
    background-image: url(../img/orrery/orrery-animation-1k-b.gif);
    background-repeat: no-repeat;
    background-position: center right -300px;
    background-size: 75%;
    opacity: .15;
} */

p.heading {
    font-weight: 700;
}

.section5 {
    background-color: #000;
}

.rotate-element {
    --bg: url(../img/orrery/orrery-pattern-4.png);
    background-image: var(--bg);
    background-size: var(--rotate-pattern-size) var(--rotate-pattern-size);
    background-repeat: repeat;
    position: relative;
    width: 100%;
    height: 600px;
}

.rotate-element::before,
.rotate-element::after {
    content: '';
    width: var(--rotate-pattern-size);
    height: var(--rotate-pattern-size);
    background-size: var(--rotate-pattern-size) var(--rotate-pattern-size);
    background-repeat: no-repeat;
    position: absolute;
    top: var(--top);
    left: var(--left);
    cursor: default;
}

.rotate-element::before {
    background-image: linear-gradient(#000, #000);
    z-index: 1;
    
}

.rotate-element::after {
    background-image: url(../img/orrery/orrery-pattern-5.png);
    animation: var(--name) linear infinite 1s;
    z-index: 2;
}

@keyframes rot {
    to {
        transform: rotate(360deg);
    }
}

.section6 {
    display: flex;
    flex-direction: row;
    width: 100%;
    /* height: 100vh; */
    justify-content: center;
    align-items: center;
    padding: 18em 0;
}

.section6 > div {
    position: relative;
    height: 600px;
    width: 700px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    border-radius: 4px;
    background-image: url(../img/orrery/color-pallet.png);
    background-size: cover;
    background-position: center;
}

.section6 > .color-pallet > div {
    position: absolute;
    font-size: .85em;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 100px;
    padding: 10px;
    border-radius: 4px;
    /* opacity: 0; */
}

.color-pallet .pure-night {
    bottom: 100px;
    left: 250px;
    background-color: #fff;
}

.color-pallet .star-dust {
    top: 90px;
    right: 25px;
    color: #fff;
    background-color: #000000;
}

.section7 {
    display: flex;
    flex-direction: row;
    height: 80vh;
    width: 100%;
    background-image: url(../img/orrery/logo-gold-foil.png);
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    justify-content: center;
    align-items: end;
}

.section7 p {
    padding: 5em 1em 1em;
    color: #A9A9A9;
    font-size: 13px;
}

@media screen and (max-width: 900px) {

    .section2 {
        flex-direction: column;
    }

    .section2 > div:first-child {
        background-position: center;
        background-size: contain;
    }

    .section2 > div:last-child {
        transition-delay: 300ms;
    }

    .section3 {
        height: auto;
    }

    .mockup-grid {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
    }

    .mockup-grid > div {
        width: 45%;
        height: 400px;
    }

    .mockup-grid > div:nth-child(2) {
        transition-delay: 300ms;
    }

    .mockup-grid > div:nth-child(3) {
        transition-delay: 300ms;
    }

    .mockup-grid > div:nth-child(4) {
        transition-delay: 300ms;
    }

    .section4 {
        flex-direction: column;
    }

    .section4 > .passage1, .passage2 {
        flex: 0 1 auto;
    }

}

@media screen and (max-width: 700px) {

    .section4 {
        height: auto;
    }
    
    .section6 {
        height: 100vh;
        padding: 1em;
    }

    .section6 > div {
        height: 450px;
        width: 550px;
    }

    .color-pallet .pure-night {
        display: none;
    }

    .color-pallet .star-dust {
        display: none;
    }

}

@media screen and (max-width: 500px) {

    .background-image {
        background-size: 200%;
    }

    .hidden-image {
        background-size: 202%;
    }

    .background-image h1 {
        font-size: 4em;
    }

    .background-image h3 {
        font-size: 1.40em;
        margin-left: 20px;
    }

    .section2 > div {
        width: 250px;
        height: 300px;
        background-size: contain !important;
    }

    .mockup-grid > div {
        width: 100%;
        height: 400px;
    }

    .wall-poster {
        height: 450px;
    }

    .section4 {
        padding: 8em 2em;
    }

    .section6 {
        height: 100vh;
        padding: 8em 1em;
    }

    .section6 > div {
        height: 300px;
    }

}