@font-face {
    font-family: "Enceladus";
    src: url('../font/Enceladus.woff') format('woff'),
         url('../font/Enceladus.otf') format('opentype');
}

@font-face {
    font-family: "Gomgom Handwrite-Basic";
    src: url('../font/Gomgom Handwrite-Basic.woff') format('woff'),
         url('../font/Gomgom Handwrite-Basic.otf') format('opentype');
}

/* Gaya Umum untuk Daftar Anime */
.anime-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 16px;
    box-sizing: border-box;
}

/* Gaya untuk setiap item anime */
.anime-item {
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: auto;
    background-color: #1e1e1e; /* Tambahkan background untuk kontras (opsional) */
    border-radius: 8px;         /* Agar lebih lembut di mobile */
}

/* Efek saat hover */
.anime-item:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Gaya untuk teks judul anime */
.anime-title {
    font-family: "calibri-regular", sans-serif;
    font-size: 1.4em;
    color: white;
    margin: 5px 0;
}

/* Gaya untuk nomor daftar */
.anime-number {
    font-size: 1.2em;
    color: #D77A1D;
    position: absolute;
    top: 10px;
    left: 10px;
}

/* Gaya untuk loading screen */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Gaya untuk spinner */
.spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #D77A1D;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Animasi putaran untuk spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Media Queries untuk responsivitas */
@media (max-width: 1024px) {
    .anime-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .anime-list {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .anime-item {
        padding: 14px;
        font-size: 0.95em;
    }

    .anime-title {
        font-size: 1.2em;
    }

    .anime-number {
        font-size: 1em;
        top: 8px;
        left: 8px;
    }
}

@media (max-width: 480px) {
    .anime-item {
        padding: 12px;
    }

    .anime-title {
        font-size: 1.1em;
    }

    .spinner {
        width: 45px;
        height: 45px;
        border-width: 6px;
    }
}

