@font-face {
    font-family: 'Intan';
    src: url('../fonts/Avenis.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Headings */
.custom-h1 {
    font-family: 'Intan', sans-serif !important;
}

.cover-image {
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    margin-top: 3rem;

    /* Animation styles */
    opacity: 0;
    transform: translateY(-30px);
    animation: slideDownFadeIn 1.2s ease-out forwards;
}

@keyframes slideDownFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Headers fade in animation */
.masthead h2,
.masthead h3 {
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

/* Button fade in animation */
.masthead .btn {
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

/* Fade in keyframes */
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.hero-image:hover {
    transform: translateY(-5px);
}

/* Toast notification */
.dark-toast {
    background-color: #212529;
    border: 2px solid #495057;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

    .dark-toast .toast-header {
        background-color: #343a40;
        border-bottom: 1px solid #495057;
        color: white;
    }

    .dark-toast .btn-close {
        filter: invert(1);
    }

@media (max-width: 768px) {
    .d-grid.gap-3.d-sm-flex {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem;
        align-items: center; /* Centers the buttons */
    }

    .btn {
        flex: 1;
        min-width: 200px;
        max-width: 200px;
        white-space: nowrap;
    }

    .cover-image {
        width: 80%;
        height: auto;
    }
}