/* https://colorpalettes.net/color-palette-2283/ */

body {
    box-sizing: border-box;
    color: #1a181c;
    margin: 0;
    padding: 0;
    background-color: #fcfcfe;
}

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

a {
    color: #3d4652;
}

ol,
ul {
    line-height: 1.5rem;
}

.navigace {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 250px;
    min-width: 200px;
    height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #406c8e;
    font-style: sans-serif;
    overflow-y: auto;
}

header,
h1,
h2,
h3,
h4 {
    font-family: "Barlow Condensed", sans-serif;
}

.navigace header {
    font-size: 1.5rem;
    text-transform: uppercase;
    padding: 10px 15px;
    border: 0;
    color: #1a181c;
    font-style: "Barlow Condensed", sans-serif;
    font-weight: 600;
}

.navigace-polozky {
    font-size: 1.2rem;
    text-transform: uppercase;
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #406c8e;
    line-height: 1.3rem;
}

.navigace-polozky li {
    padding: 8px 15px;
    border: 0;
    margin: 0;
    background-color: #406c8e;
}

.navigace-polozky li:hover {
    background-color: #7dadd3;
}

.navigace-polozky li:hover a {
    color: #3d4652;
}

.navigace-polozky a {
    color: #fbfbfc;
    text-decoration: none;
    font-family: "Barlow Condensed", sans-serif;
}

.vyklad {
    position: absolute;
    top: 0px;
    left: 260px;
    padding: 20px 2.5rem;
    width: auto;
    background-color: #fcfcfe;
    color: #1a181c;
    min-width: 600px;
}

.vyklad-pojmu {
    border-bottom: 1px solid #406c8e;
    margin-bottom: 2.5rem;
}

.vyklad-pojmu header {
    font-size: 2rem;
}

.tabulka {
    max-width: 800px;
    min-width: 550px;
    margin: 15px auto;
    font-family: "Barlow Condensed", sans-serif;
    text-align: left;
    vertical-align: top;
}

td {
    text-align: center;
    vertical-align: top;
    width: 10%;
    padding: 5px 10px;
    margin: 0;
}

th {
    text-align: center;
    vertical-align: top;
    padding: 5px 10px;
    border-bottom: 1px solid #1a181c;
    margin: 0;
}

p {
    font-family: "Times New Roman", Times, serif;
    text-indent: 1.5rem;
    line-height: 1.5rem;
}

#bonus {
    border-bottom: 1px solid #fbfbfc;
}

#zaver {
    border-bottom: 1px solid #fbfbfc;
}

.description {
    font-family: "Barlow Condensed", sans-serif;
    vertical-align: top;
    min-width: 300px;
    max-width: 550px;
    margin: 15px auto;
    border-spacing: 20px;
}

.description th {
    text-align: left;
    vertical-align: top;
}

.description td {
    width: 50%;
    text-align: right;
}

.source {
    margin: 15px 100px;
    text-indent: 0;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1rem;
}

.definition {
    width: 400px;
    text-align: center;
    margin: 25px auto;
    border-bottom: 5px solid #406c8e;
}

.definition header {
    width: 100%;
    background-color: #406c8e;
    margin: 0;
    font-size: 1.2rem;
    padding: 10px 0px;
    color: #fbfbfc;
}

.definition p {
    font-style: italic;
    width: 100%;
    padding: 15px 0px;
    margin: 0px;
    text-indent: 0px;
}

.explanation {
    min-width: 400px;
    max-width: 600px;
    text-align: center;
    margin: 25px auto;
    border-bottom: 5px solid #7dadd3;
}

.explanation header {
    width: 100%;
    background-color: #7dadd3;
    margin: 0;
    font-size: 1.2rem;
    padding: 10px 0px;
    color: #1a181c;
}

.explanation p {
    font-style: italic;
    width: 100%;
    padding: 15px 0px;
    margin: 0px;
    text-indent: 0px;
}

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

.udaj {
    margin: 25px auto;
    border: 5px solid #3d4652;
    width: 280px;
    padding: 10px;
}

.udaj header {
    text-align: left;
    font-size: 1.2rem;
    font-style: italic;
    font-family: "Barlow Condensed", sans-serif;
}

.udaj p {
    text-align: center;
    font-size: 3rem;
    font-style: normal;
    font-weight: 700;
    font-family: "Barlow Condensed", sans-serif;
}

.udaj footer {
    text-align: right;
    font-size: 0.8rem;
    font-style: italic;
    font-family: "Barlow Condensed", sans-serif;
}

@media (max-height: 600px) {
    .navigace-polozky {
        font-size: 1.2rem;
        line-height: 0.8rem;
    }
}

@media (max-height: 500px) {
    .navigace-polozky {
        font-size: 1rem;
        line-height: 0.4rem;
    }
}

@media (max-height: 400px) {
    .navigace-polozky {
        font-size: 1rem;
        line-height: 0.1rem;
    }

    p {
        line-height: 1.1;
        font-size: 0.8;
    }
}

#o-autorovi {
    display: flex;
}

#profil-text {
    font-family: "Barlow Condensed", sans-serif;
    padding: 20px 15px;
    font-size: 1.2rem;
}

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

#profil-obrazek img {
    width: 150px;
    border-radius: 10px;
    margin: 15px 0px;
}

.active {
    opacity: 100% !important;
}

#dialogicka-komunikace {
    margin: 5px auto;
    text-align: center;
    max-width: 600px;
}
#dialogicka-komunikace button {
    padding: 5px 15px;
    border-radius: 2px;
    margin: 1px 1px;
    border: 1px solid black;
    opacity: 75%;
}

#div-info-dialog {
    margin: 15px 15px;
    padding: 15px;
    border-bottom: 5px solid #7dadd3;
    line-height: 1.5rem;
}

#barc-info {
    margin: 5px auto;
    text-align: center;
    max-width: 600px;
}

#barc-info button {
    padding: 5px 15px;
    border-radius: 2px;
    margin: 1px 1px;
    border: 1px solid black;
    opacity: 75%;
}

#div-info-barc {
    margin: 15px 15px;
    padding: 15px;
    border-bottom: 5px solid #7dadd3;
    line-height: 1.25rem;
}

#eticke-teorie-info {
    margin: 5px auto;
    text-align: center;
    max-width: 600px;
}

#eticke-teorie-info button {
    padding: 5px 15px;
    border-radius: 2px;
    margin: 1px 1px;
    border: 1px solid black;
    opacity: 75%;
}

#div-info-eticke-teorie {
    margin: 15px 15px;
    padding: 15px;
    border-bottom: 5px solid #7dadd3;
    line-height: 1.25rem;
}

#mapaSamoregulace {
    position: relative;
    margin: 15px auto;
    width: 360px;
    height: 360px;
}

#mapaSamoregulace > [class*="map-"] {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 350px;
}

.mapa {
    text-align: center;
}

.mapa h1 {
    margin: 15px;
}

#normativniTeorieOsa {
    position: relative;
    margin: 15px auto;
    width: 624px;
    height: 300px;
    opacity: 75%;
}

#nt0,
#nt1,
#nt2,
#nt3 {
    position: absolute;
    width: 220px;
    height: 100px;
    text-align: center;
    font-family: sans-serif;
    vertical-align: middle;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

#nt0 {
    top: 30px;
    left: 90px;

    background-color: #406c8e;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
}

#nt1 {
    top: 30px;
    left: 310px;

    background-color: #008eaa;
    border-left: 2px solid black;
    border-bottom: 2px solid black;
}

#nt2 {
    top: 130px;
    left: 310px;

    background-color: #00afb0;
    border-top: 2px solid black;
    border-left: 2px solid black;
}

#nt3 {
    top: 130px;
    left: 90px;

    background-color: #44cea1;
    border-top: 2px solid black;
    border-right: 2px solid black;
}

#nt-label-left,
#nt-label-top,
#nt-label-right,
#nt-label-bottom {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 20px;
    background-color: #f9f871;
    font-size: 12px;
    font-family: sans-serif;
}

#nt-label-left {
    left: 0px;
    top: 120px;
}

#nt-label-right {
    left: 544px;
    top: 120px;
}

#nt-label-top {
    left: 270px;
    top: 0px;
}

#nt-label-bottom {
    left: 270px;
    top: 244px;
}

.active-nt {
    opacity: 100%;
    font-weight: 600;
}

#toolTipOsa {
    margin: 5px auto;
    padding: 5px;
    padding-bottom: 25px;
    border-bottom: 5px solid #7dadd3;
    line-height: 1.25rem;
    width: 600px;
    text-align: center;
}

.timeline li {
    list-style-type: none;
    border-left: 2px solid black;
    postition: relative;
    padding-left: 1em;
    padding-bottom: 1em;
}

.timeline li dl {
    max-height: 0;
    overflow: hidden;
    transition: max-height 500ms ease-in-out;
}

.timeline li > p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 500ms ease-in-out;
}

.timeline li > time {
    position: absolute;
    left: 1.65em;
}

.timeline dl,
.timeline li {
    margin: 0;
}

.timeline li > header {
    font-size: 1.2rem;
    line-height: 1em;
    padding-bottom: 0.5em;
    cursor: pointer;
    display: block;
}

.timeline li.expanded dl {
    max-height: 40em;
}

.timeline li.expanded p {
    max-height: 40em;
}

dd {
    margin-top: -1.5rem;
    margin-left: 10em;
}

dt {
    font-weight: 600;
}

.timeline li > time:first-of-type:after {
    content: "\2022";
    font-size: 3em;
    line-height: 0.4em;
    position: absolute;
    right: -0.65em;
    top: 0.1em;
}
