/*! @rizkilfan */
* {
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100vh;
    display: flex;
    background-color: #f9f9f9;
}

body {
    background-color: #f9f9f9;
    color: #333;
    padding: 40px 20px;
    margin: auto;
    width: 100%;
    max-width: 900px;
}

h1 {
    text-align: center;
    color: #222;
    margin-bottom: 30px;
    font-size: 28px;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

body>main,
body>section,
body>form {
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-bottom: 30px;
    padding: 20px;
    width: 100%;
}

input[type="submit"],
button {
    display: block;
    background: linear-gradient(135deg, #7b4397, #dc2430);
    background-size: 200% 200%;
    background-position: left center;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-position 0.4s ease, transform 0.2s ease;
    text-align: center;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
}

.deui-cuy {
    background: #a5a5a5;
}

.geusan-ah {
    background: #666;
}

input[type="submit"]:hover,
button:hover {
    background-position: right center;
    transform: scale(1.03);
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

input[type="text"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    resize: vertical;
}

[hidden] {
    display: none !important;
}

.can-aya {
    color: #8a8a8a;
}

.pesancuy {
    margin-top: 15px;
    padding: 10px;
    border-left: 4px solid #999;
    background-color: #eee;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.pesancuy.apadah-hore {
    background-color: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.pesancuy.apadah-yahh {
    background-color: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.pesancuy.apadah-apasih {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

#eusi-poll {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 10px;
    width: 100%;
}

#eusi-poll.pareuman {
    pointer-events: none;
    opacity: 0.7;
}

#eusi-poll label {
    flex: 1 1 180px;
    max-width: 300px;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 18px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    user-select: none;
}

#eusi-poll label:hover,
#eusi-poll label.dipilih {
    border-color: #7b4397;
    transform: translateY(-3px);
}

#eusi-poll label.dipilih {
    box-shadow: 0 0 0 1px #7b4397, 0 4px 10px rgba(123, 67, 151, 0.15);
}

#eusi-poll label input {
    display: none;
}

#eusi-poll label img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

#eusi-poll label span {
    font-size: 1.05rem;
    font-weight: bold;
}

#bungkus-chart {
    position: relative;
    height: 320px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 16px;
}

#gbr-bang {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 20px 0 12px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

#gbr-bang figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

#gbr-bang figcaption {
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #7b4397, #dc2430);
    padding: 2px 10px;
    border-radius: 12px;
}

#gbr-bang img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
}

footer {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #666;
    width: 100%;
}

footer a {
    color: #A63EDA;
}

@media (max-width: 600px) {

    th,
    td {
        font-size: 14px;
        padding: 10px;
    }

    h1 {
        font-size: 22px;
    }
}