body {
    margin: 0;
    position: relative;
    font-size: 16px;
    font-family: BlinkMacSystemFont,-apple-system,segoe ui,Roboto,Oxygen-Sans,Ubuntu,Cantarell,helvetica neue,sans-serif;
    background: #fbfbfb;
}

a {
    text-decoration: none;
}

header {
    padding: 20px 80px;
    margin: 0 auto;
    background: #555;
    display: flex;
    position: relative;
    z-index: 20;
    color: #fff;
    box-shadow: 0 10px 15px rgba(0,0,0,0.5);
}

header a {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    align-self: center;
}

header a:hover, #breadcrumbs a:hover, .news-block a:hover{
    text-decoration: underline;
}

header a img {
    width: 200px;
    height: auto;
}

header nav {
    width: 100%;
    align-self: center;
}

#topmenu, .mod-menu, .mod-list, .nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
}

#topmenu li, .mod-menu li, .mod-list li, .nav li {
    margin: 5px;
}

#breadcrumbs {
    margin: 0 auto;
    padding: 20px 80px;
    border-bottom: 1px #f0eaea solid;
}

#breadcrumbs span, #breadcrumbs a {
    padding: 1px;
    white-space: nowrap;
}

#breadcrumbs a {
    color: #780000;
}

#breadcrumbs ol {
	margin: 0px;
	padding: 0px;
    list-style: none;
    display: flex;
}

#main-block {
    margin: 50px auto;
    display: flex;
    position: relative;
    z-index: 1;
    max-width: 1200px
}

#content {
    margin: 0 auto;
    padding: 20px;
    box-shadow: 0px 5px 10px rgba(0,0,0,0.3);
    background: #fff;
    width: 75%;
    min-height: 500px;
	overflow: hidden;
}

#content h1 {
    text-align:center;
    color: #242424;
}

#content p, .list-title {
    text-align: left;
    text-indent: 40px;
    padding: 0px 20px;
    color: #242424;
  	line-height: 1.5;
}

#content pre, #content code {
    overflow: auto;
    border: 1px #dfdfdf solid;
    padding: 20px;
    border-radius: 10px;
}

#content pre:hover, #content code:hover {
    border: 1px #555 solid;
}

#content caption.visually-hidden {
    width: 100%;
    padding: 20px 0px;
    font-size: 24px;
    font-weight: bold;
}

#content .result__title-text, .list-title a {
    font-size: 16px;
    font-weight: normal;
    color: #780000;
}

#content .form_s {
    margin: 50px auto;
}

#content .button_search {
    padding: 5px 8px;
    color: #fff;
    background-color: #555;
    border: 1px #f0eaea solid;
}

#content .php_code {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    max-width: 100%;
}

.img_material {
    padding: 20px 0;
    text-align: center;
}

.img_material img {
    max-width: 750px;
    max-height: 300px;
    border-radius: 2px;
    box-shadow: 10px 10px 10px rgb(0 0 0 / 50%);
}

#right-col {
    margin: 0px 20px;
    width: 25%;
}

#right-col .block, .mod-finder, .js-finder-searchform, .form-search, div.mod-articlesnews, div.newsflash, #mod-custom118 {
    margin-bottom: 20px;
    padding: 12px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    background: #fff;
    position: sticky;
    /*top: 10px;*/
}

#right-col #mod-custom118 p {
    text-align: center;
}

#right-col #mod-custom118 a {
    font-size: 18px;
    color: #780000;
    text-decoration: underline;
}

#right-col #mod-custom118 a:hover {
    text-decoration: none;
}

#right-col .finder, #content #search-form {
	display: none;
}

#right-col div.mod-articlesnews h2, #right-col div.newsflash h2 {
	margin: 10px auto;
  	padding: 0px 5px;
}

#right-col .finder {
 	display: none; 
}
  
#right-col .block h2 {
    margin: 10px auto;
    padding: 0px 5px;
}

.search-block, .mod-finder__search, .input-group {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    max-width: 100%;
}

.search-block input, .awesomplete input {
    padding: 15px;
    border: 1px #f0eaea solid;
    max-width: 100%;
}

.search-block button, #right-col button.btn, #right-col button.btn-primary {
    padding: 5px 8px;
    color: #fff;
    background-color: #555;
    border: 1px #f0eaea solid;
}

.news-block ul {
    list-style: none;
    padding: 5px;
}

.news-block ul li {
    padding-bottom: 15px;
}

.news-block a, #right-col a.btn, #right-col a.btn-secondary {
    font-size: 14px;
    color: #780000;
}

.mod-articlesnews__item {
	margin: 0px;
  	padding: 10px 5px;
  	display: flex;
}

.mod-articlesnews__item:hover {
    background-color: rgba(0,0,0,0.1);
    cursor: pointer;
}

.newsflash-image, .mod-articlesnews__item .readmore {
	margin: 0px;
  	padding: 0px;
}

.news img, .newsflash-image img {
    padding-right: 10px;
    max-width: 100px;
  	height: auto;
}

#button-up {
    position: fixed;
    right: 20px;
    bottom: 100px;
    opacity:0.5;
    transition: .3s;
    display: none;
}

#button-up:hover {
    cursor: pointer;
    opacity: 1;
    filter:alpha(opacity=100);
    transition: .3s;
    color: #555;
}

#button-up span {
    margin: 0px auto;
    padding: 15px;
    height: 40px;
    width: 40px;
    display: block;
    position: fixed;
    right: 100px;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.7);

}

footer {
    margin: 0 auto;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 20;
    color: #780000;
    width: 100%;
    height: 80px;
    border: 1px #f0eaea solid;
}


@media (max-width: 980px) {
	header {
		margin: 0px;
		padding: 0px;
	}
	header a {
        font-size: 12px;
    }
	header a img {
		width: 100px;
		position: relative;
		left: 5px;
	}
	#topmenu, .mod-menu, .mod-list, .nav {
        padding: 0;
    }
	#breadcrumbs {
		display: none;
	}
	#main-block {
        display: block;
    }
	#content p {
        padding: 0px;
		text-indent: 0px;
		text-align: justify;
        font-size: 14px;
	}
	#content h1 {
        font-size: 20px;
        padding: 0px;
    }
    #content pre, #content code {
        font-size: 14px;
    }
	#right-col {
        width: 80%;
        margin: 0 auto;
        padding: 20px;
	}
    #right-col a.btn, #right-col a.btn-secondary {
        font-size: 12px;
    }
	#right-col .awesomplete {
        position: static;
        width: 75%;
        overflow: hidden;
    }
    #right-col form.form-search {
        margin-bottom: 50px;
    }
	.img_material img {
		max-width: 220px;
	}
	#copyright-block {
        font-size: 14px;
    }
	#button-up span {
		right: 20px;
	}
}
