:root {
    --lichy-kontejner-bg: #9d88b2;
    --lichy-kontejner-txt: #1f1926;
    --lichy-kontejner-url: #591fb8;
    --sudy-kontejner-bg: #fff6ff;
    --sudy-kontejner-txt: #1f1926;
    --sudy-kontejner-url: #591fb8;
    --ukol-bg: navy;
    --ukol-text: white;
}

html {
    scroll-behavior: smooth; /* Enables smooth scroll behavior */
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
    font-weight: 300;
    font-size: 16px;
    //overflow-x: hidden;
}

h1,
h2 {
    font-family: "Alegreya", sans-serif;
    text-align: center;
    font-weight: 600;
}

img {
    float: left;
    height: 80%;
    margin: 10px 25px;
    max-width: 60%;
}

p {
    margin: 25px;
    padding: 5px 20px;
    line-height: 1.5rem;
    text-align: inherit;
}

nav {
    text-align: right;
    margin: 10px 50px;
}

#hero {
    height: 100%;
    text-align: center;
    padding: 50px;
}

footer {
    padding: 50px;
    text-align: right;
    font-size: 0.7rem;
}

.alert {
    border: 2px dotted darkred;
    border-radius: 5px;
}

.ukol {
    background: var(--ukol-bg);
    color: var(--ukol-text);
    padding: 20px;
    border-radius: 5px;
}

#kontejner {
    margin: 0;
    padding: 0px;
    height: 100%; /* Full viewport height for each section */
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    box-sizing: border-box;
    align-items: center;
    overflow-x: hidden;
    flex-wrap: wrap;
    justify-content: space-between;
}

#kontejner > div {
    width: 100%; /* Ensure child divs take the full width of the container */
    min-width: 0;
    //padding: 25px 50px;
}

ul,
ol,
h3 {
    margin: 15px 50px;
    margin-right: 100px;
}

a.scroll-link {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #591fb8;
    color: white !important;
    text-decoration: none;
    border-radius: 5px;
}

a.scroll-link:hover {
    background-color: darkslategray;
    color: white;
}

.lichyPriklad,
.sudyPriklad {
    height: 100%;
    width: 100%;
    padding: 25px;
    text-align: left;
}

.lichyPriklad {
    background-color: var(--lichy-kontejner-bg);
    color: var(--lichy-kontejner-txt);
}

.lichyPriklad a,
.sudyPriklad a {
    text-decoration: none;
}

.lichyPriklad a {
    color: var(--lichy-kontejner-url);
}

.sudyPriklad {
    background-color: var(--sudy-kontejner-bg);
    color: var(--sudy-kontejner-txt);
}

.sudyPriklad a {
    color: var(--sudy-kontejner-url);
}

#o-autorovi {
    width: 100%;
    background-color: #591fb8;
    color: #fbfbfc;
    margin: 0;
    margin-left: -25px;
    margin-top: 1.5rem;
    padding: 20px 20px;
}

#profil-obrazek {
    min-width: 120px;
}

#profil-obrazek img {
    width: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin: 15px 15px;
}

#o-autorovi {
    display: flexbox;
}

#profil-text {
    padding: 20px 15px;
    font-size: 1rem;
}

#profil-text a {
    color: #fbfbfc;
}
