@font-face {
    font-family: 'Spider-Man';
    src: url(../fonts/Spider-Man/Spider-Man.otf) format("opentype");
}

@font-face {
    font-family: Cynatar;
    src: url(../fonts/cynatar/Cynatar.otf) format("opentype");
}

@font-face {
    font-family: 'Starting Live';
    src: url(../fonts/starting-live/StartingLive.otf) format("opentype");
}

@font-face {
    font-family: 'Amazing Spider-Man';
    src: url(../fonts/amazing-spiderman/The\ Amazing\ Spider-Man.ttf) format("truetype");
}

:root {
    --color-white: #F5F5F5;
    --color-black: #0F0F0F;
    --color-light-gray: #B3B3B3;
    --color-dark-gray: #4D4D4D;
    --color-spidey-red: #c72f2d;
    --color-spidey-yellow: #FFBA30;
    --color-miles-navy: #1e2434;
    --color-miles-red: #E01C1C;
    --color-symbiote-indigo: #201f41;
    --color-symbiote-yellow: #E9C948;

    /* new page */
    --background-color: #141414;
    --card-color: #080808;
    --text-color: #DEDEDE;
    --border-color: #3B3B3B;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Typography */
html {
    font-size: 62.5%;
}

body {
    color: var(--color-black);
    font-family: Lato, sans-serif;
    font-size: 1.6rem;
}

/* Lists */
li {
    list-style: none;
    padding: 0;
}

/* Links */
a {
    color: var(--color-light-gray);
    text-decoration: none;
}

/* Flex Activation */
.flex {
    display: flex;
}

/* Grid Activation */
.grid {
    display: grid;
}

/* Collapsable */
.collapsable__content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.collapsable--expanded .collapsable__content {
    max-height: 100vh;
    opacity: 1;
}

/* Buttons */
.flex.buttons {
    flex-direction: column;
    gap: 1rem;
}

.button {
    border: none;
    border-radius: 100px;
    cursor: pointer;
    font-family: 'Bebas Neue', sans-serif;
    font-size: inherit;
    outline: 0;
    transition: all 0.2s;
    white-space: nowrap;
}

.button--primary {
    background: var(--color-black);
    border: 2px solid var(--color-light-gray);
    color: var(--color-light-gray);
    padding: 0.9rem 2rem;
}

.button--primary:hover {
    border: 2px solid var(--color-white);
    background: var(--color-white);
    color: var(--color-black);
}

.button--secondary {
    border: 4px solid var(--color-white);
    font-size: 2.8rem;
    padding: 0.2em 1em;
    text-transform: uppercase;
}

.button--spider {
    background: var(--color-spidey-red);
    color: var(--color-white);
}

.button--spider:hover {
    background: var(--color-spidey-yellow);
    border: 4px solid var(--color-spidey-yellow);
    color: var(--color-black);
}

.button--miles {
    background: var(--color-miles-navy);
    color: var(--color-white);
}

.button--miles:hover {
    background: var(--color-miles-red);
    border: 4px solid var(--color-miles-red);
    color: var(--color-white);
}

.button--symbiote {
    background: var(--color-symbiote-indigo);
    color: var(--color-white);
}

.button--symbiote:hover {
    background: var(--color-symbiote-yellow);
    border: 4px solid var(--color-symbiote-yellow);
    color: var(--color-black);
}

@media screen and (min-width: 786px) {
    .flex.collection__buttons {
        flex-direction: row;
    }
}

@media screen and (min-width: 1024px) {
    .flex.collection__buttons {
        flex-direction: row;
    }

    .button--secondary {
        font-size: 4rem;
    }
}

/* Navigation */
.nav {
    background: var(--color-black);
    display: grid;
    flex-wrap: wrap;
    font-size: 2rem;
    grid-template-areas: "logo menu" "list list";
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem 1.4rem;
}

.nav__toggler {
    color: var(--color-white);
    align-self: center;
    justify-self: flex-end;
}

.nav__list {
    order: 1;
    justify-self: stretch;
    grid-area: list;
}

.nav.collapsable--expanded .nav__list {
    padding: 3rem;
}

.nav__item:nth-child(odd) {
    border-bottom: 1px solid var(--color-dark-gray);
    border-top: 1px solid var(--color-dark-gray);
}

.nav__item {
    text-align: center;
    padding: 1rem 0;
}

.nav__item>a {
    color: var(--color-light-gray);
    font-family: 'Bebas Neue', sans-serif;
    transition: all 0.2s;
}

.nav__item>a:hover {
    color: var(--color-white);
}

.nav__logo {
    font-family: 'Spider-Man', sans-serif;
    font-size: 3rem;
    font-weight: 400;
    margin: 0;
}

.nav__logo>a {
    color: var(--color-white);
}

.nav__buttons {
    display: none;
}

@media screen and (min-width: 768px) {
    .nav {
        grid-template-areas: "links logo buttons";
        grid-template-columns: repeat(3, 1fr);
    }

    .nav__toggler {
        display: none;
    }

    .nav.collapsable--expanded .nav__list {
        padding: 0;
    }

    .nav__list {
        align-self: center;
        display: flex;
        grid-area: links;
        justify-self: center;
        max-height: 100%;
        opacity: 1;
    }

    .nav__item {
        padding: 0.5rem 1.2rem;
    }

    .nav__item:nth-child(odd) {
        border: none;
    }

    .nav__logo {
        justify-self: center;
        font-size: 5.653rem;
    }

    .nav__buttons {
        align-self: center;
        display: flex;
        gap: 0.4rem;
        grid-area: buttons;
        justify-self: center;
        max-height: 100%;
        opacity: 1;
    }
}

/* Collections */
.flex.collection {
    align-items: center;
    flex-direction: column;
}

.collection {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 10rem 2rem;
}

.collection--spider {
    background-image: url(../images/spidey-background.webp);
}

.collection--miles {
    background-image: url(../images/miles-background.webp);
}

.collection--symbiote {
    background-image: url(../images/symbiote-background.webp);
}

.collection--spider .collection__statement {
    color: var(--color-spidey-yellow);
    font-family: 'Amazing Spider-Man', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
}

.collection--miles .collection__statement {
    color: var(--color-miles-red);
    font-family: 'Starting Live', sans-serif;
    font-size: 3.6rem;
    margin-top: -1.2rem;
}

.collection--symbiote .collection__statement {
    color: var(--color-symbiote-yellow);
    font-family: Cynatar, sans-serif;
    font-size: 4rem;
    margin-top: -0.8rem;
}

.collection--symbiote .collection__buttons {
    margin-top: 3.5rem;
}

.collection .collection__header {
    text-align: center;
}

.collection__heading {
    color: var(--color-white);
    font-family: 'Spider-Man', sans-serif;
    font-size: 9rem;
    font-weight: 400;
    line-height: 0.8;
    margin: 0;
}

.collection__statement {
    margin: 0;
    line-height: normal;
}

.collection__buttons {
    margin-top: 2rem;
}

@media screen and (min-width: 1024px) {
    .collection {
        padding: 20rem 2rem;
    }

    .collection__heading {
        font-size: 18rem;
    }

    .collection--spider .collection__statement {
        font-size: 7rem;
    }

    .collection--miles .collection__statement {
        font-size: 8rem;
        margin-top: -2.5rem;
    }

    .collection--symbiote .collection__statement {
        font-size: 10rem;
        margin-top: -2.2rem;
    }

    .collection--spider .collection__buttons {
        margin-top: 1rem;
    }

    .collection--miles .collection__buttons {
        margin-top: 0;
    }

    .collection--symbiote .collection__buttons {
        margin-top: 4rem;
    }
}

/* Footer */
.footer {
    background: var(--color-black);
}

.footer__sitemap {
    padding: 6rem;
    text-align: center;
}

.footer__brand {
    margin-bottom: 5rem;
}

.footer__logo {
    color: var(--color-white);
    font-family: 'Spider-Man', sans-serif;
    font-size: 6rem;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

.footer__statement {
    color: var(--color-light-gray);
    line-height: 1;
    margin: 0;
}

.footer .collapsable:nth-child(even) {
    border-bottom: 1px solid var(--color-dark-gray);
    border-top: 1px solid var(--color-dark-gray);
}

.footer__heading {
    color: var(--color-light-gray);
    cursor: default;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.4rem;
    margin: 1.3rem 0;
    transition: all 0.2s;
    text-transform: uppercase;
}

.footer__heading:hover {
    color: var(--color-white);
}

.footer .collapsable--expanded .collapsable__content {
    margin-bottom: 1.3rem;
}

.footer__copyright {
    color: var(--color-light-gray);
    text-align: center;
}

.footer__copyright>p {
    margin-top: 4rem;
}

@media screen and (min-width: 768px) {
    .footer__sitemap {
        gap: 4rem;
        grid-template-areas:
            "brand heading heading heading"
            "copyright copyright copyright copyright";
        grid-template-columns: 2fr repeat(3, 1fr);
        justify-items: left;
        padding: 5rem 7rem;
        text-align: left;
    }

    .footer__brand {
        grid-area: brand;
        justify-self: flex-start;
        margin-bottom: 0;
    }

    .footer__logo {
        font-size: 5rem;
    }

    .footer .collapsable {
        padding: 0;
    }

    .footer .collapsable:nth-child(even) {
        border: none;
    }

    .footer__heading {
        color: var(--color-white);
        cursor: text;
        margin: 0 0 1rem 0;
    }

    .footer .collapsable__content {
        max-height: 100%;
        opacity: 1;
    }

    .footer__copyright {
        grid-area: copyright;
        justify-self: center;
    }

    .footer__copyright::before {
        border-top: 0.5px solid var(--color-dark-gray);
        content: '';
        display: inline-block;
        width: 87vw;
    }
}

@media screen and (min-width: 1024px) {
    .footer__sitemap {
        padding: 6rem 10rem;
    }
}

@media screen and (min-width: 1200px) {
    .footer__sitemap {
        grid-template-columns: 4fr repeat(3, 1fr);
        padding: 6rem 15rem;
    }
}

/* New Page */
#gallery {
    background-color: var(--background-color);
    display: grid;
    gap: 4rem;
    grid-template-columns: repeat(3, fit-content(100%));
    justify-content: center;
    padding: 5rem 0 12rem 0;
}

.card {
    background-color: var(--card-color);
    border-radius: 2rem;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    height: 63rem;
    transition: all 0.3s;
    width: 30rem;
}

.card:hover {
    transform: scale(1.02, 1.02);
    box-shadow: 0px 4px 40px 8px rgba(0, 0, 0, 0.5);
}

.card:hover img {
    filter: brightness(120%);
}

.card__image {
    height: 45rem;
}

.card__image>img {
    border-radius: 2rem 2rem 0 0;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
    width: 100%;
}

.card__details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 18rem;
    padding: 2rem;
}

.card__header {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.card__header .card__title {
    font-weight: 400;
}

.card__header .card__subtitle {
    font-weight: 300;
    font-style: italic;
}

.card__metadata {
    display: flex;
    justify-content: space-between;
}