/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-image: url('bg/bg-matrix.gif');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#imageContainer {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    margin-top: 70px;
    display: block;
}

#slotImage {
    width: 100%;
    /* Membuat gambar responsif */
    height: auto;
    /* Menjaga proporsi gambar */
    border-radius: 10px;
    /* Opsional: menambahkan efek sudut membulat */
}

.container {
    text-align: center;
    /* margin-top: 50px; */
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

/* Container artikel dengan ukuran yang sama dan posisi di bawah container generate */
#articleContainer {
    width: 100%;
    max-width: 600px;
    margin: 25px auto;
    /* Letakkan di bawah container generate */
    padding: 3px;
    background-color: #e9e9e9;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 4px solid transparent;
    /* Border awal yang transparan */
    position: relative;
    /* Agar efek glowing border berada di sekitar container */
    animation: glowing-border 1.5s infinite alternate;
    /* Menambahkan animasi glowing border */
}

h1 {
    font-size: 24px;
    color: #e9e9e9;
    margin-bottom: 20px;
}

h2 {
    font-size: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: rgb(255, 136, 0);
}

h3 {
    font-size: 12px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: black;
}

.buttons {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.generate-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 150px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.generate-button:hover {
    background-color: #45a049;
    animation: pulse 1s infinite; /* Menambahkan animasi pulse saat dihover */
}

/* Animasi Kelap-Kelip */
@keyframes blink {
    0% {
        background-color: #4CAF50;
    }

    50% {
        background-color: #8BC34A;
    }

    100% {
        background-color: #4CAF50;
    }
}

@keyframes glowing-border {

    50% {
        /* border-color: #FF4081;
        Warna border berubah menjadi pink */
        box-shadow: 0 0 5px #009e35, 0 0 10px #01491c, 0 0 15px #ffffff;
        /* Efek cahaya pink */
    }
}

.generate-button.success {
    background-color: #4CAF50;
    animation: blink 1s infinite;
    color: white;
}

.loading {
    display: none;
    margin-top: 20px;
    text-align: center;
}

/* Tambahkan transisi untuk smooth effect pada progress bar */
#loadingProgress {
    width: 100%;
    height: 20px;
    appearance: none;
    border-radius: 10px;
    background-color: #eee;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
    transition: width 0.1s ease-in-out;
    /* Membuat progress lebih smooth */
}

#loadingProgress::-webkit-progress-bar {
    background-color: #eee;
    border-radius: 10px;
}

#loadingProgress::-webkit-progress-value {
    background-color: #4caf50;
    border-radius: 10px;
}

#loadingProgress::-moz-progress-bar {
    background-color: #4caf50;
    border-radius: 10px;
}

#loadingText {
    font-size: 16px;
    color: #fafafa;
    margin-top: 10px;
    text-align: center;
}

progress {
    width: 100%;
    height: 20px;
}

/* Result styling */
.result {
    display: none;
    margin-top: 10px;
    font-size: 18px;
}

table {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

table,
th,
td {
    border: 1px solid #ddd;
}

th,
td {
    padding: 8px;
    text-align: center;
    font-size: small;
}

th {
    background-color: #f2f2f2;
}

td {
    background-color: #fafafa;
    font-size: small;
}

#daftarButton {
    display: inline-block;
    padding: 10px 60px;
    background: linear-gradient(180deg, #ca0000, #310909);
    color: white;
    border: none;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    animation: button-glow 0.5s linear infinite;
    transition: transform 0.3s;
    margin-top: 20px;
    /* Memberikan jarak dari hasil */
}

@keyframes button-glow {

    0%,
    100% {
        box-shadow: 0 0 0px #fff, 0 0 5px #fff, 0 0 10px #fff;
    }

    50% {
        box-shadow: 0 0 2px #000, 0 0 4px #000, 0 0 6px #000;
    }
}

#daftarButton:hover {
    background-color: #45a049;
}

#loading,
#loadingText,
#loadingProgress {
    text-align: center;
    /* Pastikan loading berada di tengah */
}