* {
    box-sizing: border-box;
}

body {
    padding: 10px;
    background-color: #1E1B18;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #EAE0D5;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
}

/* Header */
header {
    padding: 50px;
    text-align: center;
    background-color: #2C2623;
    border-radius: 10px;
    box-shadow: 5px 5px 5px;
}

header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 25px;
    color: #B88746;
}

/* Nav */
nav { 
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2C2623;
    padding: 10px 20px;
    margin-top: 20px;
    box-shadow: 5px 5px 5px;
    border-radius: 10px;
} 

/* Error Button */
.error-btn {
    background-color: #8B2E2E;
    border: none;
}

.error-btn:hover {
    background-color: red; 
}

.nav-links {
    display: flex;
    gap: 20px;
}

nav a { 
    color: black;
    text-align: center;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    background-color: #B88746;
    border-radius: 10px;
    border: 2px solid #B88746;
    box-shadow: 3px 3px 3px;
} 

nav a:hover { 
    background-color: #E0A75D;
    transform: scale(1.03);
    transition: 0.2s ease;
}

/* Cards */
section {
    background-color: #2C2623;
    max-width: 100%;
    padding: 25px; /* Nechává kontent uvnitř odstrčený od krajů */
    margin-top: 20px; /* Přidá vrchní mezeru pro pozici */
    box-sizing: border-box; /* Zajistí, že padding neovlivňuje šířku */
    overflow: hidden;
    flex: 1;
    box-shadow: 5px 5px 5px;
    border-radius: 10px;
}

/* Main Image */
.main-image {
    width: 100%;
    display: flex;
    justify-content: center;
    border-radius: 10px;
}

.main-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #B88746;
}

.desc-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0;
    text-align: center;
}

.text a {
    color: #E0A75D;
    text-decoration: none;
}

.text a:hover {
    color: #E9B776;
    text-decoration: underline;
}

.desc-info .text p:first-child {
    font-weight: bold;
    color: #EAE0D5;
    margin-bottom: 8px;
}

.desc-info .text p:last-child {
    color: #EAE0D5;
    opacity: 0.9;
}

/* Description */
.desc-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin: 50px 0;
}

.description h1 {
    margin-bottom: 15px;
}

.description p {
    font-size: larger;
}

/* Larger Text */
.larger-text {
    font-size: larger;
}

li {
    line-height: 1.6;
}

.picture img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #B88746;
}

/* Grid Gallery */
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 50px 0;
}

.grid-gallery img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #B88746;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Footer */
footer {
    background-color: #2C2623;
    text-align: center;
    margin-top: 20px;
    padding: 1px;
    box-shadow: 5px 5px 5px;
    border-radius: 10px;
}

/* Responsive Exceptions */
@media (max-width: 900px) {

    .desc-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .desc-section {
        grid-template-columns: 1fr;
    }

    .grid-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
    }

    .error-btn {
        margin-top: 30px;
    }


    nav a {
        width: 100%;
    }
}

/* URL vždy zalomit i v Safari + Firefox */
    .social-link a {
        white-space: normal !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }

    .social-link a {
        hyphens: none;
    }
