/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: white;
    color: #333;
    overflow: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-gif {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
}

/* Main Content */
.main-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.main-content.visible {
    opacity: 1;
}

.hidden {
    display: none;
}

.container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
}

.egg-image-container {
    margin-bottom: 2rem;
}

.egg-image {
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
}

.title {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #7f8c8d;
    font-family: 'Times New Roman', serif;
}

.description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 3rem;
    color: #666;
    min-height: 1.5rem;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.twitter-btn, .stickers-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.twitter-btn {
    background-color: #1da1f2;
}

.twitter-btn:hover {
    background-color: #1a91da;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.stickers-btn {
    background-color: #ff6b6b;
}

.stickers-btn:hover {
    background-color: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.twitter-btn:active, .stickers-btn:active {
    transform: translateY(0);
}

.twitter-icon, .stickers-icon {
    width: 20px;
    height: 20px;
}

/* Sticker Gallery Styles */
.sticker-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sticker-gallery.visible {
    opacity: 1;
    visibility: visible;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-header h2 {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    margin: 0;
}

.sticker-count {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.close-btn svg {
    width: 24px;
    height: 24px;
}

.gallery-container {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.sticker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.sticker-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticker-item:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.sticker-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.loading-stickers {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: white;
    font-size: 1.2rem;
}

/* Modal for enlarged sticker view */
.sticker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 15000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sticker-modal.visible {
    opacity: 1;
    visibility: visible;
}

.sticker-modal-content {
    max-width: 80%;
    max-height: 80%;
    position: relative;
}

.sticker-modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
}

.sticker-modal .close-btn {
    position: absolute;
    top: -50px;
    right: -50px;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .loading-gif {
        max-width: 150px;
        max-height: 150px;
    }
    
    .egg-image {
        max-width: 150px;
        max-height: 150px;
    }
    
    /* Mobile gallery styles */
    .gallery-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .gallery-header h2 {
        font-size: 1.5rem;
    }
    
    .gallery-container {
        padding: 1rem;
    }
    
    .sticker-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .sticker-modal-content {
        max-width: 90%;
        max-height: 70%;
    }
    
    .sticker-modal .close-btn {
        top: -40px;
        right: -10px;
    }
}
