/* Resetování základních stylů pro prohlížeče */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Základní styl pro tělo stránky */
body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background-image: url('images/hoof.jpg'); /* Image for the space around the box */
    background-size: 600px 600px; /* Width x Height of each repeated tile */
 }

/* Styl pro hlavičku a navigaci */
header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header nav ul {
    list-style-type: none;
}

header nav ul li {
    display: inline;
    margin: 0 20px;
}

header nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
}

header nav ul li a:hover {
    color: #3498db;
}

/* Úvodní sekce */
/* Hero Section with Background Image */

#index.hero {
    background: url('images/uvod.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 25% 45%
}

#sluzby.hero {
    background: url('images/uimg_cen.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 25% 45%
}

#tabory.hero {
    background: url('images/uimg_tab.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 25% 45%
}

#onas.hero {
    background: url('images/uimg_onas.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 25% 45%
}

#kontakty.hero {
    background: url('images/uimg_kon.png') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 25% 45%
}

section {
    padding: 20px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 8px;
    max-width: 1000px;
    background-color: rgba(255, 255, 255, 0.9); /* Slight transparency */

  }
  
  ul {
    list-style-type: square;
    padding-left: 20px;
  }
  
  a {
    color: #007bff;
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  p {
    margin: 10px 0;
  }

.cta-button {
    background-color: #4B779B;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.2em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #4B779B;
}

#aktuality {
    font-size: 20px;
    padding: 50px 20px;
    text-align: center;
}

#services {
    padding: 50px 20px;
    text-align: center;
}

#services h2 {
    font-size: 2.5em;
    margin-bottom: 25px;
}

.service {
    background-color: white;
    margin: 20px;
    padding: 10px;
    width: auto;     
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service h3 {
    font-size: 2em;
    margin-bottom: 10px;
}

.service p {
    font-size: 1.2em;
}

.centered-img {
    max-width: 100%;        /* Prevents image from overflowing on mobile */
    height: auto;           /* Maintains correct proportions */
    border-radius: 8px;     /* Optional: adds rounded corners */
}

#reg {
    background-color: white;
    margin: 20px;
    padding: 20px;
    width: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#reg h1 {
    font-size: 1.5em;
    margin-bottom: 30px;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
}

footer p {
    margin-bottom: 10px;
}

footer .social-links a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.2em;
}

footer .social-links a:hover {
    color: #3498db;
}

.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Optional: center image */
  }


/* Responzivita pro mobilní zařízení */
@media (max-width: 768px) {
    header nav ul li {
        display: block;
        margin: 10px 0;
    }
        .service {
        margin: 10px 0;
    }
}

/* Adjust background images and padding for mobile screens */
@media (max-width: 768px) {
    /* General Hero Section adjustments for all hero sections */
    .hero {
        background-size: cover; /* Ensure background image fully covers the section */
        background-position: center center; /* Keep background centered */
        padding: 200px 20px; /* Adjust padding for mobile devices */
    }

    /* Adjust the font size for better readability on small screens */
    #index.hero h1, #sluzby.hero h1, #tabory.hero h1, #onas.hero h1, #kontakty.hero h1 {
        font-size: 1.8em; /* Smaller font size for smaller screens */
    }

    /* Adjust general text content size */
    section {
        padding: 15px; /* Reduce padding for smaller devices */
        margin: 15px auto;
    }

    .cta-button {
        padding: 10px 20px; /* Smaller buttons */
        font-size: 1em; /* Adjust font size for buttons */
    }

    #services h2 {
        font-size: 2em; /* Slightly smaller heading */
    }

    /* Adjust service section cards */
    .service {
        margin: 10px; /* Reduced margin for small screens */
    }
}

/* Further adjustments for even smaller mobile devices (less than 480px) */
@media (max-width: 480px) {
    /* Hero Section further adjustments for very small screens */
    .hero {
        padding: 150px 10px; /* Reduce padding even more */
    }

    #index.hero h1, #sluzby.hero h1, #tabory.hero h1, #onas.hero h1, #kontakty.hero h1 {
        font-size: 1.5em; /* Smaller font size for smaller screens */
    }

    .cta-button {
        padding: 8px 16px; /* Even smaller button padding */
        font-size: 0.9em; /* Smaller font size */
    }

    /* Adjust the section padding and margin */
    section {
        padding: 10px;
        margin: 10px;
    }

    #services h2 {
        font-size: 1.8em; /* Adjust heading size further */
    }

    .service {
        margin: 8px; /* Less margin between cards */
    }
}
