/* Základní reset a styl stránky */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #f5f2e9 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23d4c9a6" opacity="0.4"/></svg>');
    color: #3a2618;
    line-height: 1.6;
    background-size: 300px 300px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Záhlaví a navigace */
header {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 8px solid #8b4513;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

nav {
    background: linear-gradient(to bottom, #5d2906, #3a1800);
    padding: 1rem 0;
    border-bottom: 3px solid #d4a017;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0 1rem;
}

nav li {
    margin: 0 0.5rem;
}

nav a {
    color: #f5d7a1;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

nav a:hover {
    background: rgba(210, 180, 140, 0.3);
    color: #ffd700;
    transform: translateY(-2px);
}

nav a::after {
    content: "•";
    position: absolute;
    right: -10px;
    color: #d4a017;
    font-size: 1.2rem;
}

nav li:last-child a::after {
    content: none;
}
nav a.active {
    background: rgba(210, 180, 140, 0.3);
    color: #ffd700;
}

/* Hlavní úvodní sekce */
.hero {
    padding: 4rem 1rem;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../img/hero.jpg');
    background-size: cover;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: repeating-linear-gradient(
        45deg,
        #8b4513,
        #8b4513 10px,
        #d4a017 10px,
        #d4a017 20px
    );
}

.hero h2 {
    font-family: 'Brush Script MT', cursive;
    font-size: 3rem;
    color: #f5d7a1;
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-family: 'Rye', cursive;
    font-size: 4.5rem;
    color: #ffd700;
    text-shadow: 4px 4px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: 3px;
    position: relative;
    display: inline-block;
}

.hero h1::before,
.hero h1::after {
    content: "★";
    color: #d4a017;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.hero h1::before {
    left: -40px;
}

.hero h1::after {
    right: -40px;
}

/* Sekce O městečku */
.about {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(255, 248, 220, 0.85);
    border: 8px double #8b4513;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 3%;
}

.about::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    

}

.about p {
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid #d4a017;
    border-radius: 0 8px 8px 0;
    position: relative;
    font-size: 1.1rem;
    text-align: justify;
}

.about p::before {
    content: "❝";
    position: absolute;
    top: -15px;
    left: -10px;
    color: #8b4513;
    font-size: 2.5rem;
    font-family: Georgia, serif;
}

.about p:nth-child(even) {
    border-left: none;
    border-right: 4px solid #d4a017;
    border-radius: 8px 0 0 8px;
    text-align: right;
}

.about p:nth-child(even)::before {
    left: auto;
    right: -10px;
    content: "❞";
}

/* Patička */
        footer {
            margin-top: auto;
            background: linear-gradient(to top, #5d2906, #3a1800);
            color: #f5d7a1;
            padding: 2rem 0 0;
            text-align: center;
            font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
            border-top: 3px solid #d4a017;
            position: relative;
        }

        footer::before {
            content: "";
            position: absolute;
            top: -8px;
            left: 0;
            right: 0;
            height: 15px;
            background: repeating-linear-gradient(
                -45deg,
                #8b4513,
                #8b4513 10px,
                #d4a017 10px,
                #d4a017 20px
            );
        }

        .footer-content {
            display: flex;
            justify-content: space-around;
            flex-wrap: wrap;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px 2rem;
        }

        .footer-section {
            flex: 1;
            min-width: 250px;
            margin: 1rem;
            padding: 1rem;
            position: relative;
        }

        .footer-section::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            width: 2px;
            background: linear-gradient(to bottom, transparent, #d4a017, transparent);
        }

        .footer-section:last-child::after {
            display: none;
        }

        .footer-section h3 {
            font-family: 'Rye', cursive;
            color: #ffd700;
            margin-bottom: 1rem;
            font-size: 1.5rem;
            position: relative;
            display: inline-block;
        }

        .footer-section h3::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(to right, transparent, #d4a017, transparent);
        }

        .footer-section p {
            margin: 0.5rem 0;
            font-size: 0.95rem;
        }

        .footer-social {
            display: flex;
            justify-content: center;
            margin-top: 1rem;
        }

        .footer-social a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: #d4a017;
            color: #5d2906;
            border-radius: 50%;
            margin: 0 0.5rem;
            transition: all 0.3s ease;
            font-size: 1.2rem;
            border: 2px solid #8b4513;
        }

        .footer-social a:hover {
            transform: translateY(-5px) rotate(10deg);
            background: #ffd700;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        }

        .footer-newsletter {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 1rem;
        }

        .footer-newsletter input {
            padding: 0.8rem;
            width: 100%;
            max-width: 250px;
            border: 2px solid #d4a017;
            background: rgba(255, 255, 255, 0.1);
            color: #f5d7a1;
            border-radius: 5px;
            margin-bottom: 0.5rem;
            font-family: inherit;
        }

        .footer-newsletter input::placeholder {
            color: #d4a017;
        }

        .footer-newsletter button {
            background: #d4a017;
            color: #5d2906;
            border: none;
            padding: 0.8rem 1.5rem;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
            border: 2px solid #8b4513;
            font-family: 'Arial Rounded MT Bold', sans-serif;
        }

        .footer-newsletter button:hover {
            background: #ffd700;
            transform: translateY(-3px);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        }

        .footer-bottom {
            background: rgba(0, 0, 0, 0.3);
            padding: 1.2rem;
            border-top: 1px solid #d4a017;
            font-size: 0.9rem;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
        }

        .footer-bottom p {
            margin: 0 1rem;
        }

        .footer-bottom a {
            color: #ffd700;
            text-decoration: none;
            margin: 0 0.5rem;
            transition: all 0.3s ease;
        }

        .footer-bottom a:hover {
            text-decoration: underline;
            color: #fff;
        }

        .footer-divider {
            color: #d4a017;
            font-weight: bold;
        }
        .footer-content {
                flex-direction: column;
                align-items: center;
            }
        

/* Responsivní design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav li {
        margin: 0.3rem 0;
    }
    
    nav a::after {
        display: none;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero h1::before,
    .hero h1::after {
        font-size: 1.5rem;
    }
    
    .hero h1::before {
        left: -30px;
    }
    
    .hero h1::after {
        right: -30px;
    }
    
    .about {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h1::before,
    .hero h1::after {
        font-size: 1.2rem;
        top: -10px;
    }
    
    .hero h1::before {
        left: -20px;
    }
    
    .hero h1::after {
        right: -20px;
    }
    
    .about p {
        font-size: 1rem;
    }
}