@import url('https://fonts.googleapis.com/css2?family=Alata&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300&display=swap');

/* font-family: 'Josefin Sans',
sans-serif;
font-family: 'Alata', sans-serif; */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-size: 15px;
    margin: 0;
}

/* Typography */

.font-family-jose {
    font-family: 'Josefin Sans', sans-serif;
}

.font-family-alata {
    font-family: 'Alata', sans-serif;
}

.uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

.nav__link {
    font-family: 'Josefin Sans', sans-serif;
    display: inline-block;
    text-decoration: none;
    font-size: 2rem;
    text-transform: uppercase;
    color: #fff;
}

@media screen and (min-width:769px) {
    .nav__link {
        text-transform: capitalize;
        font-size: 1rem;
        font-family: 'Alata', sans-serif;
    }
}

.hero__heading {
    margin-top: 5.5em;
    font-size: 2.5rem;
    padding: .5em;
    color: #fff;
    border: 4px solid #fff;
    line-height: 1.2;
    max-width: 400px;
}

@media screen and (min-width: 992px) {
    .hero__heading {
        margin-top: 1.6em;
        font-size: 4.5rem;
        min-width: max(600px, 740px);
        border: 2px solid;
        padding-left: .8em;
    }
}

.interactive__heading {
    text-align: center;
    font-size: 2.2rem;
}

@media screen and (min-width: 769px) {
    .interactive__heading {
        text-align: center;
        font-size: 3rem;
    }
}

.interactive__paragraph {
    text-align: center;
    font-size: 1.1rem;
    color: hsl(0, 0%, 55%);
    line-height: 2;
}

@media screen and (min-width:769px) {
    .interactive__paragraph {
        margin: 0;
    }
}

@media screen and (min-width:769px) {

    .interactive__heading,
    .interactive__paragraph {
        text-align: left;
    }
}

.creations__heading {
    text-align: center;
    font-size: 2.2rem;
}

@media screen and (min-width:769px) {
    .creations__heading {
        text-align: left;
    }
}

.creation__text {
    font-size: 1.6rem;
}

@media screen and (min-width: 769px) {
    .creation__text {
        font-size: 1.8rem;
    }
}

.creations__btn {
    font-size: 1.2rem;
    letter-spacing: 4px;
    word-spacing: .1em;
    border: none;
    transition: color 1s;
    transition: background-color 1s;
}

.creations__btn:hover,
.creations__btn:focus {
    color: #fff;
    background-color: black;
    transition: color 1s;
    transition: background-color 1s;
}

.footer__link {
    display: inline-block;
    text-decoration: none;
    font-size: 1rem;
    color: #fff;
}

.copy-right {
    color: hsl(0, 0%, 41%);
}

@media screen and (min-width: 769px) {
    .copy-right {
        text-align: right;
    }

}

.nav__link:after,
.footer__link:after {
    margin-top: .4em;
    display: block;
    content: '';
    border: 1px solid;
    transform: scaleX(0);
    transition: transform 500ms ease-in-out;
}

.nav__link:hover:after,
.footer__link:hover:after {
    transform: scale(1);
}



/* Layout */

.container {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
}

@media screen and (min-width:769px) {
    .container {
        width: 83%;
        max-width: 1440px;
        margin: 0 auto;
    }
}

/* ============HEADER========= */

.header {
    background-image: url("images/mobile/image-hero.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}


@media screen and (min-width: 769px) {
    .header {
        background-image: url("images/desktop/image-hero.jpg");
        min-height: 650px;
    }
}

.top-container {
    display: flex;
    justify-content: space-between;
    padding-top: 2em;
}

@media screen and (min-width: 769px) {
    .top-container {
        padding-top: 4em;
    }
}

.top-logo {
    width: 10em;
}

@media screen and (min-width: 769px) {
    .top-logo {
        width: 15em;
    }
}



/* -----NAVBAR--------- */

.nav {
    display: none;
}

.nav-toggle {
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
}

@media screen and (min-width: 769px) {
    .nav {
        display: block;
    }

    .nav-toggle {
        display: none;
    }
}

.hamburger-menu {
    background-image: url("images/icon-hamburger.svg");
    width: 24px;
    height: 16px;
    background-size: cover;
}

.close-icon {
    background-image: url("images/icon-close.svg");
    width: 20px;
    height: 20px;
}


@media screen and (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
}


.nav-display {
    display: block;
    position: fixed;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.nav__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav__item+.nav__item {
    margin-top: 1em;
}

@media screen and (min-width: 769px) {
    .nav__list {
        display: flex;
    }

    .nav__item+.nav__item {
        margin-top: 0;
        margin-left: 1em;
    }
}

.background-dark {
    background: #000;
    height: 100%;
    overflow-y: hidden;
}

.visibility {
    visibility: hidden;
}

/* ===============
    Interactive
    ============== */
/* Flex */
.row-1,
.row-2 {
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 769px) {
    .row-2 {
        flex-direction: row;
    }
}

@media screen and (min-width: 992px) {
    .row-1 {
        flex-direction: row;
    }

    .centering {
        justify-content: center;
    }
}

.interactive {
    margin: 6em auto;
}

@media screen and (min-width: 769px) {
    .interactive {
        margin: 10em auto;
    }
}

.interactive__img {
    height: 448px;
    width: 100%;
    background-image: url("images/mobile/image-interactive.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

@media screen and (min-width: 992px) {
    .interactive__img {
        height: 500px;
        width: 730px;
        background-image: url("images/desktop/image-interactive.jpg");
    }

    .col-2 {
        background-color: #fff;
        margin-left: -12em;
        align-self: flex-end;
        padding-left: 6em;
        width: 600px;
        height: 335px;
    }
}


/* ============
Section-3
============== */

.wrapper {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr repeat(8, 180px) 1fr;
    row-gap: 2em;
}



@media screen and (min-width: 769px) {
    .wrapper {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr repeat(2, 450px);
        column-gap: 2em;
    }
}

@media screen and (min-width: 992px) {
    .wrapper {
        margin-top: 13em;
    }
}

.creations__heading {
    place-self: center;
}

.creations__btn {
    outline: none;
    background-color: transparent;
    place-self: center;
    border: 1px solid #000;
    padding: .7em 2em;
    grid-row: 10/11;
}

@media screen and (min-width: 769px) {
    .creations__heading {
        grid-column: 1/3;
        grid-row: 1/2;
        place-self: auto;
    }

    .creations__btn {
        grid-column: 3/5;
        grid-row: 1/2;
        place-self: auto;
        justify-self: right;
        align-self: center;
    }
}

.creation__text {
    position: relative;
    top: -50%;
    left: 7%;
    color: #fff;
}

@media screen and (min-width: 769px) {
    .creation__text {
        top: -20%;
    }
}


.img-wrapper {
    height: 180px;
    background-size: cover;
}

@media screen and (min-width: 769px) {
    .img-wrapper {
        height: 450px;
    }
}

.img-1 {
    background-image: url("images/mobile/image-deep-earth.jpg");

}

.img-2 {
    background-image: url("images/mobile/image-night-arcade.jpg");

}

.img-3 {
    background-image: url("images/mobile/image-soccer-team.jpg");

}

.img-4 {
    background-image: url("images/mobile/image-grid.jpg");

}

.img-5 {
    background-image: url("images/mobile/image-from-above.jpg");

}

.img-6 {
    background-image: url("images/mobile/image-pocket-borealis.jpg");

}

.img-7 {
    background-image: url("images/mobile/image-curiosity.jpg");

}

.img-8 {
    background-image: url("images/mobile/image-fisheye.jpg");

}

@media screen and (min-width: 769px) {
    .img-1 {
        background-image: url("images/desktop/image-deep-earth.jpg");
    }

    .img-2 {
        background-image: url("images/desktop/image-night-arcade.jpg");
    }

    .img-3 {
        background-image: url("images/desktop/image-soccer-team.jpg");
    }

    .img-4 {
        background-image: url("images/desktop/image-grid.jpg");
    }

    .img-5 {
        background-image: url("images/desktop/image-from-above.jpg");
    }

    .img-6 {
        background-image: url("images/desktop/image-pocket-borealis.jpg");
    }

    .img-7 {
        background-image: url("images/desktop/image-curiosity.jpg");
    }

    .img-8 {
        background-image: url("images/desktop/image-fisheye.jpg");
    }
}

.opacity {
    opacity: 0.3;
}

.text-black {
    color: #000;
}


/* ============
Footer
=============== */

.footer {
    background-color: #000;
    text-align: center;
    padding: 3em 0;
    margin-top: 5em;
}



.footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

@media screen and (min-width: 769px) {
    .footer {
        text-align: left;
    }

    .footer__list {
        display: flex;
        margin-top: 1em;
    }

    .d-flex-justify {
        justify-content: space-between;
    }
}

.footer__item {
    margin: 1em 0;
}

.footer__item:nth-child(1) {
    margin-top: 2em;
}

.footer__item:nth-child(5) {
    margin-bottom: 2em;
}

@media screen and (min-width: 769px) {
    .footer__item {
        margin: 0;
    }

    .footer__item+.footer__item {
        margin-left: 1em;
    }

    .footer__item:nth-child(1) {
        margin-top: 0;
    }

    .footer__item:nth-child(5) {
        margin-bottom: 0;
    }


}

.socials {
    display: flex;
    justify-content: center;
}

.icons,
.creations__btn,
.creations__img,
.nav-toggle {
    cursor: pointer;
}

.icons+.icons {
    margin-left: 1em;
}

.icons:after {
    margin-top: .4em;
    display: block;
    content: '';
    border: 1px solid #fff;
    transform: scaleX(0);
    transition: transform 500ms ease-in-out;
}

.icons:hover:after {
    transform: scaleX(1);

}

@media screen and (min-width: 769px) {
    .socials {
        justify-content: right;
    }

    .copy-right {
        text-align: right;
    }
}

.attribution {
    color: #fff;
    position: relative;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}