@font-face {
    font-family: "Forum";
    src:
        url("../fonts/Forum/Forum-Regular.woff2") format("woff2"),
        url("../fonts/Forum/Forum-Regular.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Tenor Sans";
    src:
        url("../fonts/Tenor_Sans/TenorSans-Regular.woff2") format("woff2"),
        url("../fonts/Tenor_Sans/TenorSans-Regular.ttf") format("truetype");
    font-style: normal;
    font-display: swap;
}
html {
    background: white;
    color: #3c3d60;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
div {
    margin: 0;
    padding: 0;
    font-family: "Tenor Sans", Verdana, Geneva, sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    clear: both;
    color: firebrick;
    font-family: "Forum", Georgia, "Times New Roman", serif;
    font-weight: 400;
}

header {
    background: firebrick;
    display: block;
}
header .compact {
    position: fixed;
}
header .wrapper {
    display: flex;
    flex-wrap: wrap;
    /*align-content: flex-start;*/
    padding: 1rem 2rem;
}
#head-logo {
    order: 1;
    position: relative;
    display: inline-flex;
    flex: 1;
}
#head-logo a {
    text-decoration: none;
    color: firebrick;
}
#head-logo a.navbar-brand {
    text-wrap: nowrap;
}
#head-logo span {
    position: absolute;
    top: 0;
    font-size: 0.85rem;
    color: white;
}
#head-logo .logo-img {
    width: 3rem;
}
#head-logo .logo-type {
    width: 12rem;
}

#head-contacts {
    order: 2;
    display: inline-flex;
    /*flex: 1;*/
    align-items: center;
    /*justify-content: flex-end;*/
    /* text-align: center; */
}
#head-contacts h6,
#head-contacts h5,
#head-contacts h4 {
    font-size: 1rem;
    padding: 1rem;
    padding-right: 0;
    margin: 0;
    flex: none;
}
#head-contacts h6,
#head-contacts h5 {
    color: white;
}
#head-contacts h4 {
    color: lightsalmon;
}
main {
    background: white;
    padding: 0;
    padding-bottom: 2rem;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}

.mainmenu {
    /*background: #999;*/
    display: flex;
    align-items: center;
    /*padding: 1em; if not hidden */
}
.mainmenu li {
    margin: 0.2rem 1rem;
}
.mainmenu .nav {
    flex-wrap: nowrap;
}
.mainmenu .navbar-collapse {
    flex-grow: 0;
}
.mainmenu .navbar-text {
    flex-grow: 1;
}
.mainmenu .nav-item a:hover {
    background-color: white;
    color: firebrick;
}
.mainmenu .nav-pills .nav-link.active {
    color: #fff;
    background-color: firebrick;
}
.mainmenu .nav a {
    color: firebrick;
}

main h1 {
    margin: 0;
    padding: 1rem 2rem;
    height: fit-content;
    width: 100%;
    order: 0;
    /*background-color: lightsalmon;*/
}

.section {
    clear: both;
}

.sidebar {
    width: 20%;
}

.sidebar-left {
    order: 1;
    padding-left: 2rem;
    /*background-color: aliceblue;*/
}

.sidebar-right {
    order: 3;
    padding-right: 2rem;
    /*background-color: antiquewhite;*/
}
.explain {
    font-size: 0.8em;
    font-style: italic;
    padding: 1rem;
    border: dotted 1px;
    border-radius: 1rem;
    background-color: ivory;
}
.article-content {
    order: 2;
    /*background: aliceblue;*/
    margin-bottom: 1rem;
    padding: 0 1rem;
    width: auto;
    flex: 1;
}

.article-content h1 {
    margin: 3rem;
    margin-left: 0;
}

.article-content h4 {
    margin: 0.2rem 0;
}

.article-content p {
    margin: 1rem 2rem;
}

.article-content ul,
.article-content ol {
    margin: 0 1rem;
}

ul.articles-list {
    overflow: auto;
    list-style: none;
    padding: 1rem;
}

.articles-list li {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0.5rem 2rem;
    padding-left: 1rem;
}
.articles-list li a {
    display: inline-flex;
}

.articles-list li a:hover {
    background-color: #f8f9fa;
    text-decoration: none;
}

.articles-list h3 {
    margin: 0.5rem 1rem;
}

.eyestopper {
    float: left;
    margin: 0.2rem 1rem 0.5rem 2rem;
}

.eyestopper img {
    width: 12rem;
}

.articles-list .eyestopper {
    padding: 0.5rem 1rem;
    margin: 0;
    flex-basis: auto;
}

.articles-list .eyestopper img {
    width: 4rem;
}

.article-card {
    border-radius: 0.3rem;
    margin: 1rem;
    box-shadow: 0 0 1rem 0 rgba(99, 99, 99, 0.3);
}

.article-card h2 {
    background-color: firebrick;
    border-radius: 0.3rem 0.3rem 0 0;
    padding: 1.5rem 2rem;
    color: whitesmoke;
    font-size: 1.5rem;
}

.article-card p {
    padding: 1rem;
}

.article-card .eyestopper {
    text-align: center;
    float: none;
    margin-top: 1rem;
}

.article-teaser {
    margin: 1rem;
}

.article h2 {
    padding-top: 2rem;
}

.article-card .teaser-head {
    height: 14rem;
    margin: 0;
    margin-bottom: 1rem;
    background-color: antiquewhite;
    position: relative;
}

.article-card .teaser-head h2 {
    background-color: rgba(178, 34, 34, 0.8);
    padding: 1.5rem 2rem;
    margin: 1rem 3rem 1rem 0;
    color: whitesmoke;
    font-size: 1.5rem;
    position: absolute;
    bottom: 0;
    text-shadow:
        1px 1px black,
        -1px -1px darkred,
        0px -1px darkred,
        -1px 0px black;
}

.article-card .teaser-head .eyestopper,
.article-card .teaser-head .eyestopper img {
    /* h/w=0.6-0.65 */
    width: 100%;
    height: 14rem;
    margin: 0;
}

ul.gallery {
    /* background: beige; */
    display: flex;
    width: 100%;
    flex-flow: row wrap;
    list-style-type: none;
    align-content: space-around;
    margin: 0 2rem;
    padding: 0;
}

ul.gallery li {
    /* border: solid 1px red; */
    flex: 0 0 auto;
    align-self: normal;
    margin: 0.5rem 0.5rem 0 0;
}
img.preview {
    width: 12rem;
}
img.full {
    /*display: none;*/
    border: solid 3px black;
    box-shadow:
        0 0 0.5em white,
        1em 1em 0.5em rgba(33, 33, 33, 0.8);
}

ul.blog-list {
    display: flex;
    width: 100%;
    flex-flow: row wrap;
    list-style-type: none;
    align-content: space-around;
    margin: 0;
    margin-left: 1rem;
    padding: 0;
}
.blog-list h3 {
    clear: none;
}
.blog-list li {
    width: 100%;
}
/* .blog-list li a {
    display: inline-flex;
} */
.blog-list .date {
    width: 100%;
    clear: both;
    float: left;
}
.blog-list .eyestopper img {
    float: left;
    margin: 0.2rem 1rem 0.5rem 0;
    clear: left;
    width: 5rem;
}

.centered {
    text-align: center;
}

.more {
    text-decoration: underline;
}

.more:hover {
    text-decoration: none;
}

.fog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.95);
    z-index: 1000;
    display: none;
}

.pagination {
    justify-content: center;
    margin: 1rem;
    padding: 1rem;
}

.sidebar .nav {
    flex-direction: column;
}

footer {
    background: firebrick;
    color: whitesmoke;
}

footer h2,
footer h3,
footer h4,
footer h5 {
    color: whitesmoke;
    margin: 0;
    padding: 0;
}

footer h5 {
    padding: 0.2rem;
}

footer .row {
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

footer .address {
    order: 1;
    width: 20%;
    padding: 1rem 0 1rem 1rem;
    /*background-color: lightslategray;*/
    flex: 1;
    text-wrap: nowrap;
}

footer .links {
    order: 2;
    padding: 1rem;
    /*background-color: lightgreen;*/
    width: auto;
    flex: auto;
}

footer .nav {
    align-items: baseline;
    /*list-style-type: none;*/
}
footer .nav-item a {
    color: whitesmoke;
    border-radius: 3px;
    text-decoration: underline;
}

footer .nav-item a:hover {
    color: whitesmoke;
    text-shadow:
        0px 0px 1px lightyellow,
        0px 0px 5px whitesmoke,
        0px 0px 15px white;
}

footer .nav-item .active {
    background-color: whitesmoke;
    color: firebrick;
}

footer .nav-item .active:hover {
    color: firebrick;
}

footer .nav-link {
    border-radius: 3px;
}
footer .work-schedule {
    order: 3;
    width: 20%;
    padding: 1rem 1rem 1rem 0;
    /*background-color: lightcoral;*/
    display: flex;
    flex: 1;
    justify-content: flex-end;
    text-wrap: nowrap;
}
footer .work-schedule .day {
    display: inline-block;
    width: 4rem;
}
footer .work-schedule .dayoff {
    /*color: #f97979;*/
    color: lightsalmon;
    text-shadow: 0px 0px 1px darkred;
}
footer .work-schedule .time {
    display: inline-block;
    width: 5rem;
    text-align: right;
}

/* big screen */
.mainmenu .nav {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
}

/* medium screen */
@media all and (max-width: 990px) {
    footer {
        font-size: 0.9rem;
    }
}
@media all and (max-width: 790px) {
    .sidebar {
        flex: 1;
    }
    .sidebar-left,
    .sidebar-right {
        padding: 0 2rem;
    }
    .article-content {
        flex: unset;
        padding: 0 2rem;
    }
    footer .nav {
        padding: 0 1rem;
        margin: 0 2rem;
    }
}
/*@media all and (max-width: 768px) {
    .mainmenu .nav {
        justify-content: space-around;
    }

    .eyestopper img {
        width: 8rem;
    }
    img.preview {
        width: 8rem;
    }
    footer {
        font-size: 0.9rem;
    }
}*/

/* small screen */
@media all and (max-width: 640px) {
    footer {
        font-size: 0.8rem;
    }
    footer .nav {
        padding: 0 1rem;
        margin: 0;
    }
    footer .row {
        flex-wrap: wrap;
        font-size: 1.1rem;
    }
    footer .address {
        order: 1;
    }
    footer .work-schedule {
        order: 2;
    }
    footer .links {
        order: 3;
    }
}
@media all and (max-width: 520px) {
    #head-contacts {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    #head-contacts h4,
    #head-contacts h6 {
        padding: 0 1rem;
    }
    .mainmenu .nav {
        flex-direction: column;
        box-shadow: 0.25rem 0.25rem 0.4rem 0 rgba(33, 33, 33, 0.2);
    }
    .mainmenu .nav-pills .nav-link:hover {
        background-color: white;
        color: firebrick;
    }
}
@media all and (max-width: 430px) {
    #head-contacts {
        font-size: 0.8rem;
    }
    #head-contacts h6,
    #head-contacts h5,
    #head-contacts h4 {
        font-size: unset;
        /*padding: 1rem;
        padding-right: 0;
        margin: 0;
        flex: none;*/
    }
    footer {
        /*font-size: 0.8rem;*/
        font-size: 1.1rem;
    }
    footer .row {
        flex-wrap: wrap;
    }
    footer .address {
        order: 1;
        width: auto;
    }
    footer .work-schedule {
        order: 2;
        justify-items: center;
        justify-content: center;
        width: auto;
    }
    footer .links {
        order: 3;
    }
}
