@font-face{
    font-family: 'Roboto';
    src:url('fonts/Roboto-Regular.ttf');
}
html{
    min-height: 100%;
    height: 100%;
}
body{
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    background: #FFFFFF;
    /*background-image: url('../img/automaton.svg');
    background-repeat: no-repeat;
    background-position: right -25% bottom -10%;
    background-size: 50%;
    background-attachment: fixed;*/
    color: #304758;
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 15px;
    min-height: 100%;
    height: fit-content;
    width: 100%;
}
/*
body::before { 
    content: ""; 
    position: absolute; 
    width: 50%; 
    height: 50%; 
    bottom: 0%; 
    right: 0%; 
    z-index: -1; 
    background-image: url('../img/automaton.svg'); 
    transform: rotate(-20deg); 
    opacity: 0.75;
    background-repeat: no-repeat;
    background-position: right 0% bottom 0%;
    background-size: 100%;
    position:fixed;
}
*/
a{
    color:#6a9fc7;
    text-decoration: none;
}
a:hover,a:active,a:focus{
    color:#7CB9E8;
}
nav.mynav{
    position: fixed!important;
    display: flex!important;
    justify-content: center!important;
    top:0;
    left:0;
    width: 100%;
    background: linear-gradient(#abd0eb 80%,/*#7CB9E8*/#4c8abadc 20%);
    z-index: 99;
}
.navbar{
    justify-content: center!important;
}
.container-fluid{
    width: fit-content;
    max-width: 1020px;

}
.menu{
    fill: rgba(0, 0, 0, .55);
}
nav li:hover .menu, nav a.active svg{
    fill: rgba(0, 0, 0, 1);
}
nav li:hover a{
    color: rgba(0, 0, 0, 1)!important;
}
nav ul{
    display: flex;
    flex-wrap: wrap;
}
nav ul li{
    background: #ffffff7f;
    list-style-type: none;
    margin-right: 15px;
    padding: 3px 5px;
    border-radius: 5px;
    font-size: 14px;
}
nav ul li a{
    text-decoration: none;
    color: #304758;
    font-weight: bold;
}
.navbar-light .navbar-toggler, .navbar-toggler:active {
    background-color: #ffffff7f;
    border: 2px solid #ffffff7f;
}
header{
    width: 100%;
    margin: 30px auto;
    padding: 75px 55px 0 0;
    text-align: right;
    height: 300px; 
    max-width: 1020px; 
    position: relative;
    background-image: linear-gradient(to right, #9abcdb, #abd0eb);
    background-image: url('/img/chip2.jpg'); 
    background-position: left center;
    background-repeat: no-repeat; 
    border-bottom: 8px solid #4c8aba;
}
.header-bg{
    background-image:linear-gradient(to right, #9abcdb 50%, #abd0eb 50%);
    padding: 0;
    height: 330px; 
}
header::before{
    content: '';
    display: block;
    background-image: linear-gradient(to right, #9abcdb, #4c8aba49 8%, #abd0eb 700px);
   	position: absolute;
	top: 0;      
	left: 0;   
  	width: 100%;
    max-width: 1020px;    
	height: 300px;
    z-index:0;  
}
.header-wrp{
    position: relative;
    max-width: 1020px; 

}
.button-send{
    background-color: #4c8aba!important;
}
.header-button{
    background-color: #4c737bce;
    padding: 7px 15px;
    font-weight: bold;
    color: #ffffff;
    border: 0;
    border-radius: 7px;
}
.msu-title{
    font-size: 18px;
}
main{
    align-content: flex-start;
    max-width: 1020px;
    margin: 5px auto 0px auto;
    padding: 0 25px;
    display: flex;
    flex-wrap: wrap;
    min-height: calc(100% - 200px);
    width: 100%;
    /*height: 100%;*/
}
article{
    width: 100%;
}
header h1{
    font-size: 30px;
}
.title{
    font-size: 26px;
    width: 100%;
    z-index: 10;
    text-align: center;
    margin: 15px 0 0 0;
}
.news,.researchers,.events,.courses{
    width: 46%;
    padding: 20px 20px 20px 20px;
    border: 1px solid #e0e0e0;
    margin: 20px 15px;
    padding: 20px 15px;
    border-radius: 7px;
    background-color:rgba(255, 255, 255, .55)
}
.news-title{
    margin: 0px;
}
.news-date{
    margin-bottom: 10px;
    text-align: right;
}
.news-annotation{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* number of lines to show */
            line-clamp: 4; 
    -webkit-box-orient: vertical;
}
.researchers{
    display: flex;
    flex-wrap: nowrap;
}
.researchers-photo-small{
    object-fit: cover;
    margin: 0 17px 10px 0;
    width: 150px;
    height: 200px;
}
.researchers-text{
    width: calc(100% - 150px);
}
.students{
    width: 100%;
}
.students ul{
    list-style-type: none;
}
.accordion-button:not(.collapsed) {
    background-color: #FFFFFF;
    border: 0px solid #FFFFFF;
    color: #304758;
}
.accordion-button:focus{
    border: 0px solid #FFFFFF;
    box-shadow: none;
}
.courses-type{
    margin-bottom:0;
    padding-bottom:0;
}
.courses-lector, .courses-for-whom, .courses-time, .courses-from-date, 
.course-for-whom, .course-time, .course-from-date, .course-room {
    margin-top:0;
    padding-top:0;
    margin-bottom:0!important;
    padding-bottom:0;
}
.projects{
    list-style-type: none;
}

.projects-authors{
    margin-bottom: 0px!important;
}
.projects-news{
    margin-top: 0px;
}
.news p, .courses-annotation{
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}
.news-item-wrp, .researcher-wrp, .event-wrp{
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
}
.news-item-events,.news-item-publications,
.researcher-students,.researcher-publications,
.event-news,.event-courses{
    width: 50%;
}
.researcher-photo{
    margin: 15px auto;
    width: 300px;
    height: 300px;
    object-fit: cover;
}
.researcher-photo-wrp{
    text-align:center;
}
.researcher-rank{
    text-align: center;
}
.course-type,.course-lector,.course-tg,.course-program,.course-matherials{
    margin: 0px;
}
.course-annotation{
    margin: 15px 0;
}
.event-from-to{
    text-align: center;
}
footer{
    width: 95%;
    /*background-color: #FFFFFF;*/
    border-top: 2px solid #c0c0c0;
    font-size: 13px;
    text-align: right;
    padding: 20px;
    margin: 20px;
}
.accordion-button, .accordion-item, .accordion-button:not(.collapsed) {
    background-color: transparent;
}
.pagination{
    margin: 0 auto;
}
.pagination nav .flex{
    display: none;
}
svg{
    height: 20px;
    width: 20px;
}
.hide-comp{
    display: none;
}
td{
    padding-left: 10px;
}


@media only screen and (max-width: 1000px) {
    body:before{
        background-position: left 90% top 90%;
        /*background-size: 133%;*/
        width: 100%;
        height: 80%;
    }
    header,.header-bg,header::before,.header-wrp{
        background-image: none;
        background-color: #abd0eb;
        text-align: center;
        width:100%;
        display:block;
        padding:0;
        margin:0;
        height:fit-content;
    }
    header{
        padding: 85px 0 30px 0;
    }
    .header-button{
        background: #4c8aba;
    }
    .mynav{
        background: #4c8aba!important;
    }
    .container-fluid{
        justify-content: center!important;
    }
    .navbar-toggler{
        margin: 5px;
        border: 0px solid white!important;
    }
    .navbar-nav {
        justify-content: center!important;
        width: 100%!important;
    }
    header h1{
        font-size: 23px;
    }
    .title{
        font-size: 23px;

    }
    .news, .researchers, .events, .courses,.news-item-events, .news-item-publications, .researcher-students, .researcher-publications, .event-news, .event-courses{
        width: 100%;
    }
    .news-item-wrp, .researcher-wrp, .event-wrp{
        flex-wrap: wrap;
    }
    .nav-item{
        margin: 3px;
        padding: 0 10px;
    }
    .researchers{
        flex-wrap: wrap;
    }
    .researchers-text{
        width: 100%;
    }
    .pagination a, .pagination span{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hide-mobile{
        display: none;
    }
    .hide-comp{
        display: inline;
    }
 }