/* =======================================
   SCENE 3
======================================= */

#scene3 {

    position: relative;

    overflow-y: auto;
    overflow-x: hidden;

    align-items: flex-start;
    justify-content: center;

    padding-top: 140px;
    padding-bottom: 120px;

    box-sizing: border-box;
}

/* =======================================
   CONTAINER
======================================= */

.manga-container {

    width: 100%;

    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    align-items: flex-start;

    gap: 30px;

    padding-bottom: 100px;
}

/* =======================================
   CARD
======================================= */

.manga-card {

    position: relative;

    perspective: 2000px;

    cursor: pointer;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.manga-card:hover {

    transform: translateY(0px);

   /* filter: brightness(1.05);*/
}

/* =======================================
   INNER
======================================= */

.manga-card-inner {

    position: relative;

    width: 100%;
    height: 100%;

    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 1s ease;
}

.manga-card.flipped .manga-card-inner {

    transform: rotateY(180deg);
}

/* =======================================
   FRONT + BACK
======================================= */

.manga-front,
.manga-back {

    position: absolute;
    inset: 0;
    border-radius: 20px;
    overflow: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* =======================================
   FRONT
======================================= */

.manga-front {

    transform: rotateY(0deg);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(5px);
}

/* =======================================
   IMAGE
======================================= */

.manga-front img {

    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

/* =======================================
   VIDEO
======================================= */

.manga-front video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

/* =======================================
   PAGE LABEL
======================================= */

.page-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(17, 79, 104, 0.45);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0;
}

/* =======================================
   BACK SIDE
======================================= */

.manga-back {

    transform: rotateY(180deg);
    background:rgba(255,255,255,0.08);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.12);
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
    box-sizing:content-box;
    overflow-y: auto;
}

/* =======================================
   TITLES
======================================= */
.manga-back h2 {
    font-size: 1.0rem;
    letter-spacing: 3px;
    margin-top: 20px;
    margin-bottom: 10px;
    color: #e3f2ff;
}
.manga-back h3 {
    margin-top: 4px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: #F8C8D8;

}

/* =======================================
   LANGUAGE GRID
======================================= */
.manga-text-grid {
    display:flex;
    gap:10px;
    align-items:flex-start;
}

/* =======================================
   LANGUAGE BLOCK
======================================= */

.lang-block {
    background:rgba(255,255,255,0.04);
    border-radius: 15px;
    padding-top: 0px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 10px;
    box-sizing:border-box;
    min-height: auto;
    height: auto;
}

.lang-content {
    line-height: 1.4;
    white-space: pre-line;
    color: white;
    font-size: 0.95rem;
}

/* =======================================
   SCROLLBAR
======================================= */

#scene3::-webkit-scrollbar {
    width: 8px;
}
#scene3::-webkit-scrollbar-track {

    background:
        rgba(255,255,255,0.05);
}

#scene3::-webkit-scrollbar-thumb {

    background:
        rgba(255,255,255,0.25);

    border-radius: 20px;
}

/* =======================================
   RESPONSIVE
======================================= */

@media (max-width: 1400px) {

    .manga-text-grid {

        grid-template-columns: 1fr;
    }

    .manga-back {

        overflow-y: auto;
    }
}

@media (max-width: 900px) {

    .manga-back {

        padding: 30px;
    }

    .manga-back h2 {

        font-size: 1.5rem;
    }
}