html {
    overflow-anchor: auto;
}

/* NAVIGÁCIA */
.nav-link {
    color: orange !important;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 15px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #888;
}
::-webkit-scrollbar-thumb:hover {
    background: red;
}

/* GALÉRIA – OBRÁZKY */
#obrazky img {
    margin: 3px;
    border: 2px solid gray;
    box-shadow: 3px 3px 6px rgba(0,0,0,0.6);
    transition: transform 0.2s ease, opacity 0.2s ease;
}
#obrazky img:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* TEXTOVÉ TRIEDY */
#otazka {
    font-family: "Comic Sans MS";
    color: #3399FF;
}

a {
    text-decoration: none;
}

h3 {
    text-decoration: none;
}

p {
    margin: 15px;
    text-align: justify;
    text-indent: 50px;
}

.one {
    color: #8F3A84;
}
.two {
    background-color: rgb(255, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
}
.two a {
    color: #FDD835;
    font-weight: bold;
}
.roky a {
    color: #8F3A84;
    font-weight: bold;
}
.three, .six {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF407;
}
.three a {
    color: #8F3A84;
    font-weight: bold;
}
.nested {
    padding: 5px;
}
.nested a {
    color: red;
    font-family: garamond;
}
.one, .five {
    background-color: aqua;
}
.four, .six {
    background-color: chartreuse;
}

/* PÄTA */
#pata {
    display: flex;
    align-items: flex-end;
    padding: 10px;
    justify-content: center;
    background-color: #85cf44;
    max-width: 100%;
    font-size: 15px;
}
#pata a {
    text-decoration: none;
    color: #A0522D;
}

/* ČLÁNOK */
#clanok {
    margin-right: 25px;
    margin-left: 25px;
    font-size: 18px;
}

/* STRÁNKOVANIE */
div.stranky {
    width: 90%;
    margin-top: 10px;
    margin-left: 50px;
    text-align: center;
}
.stranky a {
    float: left;
    width: 100px;
    text-align: left;
}
.stranky span + a {
    float: right;
    text-align: right;
}
.stranky span {
    width: 140px;
    text-align: center;
}
.stranky span:first-child {
    position: relative;
    left: 50px;
}
.stranky span:last-child {
    position: relative;
    right: 50px;
}
.stranky span:only-child {
    left: 0;
    right: 0;
}

/* GALLERIA */
.galleria {
    height: 30em;
    background: #000;
    display: block;
}

/* ---------------------------------------------------
   GRID + KARTY PRE STRÁNKU 2026 (OPRAVENÉ)
--------------------------------------------------- */

#container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 28px;
    padding: 20px;
}

/* KARTA */
#container article {
    background: #ffffff;
    border-radius: 18px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform .25s ease, box-shadow .25s ease;
    text-align: center;
}

/* HOVER EFEKT */
#container article:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

/* OBRÁZOK */
#container article img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

#container article:hover img {
    transform: scale(1.06);
}

/* TEXT V KARTE */
#container article div {
    padding: 14px 16px;
    font-size: 17px;
    font-weight: 600;
    color: #c45a00;
    text-align: center;
}

/* ---------------------------------------------------
   POTÁPANIE – SAMOSTATNÉ, NEROZŤAHUJE SA
--------------------------------------------------- */

#potapanie-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
#potapanie-container article {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform .25s ease, box-shadow .25s ease;
    padding: 0;
}

#potapanie-container article:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

#potapanie-container article img {
    max-width: 260px;
    width: 100%;
    height: auto;
    display: block;
}

#potapanie-container article div {
    padding: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #c45a00;
}


/* ODSADENIA BOOTSTRAPU */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* NAVRAT */
.navrat {
    padding-left: 0 !important;
    padding-right: 0 !important;
}
