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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

nav a:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #4CAF50;
    color: white;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Game Section */
.game-section {
    padding: 4rem 0;
    background: white;
}

.game-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #2c3e50;
}

.game-container {
    max-width: 900px;
    margin: 0 auto;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.game-container iframe {
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: 600px;
}

.fullscreen-tip {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
}

/* Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background: rgba(255, 255, 255, 0.95);
}

section:nth-child(odd) {
    background: rgba(255, 255, 255, 0.1);
    color: #333;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #34495e;
}

/* Controls Section */
.controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.controls-list {
    list-style: none;
}

.controls-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

.controls-list li:last-child {
    border-bottom: none;
}

.controls-tips ul {
    list-style: none;
}

.controls-tips li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.controls-tips li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.beginner-tip {
    background: #f0f9ff;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #0ea5e9;
    font-style: italic;
    margin-top: 2rem;
}

/* Setup Section */
.setup-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    background: #667eea;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.performance-goal {
    background: #f0fdf4;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #22c55e;
    margin-top: 2rem;
    text-align: center;
}

/* Safety Section */
.safety-list {
    list-style: none;
    max-width: 600px;
    margin: 2rem auto;
}

.safety-list li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid #eee;
}

.safety-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Checklist Section */
.checklist {
    max-width: 600px;
    margin: 2rem auto;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checklist-item:hover {
    border-color: #667eea;
    transform: translateX(4px);
}

.checklist-item input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.checklist-item input[type="checkbox"]:checked + .checkmark {
    background: #4CAF50;
    border-color: #4CAF50;
}

.checklist-item input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-weight: bold;
}

.checklist-note {
    text-align: center;
    font-style: italic;
    color: #666;
    margin-top: 1rem;
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-4px);
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Teacher Note */
.teacher-note {
    background: #f8f9fa;
    padding: 3rem 0;
    text-align: center;
}

.teacher-note h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-main h4 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-links h5 {
    margin-bottom: 1rem;
    color: #667eea;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 1rem;
    text-align: center;
    color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .controls-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .legal-page {
        padding: 2rem;
        margin: 1rem;
    }
    
    .about-page section,
    .contact-methods,
    .contact-form-section,
    .faq-contact,
    .support-hours {
        padding: 2rem;
        margin: 1rem;
    }
    
    .contact-grid,
    .features-grid,
    .commitment-list,
    .values-grid,
    .faq-contact-grid,
    .support-info-grid {
        grid-template-columns: 1fr;
    }
    
    .game-container {
        padding: 1rem;
    }
    
    .game-container iframe {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
}

/* Performance optimizations for Chromebooks */
@media (max-resolution: 150dpi) {
    .hero {
        background: rgba(255, 255, 255, 0.15);
    }
    
    .step {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .faq-item {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Game fullscreen overlay styles */
.game-fullscreen-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000 !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.game-fullscreen-overlay iframe {
    width: 100vw !important;
    height: 100vh !important;
    border: none !important;
    background: #000 !important;
}

/* Legal Pages Styles */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    margin-bottom: 3rem;
}

.legal-page h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.legal-page .last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.legal-page section {
    margin-bottom: 2.5rem;
}

.legal-page h2 {
    color: #34495e;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

.legal-page h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.legal-page ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-page a {
    color: #667eea;
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* About Page Styles */
.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.about-page section {
    background: white;
    margin-bottom: 3rem;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.about-page h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.commitment-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.commitment-item {
    padding: 1.5rem;
    background: #f0f9ff;
    border-radius: 8px;
    border-top: 4px solid #0ea5e9;
}

.commitment-item h3 {
    margin-bottom: 1rem;
    color: #0c4a6e;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.value-item {
    padding: 1.5rem;
    background: #f0fdf4;
    border-radius: 8px;
    border-bottom: 4px solid #22c55e;
    text-align: center;
}

.value-item h3 {
    margin-bottom: 1rem;
    color: #166534;
}

/* Contact Page Styles */
.contact-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-methods {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.contact-item h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline;
}

.faq-contact {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.faq-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.faq-contact-item {
    padding: 1.5rem;
    background: #fefefe;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.faq-contact-item h3 {
    margin-bottom: 1rem;
    color: #374151;
}

.faq-contact-item ul {
    margin-left: 1rem;
}

.faq-contact-item li {
    margin-bottom: 0.5rem;
}

/* Contact Form Styles */
.contact-form-section {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal !important;
}

.checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.form-note {
    background: #f0f9ff;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #0ea5e9;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.support-hours {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.support-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.support-info-item {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border-top: 4px solid #667eea;
}

.support-info-item h3 {
    margin-bottom: 1rem;
    color: #374151;
}

.support-info-item ul {
    margin-left: 1rem;
}

/* Print styles for educational use */
@media print {
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .game-section {
        display: none;
    }
    
    nav {
        display: none;
    }
    
    .cta-buttons {
        display: none;
    }
}