*{
    --colormain:#342a37;
    --colordark:#2c1c31;
    --colorlight:#9c83a3;
    --colorwhite:#fff;
    --colortthird:#ff8f27;
    --lightmain :#2a1a2f;
    
    padding: 0;
    margin: 0;
    outline: none;
    text-decoration: none;
    list-style: none;
    color: inherit;
    font-family: "Poppins";
    box-sizing: border-box;
}
body {
    position: relative;
    background-color: #332238;
}
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://igdream.ma/wp-content/themes/Theme/assets/img/background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.2;
    filter: blur(2px);
    z-index: -1;
}
.api-portails{
}
h1{
    text-align: center;
    color: #fff;
    margin-bottom: 100px;
}
.portails{
    display: flex;
    justify-content: space-around;
    gap: 10px;
    width: 100%;
}
.portail{
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: calc(100% / 4);
}
.portail-infos{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portail-image{
    animation: floatAnimation 3s ease-in-out infinite;
}
.header-portails{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}
.servers-portails{
    position: relative;
    display: flex;
    justify-content: space-between;
    background-color: #501A91;
    border-radius: 5px;
    padding: 5px 10px;
    color: #fff;
    cursor: pointer;
    width: 500px;
    transition: all 0.3s ease-in-out;
}
.servers-portails:hover{
    background-color: #7439bd;
}
.list-server-portail{
    display: none;
    z-index: 99;
}
.location-portail{
    color: #fff;
}
.time-portail{
    color: #C698FF;
    font-size: 14px;
}
.active-list-servers{
    position: absolute;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    top: 40px;
    right: 0;
    width: 100%;
}
.list-server-portail li{
    text-transform: capitalize;
    padding: 5px;
    transition: all 0.3s ease-in-out;
    color: #501A91;
    font-weight: 500;
    text-align: start;
    padding-left: 10px;
}
.list-server-portail li:hover{
    background-color: #501A91;
    color: #fff;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Categories */
.categories{
    margin-top: 150px;
}
.categories h2{
    font-size: 32px;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}
.list-categories{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.list-categories a{
    padding: 5px 10px;
    text-transform: capitalize;
}
.list-categories a:hover{
    border: 1px solid #C698FF;
    border-radius: 10px;
}
.active-category{
    border: 1px solid #C698FF;
    border-radius: 10px;
    padding: 5px 10px;
}

/* Articles */
.list-articles{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: 90%;
    gap: 10px;
    margin-top: 100px;
}
.item-article{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(25% - 10px);
    max-width: 100%;
    padding: 30px 20px;
    color: #fff;
    background-color: #221d23;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}
.item-article:hover{
    scale: 1.05;
}
.item-article h3{
    text-transform: capitalize;
    font-size: 16px;
    font-weight: 400;
}
.item-article p{
    font-size: 14px;
    color: #c7c5c5;
}
.image-article{
    width: 100%;
}
.image-article img{
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
}
.pagination-pages{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 100px;
    color: #fff;
}
.list-pages{
    display: flex;
    align-items: center;
    gap: 10px;
}
.list-pages a{
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    color:#fff;
    transition: all 0.3s ease-in-out;
}
.list-pages a:hover{
    background-color: #501A91;
    color:#fff;
}
.active-page{
    background-color: #501A91;
    padding: 5px 15px;
    border-radius: 5px;
}
.current{
    background-color: #501A91;
    padding: 5px 15px;
    border-radius: 5px;
}
.button-article span{
    display: inline-block;
    padding: 10px 20px;
    color: #332238;
    font-weight: 500;
    border-radius: 30px;
    background-color: #f7a438;
    transition: all 0.3s ease-in-out;
}
.button-article span:hover{
    background-color: #b96ec8;
}
.container{
    margin: 300px auto;
}
@media (max-width:1500px) {
    .portails{
        flex-wrap: wrap;
    }
}
@media (max-width:1000px) {
    .container{
        margin: 100px 20px;
    }
    .api-portails{
        width: 80%;
        overflow: hidden;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        overflow-x: scroll;
        white-space: nowrap;
    }
    .portails{
        flex-wrap: nowrap;
        width: max-content;
    }
    .portail{
        width: auto;
    }
    .list-categories{
        flex-wrap: wrap;
    }
}
@media (max-width:850px){
    .list-articles{
        margin: 50px auto;
    }
    .item-article{
        width: calc(50% - 10px);
        margin: auto;
    }
}
@media (max-width:650px){
    .list-articles{
        flex-direction: column;
    }
    .item-article{
        width: 100%;
    }
}