html,
body {
    height: 100%;
    margin: 0;
}

.navbar {
    background-color: silver !important;
    max-width: 100%;
    margin: 0 auto;
}

.pozadi {    
    background-color: #89a0b2;
    display: flex;  
    flex-direction: column;  /* Zajistí, že elementy budou seřazeny ve sloupci */
    min-height: 100vh;  /* Nastaví výšku divu na 100% okna */
    justify-content: space-between;   
    overflow: hidden;    /* Skrývá jakýkoliv přebytek */
     
}
img {
    max-width: 100%;
    height: auto;
}
footer { 
    text-align: left;    
    margin-top: auto;
    padding-bottom: 5px;   
}
.container-fluid{
    margin-left: 10px;
    margin-right: 10px;
    max-width: 100%;
    margin: 0 auto;
}

.navbar .navbar-brand {
    font-family: "helvetica", cursive, sans-serif;
    font-size: 38px;
    font-weight: bold;
    font-style: italic;
}

.navbar .nav-item .nav-link {
    font-family: "helvetica", cursive, sans-serif;
    font-size: 20px;
    font-weight: bold;
    font-style: italic;
}

.nadpis {
    font-family: "helvetica", cursive, sans-serif;
    font-weight: bold;
    font-style: italic;
}

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        font-size: 0.875rem;
    }
}

/* Animace na hlavní stránce */

.animace_kocka {
    position: relative;
    width: 100%;
    height: 75px;
    overflow: hidden;
}

.animace_kocka img {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 75px;
    width: auto;
}

/*Galerie*/
.galerie-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); /* Pravidelná mřížka */
    gap: 10px;
}

.galerie-picture {
    height: 100px; /* Menší náhledy */
    overflow: hidden;
}

.galerie-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.galerie-picture img:hover {
    transform: scale(1.05);
}

.modal-dialog {
    max-width: 95%; /* Zvětšení modálního okna */
    margin: 0 auto; /* Horizontální vycentrování */
}

.modal-content {
    max-height: 95vh; /* Umožní, aby modální okno zůstalo v rámci obrazovky */
    overflow: hidden; /* Aby se zajistilo, že nic nevyčnívá */
}
.modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    position: relative;
}

.modal-body img {
    max-width: 100%;   /* Obrázek se přizpůsobí šířce modálního okna */
    max-height: 85vh;  /* Obrázek bude mít maximální výšku, ale zachová poměr stran */
    object-fit: contain; /* Zajistí, že obrázek zůstane v rámci jeho přirozeného poměru stran */
}

prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.modal-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.modal-body img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}



/*Naše kočky2*/
.imgfuture:hover {
    background-color: greenyellow;
}

.imgvyska {
    max-height: 300px;
}

.galerrybutt {
    background-color: yellowgreen;

}

.galerrybutt:hover {
    background-color: white;
}

.sloupec_budoucnost {
    position: relative;
}

.budoucnost {
    position: relative;
}

.custom-img {
    max-height: 550px;
    object-fit: contain;
    width: 100%;
}
.p-1 {
    height: 550px; /* stejná výška jako max-height u obrázku */
    overflow: hidden;
}


.budoucnost::after {
    content: "BUDEME MÍT V BUDOUCNU";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    color: rgb(251, 221, 22);
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    animation: blikaci 2s infinite;
}

@keyframes blikaci {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}
/* Chybové zprávy */
.errorlist {
    color: #b94a48; /* Červená barva pro chyby */
    background-color: #f2dede; /* Světle červené pozadí */
    border: 1px solid #ebccd1; /* Rámeček kolem chybových hlášek */
    padding: 10px;
    border-radius: 4px;
    margin-top: 5px;
}

.errorlist p {
    margin: 0;
}

.pozice-lokality{
    position: relative;
    margin-bottom: 20px;
}

/* společný vzhled kočky */
.kocka {
    opacity: 1;
    mix-blend-mode: multiply;
    transform: scaleX(-1);
}

/* kontakt */
.kontakt-kocka {
    position: absolute;
    top: 0;
    left: 260px;
    width: 110px;
    height: auto;
    z-index: 6;
}

.kontakt-kocka:hover {
    transform: scaleX(-1) scale(1.23) rotate(-8deg);
}

.bg-silver{
    background-color:#d6d6d6;
}

.bg-silver-dark{
    background-color:#c9c9c9;
}

.form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 12px 2rem;
}
