@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oxygen:wght@300&display=swap');

body {
    overflow-x: hidden;
    margin: 0px;
}

.img_slide {
    object-fit: contain;
}

.div_slide {
    font-family: 'Oswald', sans-serif;
    font-weight: 200;
    position: absolute;
    background-color: #ffffffd8;
    width: 20%;
    height: 98%;
    float: right;
    right: 5%;
    top: 0px;
    padding: 10px;
}

.slideshow-container {
    width: 100%;
    position: relative;
    margin: auto;
}

.mySlides {
    position: relative;
    display: none;
    height: 500px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #a8abb9;
    border-radius: 50%;
    display: inline-block;
    transition: background-color .6s ease
}

.active,
.dot:hover {
    background-color: #5a5f7c
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}
  
@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}
  
@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.page {
    display: flow-root;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}

#page_menu {
    word-wrap: break-word;
    width: 25%;
    float: right;
}

.line-clamp {
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article {
    border-bottom: 1.5px solid #e1e9ff;
    display: flex;
    padding: 10px;
    width: 100%;
    height: 200px;
    list-style: none;
    font-family: 'Oxygen', sans-serif;
}

.article_img {
    float: left;
    height: 200px;
    width: 200px;
    padding-right: 25px;
    object-fit: scale-down;
}

.article_title {
    margin-bottom: 0; 
    display: inline-flex; 
    align-items: center;
    font-size: 1.15em;
}

.text {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.article_infos {
    display: flex;
    align-items: center;
}

.profile_picture {
    height: 25px;
    width: 25px;
    filter: drop-shadow(0 0 0.05rem black);
    object-fit: cover;
    border-radius: 50%;
}

.page-selection {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: x-large;
    font-family: 'Oxygen', sans-serif;
    padding: 10px;
    border: 1px solid #b1c6e1;
    border-radius: 5px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.page-selection a {
    text-decoration: none;
    color: #82a1c9;
}

.page-selection a:visited {
    color: black;
}

.page-selection a:hover {
    color: #5587c7;
    transition: 1s;
}

.table_title {
    color: #82a1c9;
}

.table_line {
    border-top: 1px solid #b1c6e1;
}

.popular_articles {
    font-family: 'Oxygen', sans-serif;
    background-color: #F1F1F1;
    height: fit-content;
    border-radius: 15px;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 10px;
    margin-top: 10px;
    float: left;
}

.popular_articles table {
    border-collapse: collapse;
}

.popular_articles th {
    padding: 10px;
    width: 50%;
}

.link {
    font-weight: bold;
    text-decoration: none; 
    color: unset;
}

.link:hover {
    color: #5587c7;
    transition: 1s;
}

@media screen and (max-width: 900px) {    
    .menu {
        font-size: larger !important;
    }

    .page {
        width: 100%
    }

    .need_newsers {
        font-size: xx-large;
    }

    .discord-logo {
        width: 30px;
        height: 30px;
    }

    .div_slide {
        font-size: xx-large;
        width: 40%;
    }

    .dot {
        width: 30px;
        height: 30px;
    }

    .need_newsers {
        width: 95%;
        margin-left: auto;
        margin-right: auto;
    }

    .article {
        width: 92%;
        height: unset;
        margin-left: auto;
        margin-right: auto;
        flex-direction: column;
        align-items: center;
        text-align: center;
        font-size: 3.5vw;
    }

    .article_img {
        width: 100%;
    }

    .text {
        text-align: justify;
    }

    .profile_picture {
        height: 50px;
        width: 50px;
    }

    .popular_articles {
        width: 92%;
        font-size: 3.5vw;
    }

    .page-selection {
        width: 92%;
        font-size: 3.5vw;
    }

    .material-icons-outlined {
        font-size: 3.5vw !important;
    }
}

@media (orientation: portrait) {
    .line-clamp {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #articles {
        width: 100%;
    }

    #page_menu {
        width: 100%;
        display: flex;
    }
}