/* ========== Reset CSS untuk konsistensi ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} 

body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ========== Navbar ========== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2a4d2f; 
    font-family: 'Times New Roman', Times, serif;
    font-size: 1.25rem;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.navbar-nav .nav-item {
    margin-left: 20px;
}

.nav-link {
    color: #2a4d2f !important;
}

.nav-link:hover {
    color: #2a4d2f !important;
}

.btn-primary {
    margin-left: 10px;
    white-space: nowrap;
    background-color: #ffffff; 
    border-color: #2a4d2f;
    color: #2a4d2f; 
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: #1b3d29; 
    border-color: #1b3d29; 
    color: white;
}

.btn-primary:active, .btn-primary:focus {
    background-color: #1b3d29 !important;
    border-color: #1b3d29 !important;
    color: white !important;
}


/* ========== Marquee Text ========== */
.marquee-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 0;
}

.marquee-text {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    animation: marquee-scroll 10s linear infinite;
}

@keyframes marquee-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* ========== Footer ========== */
.footer {
    background-color: #2a4d2f;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.footer-logo-img {
    height: 40px;
    margin-right: 10px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    font-size: 30px;
    color: white;
    transition: color 0.3s ease-in-out;
}

.social-icon:hover {
    color: #e8f5e9;
}

.footer-jargon {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #e8f5e9;
}

/* ========== Kotak Penjelasan ========== */
.text-box {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}
/* ========== Efek Animasi Scroll (Fade-in & Slide-in) ========== */
.fade-in, .slide-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in {
    transform: translateX(-30px);
}

.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Tombol Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #2a4d2f;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: none; /* Default hidden */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.back-to-top:hover {
    background: #1b3d29;
    transform: scale(1.1);
}

/* ========== Animasi Fade-in Saat Scroll ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Efek Hover pada Gambar Karakter & Pembuat ========== */
.foto-pembuat, .foto-game, .character-img {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.foto-pembuat:hover, .foto-game:hover, .character-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ========== Efek Marquee untuk Teks Berjalan (Opsional) ========== */
.marquee-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 0;
}

.marquee-text {
    display: inline-block;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    animation: marquee-scroll 10s linear infinite;
}

@keyframes marquee-scroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}
.character-card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.character-card:hover {
    transform: scale(1.05);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}
/* ========== Gambar About Game ========== */
.foto-game {
    max-width: 80%; /* Pastikan gambar tidak lebih dari 80% lebar kontainer */
    height: auto; /* Menjaga aspek rasio gambar */
    display: block; /* Menghindari margin aneh */
    margin: 0 auto; /* Menempatkan gambar di tengah */
    border-radius: 10px; /* Opsional: memberi sudut melengkung */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Efek bayangan agar lebih menarik */
}

/* Responsif untuk layar kecil */
@media (max-width: 768px) {
    .foto-game {
        max-width: 100%; /* Memastikan gambar tetap proporsional pada layar kecil */
    }
}

/* Mengurangi margin bawah pada judul */
h3.text-center {
    margin-bottom: 5px; /* Kurangi jarak bawah */
}

/* Mengatur text-box agar lebih dekat dengan judul */
.text-box {
    margin-top: -10px; /* Mengangkat text-box lebih dekat */
    padding: 10px;
    line-height: 1.5;
    text-align: justify;
}

/* Pastikan gambar karakter tidak keluar dari layout */
.foto-pembuat {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Tengah otomatis */
}
