@import url("https://fonts.googleapis.com/css2?family=Baloo+2&family=Gloock&display=swap");

/* Batik-inspired background pattern using CSS */
body {
    margin: 0;
    font-family: "Baloo 2", cursive, sans-serif;
    background: #3e2723;
    background-image: url("../image/bg.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #f5f5dc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: rgba(69, 35, 10, 0.85);
    border-radius: 15px;
    max-width: 500px;
    padding: 30px 40px;
    box-shadow: 0 0 30px #6d4c41;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.container.fade-in {
    opacity: 1;
    transform: translateY(0);
}

h1 {
    font-family: "Gloock", serif;
    font-size: 2.8rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px #3e2723;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #f0e68c;
}

.invitation-message {
    background: #5d4037cc;
    padding: 0px 20px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px #3e2723;
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.5;
    color: #fff8dc;
    font-style: italic;
    white-space: pre-line;
    text-align: center;
}

.section {
    margin-bottom: 25px;
    background: #5d4037cc;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: inset 0 0 10px #3e2723;
}

.section h2 {
    margin-bottom: 10px;
    font-family: "Gloock", serif;
    font-size: 1.6rem;
    color: #ffecb3;
    text-shadow: 1px 1px 3px #3e2723;
}

.section p {
    font-size: 1rem;
    line-height: 1.5;
    color: #fff8dc;
}

.location {
    font-weight: 700;
    font-size: 1rem;
    margin-top: 5px;
    font-style: italic;
}

footer {
    font-size: 0.9rem;
    margin-top: 30px;
    color: #d7ccc8;
    font-style: italic;
}

/* Batik pattern accent around container */
/* .container::before {
      content: "";
      position: absolute;
      z-index: -1;
      inset: 0;
      margin: -15px;
      border-radius: 20px;
      background:
        repeating-radial-gradient(circle at center, transparent 0 8px, #a0522d 8px 10px);
      opacity: 0.3;
    } */

/* Button to show countdown */
#input-kehadiran {
    font-size: 1rem;
    font-weight: 300;
    padding: 12px 20px;
    background-color: #c68642;
    border: none;
    border-radius: 8px;
    /* color: #3e2723; */
    color: #ffff;
    cursor: pointer;
    box-shadow: 1px 1px 5px #3e2723;
    margin-top: -30px !important;
    outline: none;
}

#input-kehadiran:hover {
    background-color: #d2a679;
    animation-play-state: paused;
}
.button-keluarga {
    font-size: 1rem;
    font-weight: 300;
    margin-top: 10px;
    padding: 12px 20px;
    background-color: #c68642;
    border: none;
    border-radius: 8px;
    /* color: #3e2723; */
    color: #ffff;
    cursor: pointer;
    box-shadow: 1px 1px 5px #3e2723;
    margin-top: -30px !important;
    outline: none;
    text-decoration: none;
}

.button-keluarga:hover {
    background-color: #d2a679;
    animation-play-state: paused;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 8px 2px #c68642;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px 6px #d2a679;
        transform: scale(1.05);
    }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 10, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* ini bikin modal muncul di atas */
    z-index: 999;
    padding: 15px;
}

.modal-content {
    background: #5d4037;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 0 15px #3e2723;
    max-width: 500px;
    width: 100%;
    color: #fff8dc;
    font-family: "Baloo 2", cursive;
    animation: fadeIn 0.5s ease-out;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-family: "Gloock", serif;
    font-size: 1.8rem;
    color: #ffecb3;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-content input,
.modal-content select {
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #d7ccc8;
    color: #3e2723;
}

.modal-content input:focus,
.modal-content select:focus {
    outline: 2px solid #c68642;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-buttons button {
    flex: 1;
    padding: 10px;
    background-color: #c68642;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 1px 1px 5px #3e2723;
}

.form-buttons button:hover {
    background-color: #d2a679;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 600px) {
    .modal-content {
        padding: 20px 15px;
    }

    .form-buttons {
        flex-direction: column;
    }
}
