* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #F5F5F5;
    --text-color: #212121;
    --primary-color: #26A69A;
    --primary-hover: #00897B;
    --card-bg: #FFFFFF;
    --footer-text: #9E9E9E;
    --border-radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background-color: var(--bg-color);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #26A69A 0%, #E91E63 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.header-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 0.7;
}

.icon-btn:active {
    opacity: 0.5;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.content-wrapper {
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.main-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 12px;
    line-height: 1.2;
}

.subtitle {
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Gender Selection */
.gender-selection {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.gender-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gender-card:active {
    transform: scale(0.98);
}

.gender-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 120px;
}

.gender-image {
    max-width: 60%;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.gender-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: inherit;
}

.gender-btn:hover {
    background-color: var(--primary-hover);
}

.gender-btn:active {
    background-color: var(--primary-hover);
    transform: scale(0.98);
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--footer-text);
    font-size: 12px;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-color);
}

/* Tablet and Desktop adjustments */
@media (min-width: 768px) {
    .gender-selection {
        flex-direction: row;
        gap: 24px;
    }
    
    .gender-card {
        flex: 1;
    }
    
    .main-title {
        font-size: 40px;
    }
    
    .subtitle {
        font-size: 18px;
    }
}

/* Large screens */
@media (min-width: 1024px) {
    .content-wrapper {
        max-width: 600px;
    }
    
    .main-title {
        font-size: 48px;
    }
}

/* Mobile optimizations - prevent zoom and oversized elements */
@media (max-width: 480px) {
    .main-title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .gender-card {
        padding: 20px 16px;
    }
    
    .gender-image {
        max-width: 50%;
        max-height: 100px;
    }
    
    .gender-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* Prevent text size adjustment on iOS */
@media screen and (max-width: 480px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    body {
        font-size: 16px;
    }
}

