@font-face{
    font-family: 'Roboto';
    src:url('fonts/Roboto-Regular.ttf');
}
html{
    min-height: 100%;
    height: 100%;
}
body{
    display: flex;
    flex-wrap: wrap;
    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: 100%;
}
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 50%,#7CB9E8 50%);
    border-bottom: 2px solid #FFFFFF;
    z-index: 99;
}
.navbar{
    justify-content: center!important;
}
.container-fluid{
    width: fit-content;
}
nav ul{
    display: flex;
    flex-wrap: wrap;
}
nav ul li{
    background: #ffffff7f;
    list-style-type: none;
    margin-right: 20px;
    padding: 4px 7px;
    border-radius: 5px;
}
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{
    max-width: 1020px;
    margin: 80px auto 0 auto;
    padding: 0 25px;
    text-align:center;
}
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;
    text-align: center;
    width: 100%;
}
.news,.researchers,.events,.courses{
    width: 50%;
    padding: 20px 15px 0 15px;
}
.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{
    margin-top:0;
    padding-top:0;
    margin-bottom:0;
    padding-bottom:0;
}
.projects{
    list-style-type: none;
}

.projects-authors{
    margin-bottom: 0px!important;
}
.projects-news{
    margin-top: 0px;
}
.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: 100%;
    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!important;
    width: 20px;
}

@media only screen and (max-width: 1000px) {
    body{
        background-position: left 10px bottom -10px;
        background-size: 133%;
    }
    .mynav{
        background: #7CB9E8!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;
    }
    .researchers{
        flex-wrap: wrap;
    }
    .researchers-text{
        width: 100%;
    }
 }