* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

button {
    cursor: pointer;
    user-select: none;
    font-weight: bold;
}

:root {
    --main-theme-background: #000;
    --main-theme-color: #fff;

    --sub-main-theme-background: #01011bee;
    --sub-white: #e0d4d4;
    --sub-gray: #a59f9f;

    --second-theme-background: #fff;
    --second-theme-color: #000;
}

body {
    background-color: var(--sub-gray);
}

main {
    width: 100%;
    height: 100vh;
    color: var(--main-theme-color);
    padding: 1.5em;

    /* display: grid;
    grid-template-columns: 1fr 2.8fr;
    gap: 1.5em; */

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fill-Child {
    width: 100%;
    height: 100%;
    padding: 1.5em;
}

.sideContanier {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5em;

    background-color: var(--sub-main-theme-background);
    position: relative;
    top: 0;
    left: 0;

    width: calc(28% - 3em);
    height: calc(100vh - 3em);

    overflow: hidden;
    border-radius: 5px;

    z-index: 30;
}

    .navigate {
        position: absolute;
        top: 0;
        left: 50%;
        height: 100%;
        translate:-50%  0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;
        margin: 0 -1em;
        height: 0;
        visibility: hidden;
    }

    .nav-btn {
        width: 1.5em;
        height: 1.5em;
        border-radius: 2em;
        background-color: var(--sub-gray);
        display: grid;
        place-content: center;
        place-items: center;
        font-size: 1.6em;
        color: var(--sub-main-theme-background);
        rotate: 90deg;
    }

    .nav-btn:hover {
        background-color: var(--sub-white);
    }

    .prev-btn, .nav-btn {
        position: absolute;
    }

    .prev-btn {
        top: 0px;
        left: auto;
    }

    .next-btn {
        bottom: 10px;
        right: auto;
    }

    .img-gallary-container {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 2em;

        overflow-y: scroll;
        overflow-x: hidden;

        scrollbar-width: 0;
        width: 100%;
        padding-right: 1.5em;
    }

    .scrollStyle::-webkit-scrollbar {
        width: 0.8em;
        margin: 0 100px;
    }

    .scrollStyle::-webkit-scrollbar-thumb {
        background-color: #25255ae8;
    }

    .scrollStyle::-webkit-scrollbar-track {
        background-color: var(--sub-gray);
        width: 1em;
    }

    .img-box-modal {
        overflow: hidden;
        width: calc(100%);
        height: 180px;

        /* box-shadow: 0 0 2px var(--main-theme-color); */
        border-radius: 5px;
        transition:0.5s ease-out;

        /* margin: 1em auto; */

        position: relative;
        top: 0;
        left: 0;
    }

    .img-box-modal img {
        width: 100%;
        height: auto;
        user-select: none;
    }

    .img-box-modal span {
        position: absolute;
        top: 0;
        left: 0;

        font-size: calc(0.7em + 2vmax);
        line-height: 1em;
        font-weight: bold;
        font-family: Arial, Helvetica, sans-serif;
        padding: 10px;
        color: var(--main-theme-color);
        text-transform: uppercase;
        width: 100%;
        height: 100%;
        background-color: #36363657;
        cursor: pointer;
    }

    .img-box-modal span:hover {
        background-color: #000000a6;
        border: 2px solid var(--main-theme-color);
    }

    .active-img-modal {
        background-color: #000000b0 !important;
        border: 2px solid var(--main-theme-color);
        text-align: right;
    }

    .selected-img-modal {
        scale: 1.1;
    }

    .img-box-modal:hover {
        scale: 1.1;
    }

.main-container {
    background-color: var(--sub-main-theme-background);

    width: calc(77% - 3em);
    height: calc(100vh - 3em);

    border-radius: 5px;
    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr;

    position: relative;
}

    .superHero-info-container {
        overflow: hidden;
        width: 100%;
        height: 100%;
        position: relative;
        top: 0;
        right: 0;
    }

    .superHero-info-container .hero-about {
        position: absolute;
        left: 1.5em;
        top: calc(10px + 1vmax);
        width: calc(100% - 300px);
        z-index: 20;
    }

    .superHero-info-container .hero-about .hero-name  {
        width: 100%;
        font-size: calc(2rem + 3vmax);
        text-transform: uppercase;
        font-family: Arial, Helvetica, sans-serif;
    }

    .superHero-info-container .hero-about .hero-name span {
        font-weight: 100;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: var(--sub-white);
    }

    .superHero-info-container .underline {
        width: 100%;
        height: 4px;

        margin-bottom: 30px;
        background-color: var(--sub-gray);

        position: relative;
        z-index: 20;
    }

    .superHero-info-container .underline2 {
        position: absolute;
        background-color: red;
        height: 4px;
        width: 45%;
    }

    .superHero-info-container .hero-description {
        line-height: 2rem;
        font-size: 1.1em;
        padding: 10px;
        overflow: scroll hidden;
        height: 56px;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
    }

    .superHero-info-container .hero-about .hero-description {
        overflow: hidden auto;
        height: 100%;
        height: calc(640px - 15em);
        line-height: 1.15em;
        margin: 1.5em 0;
    }

    .superHero-info-container .hero-full-img-container{
        position: absolute;
        top: 3em;
        right: -3em;
        display: grid;
        place-items: center;
        width: 420px;
        height: auto;
        z-index: 15;
        overflow: hidden;
        margin-right: 30px;
    }

    .superHero-info-container .hero-full-img-container img {
        width: 100%;
        height: auto;
        object-position: center;
        object-fit: cover;
    }

    .backdrop {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        background-color: #eeff0044;
        z-index: 10;
    }


@media (max-width: 1111px) {
    main {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        gap: 1.5em;
    }

        .navigate {
            top: 45%;
            translate: -50% -50%;
            flex-direction: row;
            width: auto;
            height: auto;
            margin: 0 -0.5em;
            width: 100%;
            visibility: visible;
        }

        .nav-btn {
            rotate: initial;
            z-index: 30;
        }

        .prev-btn, .nav-btn {
            position: absolute;
        }

        .prev-btn {
            top: auto;
            left: 20px;
        }

        .next-btn {
            bottom: auto;
            right: 10px;
        }

        .sideContanier {
            width: 100%;
            height: fit-content;
            display: block;
        }

        .img-gallary-container {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            overflow: auto hidden;
            gap: 1.5em;
        }

        .img-box-modal {
            width: 150px;
            height: 150px;
        }

    .main-container {
        display: block;
        width: 100%;
        height: calc(720px - 30vw);
        margin: 0 auto;
        /* margin-top: 1.5em; */
        padding: 10px;
    }

        .superHero-info-container {
            overflow: hidden;
        }
}

/* @media (max-width: 618px) {
    main {
        height: 640px;
    }
} */

@media (max-width: 840px) {
    main {
        padding: 1em;
        gap: 1em;
    }
     .fill-Child {
        padding: 1em;
    }

    .superHero-info-container .hero-full-img-container {
        top: 50px;
        z-index: 10;
    }

        .superHero-info-container .hero-full-img-container img {
            width: 100%;
            height: auto;
            object-fit: cover;
            opacity: 100%;
        }

        .superHero-info-container {
            height: 100%;
            overflow: hidden;
        }

        .superHero-info-container .hero-name {
            font-size: 1em;
        }

        .superHero-info-container .hero-about {
            left: 1em;
            width: calc(100% - 1.5em);
            height: 100%;
            z-index: 20;
        }

        .superHero-info-container .hero-about .hero-description {
            overflow: hidden auto;
            height: calc(640px - 15em);
            line-height: 1.15em;
        }
}

    /* .box {
        width: 300px;
        height: 300px;
    background-color: var(--ligth-black);
}

.skeletonPreloader {
    animation-name: skeleton;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    transition: 1s ease-in;
}

@keyframes skeleton {
    0% {
        background-color: rebeccapurple;
    }
    50% {
        background-color: red;
    }
    100% {
        background-color: burlywood;
    }
} */
