/* ======================================
   HISTORY MODAL
====================================== */

.history-modal {

    position: fixed;
    inset: 0;

    background: #000;

    z-index: 99999;

    display: none;

    overflow: hidden;

}

.history-modal.active {

    display: block;

}

/* ======================================
   BACKGROUND IMAGE
====================================== */

.history-background {

    position: absolute;
    inset: 0;

}

.history-background img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    animation: zoomHistory 20s linear infinite;

    transition:
        opacity 1.5s ease,
        transform 1.5s ease;

}

/* ======================================
   OVERLAY
====================================== */

.history-overlay {

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            rgba(0,0,0,.25),
            rgba(0,0,0,.75)
        );

}

/* ======================================
   CONTENT
====================================== */

.history-content {

    position: absolute;

    left: 10%;
    top: 50%;

    transform:
        translateY(-50%);

    max-width: 750px;

    z-index: 10;

    opacity: 0;

    transition:
        opacity 1.2s ease,
        transform 1.2s ease;

}

/* muncul */

.history-content.show {

    opacity: 1;

    transform:
        translateY(-50%)
        translateX(0);

}

.history-content span {

    color: #f5c542;

    font-size: 22px;

    letter-spacing: 5px;

    text-transform: uppercase;

}

.history-content h2 {

    font-family: "Cinzel", serif;

    font-size: 72px;

    line-height: 1.1;

    margin: 20px 0;

    text-shadow:
        0 4px 15px rgba(0,0,0,.5);

}

.history-content p {

    font-size: 24px;

    line-height: 1.8;

    color: #f0f0f0;

    text-shadow:
        0 2px 10px rgba(0,0,0,.4);

}

/* ======================================
   CLOSE BUTTON
====================================== */

.close-history {

    position: absolute;

    top: 30px;
    right: 30px;

    width: 60px;
    height: 60px;

    border-radius: 50%;

    border: none;

    background:
        rgba(255,255,255,.15);

    backdrop-filter: blur(10px);

    color: white;

    font-size: 24px;

    cursor: pointer;

    z-index: 999;

    transition: .3s;

}

.close-history:hover {

    transform: scale(1.1);

}

/* ======================================
   NAVIGATION
====================================== */

.history-nav {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 70px;
    height: 70px;

    border-radius: 50%;

    border: none;

    background:
        rgba(255,255,255,.15);

    backdrop-filter: blur(10px);

    color: white;

    font-size: 28px;

    cursor: pointer;

    z-index: 999;

    transition: .3s;

}

.history-nav:hover {

    transform:
        translateY(-50%)
        scale(1.1);

}

.prev {

    left: 30px;

}

.next {

    right: 30px;

}

/* ======================================
   VOICE BUTTON
====================================== */

.voice-toggle {

    position: absolute;

    top: 30px;
    left: 30px;

    width: 60px;
    height: 60px;

    border: none;

    border-radius: 50%;

    background:
        rgba(255,255,255,.15);

    backdrop-filter: blur(10px);

    color: white;

    font-size: 24px;

    cursor: pointer;

    z-index: 999;

    transition: .3s;

}

.voice-toggle:hover {

    transform: scale(1.1);

}

/* ======================================
   PROGRESS BAR
====================================== */

.history-progress {

    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;

    height: 6px;

    background:
        rgba(255,255,255,.15);

    z-index: 999;

}

#historyProgressBar {

    width: 0%;

    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #f5c542,
            #ffd966
        );

    box-shadow:
        0 0 15px rgba(245,197,66,.7);

}

/* ======================================
   ANIMATION
====================================== */

@keyframes zoomHistory {

    from {

        transform: scale(1);

    }

    to {

        transform: scale(1.1);

    }

}

/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 768px) {

    .history-content {

        left: 5%;
        right: 5%;

        max-width: 90%;

    }

    .history-content h2 {

        font-size: 42px;

    }

    .history-content p {

        font-size: 18px;

    }

    .history-nav {

        width: 55px;
        height: 55px;

    }

}