* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

body {
    font-family: 'Figtree', Arial, sans-serif;
    background: linear-gradient(135deg, #181818 0%, #232323 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #f5c16c;
    overflow-x: hidden;
    padding: 20px;
}

#pageContent {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.typing-container {
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
    position: relative;
    min-height: 50px;
}

#typing {
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    background: rgba(0, 20, 40, 0.6);
    padding: 12px 20px;
    border-radius: 10px;
    border-left: 3px solid #f97316;
    display: inline-block;
    text-align: left;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: 42px;
    line-height: 1.4;
    vertical-align: middle;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background-color: #f97316;
    animation: cursorBlink 1s infinite;
    vertical-align: middle;
    position: relative;
    top: -1px;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.container {
    background: linear-gradient(135deg, #232323 60%, #181818 100%);
    backdrop-filter: blur(16px);
    width: 100%;
    padding: 25px;
    border-radius: 22px;
    box-shadow: 0 10px 40px 0 #000a, 0 1.5px 0 #f97316 inset;
    text-align: center;
    border: 1.5px solid #2c2c2c;
    transition: transform 0.1s ease-out;
}

.thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 75px;
    height: 75px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    object-fit: cover;
    border: 2px solid transparent;
    filter: brightness(0.85);
}

.thumbnail:hover {
    transform: scale(1.12);
    filter: brightness(1.1);
    border: 2px solid #ea580c;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.6);
}

.thumbnail.active {
    border: 3px solid #f97316;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.5);
    filter: brightness(1.2);
}

.image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    min-height: 250px;
}

.main-image {
    max-width: 100%;
    border-radius: 16px;
    transition: transform 0.7s cubic-bezier(.22,1,.36,1), opacity 0.3s ease;
    border: 1.5px solid #f9731644;
    box-shadow: 0 8px 40px #000a, 0 0 32px #f9731622 inset;
    display: block;
    object-fit: contain;
    max-height: 350px;
    width: auto;
    height: auto;
    position: relative;
    z-index: 1;
    animation: bannerZoom 3s ease-in-out infinite alternate;
}

@keyframes bannerZoom {
    0% { transform: scale(1) rotate(-1deg); }
    50% { transform: scale(1.06) rotate(1deg); }
    100% { transform: scale(1) rotate(-1deg); }
}

.main-image:hover {
    transform: scale(1.01);
}

/* KONTANER TOMBOL */
.portal-btn-container {
    width: 100%;
    text-align: center;
}
.portal-btn-container.m-bottom {
    margin-bottom: 5px;
}
.portal-btn-container.m-top {
    margin-top: 5px;
}

/* --- MULAI DARI SINI --- */

/* TATA LETAK TOMBOL & LOGO */
.buttons-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 15px;
}

.btn-with-logo {
    display: flex;
    align-items: center; /* Menjaga logo sejajar vertikal di tengah tombol */
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 400px; 
    margin: 0 auto;
}

/* KUNCI UTAMA: Menyamakan ukuran tinggi dan lebar proporsional untuk kedua logo */
.btn-with-logo img.external-logo,
.external-logo {
    height: 42px !important;    /* Menyamakan tinggi kedua logo */
    width: auto !important;     /* Lebar otomatis menyesuaikan agar tidak gepeng */
    min-width: unset !important;
    max-width: 150px !important; /* Batas aman lebar logo landscape */
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

/* Opsional: Efek hover agar logo ikut bereaksi halus */
.btn-with-logo:hover .external-logo {
    transform: scale(1.05);
}



/* DESAIN TOMBOL */
.portal-btn {
    background: linear-gradient(90deg, #9a3412 0%, #f97316 100%);
    color: #fffbe6;
    padding: 12px 20px;
    font-size: 14px !important;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(.22,1,.36,1);
    
    /* PENTING: Memastikan teks tidak terpotong */
    flex: 1; 
    white-space: nowrap;
    text-align: center;
    
    box-shadow: 0 6px 32px 0 #9a341255, 0 1.5px 0 #f97316 inset;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
    /* Tambahan agar teks tetap rapi meski ukuran font berubah */
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
    padding: 10px 12px !important;
}


/* RESPONSIVE KHUSUS MOBILE */
@media screen and (max-width: 480px) {
    .portal-btn {
        font-size: 13px !important; /* Perkecil sedikit lagi */
        padding: 10px 10px !important;
        white-space: normal !important; /* Izinkan teks turun ke bawah jika sangat panjang */
        line-height: 1.2;
    }
    
    .btn-with-logo {
        gap: 8px !important;
    }
    
    .external-logo {
        height: 40px !important;
        width: 40px !important;
        min-width: 40px !important;
    }
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 #9a341255, 0 1.5px 0 #f97316 inset; }
    70% { box-shadow: 0 0 0 12px #9a341211, 0 1.5px 0 #f97316 inset; }
    100% { box-shadow: 0 0 0 0 #9a341255, 0 1.5px 0 #f97316 inset; }
}

.portal-btn:hover {
    background: linear-gradient(90deg, #f97316 0%, #9a3412 100%);
    color: #fffbe6;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 40px 0 #9a341277, 0 1.5px 0 #f97316 inset;
}

.portal-btn:active {
    transform: scale(0.98) translateY(0);
}

.portal-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.0) 100%);
    opacity: 0.7;
    z-index: 2;
    pointer-events: none;
    animation: btnShine 2.2s linear infinite;
}

@keyframes btnShine {
    0% { left: -75%; }
    100% { left: 120%; }
}

.btn-with-logo {
    display: flex;
    align-items: center; /* Memastikan logo sejajar vertikal dengan tombol */
    justify-content: center;
    gap: 20px;           /* Perbesar jarak agar logo lebih terlihat "bernafas" */
    width: 100%;
}

.external-logo {
    height: 55px !important;
    width: auto !important;
    min-height: 55px !important; /* Memaksa tinggi minimum */
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.logo-main {
    height: 60px !important;
    width: auto !important;
    display: block !important;
}

/* Opsional: Tambahkan efek hover agar logo ikut bereaksi saat tombol ditekan */
.btn-with-logo:hover .external-logo {
    transform: scale(1.05);
}

/* Sembunyikan elemen thumbnail ke-5 */
.thumbnail:nth-child(5) {
    display: none !important;
}

.description-container {
    width: 100%;
    max-width: 450px;
    margin: 20px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid #f9731644;
    border-radius: 16px;
    text-align: center;
}

#siteSlogan {
    font-weight: bold;
    color: #f97316;
    margin-bottom: 5px;
}

#textContainer {
    margin-top: 10px;
    padding: 20px;
}