/* ======================================================
   TUTORIAL BILANGAN PRIMA
   FILE : prime.css
   ====================================================== */


/* ======================================================
   DASAR
   ====================================================== */

* {
    box-sizing: border-box;
}


html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;

    font-family: Arial, Helvetica, sans-serif;
}


/* ======================================================
   BODY
   ====================================================== */

body {
    min-height: 100vh;

    background: #111827;

    color: white;

    overflow-x: hidden;
}


/* ======================================================
   CONTAINER UTAMA
   ====================================================== */

.tutorial-container {
    width: 100%;

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 30px 20px;
}


/* ======================================================
   AREA SLIDE
   ====================================================== */

.area-slide {
    width: min(1100px, 95vw);

    min-height: 600px;

    background: white;

    color: #111827;

    border-radius: 24px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 50px;

    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.45);

    overflow: hidden;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


/* ======================================================
   EMOJI UTAMA
   ====================================================== */

.emoji-slide {
    font-size: 72px;

    line-height: 1;

    margin-bottom: 30px;

    user-select: none;
}


/* ======================================================
   JUDUL
   ====================================================== */

#judulSlide {
    margin: 0 0 25px 0;

    max-width: 900px;

    font-size: 42px;

    line-height: 1.2;

    font-weight: 700;
}


/* ======================================================
   ISI
   ====================================================== */

/* ======================================================
   ISI SLIDE
   ====================================================== */

.isi-slide {
    width: 100%;

    max-width: 850px;

    min-height: 120px;

    text-align: center;

    font-size: 32px;

    font-weight: 600;

    line-height: 1.5;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;

        animation:
    fadeIsi 0.5s ease;
}

/* ======================================================
   ANIMASI ISI
   ====================================================== */

.isi-slide.animasi-isi {
    animation:
        munculIsi 0.8s ease;
}


@keyframes munculIsi {

    0% {
        opacity: 0;

        transform:
            translateY(30px)
            scale(0.95);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

/* ======================================================
   ANIMASI PERUBAHAN ISI
   ====================================================== */

.isi-slide {
    animation: munculIsi 0.8s ease;
}


@keyframes munculIsi {

    0% {
        opacity: 0;

        transform:
            translateY(30px)
            scale(0.95);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

/* ======================================================
   ANIMASI FADE ISI
   ====================================================== */

@keyframes fadeIsi {

    0% {
        opacity: 0;

        transform:
            translateY(20px);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0);
    }

}

/* ======================================================
   ANIMASI ISI
   ====================================================== */

.isi-slide {
    animation: fadeIsi 0.5s ease;
}


@keyframes fadeIsi {

    0% {
        opacity: 0;
        transform: translateY(15px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ======================================================
   ANGKA BESAR DALAM LANGKAH
   ====================================================== */

.isi-slide .angka-besar {
    font-size: 72px;

    font-weight: 800;

    line-height: 1;

    animation:
        munculAngka 0.45s ease;
}


/* ======================================================
   ANIMASI MUNCUL
   ====================================================== */

@keyframes munculAngka {

    0% {
        opacity: 0;

        transform:
            scale(0.5);
    }

    60% {
        opacity: 1;

        transform:
            scale(1.12);
    }

    100% {
        opacity: 1;

        transform:
            scale(1);
    }

}


/* ======================================================
   KONTROL
   ====================================================== */

.kontrol {
    width: min(1100px, 95vw);

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 12px;

    margin-top: 20px;

    flex-wrap: wrap;
}


/* ======================================================
   TOMBOL
   ====================================================== */

.kontrol button {
    border: none;

    border-radius: 12px;

    padding: 13px 20px;

    font-size: 17px;

    font-weight: 600;

    cursor: pointer;

    background: white;

    color: #111827;

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        opacity 0.15s ease;
}


.kontrol button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.25);
}


.kontrol button:active {
    transform: translateY(1px);

    box-shadow:
        0 3px 7px rgba(0, 0, 0, 0.2);
}


.kontrol button:disabled {
    opacity: 0.35;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* ======================================================
   INFORMASI SLIDE
   ====================================================== */

.informasi-slide {
    margin-top: 15px;

    font-size: 17px;

    opacity: 0.8;

    user-select: none;
}


/* ======================================================
   ANIMASI SLIDE
   ====================================================== */

.slide-keluar {
    opacity: 0;

    transform: translateX(-30px);
}


.slide-masuk {
    opacity: 1;

    transform: translateX(0);
}


/* ======================================================
   FULLSCREEN
   ====================================================== */

.tutorial-container:fullscreen {
    background: #111827;

    padding: 30px;
}


.tutorial-container:fullscreen .area-slide {
    width: 95vw;

    height: 80vh;

    max-width: 1400px;

    min-height: 0;
}


/* ======================================================
   RESPONSIVE
   ====================================================== */

@media (max-width: 700px) {

    .tutorial-container {
        padding: 15px;
    }


    .area-slide {
        width: 100%;

        min-height: 500px;

        padding: 30px 20px;

        border-radius: 18px;
    }


    .emoji-slide {
        font-size: 72px;
    }


    #judulSlide {
        font-size: 30px;
    }


    .isi-slide {
        font-size: 20px;
    }


    .kontrol {
        gap: 8px;
    }


    .kontrol button {
        font-size: 15px;

        padding: 11px 15px;
    }

}