html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

html,
body {
    font-family: 'Segoe UI', Tahoma, Geneva, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.4;
}

h3 {
    padding: 0;
    margin: 0 0 0.5rem 0;
}

h4 {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}

.map_header_fixed {
    position: fixed;
    left: 8px;
    top: 5px;
    color: #ffffffcc;
}

.map_header_fixed a {
    color: #ffffffcc;
}


.map_header_wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 4px 0.5rem 4px 2.5rem;
    background: #003D7A;
    color: #ffffff;
}

.map_header_content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0 1rem;
    width: 100%;
    max-width: 1280px;
    padding: 0 0.25rem;
}

@media (min-width: 768px) {
    .map_header_content {
        justify-content: center;
        gap: 0 2.5rem;
        padding: 0;
    }
}

#Map_SectionWrapper {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    bottom: 0;
}

#HTML_SectionWraper {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    top: 40px;
    left: 8%;
    right: 10%;
    height: 1px;
    overflow: visible;
    padding: 0;
    background-color: transparent;
    z-index: 9999;
}

#HTML_SectionWraper>div {
    width: 100%;
    max-width: 1280px;
    max-height: 50vh;
    overflow: auto;
    margin: 0;
    padding: 1rem;
    background-color: #ffffffee;
    border: 1px solid #00000033;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 1;
}

#HTML_SectionWraper>div.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

/*
    Navigation between sections and the section content
*/
.section_nav_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.section_html_content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
    font-size: 0.9rem;
}

.section_html_content p {
    flex: 0 1 50%;
}

.not_marked {
    display: block;
    text-align: right;
    margin-top: 0.25rem;
    border-top: 1px solid #ddd;
    font-size: 0.85rem;

}

#SectionPolytonicFont {
    font-family: Tinos, 'Segoe UI', Geneva, sans-serif;
    font-size: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    #HTML_SectionWraper>div {
        padding: 1rem 2rem;
    }

    .section_html_content {
        flex-direction: row;
        gap: 2rem;
        font-size: 1rem;
    }

    #SectionPolytonicFont {
        font-size: 1.1rem;
        line-height: 1.28;
    }
}

#HidenInformation {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    top: 40px;
    left: 8%;
    right: 10%;
    height: 1px;
    overflow: visible;
    padding: 0;
    background-color: transparent;
    z-index: 9999;
}

#HidenInformation>div {
    border: 4px solid #003D7A;
    background-color: #ffffff;
    padding: 1rem;
    overflow: auto;
    margin: 0;
    width: 100%;
    max-width: 992px;
    max-height: 0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    font-size: 0.9rem;
}

#HidenInformation>div.hidden {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#HidenInformation>div.visible {
    max-height: 55vh;
    opacity: 1;
    overflow: auto;
}

@media (min-width: 768px) {
    #HidenInformation>div {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

.place-link {
    color: blue;
}

.place-link:hover {
    color: brown;
}


#SelectSection {
    padding: 0.22rem;
    font-size: 1rem;
}

pl,
pl a,
place-link {
    color: blue;
    cursor: pointer;
}

prn,
prn a,
person-link {
    color: brown;
    cursor: pointer;
}

evt,
evt a,
event-link {
    color:green;
    cursor: pointer;
}

.toggle_up::before {
    content: " \25B2 ";
    color: #ffffffcc;
    font-size: 1.25rem;
    cursor: pointer;
}

.toggle_down::before {
    content: " \25BC ";
    color: #ffffffcc;
    font-size: 1.25rem;
    cursor: pointer;
}

.toggle_info {
    cursor: pointer;
}

.close_info {
    float: right;
    clear: both;
    border: 1px solid #bbbbbb;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
}