* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    background-image: url(https://satpellembar.info/aset/bg-2a.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: bottom;
}

header {
    padding-top: 20px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

.line {width: 90%;
    height: 5px;
    background: linear-gradient(90deg, #d5d5d6, #8b8b8b, #646464, #646464, #8b8b8b,#d5d5d6);
    border-radius: 5px;
    animation: move 3s infinite alternate;
}

@keyframes move {
    0% { width: 90%; }
    100% { width: 100%; }
}

/* Nama Kantor awal */
.text-container {
    font-size: 2rem;
    font-weight: bold;
    color: #01080e;
    text-align: center;
    overflow: hidden;
    height: 45px;
    position: relative;
}
.text-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}
.text-item.active {
    opacity: 1;
    transform: translateY(0);
}
.text-item.hidden {
    opacity: 0;
    transform: translateY(-20px);
}
/* Nama Kantor End */

main {
    flex: 1; /* Bagian utama mengambil sisa tinggi layar */
    display: flex;
    flex-direction: row; /* Tata letak horizontal secara default */
    margin-top: 20px;
}

.left, .right {
    flex: 1; /* Membagi isi utama menjadi dua bagian */
    display: flex;
    align-items: center;
    flex-direction: column;
}

/* Bandner */
#myElement {
    position: sticky; /* Properti sticky agar berhenti di posisi tertentu */
    top: 10px; /* Berhenti pada posisi 10px dari atas */
}

.slider-container {
    align-self: center;
    width: 100%;
    max-width: 600px;
    overflow: hidden;
    position: relative;
}
.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    display: flex;
    justify-content: center;
    min-width: 100%;
    box-sizing: border-box;
}
.bandner {
    max-height: 600px;
    display: block;
    border-radius: 10px; /* Membuat sudut gambar melengkung */
    margin-bottom: 10px; /* Jarak antara gambar dan teks */
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(202, 200, 200, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius:9px;
}
.prev { left: 10px; }
.next { right: 10px; }

/* Bandner End */

/* Full Scren Banner */
.fullscreen-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}
.fullscreen-container img {
    max-width: 99%;
    max-height: 99%;
}
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 20px;
    color: white;
    cursor: pointer;
}
/* Full Scren Banner End */

/* Menu awal */
.container_menu {
    width: 700px;
    height:60% ;
}

.daftar_menu {
    display: grid;
    gap:3px;
}
/* Menu end */


/* tombol menu awal */
.accordion {
    background-color: rgba(214, 213, 213, 0.8) ;
    color: rgb(24, 21, 21);
    cursor: pointer;
    padding: 15px;
    text-align: center;
    border: none;
    outline: none;
    transition: background-color 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    border: 1.5px solid rgba(197, 192, 192, 0.8);
    border-radius: 9px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}

.accordion:hover {
    background-color: #8B4513;
    border-radius: 9px;
    color: #eee;
    font-size: 18px;
}

.accordion.active {
    margin-top: 10px;
    border-radius: 9px;
    color: #eee;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-size: 18px;
    background: linear-gradient(90deg, #8B4513, #CD853F, #D2B48C); /* Nuansa warna biru */
    background-size: 200% 200%; /* Membuat area gradien lebih besar */
    animation: moveGradient 7s infinite; /* Animasi gradien bergerak */
    border: none;
}

@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.panel {
    display: none;
    background-color:  rgba(245, 222, 179, 0.5);
    padding: 10px;
    overflow: hidden;
    border-top: none;
    position: relative;
    justify-items: center;
    width: 100%;
    margin-bottom: 15px;
}
/* tombol menu end */

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    border: 1px solid rgb(12, 88, 88);
    padding: 8px;
    text-align: left;
}
th {
    background-color: rgb(12, 88, 88);
    color: white;
}
/*Table End*/

/*logo medsos*/

a img:hover {
    transform: scale(1.3);
    animation: moveGradient 7s infinite; /* Animasi gradien bergerak */
    border: none;
}


/* Tabel Keberangkatan Kedatangan awal */
.container_tabel_keberangaktan_kedatangan {
    display: grid;
    justify-content: center;
    transform: scale(0.7); /* Ukuran elemen diperbesar */
    transform-origin: top; /* Elemen dirapatkan ke atas */
}

.Keberangkatan {
    position: relative;
    top: 26px;
    background-color: #F87217;
    color: white;
    border-radius: 20px 20px 0px 0px;
    text-align: center;
}

.Bongkaran {
    position: relative;
    top: 26px;
    background-color: #E30B5D;
    color: white;
    border-radius: 20px 20px 0px 0px;
    text-align: center;
}

.tabel-keberangkatan {
    display: flex;
    justify-content: center;
}

.tabel-keberangkatan>iframe {
    width: 932px;
    height: 875px;
    background-color: rgb(65, 64, 64);
}

.ekor {
    position: relative;
    top: -38px;
    background-color: #575757;
    color: white;
    border-radius: 0px 0px 10px 10px;
    text-align: center;
}

.ekor .ekor_kata {
    font-size: 20px; 
    margin: 10px;
}
/* Tabel Keberangaktan Kedatangan end */

/* Tabel Jadwal awal */
.container_jadwal {
    transform: scale(.86);
    transform-origin: top;
    height: 750px;
}

ol {
    padding-left: 20px;
    text-align: justify;
}

ul {
    padding-left: 20px;
    text-align: justify;
}

.judul_jadwal {
    position: relative;
    justify-content: center;
    width: 772px;
    color: #f4f4f4;
    font-size: 20px;
    font-weight: bold;
    padding: 5px;
    text-align: center;
    top: 23px;
    background-color: rgb(12, 88, 88);
    border-radius: 10px 10px 0px 0px;
}

.tabel-jadwal {
    display: flex;
    height: 750px;
}

.tabel-jadwal>iframe {
    width: 770px;
}

.ekor-2 {
    position: relative;
    justify-content: center;
    width: 771px;
    top: -40px;
    background-color: rgb(84, 87, 87);
    color: white;
    border-radius: 0px 0px 9px 9px;
    text-align: center;
    height: 40px;
}
/* tabel jadwal end */

/* Media query untuk layar lebih kecil */
@media screen and (max-width: 1100px) and (min-width: 800px) {
    main {
        flex-direction: column; /* Ubah tata letak bagian utama menjadi vertikal */
    }

    .container_tabel_keberangaktan_kedatangan {
        transform: scale(0.7);
        transform-origin: top; /* Elemen dirapatkan ke atas */
    }

    .left, .right {
        height: 50vh; /* Bagian kiri dan kanan masing-masing setengah tinggi layar */
        width: 100%; /* Lebar penuh */
    }

    .container_jadwal {
        transform: scale(.87);
        transform-origin: top; /* Elemen dirapatkan ke atas */
    }
}

/* Media query untuk layar lebih kecil */
@media screen and (max-width: 809px) {
    header{
        transform: scale(.87);
    }

    main {
        flex-direction: column; /* Ubah tata letak bagian utama menjadi vertikal */
    }

    .container_tabel_keberangaktan_kedatangan {
        transform: scale(0.7);
    }

    .left, .right {
        height: 50vh; /* Bagian kiri dan kanan masing-masing setengah tinggi layar */
        width: 100%; /* Lebar penuh */
    }

    .container_menu {
        transform: scale(.87);
        transform-origin: top; /* Elemen dirapatkan ke atas */
    }

}

/* Media query untuk layar lebih kecil */
@media screen and (max-width: 500px) {
    header {
        transform: scale(.87);
    }

    header img{
        height: 90px;
    }
    .text-container{
        font-size: 25px;
        height: 35px;
    }

    .moto {
        font-size: 13px;
        padding-bottom: 10px;
    }

    .line{
        height: 3px;
    }
    
    .bandner {
        max-height: 510px;
    }

    main {
        flex-direction: column; /* Ubah tata letak bagian utama menjadi vertikal */
   }

    .container_menu {
        transform: scale(0.5);
        transform-origin: top; /* Elemen dirapatkan ke atas */
        height:60% ;
        padding-top: 40px;
    }

    .right p{
        font-size: 21px;
    }

    .accordion {
        font-size: 23px;
    }

    .accordion:hover {
        font-size: 26px;
    }

    .accordion.active {
        font-size: 26px;
    }

    ol, ul {
        font-size: 21px;
    }

    .slider-container {
        align-self: center;
        height: 360px;
        width: 100%;
        overflow: hidden;
        position: relative;
    }

    .slider {
        display: flex;
        transition: transform 0.5s ease-in-out;
    }
    .slide {
        display: flex;
        justify-content: center;
        min-width:100%;
        box-sizing: border-box;
    }
    .bandner {
        transform: scale(0.7);
        transform-origin: top;
    }
    
}