@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    padding: 0;
    margin: 0;
    user-select: none;
    box-sizing: border-box;
}

body{
    font-family: "Roboto", sans-serif;
    background-image: url(../img/bg.jpg);
    background-position: center;
    width: 100%;
    min-height: 100vh;
    background-repeat: no-repeat;
    background-size: cover;
}

.judul-halaman{
    font-size: 25px;
    margin: 10px 30px 0;
    text-align: center;
    background-color: #d92e27;
    color: #ffff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: 5px 5px 3px 0 rgba(0, 0, 0, 0.463);
}


.card-container {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.card {
    background-color: #ffffffc8;
    border-radius: 20px;
    padding: 20px;
    width: 420px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.319);
    text-decoration: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card .card-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid red;
    margin-bottom: 15px;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.card h2 {
    font-size: 17px;
    padding: 10px;
    border: 1px solid black;
    border-radius: 50px;
    color: #000000;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0; 
    right: 0; 
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000000dc;
    box-shadow: 0 -5px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.footer h1{
    font-weight: 500;
    color: #ffffff;
    font-size: 15px;
}

.footer p{
    font-weight: 8 00;
    font-size: 15px;
    color: #ffffff;
}

@media (max-width: 800px) {
    .card-container {
        margin-top: 20px;
    }

    .card {
        width: 40%;
        padding: 15px;
    }

    .card img {
        width: 100%;
        height: auto;
    }

    .judul-halaman {
        font-size: 22px;
        margin: 10px 20px;
    }

    .footer h1,
    .footer p {
        font-size: 14px;
    }
}

@media (max-width: 500px) {
    .card {
        width: 80%;
        padding: 15px;
    }

    .judul-halaman {
        font-size: 20px;
        padding: 8px;
    }

    .card h2 {
        font-size: 15px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .footer h1,
    .footer p {
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .judul-halaman {
        font-size: 18px;
        margin: 10px 15px;
    }

    .card h2 {
        font-size: 14px;
    }

    .footer h1,
    .footer p {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .judul-halaman {
        font-size: 16px;
        padding: 6px;
    }

    .card {
        padding: 10px;
    }

    .card h2 {
        font-size: 13px;
        padding: 8px;
    }

    .footer h1,
    .footer p {
        font-size: 11px;
    }
}
