@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #074988, #000000);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    text-align: center;
    background: linear-gradient(135deg, #11274e, #0c0c0c);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
}

.input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

input {
    padding: 14px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

button {
    padding: 14px 28px;
    font-size: 1em;
    border: none;
    background: linear-gradient(135deg, #092a44, #4a8cd4);
    color: white;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(92, 157, 237, 0.5);
    transition: background-color 0.3s;
    width: 100%;
    max-width: 400px;
}

button:hover {
    background-color: #3b7bbf;
}

@keyframes starsAnimation {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100px); }
}

.loading-stars {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    margin: auto;
}

.loading-stars:before, .loading-stars:after {
    content: '';
    display: block;
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    animation: starsAnimation 1s ease-in-out infinite alternate;
}

.loading-stars:before {
    top: 0;
    left: 15px;
    animation-delay: 0.2s;
}

.loading-stars:after {
    top: 0;
    left: 25px;
    animation-delay: 0.4s;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #333;
    text-decoration: none;
}

#result {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    text-shadow: 1px 1px #ccc;
}

.watermark {
    margin-top: 20px;
    font-size: 0.9em;
    color: #ffffff;
}

.watermark a {
    color: #3d3c3c;
    text-decoration: none;
}

.watermark a:hover {
    color: #3b7bbf;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .input-container {
        flex-direction: column;
        gap: 10px;
    }

    input {
        width: 100%;
        margin-bottom: 10px;
        border-radius: 4px;
    }

    button {
        width: 100%;
        border-radius: 4px;
    }
    h3 {
        font-size: 1.5em;
        margin-bottom: 20px;
        color: #fff;
    }
}
/* Tambahkan ke bagian bawah file CSS Anda */

/* Gaya untuk overlay salju */
#snowflakes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1.5em;
    animation: fall linear infinite;
    opacity: 0.9;
}

@keyframes fall {
    to {
        transform: translateY(100vh);
    }
}

.snowflake:nth-child(1) {
    left: 10%;
    animation-duration: 7s;
    animation-delay: 0s;
}

.snowflake:nth-child(2) {
    left: 50%;
    animation-duration: 8s;
    animation-delay: 2s;
}

.snowflake:nth-child(3) {
    left: 90%;
    animation-duration: 8s;
    animation-delay: 4s;
}


/* Gaya untuk kartu foto */
.photo-card-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.photo-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 150px;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
}
