main {
    width: 95%;
    margin-top: 30px;
    margin-bottom: 50px;
}
h2, h3, h4 {
    color: var(--text2-color);
}


ol {
    margin-left: 20px;
}

ul {
    margin-left: 40px;
}

a {
    color: var(--link-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.contact-info {
    margin-top: 20px;
    font-weight: bold;
}

.date-location {
    margin-top: 40px;
    text-align: right;
    font-style: italic;
}

/* Styl pro obsah */
.content {
    max-width: 900px;
    margin: auto;
    padding: 0 28px 30px;
    color: black;
    border: 2px solid var(--tertiary-color);
    border-radius: 30px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: var(--secondaryGlass2-color);
    animation: fadeIn 1.3s ease-in-out forwards;
    opacity: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 14px 36px rgba(49, 42, 0, 0.25);
}

.content::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 251, 0, 0.36), rgba(255, 251, 0, 0));
    z-index: 0;
}

.content > * {
    position: relative;
    z-index: 1;
}

.content > h1 {
    margin: 0 -28px 20px;
    padding: 18px 28px 16px;
    font-size: clamp(25px, 4vw, 32px);
    line-height: 1.2;
    border-bottom: 3px solid var(--secondary-color);
    background: linear-gradient(100deg, rgba(255, 251, 0, 0.62), rgba(255, 251, 0, 0.12));
}

.content > h2 {
    margin-top: 32px;
    padding: 10px 14px;
    font-size: 21px;
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, 0.2);
}

/* Styly pro table of contents */
.toc {
    margin-bottom: 30px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.26);
    border: 1px solid rgba(255, 251, 0, 0.5);
}

.toc h2 {
    border-bottom: none;
}

.toc ol li {
    margin-bottom: 5px;
}

@media (max-width: 600px) {
    .content {
        padding: 0 18px 22px;
        border-radius: 20px;
    }
    .content > h1 {
        margin: 0 -18px 18px;
        padding: 14px 18px 12px;
        font-size: 24px;
    }
    .content > h2 {
        margin-top: 24px;
        padding: 9px 12px;
        font-size: 18px;
    }
    .toc {
        padding: 13px 14px;
    }
    ol, ul {
        margin-left: 20px;
        padding-left: 14px;
    }
}
