/* Basic reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(45deg, #f7c9fc, #ffecd2);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
}

/* Intro container */
.intro-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

/* Intro image styling */
.intro-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

/* Heading and description */
h1 {
    font-size: 28px;
    color: #4CAF50;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    color: #777;
    margin-bottom: 25px;
}

/* Form styling */
.div-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Birth form container */
.birth-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Space between form groups */
    justify-content: space-between;
}

/* Form groups inside birth-form */
.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 200px;
}

/* Label styling */
label {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    font-weight: bold;
}

/* Input styling for date and time */
input[type="date"], input[type="time"] {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="date"]:focus, input[type="time"]:focus {
    border-color: #4CAF50;
}

/* Button styling */
button {
    background-color: #4CAF50;
    color: white;
    padding: 15px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

button:hover {
    background-color: #45a049;
}

/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .intro-container {
        max-width: 90%;
    }

    h1 {
        font-size: 24px;
    }

    .birth-form {
        flex-direction: column; /* Stack form groups vertically on smaller screens */
    }

    .form-group {
        width: 100%; /* Make form groups take full width */
    }
}

@media (max-width: 480px) {
    .intro-container {
        max-width: 95%;
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 14px;
    }

    .birth-form {
        flex-direction: column; /* Stack form groups vertically */
    }

    .form-group {
        width: 100%; /* Full width for each form group on small screens */
    }
}

/* Google Font import */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&family=Playfair+Display:wght@700&display=swap');

/* Heading (h1) styling */
h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 39px;
    color: transparent;
    background: linear-gradient(45deg, #ff7c7c, #ff63a1, #6a1b9a);
    background-clip: text;
    -webkit-background-clip: text;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect for h1 */
h1:hover {
    color: #ff63a1;
    transform: scale(1.05);
}

/* Label (입력란 레이블) 스타일링 */
label {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: transparent;
    background: linear-gradient(45deg, #ff7c7c, #ff63a1, #6a1b9a);
    background-clip: text;
    -webkit-background-clip: text;
    font-weight: 300;
    text-transform: capitalize;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Hover effect for labels */
label:hover {
    color: #ff63a1;
    transform: scale(1.05);
}

.kakao-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 350px;
}