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

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

html {
    scroll-behavior: smooth;
}

/* -------------- */
/* VIDEO Background */
/* -------------- */

.background__Container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    background-attachment: fixed;
}

/* -------------- */
/* NAVIGATION BAR */
/* -------------- */

.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.9);
    color: #ddd;
    padding: 18px 18px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.right-side-nav {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.nav-toggle {
    background-color: transparent;
    color: #ddd;
    padding: 10px 15px;
    font-size: 1em;
    cursor: pointer;
    border: 1px solid #ddd;
    display: none;
}

a {
    text-decoration: none;
    color: #ddd;
    font-size: 1.3em;
}

a:hover {
    text-decoration: underline;
    text-shadow: 0 0 0.9em rgb(255, 255, 255);
}

.left-side-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.nav-image {
    height: 50px;
    width: auto;
}
.nav-image:hover {
    box-shadow: 0 0 0.6em white;
}

.nav-title {
    font-size: 24px;
    font-weight: 900;
}

.nav-title:hover {
    text-shadow: 0 0 0.9em rgb(255, 255, 255);
}

/* -------------- */
/* Hero image section*/
/* -------------- */

.hero-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 85%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    margin: 9em auto 0 auto;
    border-radius: 1.5em;
    box-shadow: 0 0 2em rgb(69, 69, 69);
    padding: 1em;
}

.hero-left-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ddd;
}

.hero-title {
    font-size: 2.1em;
    margin-bottom: 1em;
    text-shadow: 0 0 0.8em rgb(255, 255, 255);
    text-align: center;
    width: 70%;
}

.hero-message {
    font-size: 1.1em;
    line-height: 1.7em;
    text-align: left;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0 20px;
}

.button-container {
    margin-top: 3em;
}

.hero-button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: linear-gradient(
        rgba(36, 52, 76, 0.6),
        rgba(36, 52, 76, 0.9)
    );
    border: 0.2em solid white;
    border-radius: 1.2em;
    transition: 0.3s;
    width: 9em;
    height: 3em;
    margin: 0 auto;
    font-size: 1.2em;
    width: 100%;
    padding: 10px;
}

.hero-button:hover {
    box-shadow: 0 0 0.6em white;
}

.hero-right-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 5em 5em;
}

.hero-image {
    width: 35vw;
}

/* -------------- */
/* Video BG credit source*/
/* -------------- */

.author-video-BG-credit {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    margin-bottom: 0;
}

/* -------------- */
/* Card section*/
/* -------------- */

.card-section {
    display: flex;
    justify-content: center;

    flex-direction: column;
    /* padding: 150px 0; */
    width: 100%;
    background-image: linear-gradient(
        rgba(36, 52, 76, 0.7),
        rgba(36, 52, 76, 0.7)
    );
    box-shadow: 0 0 0.6em #fff;
    z-index: 2;
}

.card-section__title {
    display: flex;
    justify-content: center;
    font-size: 2.1em;
    color: #ddd;
    margin-top: 1rem;
    text-shadow: 0 0 0.8em rgb(255, 255, 255);
}
.card-section__grid {
    display: flex;
    justify-content: center;
    gap: 5vw;
    margin-top: 2em;
    margin-bottom: 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    text-align: center;

    /* width: 200px;
    height: 200px; */
    padding: 10px;
}

.card__text {
    color: #ddd;
    font-size: 20px;
    align-items: center;
    margin-top: 10%;
}

.card__image {
    max-width: 100%;
    height: auto;
    transition: transform 0.2s; /* Animation */
}

.card__image:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px #fff;
}

/* -------------- */
/* card section credit source*/
/* -------------- */

/* -------------- */
/* 2nd background */
/* -------------- */

.second-background__container {
    background-image: url("./images/backgrounds/Jinshi1.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    z-index: 1;
    position: relative;
}

.character__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
}

.character__quote {
    text-align: center;
    color: black;
    font-size: 2em;
    font-weight: bold;
    margin-top: 5%;
    text-shadow: 2px 2px 2px #fff;
}

.character {
    color: black;
    font-size: 2em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(255, 0, 0, 0.7);
}

/* -------------- */
/* Character Gallery Section */
/* -------------- */

.gallery__container {
    background-image: linear-gradient(
        rgba(36, 52, 76, 0.6),
        rgba(36, 52, 76, 0.6)
    );
    box-shadow: 0 0 0.9em #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.gallery__title {
    text-shadow: 0 0 0.9em #fff;
    font-size: 2.5em;
    color: white;
    margin-top: 2%;
    margin-bottom: 4%;
}

.gallery__image-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(5, 1fr);
    margin-bottom: 5%;
    gap: 30px;
}

.gallery__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 4%;
    /* background-color: #ab4a2d; */
}
.gallery__card-image {
    transition: transform 0.2s; /* Animation */
    height: 130px;
    width: auto;
}

.gallery__card-image:hover {
    transform: scale(1.05);
}

/* .gallery__card:hover {
    box-shadow: 0 0 0.6em #fff;
} */

.gallery__character-name {
    text-shadow: 0 0 0.8em rgb(255, 255, 255);
    font-size: 1.5em;
    color: #ddd;
}

/* -------------- */
/* Gallery elements */
/* -------------- */

/* .gallery__card.fusion:hover {
    background-color: #ff6b35;
} */

/* -------------- */
/* Artist source */
/* -------------- */

.third-background {
    background-image: url(./images/backgrounds/Jinshi.png);
    background-position: center;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    background-attachment: fixed;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* -------------- */
/* form section */
/* -------------- */

.form__container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 1000px;
    transform: translate(-50%, -50%);
}

.form__container-inner-background {
    padding: 90px;
    background-color: rgba(0, 0, 0, 0.7);
    width: 80%;
    max-width: 800px;
}

.form__container-inner-background:hover {
    box-shadow: 5px 5px 2.2em rgb(255, 255, 255);
}

.form__title {
    display: flex;
    color: #ddd;
    font-size: 2.4em;
    text-shadow: 0 0 0.8em rgb(255, 255, 255);
    margin-bottom: 8%;
    text-decoration: underline;
}

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

.form__field {
    width: 100%;
    padding: 30px 0;
    color: #ddd;
    font-size: 1.3rem;
    border: none;
    border-bottom: 1px solid rgb(255, 255, 255);
    background-color: transparent;
    margin-bottom: 4%;
    outline: none;
}

.form__field:hover {
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

::placeholder {
    color: #ddd;
    opacity: 0.7;
}

.form__button {
    margin-top: 10%;
    padding: 15px 30px;
    width: 50%;
    font-size: 1.2em;
    font-weight: bold;
    background-color: transparent;
    color: #ddd;
    border: 0.08em solid white;
    border-radius: 1.2em;
    text-shadow: 0 0 0.8em rgb(255, 255, 255);
    border-radius: 1.2em;
    transition: all 0.3s ease-in-out;
}

.form__button:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    text-shadow: none;
    box-shadow: 0 0 1.3em rgb(255, 255, 255);
}

.social-media__container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2%;
}
.social-media__icons {
    width: 35px;
    height: auto;
    display: block;
    margin: 5px;
    transition: transform 0.2s; /* Animation */
}

.social-media__icons:hover {
    box-shadow: 0 0 0.9em #fff;
    transform: scale(1.1);
}

/* -------------- */
/* Artist source */
/* -------------- */

.inner-background {
    background-color: black;
    justify-content: center;
    align-items: center;
    width: auto;
    padding: 2px;
}

.credit-text {
    color: #ddd;
    font-size: 20px;
    text-align: center;
}

/* -------------- */
/* Footer*/
/* -------------- */

footer {
    display: flex;
    padding: 20px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ddd;
    justify-content: center;
    font-size: 1em;
    margin-top: 0;
}

/* -------------- */
/* Mobile queries*/
/* -------------- */

/* for-phone*/
@media (max-width: 768px) {
    .header {
        display: flex;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .right-side-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 3;
        transition: all 0.3s ease-in-out;
        max-height: 0;
        overflow: hidden;
    }

    .right-side-nav.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-height: 300px;
    }

    .nav__link {
        margin-left: 0;
    }

    .hero-container {
        flex-direction: column;
        width: 100%;
        height: 100%;
    }

    .hero-title {
        font-size: 25x;
        margin-top: 5%;
    }
    .hero-message {
        text-align: left;
        font-size: 18px;
        max-width: 90%;
        margin: 0 auto;
        padding: 0 20px;
    }

    .hero-button {
        width: 20em;
        height: 3em;
        font-size: 18px;
        text-align: center;
    }
    .hero-image {
        width: 80vw;
    }

    .photo-credit {
        font-size: 1em;
        margin-top: 3%;
    }

    /* credits */

    .credit-text {
        font-size: 15px;
    }

    /* card section */

    .card-section__title {
        font-size: 1.4em;
        text-align: left;
        padding: 0 15px;
        max-width: 100%;
        margin-top: 1em;
        margin-bottom: 0.5em;
    }

    .card-section__grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        padding: 0 10px;
    }

    .card {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .card__image {
        height: 100px;
        width: auto;
    }

    .card__text {
        text-align: center;
    }

    /* middle text */

    .character__quote {
        text-align: center;
        font-size: 1.5em;
    }
    .character {
        font-size: 1.5em;
    }

    /* spacing between character quote and credit source */
    #top {
        margin-top: 5%;
    }

    /* Gallery section */

    .gallery__card {
        transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    }

    .gallery__card:hover,
    .gallery__card:active {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
    }

    .gallery__card-image {
        transition: opacity 0.2s ease-in-out;
    }

    .gallery__card:hover .gallery__card-image,
    .gallery__card:active .gallery__card-image {
        opacity: 0.8;
    }

    .gallery__title {
        font-size: 2em;
    }

    .gallery__image-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 50px;
        padding: 0 15px;
    }

    .gallery__card-image {
        height: 90px;
        width: auto;
    }
    .gallery__character-name {
        font-size: 1.2em;
        text-align: center;
    }
    .form__container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /*  */

    .form__container-inner-background {
        width: 100%;
    }
    .form__title {
        font-size: 2.2em;
    }

    .form__field {
        font-size: 1em;
    }

    .form__button {
        width: 90%;
        font-size: 1em;
    }
    .social-media__icons {
        width: 25px;
        height: auto;
    }

    textarea.form__field::placeholder {
        font-size: 1.2rem;
        line-height: 1.5;
        color: #ddd;
        opacity: 0.7;
    }
}

/* for-desktop-up */
@media (min-width: 768px) {
    .gallery__image-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px 50px;
        padding: 0 15px;
    }
}

/* for-medium-desktop-up */
@media (min-width: 1400px) {
    .gallery__image-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 50px 50px;
        /* padding: 0 15px; */
    }
}

/* for-big-desktop-up */
@media (min-width: 1800px) {
}
