body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #fce4ec; /* Light pink background */
    color: #333;
    text-align: center;
}

.container {
    background: white;
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    /* Added for captcha sizing */
    max-width: 400px; /* Adjust as needed for image grid */
    margin: auto; /* Center the container */
}

h1 {
    color: #e91e63; /* Hot pink */
}

button {
    background-color: #e91e63; /* Hot pink */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #c2185b; /* Darker pink */
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.captcha-image {
    width: 100%;
    /* Added fixed height and object-fit for uniform image sizing */
    height: 120px; /* Or 150px, experiment to find the best fit */
    object-fit: cover;
    border: 3px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.3s, transform 0.2s;
}

.captcha-image:hover {
    transform: scale(1.05);
}

.captcha-image.selected {
    border-color: #e91e63; /* Hot pink */
}

textarea {
    width: 100%;
    height: 80px;
    margin: 1em 0;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1em;
    box-sizing: border-box;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    text-align: center;
    border-radius: 10px;
}
