/* CSS Document */
@import url('https://fonts.googleapis.com/css2?family=Basic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alata&family=Basic&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600&display=swap');

body {
    background-color: #fcf0f0;
    margin: 0px;
    height: 100%;
}

header {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    
}

.header-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    
}
.header-overlay {
  background-color: rgba(255, 230, 230, 0.8); /* světlý červený nádech */
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.nazev-m {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 15px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1.5s ease-out;
}

.nazev-m h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 80px;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.nazev-m h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 50px;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav{
    font-size: 20px;
    font-family: "Basic", sans-serif;
    font-weight: 400;
    font-style: normal;
    position: auto;
    background-color: #00554b;
    width: 100%;
    height: auto;
    margin-top: 0px;
}

.navbar {
  background-color: #00554b !important;

}

.navbar .nav-link {
  color: #ffffff !important;
  transition: 0.3s;
  margin: 0 20px;
}

.navbar .nav-link:hover {
  background-color: #ffffff !important;
  color: #d9164e !important;
  border-radius: 8px;
}
 

main{
    margin-top: auto;
    background-color: #fcf0f0;
    width: 100%;
    height: 100%;
    min-height: 500px;
    padding-bottom: 10px;
}
main h1, main h2, main h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #d9164e;
  margin-bottom: 1rem;
}

article {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.articles-kontejner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 90%;
    margin-left:70px;
    margin-top:15px;

}
.timeline {
  position: relative;
  margin-left: 20px;
  border-left: 3px solid #d9164e;
  padding-left: 20px;
}

.timeline-item {
  margin-bottom: 30px;
  position: relative;
}

.timeline-year {
  font-weight: bold;
  color: #d9164e;
  margin-bottom: 5px;
}

.timeline-content {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  border-radius: 0.5rem;
}

img {
  transition: transform 0.3s ease;
  cursor: pointer;
}

img:hover {
  transform: scale(1.02);
}

.obrazek-a {
    width: 100%; 
    border-radius: 15px;
}
.kontejner-tabulka {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px 0;
}

.list-group-item {
  background-color: transparent;
  border: none;
  font-size: 16px;
  padding-left: 0;
}
.tabulka, .mapa {
  flex: 1 1 45%;
}

table {
  width: 100%;
  font-size: 16px;
  border-collapse: collapse;
}

table th, table td {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

thead.table-dark th {
  background-color: #00554b;
  color: #fff;
}

.mapa {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    padding: 10px;
    margin-left: -10px;
}

footer{
    position: absolute;
    font-size: 15px;
    font-family: "Basic", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #d9164e;
    position: absolute;
    background-color: #00554b;
    text-align: center;
    width: 100%;
    height: 40px;   
}
@media screen and (max-width: 800px) {
    header {
        height: 200px;
    }
    .vertical-gallery {
    margin-top: 2rem;
    }
    header h1 {
        font-size: 40px;
    }

    header h2 {
        font-size: 25px;
    }

  .nazev-m {
    padding: 10px 15px;
  }

  .nazev-m h1 {
    font-size: 50px;
  }

  .nazev-m h2 {
    font-size: 30px;
  }
.kontejner-tabulka {
  flex-direction: column;
  gap: 20px;
}

.tabulka, .mapa {
  flex: unset;
  width: 100%;
}

    .hlavni-navigace {
        flex-direction: column; 
        height: auto; 
        padding: 10px 0;
    }

    .navbar-nav {
        text-align: center;        /* Text vycentrovaný */
        width: 100%;               /* Zajistí, že odkazy zaberou celou šířku */
      }

      .navbar-nav .nav-item {
        width: 100%;               /* Každý odkaz přes celou šířku */
      }

      .navbar-nav .nav-link {
        display: block;            /* Aby šly odkazy pod sebe */
        text-align: center;        /* A zarovnané na střed */
      }



    .articles-kontejner {
        flex-direction: column;
        align-items: center;
        margin-left: 0;
        width: 100%;
        margin-top:15px;
    }

    article {
        margin: 15px;
        padding: 10px;
    }

    .kontejner-tabulka {
        flex-direction: column;
        margin: 15px;
        gap: 10px;
        width: 90%;
    }

    .tabulka {
        flex: unset;
    }

    .mapa {
        flex: unset;
        margin-left: 0;
    }

    footer {
        font-size: 12px;
        height: auto;
        padding: 5px;
    }
}



