/* Global Variables and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #DC143C;
    --primary-yellow: #FFD700;
    --primary-orange: #FFA500;
    --white: #FFFFFF;
    --black: #000000;
    --gray: #f5f5f5;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Hide all scrollbars globally */
::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Global fix for horizontal scroll */
html {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: auto; /* Prevent scroll conflicts */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4cc 100%);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    touch-action: pan-y; /* Allow vertical scrolling only */
}

/* Prevent any element from causing horizontal scroll */
body > * {
    max-width: 100%;
}

/* Ensure no transforms on body that might cause scroll issues */
body, html {
    transform: none !important;
    -webkit-transform: none !important;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

/* Container fix for mobile scrolling issues */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
    }
}

/* Header with animated logo */
.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: inline-block;
    position: relative;
    margin: 20px 0;
}

.logo img {
    width: 180px;
    height: auto;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    animation: pulse 3s ease-in-out infinite; /* Slower pulse */
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Disable pulse animation on mobile for better performance */
@media (max-width: 768px) {
    .logo img {
        animation: none !important;
    }
}

h1 {
    color: var(--primary-red);
    font-size: 2.5rem;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.tagline {
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-top: 10px;
    font-weight: 500;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 200;
}

.lang-btn {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    font-size: 0.85rem; /* Further reduced for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 600; /* Semi-bold for better visibility */
    letter-spacing: 0.5px; /* Slight spacing for clarity */
    text-transform: uppercase; /* Ensure uppercase */
}

.lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn.active {
    border-color: var(--primary-orange);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.2);
}

@media (max-width: 768px) {
    .language-selector {
        position: static;
        margin: 0 auto 20px;
        justify-content: center;
        order: -1;
    }
    
    .header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .lang-btn {
        width: 35px;
        height: 35px;
        font-size: 0.75rem; /* Further reduced for mobile */
    }
} 