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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #7089f8 0%, #4B0082 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 90%;
    text-align: center;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

h1 {
    color: #FF1493;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

h2 {
    color: #4B0082;
    margin-bottom: 1.5rem;
}

p {
    margin-bottom: 2rem;
    color: #718096;
    line-height: 1.6;
}

button {
    background: #FF69B4;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    margin: 0.5rem;
}

button:hover {
    background: #4B0082;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.progress {
    margin-top: 2rem;
    color: #718096;
}

#resultText {
    margin: 2rem 0;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
    line-height: 1.6;
}

.photo-container {
    margin: 2rem 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#webcam, #canvas {
    width: 100%;
    max-width: 400px;
    height: 400px;
    margin: 1rem auto;
    display: none;
    border-radius: 10px;
    object-fit: cover;
    background-color: #f0f0f0;
}

#webcam.active, #canvas.active {
    display: block;
}

.file-upload {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-upload input[type="file"] {
    display: none;
}

button[onclick="captureImage()"] {
    display: none;
    background-color: #4CAF50;
}

button[onclick="captureImage()"]:hover {
    background-color: #45a049;
}

.ad-banner {
    margin: 2rem 0;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
    min-height: 100px;
}

.share-buttons {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-buttons button {
    flex: 1;
    max-width: 200px;
}

.gender-selection {
    margin: 2rem 0;
    text-align: center;
}

.gender-selection h3 {
    color: #4B0082;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.gender-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.gender-buttons button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.gender-buttons button.selected {
    background: #4B0082;
    transform: scale(1.05);
} 