/* Reset agar tidak ada padding/margin bawaan */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #052e2b;
    font-family: Arial, sans-serif;
    overflow-x: hidden;

    /* Pusatkan seluruh website di layar */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ======= MODE TAMPIL SELALU MOBILE ======= */
:root {
    --mobile-width: 390px;   /* Lebar tampilan hp */
    --mobile-height: 740px;  /* Tinggi tampilan hp */
}

/* Container utama (selalu center) */
.slider-container {
 transform: translateY(-5px); /* menaikkan gambar 25px */
    width: var(--mobile-width);
    height: var(--mobile-height);
    position: relative;
    overflow: hidden;
    background: #052e2b;
    border-radius: 10px;

    /* Agar container tetap di tengah layarnya */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Slider wrapper: width otomatis, jangan fixed 300% */
.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

/* Slide dibuat 100% dari container, bukan ukuran tetap */
.slide {
 width: 100%;
    height: 100vh;   
    height: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

.slide img {
    width: 100%;          /* Lebar mengikuti container */
    height: 80%;         /* Tinggi mengikuti container */
    max-height: 100vh;    /* Maksimal setinggi viewport */
    object-fit: cover;    /* Menutupi area, proporsional */
    object-position: center;
    display: block;
    margin-bottom: 140px;
    
}


/* Thumbnails */
.thumbnails {
    position: absolute;
    bottom: 80px;
    width: 100%;
    text-align: center;
}

.thumbnails img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 5px;
    margin: 5px;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid #fff;
}

.thumbnails img:hover {
    opacity: 1;
}

/* Mobile: penuh memiliki tampilan normal */
@media (max-width: 420px) {
    body {
        align-items: flex-start;
    }

    .slider-container,
    .slide {
        width: 100%;
        height: 100vh;
    }
}

/* Panel Musik di pojok atas slider */
.music-panel {
    position: absolute;
    top: 100px;
    right: 10px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.music-icon {
    background: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-box {
    margin-top: 50px;
    background: rgba(255,255,255,0.8);
    padding: 6px;
    border-radius: 8px;
    display: none; /* default hidden */
}

.slider-container {
    position: relative; /* penting agar music-panel menempel pada slider */
}




