.universities-modal{
    position: fixed;
    width: 50%;
    margin-left: 25%;
    height: 500px;
    top: 100px;
    background-color: #ffffff;
    z-index: 100;
    border-radius: 20px;
    padding: 25px 25px;
    box-sizing: border-box;
    animation: FadeIn 100ms linear forwards !important;
    flex-direction: column;
    /* display: none; */
}

.universities-modal-backdrop{
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 100;
    animation: FadeIn 100ms linear forwards !important;
    /* display: none; */
}


.search-universities{
    width: 100%;
    height: 55px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    margin-bottom: 20px;
}

.search-universities input {
    width: 90%;
    margin-left: 2.5%;
    height: 100%;
    background-color: #F4F4F4;
    border: 0px;
    outline: none;
    border-radius: 13px;
    padding-right: 20px;
    padding-left: 10px;
    direction: rtl;
}

.search-universities div {
    width: 7.5%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.search-universities div span{
    width: 100%;
    height: 100%;
    /* padding: 10px; */
    background-color: #F4F4F4;
    cursor: pointer;
    border-radius: 10px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-universities div span:hover{
    background-color: #e8e8e8;
}
.search-universities div span svg{
    margin: auto;
}


.universities-modal-hidden{
    animation: FadeOut 100ms linear forwards !important;
}

.universities-backdrop-hidden{
    animation: FadeOut 100ms linear forwards !important;
}

@-webkit-keyframes FadeIn {
    0%{
        opacity: 0;
    }
    50%{
        opacity: 0.5;
    }
    100%{
        opacity: 1;
    }
}

@keyframes FadeIn {
    0%{
        opacity: 0;
    }
    50%{
        opacity: 0.5;
    }
    100%{
        opacity: 1;
    }
}

@-webkit-keyframes FadeOut {
    0%{
        opacity: 1;
    }
    50%{
        opacity: 0.5;
    }
    100%{
        opacity: 0;
    }
}

@keyframes FadeOut {
    0%{
        opacity: 1;
    }
    50%{
        opacity: 0.5;
    }
    100%{
        opacity: 0;
    }
}

.mobile-uni-switch-button{
    background-color: #e8e8e8;
    display: flex;
    flex-direction: row-reverse;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
}
.mobile-uni-switch-button .logo{
    width: 35px;
    height: 35px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    margin-left: 10px;
    overflow: hidden;
}
.mobile-uni-switch-button .logo img{
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mobile-uni-switch-button .name{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    font-size: 13px;
    margin-left: 5px;
    text-align: right;
}


.mobile-uni-switch-button .dropdown-svg{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 5px;
}

.visits_count{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unis{
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: space-between;
    /* background-color: rebeccapurple; */
    max-height: 445px;
    overflow-y: scroll;
}

.unis .uni{
    width: 47%;
    height: 70px;
    background-color: #F4F4F4;
    margin-bottom: 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    box-sizing: border-box;
    padding: 10px 10px;
    text-decoration: none;
    color: black;
    transition: 0.2s;
    border: 2px solid #F4F4F4;
}

.unis .uni:hover{
    border: 2px solid #98e8e2;
}
.unis .uni.active{
    border: 2px solid #98e8e2;
}
.unis .uni .logo img{
    width: 40%;
    border-radius: 10px;
    /* height: 100%; */
}
.unis .uni .logo{
    /* height: 100%; */
    width: 30%;
    /* background-color: rebeccapurple; */
    display: flex;
    flex-direction: column;
    justify-content: center;

}


.unis .uni .name{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 70%;
    text-align: right;
    font-size: 14px;
}

.sidebar-uni{
    background-color: red;
    display: flex;
    flex-direction: row;
}

.sidebar-uni .logo{
    width: 20%;
    height: 100%;
}
.sidebar-uni .logo img{
    width: 100%;
}
.sidebar-uni .name{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

@media (min-width:850px) and (max-width: 1400px) {
    .universities-modal{
        width: 70%;
        margin-left: 15%;
    }
}


@media (max-width:849px){
    
    .universities-modal-hidden{
        transform: translateY(100%) !important;
        animation: none !important;
        transition: 0.2s;
    }
        
    .unis .uni .logo img{
        width: 80%;
        border-radius: 10px;
        /* height: 100%; */
    }


    .universities-modal{
        position: fixed;
        width: 100%;
        margin-left: 0%;
        height: 70%;
        top: unset;
        border-bottom-left-radius: 0px;
        border-bottom-right-radius: 0px;
        bottom: 0px;
        padding: 15px 15px;
        animation: none !important;
        transform: translateY(0%);
        transition: 0.2s !important;
        display: block !important;
    }

    .search-universities{
        height: 45px;
    }
    
    .search-universities input {
        width: 80%;
        margin-left: 2.5%;
        height: 100%;
        background-color: #F4F4F4;
        border: 0px;
        outline: none;
        border-radius: 10px;
    }
    
    .search-universities div {
        width: 12%;
    }

    .search-universities div span {
        border-radius: 10px;
    }
}

@media(max-width: 400px){
    .unis .uni .logo img{
        width: 100% !important;
        border-radius: 10px;
        /* height: 100%; */
    }
}