/* style.css - Complete fixed version */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background: 
        url('web_bkgrd_eggtown.jpg') center/cover no-repeat,
        white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    padding: 40px;
    position: relative;
    /* Centering fixes */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Add overlay for better text readability */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
    border-radius: 24px;
}

/* Make sure content appears above overlay */
.container > * {
    position: relative;
    z-index: 2;
    /* Equal margins for all sections */
    margin: 30px 0;
}

/* Remove margin from first and last child */
.container > *:first-child {
    margin-top: 0;
}

.container > *:last-child {
    margin-bottom: 0;
}

.header {
    text-align: center;
    margin-bottom: 0;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 8px;
}

.logo img {
    max-height: 60px;
    width: auto;
    border-radius: 10px;
}

.logo span {
    font-size: 48px;
    font-weight: 700;
    color: #900000;
    font-family: 'Poppins', sans-serif;
}

.tagline {
    color: #666;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.hero {
    text-align: center;
    margin-bottom: 0;
}

h1 {
    font-size: 42px;
    color: #333;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 0;
    font-weight: bold;
    text-align: center;
}

.friend-card {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    max-width: 100%;
    box-sizing: border-box;
}

.egg-icon {
    font-size: 48px;
    margin-right: 20px;
}

.friend-info {
    text-align: left;
}

.friend-label {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 4px;
}

.friend-code {
    font-weight: bold;
    color: #667eea;
    background: #f7f7f7;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 24px;
    display: inline-block;
    text-align: center;
    margin: 10px 0;
    min-width: 150px;
}

.copy-button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.manual-copy {
    background: #f9f9f9;
    border-radius: 10px;
    text-align: center;
    padding: 25px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.manual-copy p {
    margin: 0;
    text-align: center;
}

.small-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 30px 0;
    width: 100%;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    width: 200px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 24px;
    margin-right: 12px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin: 30px 0;
    width: 100%;
}

.feature {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background: #f8f9fa;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon {
    width: 256px;
    height: 128px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

.feature h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.feature p {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
    margin: 30px 0 0 0;
    width: 100%;
}

.footer a {
    color: #667eea;
    text-decoration: none;
}

.footer p {
    color: #666;
    margin-bottom: 8px;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: #999;
}

.footer-links {
    margin: 15px 0;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 8px;
    padding: 4px 0;
    display: inline-block;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #764ba2;
}

.footer-links .separator {
    color: #ccc;
    margin: 0 5px;
}

@media (max-width: 600px) {
    .container {
        padding: 24px;
    }
    
    h1 {
        font-size: 32px;
    }
    
    .friend-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .egg-icon {
        margin-right: 0;
        margin-bottom: 16px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .container > * {
        margin: 25px 0;
    }
    
    .btn {
        width: 100%;
        max-width: 100%;
    }
    
    .feature {
        max-width: 100%;
    }
    
    .btn-secondary {
        width: 100%;
        max-width: 200px;
    }
}
