/* ================= FONT IMPORT ================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Javanese&display=swap');

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Times New Roman", serif;
}

html {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* ================= BACKGROUND ================= */
.back {
    background-image: url('background-hal-1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    scroll-snap-align: start;
    min-width: 100vh;
    min-height: 100vh;
}

.back2 {
    background-image: url('background-hal-1.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    scroll-snap-align: start;
    min-width: 100vh;
    min-height: 100vh;
}

/* ================= SECTION GENERAL ================= */
.halaman {
    padding: 40px 20px;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUpFade 0.8s ease-out forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.halaman1 {
    animation-delay: 0.2s;
}

.halaman2 {
    animation-delay: 0.2s;
}

.halaman3 {
    animation-delay: 0.2s;
}

.judul-atas {
    font-family: "Noto Sans Javanese", "Javanese Text", serif;
    text-align: center;
    font-size: 50px;
    word-break: normal;
    overflow-wrap: anywhere;
    hyphens: none;
    line-break: anywhere;
}

/* ================= ANIMASI SCROLL ================= */
.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= HALAMAN 1 ================= */
.konten-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    background-color: #d4a375;
    min-height: 25rem;
    border: 2px solid #b3916e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    border-radius: 20px;
    width: 90%;
    margin: 50px auto;
    padding: 0px;
}

.box-teks {
    padding: 25px;
    border-radius: 30px;
    width: 45%;
    max-width: 100%;
    margin-top: 4rem;
    font-size: 25px;
}

.judul-aksara {
    font-size: 35px;
    font-family: "Noto Sans Javanese", "Javanese Text", serif;
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: anywhere;
}

.deskripsi {
    margin-bottom: 5rem;
    font-family: "Noto Sans Javanese", "Javanese Text", serif;
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: anywhere;
}

.gambar-makanan {
    width: 25rem;
    height: 25rem;
    max-width: 45%;
    border-radius: 50%;
    margin-bottom: 50px;
    object-fit: cover;
}

/* ================= HALAMAN 2 ================= */
.halaman2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.kertas {
    background: #f8f5ef;
    padding: 25px;
    border-radius: 20px;
    border: 2px solid #b3916e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    margin-bottom: 20px;
    max-width: 90%;
    width: auto;
    min-width: 80%;
}

.judul-box {
    background: #fff;
    width: auto;
    max-width: 90%;
    padding: 10px 25px;
    margin: 0 auto 20px;
    border-radius: 20px;
    font-size: 22px;
    font-family: "Noto Sans Javanese", "Javanese Text", serif;
    border: 2px solid #b3916e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: anywhere;
}

/* ================= HALAMAN 3 ================= */
.list-box {
    background: #fff;
    width: auto;
    min-width: 60%;
    max-width: 90%;
    padding: 20px 25px;
    margin: 0 auto 20px;
    border-radius: 20px;
    font-size: 22px;
    font-family: "Noto Sans Javanese", "Javanese Text", serif;
    border: 2px solid #b3916e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: anywhere;
}

.judul-list {
    background: #fff;
    width: auto;
    max-width: 90%;
    padding: 10px 25px;
    margin: 80px auto 20px;
    border-radius: 20px;
    font-size: 22px;
    font-family: "Noto Sans Javanese", "Javanese Text", serif;
    border: 2px solid #b3916e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: anywhere;
    text-align: center;
}

.list-box a {
    text-decoration: none;
}

.btn {
    margin-top: 20px;
    display: block;
    background: #d9b07a;
    padding: 10px 25px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
    color: #000;
}

.btn:hover {
    background: #c9a169;
}

ol {
    margin-left: 40px;
}

ol li {
    font-family: "Noto Sans Javanese", "Javanese Text", serif;
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: anywhere;
}

.paragraf {
    font-family: "Noto Sans Javanese", "Javanese Text", serif;
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: anywhere;
}

/* ==========================================================
   ===============   RESPONSIVE MOBILE   =====================
   ==========================================================*/

@media (max-width: 768px) {

    body {
        overflow-x: hidden;
        padding: 0;
    }

    .halaman {
        padding: 20px 10px;
    }

    .judul-atas {
        font-size: 28px;
        padding: 10px;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .konten-row {
        flex-direction: column;
        padding: 15px;
        margin: 20px 10px;
        min-height: auto;
        width: calc(100% - 20px);
        max-width: 100%;
        box-sizing: border-box;
    }

    .box-teks {
        font-size: 16px;
        margin-top: 0;
        width: 100%;
        padding: 15px;
        line-height: 1.7;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        box-sizing: border-box;
    }

    .judul-aksara {
        font-size: 22px;
        margin-bottom: 12px;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .deskripsi {
        margin-bottom: 1.5rem;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .gambar-makanan {
        width: 200px;
        height: 200px;
        margin: 15px auto;
        max-width: 100%;
        display: block;
    }

    .judul-list {
        margin-top: 30px;
        font-size: 18px;
        padding: 10px 15px;
        width: calc(100% - 20px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .judul-box {
        font-size: 18px;
        padding: 10px 15px;
        margin-bottom: 15px;
        width: calc(100% - 20px);
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .list-box {
        width: calc(100% - 20px);
        max-width: 100%;
        font-size: 16px;
        padding: 15px;
        line-height: 1.6;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .kertas {
        width: calc(100% - 20px);
        max-width: 100%;
        font-size: 16px;
        padding: 15px;
        line-height: 1.7;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .list-box ol {
        margin-left: 20px;
        padding-right: 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .list-box li {
        margin-bottom: 8px;
        line-height: 1.6;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        margin-top: 20px;
        box-sizing: border-box;
    }

    .paragraf {
        text-align: left;
        line-height: 1.8;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
}


/* ==========================================================
   ===============   RESPONSIVE HP KECIL   ==================
   ==========================================================*/

@media (max-width: 480px) {

    .halaman {
        padding: 15px 5px;
    }

    .judul-atas {
        font-size: 24px;
        line-height: 1.4;
        padding: 8px;
    }

    .konten-row {
        margin: 15px 5px;
        padding: 12px;
        width: calc(100% - 10px);
    }

    .box-teks {
        font-size: 15px;
        padding: 12px;
    }

    .gambar-makanan {
        width: 180px;
        height: 180px;
        margin: 10px auto;
    }

    .judul-aksara {
        font-size: 20px;
        line-height: 1.4;
    }

    .judul-list,
    .judul-box {
        font-size: 16px;
        padding: 8px 12px;
        width: calc(100% - 10px);
    }

    .list-box,
    .kertas {
        font-size: 15px;
        padding: 12px;
        width: calc(100% - 10px);
    }

    .list-box ol {
        margin-left: 18px;
    }

    .list-box li {
        font-size: 14px;
        line-height: 1.5;
    }

    .btn {
        font-size: 15px;
        padding: 10px 15px;
    }

    .paragraf {
        font-size: 15px;
        line-height: 1.7;
    }
}


