/* Main CSS styles for Fylrano website */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-dark: #0E2148;
    --primary: #483AA0;
    --primary-light: #7965C1;
    --accent: #E3D095;
    --text-light: #FFFFFF;
    --text-dark: #222222;
    --bg-light: #F8F9FA;
    --bg-dark: #121212;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    
    /* Spacing - 8px system */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-7: 56px;
    --space-8: 64px;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Other variables */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.5;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-2);
}

section {
    padding: var(--space-7) 0;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--space-2);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--font-size-5xl);
}

h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    height: 3px;
    width: 60px;
    background-color: var(--accent);
}

h3 {
    font-size: var(--font-size-xl);
}

p {
    margin-bottom: var(--space-3);
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--text-light);
    font-weight: 600;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

.btn:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Animation classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Game Modal */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background-color: var(--primary-dark);
    color: white;
}

.close-modal {
    background: none;
    border: none;
    font-size: var(--font-size-3xl);
    color: white;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: var(--space-2);
}

.game-iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;  /* 16:9 aspect ratio */
    overflow: hidden;
}

.game-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Media Queries */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: var(--font-size-4xl);
    }
    
    h2 {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: var(--space-5) 0;
    }
    
    h1 {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: var(--font-size-2xl);
    }
    
    .btn {
        padding: var(--space-1) var(--space-3);
    }
}