* {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    margin: 0;
    background: #f4f4f4;
}

.container {
    text-align: center;
    padding: 40px;
}

/* JUDUL */
.title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 50px;
}

/* WRAPPER CALON */
.calon-wrapper {
    display: flex;
    justify-content: center;
    gap: 60px;
}

/* CARD */
.calon-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    width: 260px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.calon-card img {
    width: 100%;
    max-width: 220px;      /* KUNCI: bikin gambar ga kebesaran */
    aspect-ratio: 2 / 3;   /* Rasio portrait rapi */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}


/* TOMBOL */
.vote-btn {
    display: inline-block;
    width: 100%;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    background: black;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.25s ease;
}

.vote-btn:hover {
    transform: translateY(-5px);
}

/* TEXT BAWAH */
.info-text {
    margin-top: 15px;
}

.page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hidden {
    display: none;
}

.subtitle {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 30px;
}


/* CONFIRM CARD (VERSI BESAR) */
.confirm-card {
    background: white;
    padding: 50px;
    border-radius: 28px;

    width: 80%;
    max-width: 800px;

    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.logo-title {
    width: 40px;
    margin-left: 10px;
    vertical-align: middle;
    animation: pop 0.6s ease;
}


@keyframes pop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* STYLE FISI MISI*/
.visi-misi {
    text-align: left;
    margin: 25px 0;
    line-height: 1.8;
    font-size: 16px;
}

/* SQUIRCLE BAR */
.squircle {
    background: black;
    color: white;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    font-size: 18px;
}

/* tombol abu */
.secondary {
    background: #ddd;
    color: black;
}

/* ================= ANIMASI CALON CARD (FIX) ================= */

.anim-card {
    opacity: 0;
    animation: cardIn 0.8s cubic-bezier(.2,.9,.3,1) forwards;
}

.anim-card:nth-child(1) {
    animation-delay: 1.1s;
}

.anim-card:nth-child(2) {
    animation-delay: 1.3s;
}

body {
    background-image: url("images/calon1.webp"); /* ganti nama file */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@media (max-width: 768px) {
    .title {
        font-size: 26px;
    }

    .calon-wrapper {
        gap: 30px;
    }

    .calon-card {
        width: 220px;
    }
}

@media (max-width: 600px) {
    .confirm-card {
        padding: 30px;
        width: 90%;
    }
}

@media (max-width: 768px) {

    /* Container utama: naikkan konten */
    .container {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    /* Judul lebih ke atas & lebih kecil dikit */
    .title {
        font-size: 22px;
        margin-top: 10px;
        margin-bottom: 8px;
    }

    /* Tagline */
    .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* Wrapper calon */
    .calon-wrapper {
        gap: 16px;
    }

    /* Card calon BESARIN */
@media (max-width: 768px) {

    .calon-wrapper {
        gap: 20px;
    }

    .calon-card {
        width: 180px;   /* LEBIH BESAR */
        padding: 18px;
    }

    .calon-card img {
        max-width: 100%;
        max-height: 260px;
    }

}

    /* Gambar calon BESARIN */
    .calon-card img {
        width: 100%;
        height: auto;
        max-height: 240px;
        object-fit: contain;
    }

    /* Tombol */
    .vote-btn {
        font-size: 14px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
}


@media (max-width: 768px) {

    /* ⛔ STOP CENTER DI MOBILE */
    .page {
        justify-content: flex-start;
        padding-top: 30px;
    }

}

@media (max-width: 768px) {
    body {
        background: #f7f7f7;
    }
}


