/* Church of Wallace - Main Stylesheet */
:root {
    --primary-color: #8B4513; /* SaddleBrown - like a dog's fur */
    --secondary-color: #FFD700; /* Gold - like a shiny tag */
    --accent-color: #DC143C; /* Crimson - like a favorite toy */
    --light-color: #FFF8DC; /* Cornsilk - light background */
    --dark-color: #5D4037; /* Dark brown */
    --text-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', cursive;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    background-image: radial-gradient(#FFD70022 2px, transparent 2px);
    background-size: 30px 30px;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header Styles */
header {
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    position: unset !important; /* Force header to scroll with the page */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem; /* Reduced padding for desktop */
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    font-size: 1.5rem; /* Slightly smaller font size for desktop logo */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px; /* Slightly reduced gap */
}

.logo .tagline {
    font-style: italic;
    color: var(--dark-color);
    font-size: 0.8rem; /* Slightly smaller tagline */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1rem; /* Reduced gap */
}

nav a {
    padding: 0.3rem 0.6rem; /* Reduced padding */
    border-radius: 20px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px; /* Slightly reduced gap */
}

nav a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #A0522D 100%);
    color: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-bottom: 3rem;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.hero h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Fredoka One', cursive;
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background-color: #FFC107;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

.hero-image {
    flex: 0 0 200px;
}

.dog-avatar {
    width: 200px;
    height: 200px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    animation: bounce 2s infinite alternate;
    overflow: hidden; /* Ensure image stays within circle */
}

.wallace-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the circle without distortion */
    border-radius: 50%;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-20px); }
}

/* Beliefs Section */
.beliefs {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.beliefs h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

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

.belief-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.belief-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.belief-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.belief-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Prayers Section */
.prayers {
    padding: 3rem 2rem;
    background-color: #F5F5DC;
    border-radius: var(--border-radius);
    max-width: 1200px;
    margin: 2rem auto;
}

.prayers h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

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

.prayer-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--secondary-color);
}

.prayer-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.interactive-prayer {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.prayer-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.prayer-option {
    padding: 0.8rem 1.5rem;
    background-color: #E8F5E9;
    border: 2px solid #4CAF50;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
}

.prayer-option:hover {
    background-color: #4CAF50;
    color: white;
}

.prayer-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #FFF3E0;
    border-radius: var(--border-radius);
}

#prayer-output {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#bark-button {
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
}

#bark-button:hover {
    background-color: #B71C1C;
    transform: scale(1.05);
}

/* Games Section */
.games {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.games h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-size: 1.1rem;
}

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

.game-card {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 5px solid var(--primary-color);
}

.game-card:hover {
    transform: translateY(-5px);
}

.game-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.btn-game {
    background-color: var(--primary-color);
    color: white;
    margin-top: 1rem;
}

.btn-game:hover {
    background-color: var(--dark-color);
}

.games-notice {
    background-color: #E3F2FD;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border-left: 5px solid #2196F3;
    margin-top: 2rem;
}

.games-notice code {
    background-color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Contact Section */
.contact {
    padding: 3rem 2rem;
    background-color: #F5F5DC;
    border-radius: var(--border-radius);
    max-width: 1200px;
    margin: 2rem auto;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
}

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

.contact-info ul {
    list-style: none;
    margin-top: 1.5rem;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem;
    background-color: white;
    border-radius: 8px;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Comic Neue', cursive;
}

.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo h3 {
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links h4,
.footer-legal h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

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

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

.footer-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.copyright {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        position: relative; /* Make header not sticky on mobile */
    }
    
    .header-container {
        flex-direction: column; /* Stack logo and nav vertically */
        align-items: center;
        gap: 0;
        padding: 0.1rem 0.2rem;
    }

    .logo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 1rem; /* Even smaller font size for logo */
        margin: 0; /* Remove default margin */
    }

    .logo .tagline {
        display: none; /* Ensure tagline is hidden on mobile */
    }

    nav {
        width: 100%; /* Make nav take full width */
        order: 1; /* Place navigation below logo */
    }

    nav ul {
        flex-wrap: nowrap; /* Prevent wrapping */
        overflow-x: auto; /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        justify-content: center; /* Center nav items */
        padding-bottom: 0; /* Remove bottom padding */
        gap: 0.1rem; /* Smaller gap between nav items */
    }

    nav li {
        flex-shrink: 0; /* Prevent items from shrinking */
    }
    
    nav a {
        padding: 0.05rem 0.1rem; /* Very small navigation items padding */
        font-size: 0.7rem; /* Very small font size */
    }

    /* Remove specific padding for main to avoid any unexpected offsets */
    main {
        padding-top: 0;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .dog-avatar {
        width: 150px;
        height: 150px;
    }
    
    .prayer-options {
        flex-direction: column;
        align-items: center;
    }
    
    .prayer-option {
        width: 100%;
        max-width: 300px;
    }
}