*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    scroll-behavior: none;
}

body{
    background-color: #F9E2DE;

}
body::-webkit-scrollbar{
    width: 0;
    height: 0;
}

.container_all{
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 25em;
    background-color: white;
    width: 100%;
    height: 8vh;
}

.left_container{
    font-size: 15px;
    display: flex;
    gap: 15em;
    align-items: center;
    justify-content: center;
}

.right_container{
    display: flex;
    gap: 10em;
    align-items: center;
    justify-content: center;
}
.user_img{
    width: 35px;
    height: 35px;
    border: 1px solid #DFBE99;
    border-radius: 50px;
}
.user_box{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
}

.home_box{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    width: 10em;
}

.login_box{
    font-size: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: max-content;
    gap: 0.5em;
}

.post_button{
  width: 130px;
  height: 40px;
  border: none;
  color: white;
  background-color:#DC6C58 ;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
}
.post_button:hover{
    transform: scale(1.03);
}
a{
    text-decoration: none;
    color: black;
    display: flex;
    transition: all 0.3s;
    gap: 0.5em;
    align-items: center;
}
a:hover{
    transform: scale(1.1);
}
.user_img{
    background-position: center;
    background-size:contain;
    background-repeat: no-repeat;
}

button{
    cursor: pointer;
}

main{
    display: flex;
    justify-content: space-around;
    align-items: normal;
    gap: 2em;
    padding:30px 30px 0;
    height: 100%;
}

.categorie_container{
    display: flex;
    flex-direction: column;
    background-color: white;
    padding:5px 20px;
    width: 20%;
    height: 87vh;
    border-radius: 10px;
    /* box-shadow: 0px 40px 50px 5px #FFEDEA; */
    overflow: scroll;
   
    
}
.categorie_container::-webkit-scrollbar{
    width: 5px;
    height: 0;
}

.categorie_container:hover::-webkit-scrollbar-thumb{
background-color: #ee9181;
border-radius: 5px;

}

.post_container{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    width: 57%;
    height: 87vh;
    border-radius: 10px;
    overflow: scroll;
    gap: 2em;
    
}
.post_container::-webkit-scrollbar{
    width: 0;
    height: 0;
}

.categorie_box{
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid  #F9E2DE;
    border-radius: 20px;
    gap: 0.5em;
}

.name_categorie{
    font-size: 15px;
    font-weight: 500;
}
.categorie_img{
    width: 39%;
    height: 13vh;
    border-radius: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.categorie_link:nth-child(1) .categorie_box .categorie_img{
    background: url(../static/images/_\(9\).jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.categorie_link:nth-child(2) .categorie_box .categorie_img{
    background: url(../static/images/_\(13\).jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.categorie_link:nth-child(3) .categorie_box .categorie_img{
    background: url(../static/images/_\ \(5\).jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.categorie_link:nth-child(4) .categorie_box .categorie_img{
    background: url(../static/images/_\(12\).jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.categorie_link:nth-child(5) .categorie_box .categorie_img{
    background: url(../static/images/_\(11\).jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.categorie_link:nth-child(6) .categorie_box .categorie_img{
    background: url(../static/images/_\(10\).jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.categorie_link:nth-child(7) .categorie_box .categorie_img{
    background: url(../static/images/_\ \(7\).jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.categorie_info{
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: left;
    flex-direction: column;
}
.all_categorie{
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding-top: 25px;
}
.nbr_post{
    font-size: 11px; 
    color: rgba(0, 0, 0, 0.61);
}

.all_post{
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    padding-bottom: 10px;
    width: 100%;
}

.entete_post{
    display: flex;
    gap: 1em;
}
.img_user{
    width: 35px;
    height: 35px;
    border-radius: 10px;
    margin-top: 0.5em;
    padding: 20px;
}

.name_date{
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 1em;
}
.categorie_post{
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
}
.content_categorie{
    font-size: 15px;
    padding: 10px 55px;
    display:  flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 30px;
    border-radius: 20px;
    color: white;
}
.content_categorie:nth-child(1) {
    background-color: #DC6C58;
}
.content_categorie:nth-child(2) {
    background-color: #FFAA51;
}
.content_categorie:nth-child(3) {
    background-color: #7EC338;
}
.content_categorie:nth-child(4) {
    background-color: #001514;
}

.content_categorie:nth-child(5) {
    background-color: #DFBE99;
}

.content_categorie:nth-child(6) {
    background-color: #729EA1;
}

.content_categorie:nth-child(7) {
    background-color: #2374AB;
}
.username{
    font-size: 14px;
    font-weight: 500;
}
.date{
    font-size: 13px;
    color: rgba(0, 0, 0, 0.521);
}
.content_text_img{
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    padding: 10px 0px 0px 55px;
    font-size: 15px;
}
.content_text{
    max-height: 60vh;
    overflow: scroll;
}
.content_text::-webkit-scrollbar{
    width: 5px;
    height: 0;
}

.content_text:hover::-webkit-scrollbar-thumb{
background-color: #ee9181;
border-radius: 5px;
}
.content_img{
    border: 1px solid #DFBE99;
    width: 60%;
    height: 38vh;
    border-radius: 10px;
}

.user_like_dislike{
    display: flex;
    gap: 1em;
    font-size: 13px;
    font-weight: 600;
    padding-bottom: 15px;
}
.user_like_dislike button{
    display: flex;
    justify-content: center;
    align-items: center;
   border: none;
   background-color: white;
   width: 20px;
}

.like{
    gap: 0.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}
.like:hover{
    transform: scale(1.1);
}
.dislike{
    gap: 0.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}
.dislike:hover{
    transform: scale(1.1);
}
.comment{
    gap: 0.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}
.comment:hover{
    transform: scale(1.1);
}

.logout{
    border: none;
    background-color: white;
    width: 40px;
}
.logout_box{
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: max-content;
    gap: 0.5em;
}

/* -------------------------------------------------------------------------------------  */
/* -------------------------------------------------------------------------------------  */
.main_container{
    height: 84vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form_container{
    /* background-color: white; */
    width: 40%;
    /* max-width: 90%; */
    height: 80vh;
    border-radius: 10px;

}

.Title_input{
    width: 40em;
     max-width: 500px;
    height: 45px;
    padding: 12px;
    border-radius: 5px;
    border: 1.5px solid lightgrey;
    outline: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0px 0px 20px -18px;
}

.Title_input:hover{
    border: 2px solid lightgrey;
    box-shadow: 0px 0px 20px -17px;
}

.Title_input:active{
    transform: scale(0.95);
}

.Title_input:focus{
    border: 2px solid grey;
}

form .content_input{
    width: 40em;
    max-width: 500px;
    padding: 15px;
    border-radius: 5px;
    border: 1.5px solid lightgrey;
    outline: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0px 0px 20px -18px;
    resize: none !important;;
}

form .content_input:hover{
    border: 2px solid lightgrey;
    box-shadow: 0px 0px 20px -17px;
}

form .content_input:active{
    transform: scale(0.95);
}
form .content_input:focus{
    border: 2px solid grey;
}

.create_post_form{
    background-color: white;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items:center;
    padding: 15px;
    gap: 10px;
}

.file_container{
    border: 2px dashed black;
    width: 22em;
    height: 28vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.checkbox-container {
    display: inline-block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    border: 1px solid rgba(0, 0, 0, 0.568);
    height: 32px;
    width: 25%;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .custom-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
  }

  .checkmark {
    position: absolute;
    top: 4px;
    left: 10px;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 15px;
    transition: background-color 0.3s;
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
  }

  .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 3px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
  }

  .custom-checkbox:checked ~ .checkmark {
    background-color: #DC6C58;
    /* box-shadow: 0 3px 7px rgba(33, 150, 243, 0.3); */
    border-radius: 15px;
  }

  .custom-checkbox:checked ~ .checkmark:after {
    display: block;
  }

  @keyframes checkAnim {
    0% {
      height: 0;
    }

    100% {
      height: 10px;
    }
  }

  .custom-checkbox:checked ~ .checkmark:after {
    animation: checkAnim 0.2s forwards;
  }


  .catego_div{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
  }
.button_create_post {
    padding: 13px 40px;
    border-radius: 50px;
    cursor: pointer;
    border: 0;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.24) 0 0 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 15px;
    transition: all 0.5s ease;
  }

  .button_create_post:hover {
    letter-spacing: 3px;
    background-color: #DC6C58;
    color: hsl(0, 0%, 100%);
    box-shadow: rgb(220 108 88) 0px 7px 29px 0px;
  }

  .button_create_post:active {
    letter-spacing: 3px;
    background-color: rgb(220 108 88);
    color: hsl(0, 0%, 100%);
    box-shadow: rgb(220 108 88) 0px 0px 0px 0px;
    transform: translateY(10px);
    transition: 100ms;
  }

  input[type="file"] {
    outline: none;
    padding: 4px;
    margin: -4px;
  }

  input[type="file"]:focus-within::file-selector-button,
  input[type="file"]:focus::file-selector-button {
    outline: 2px solid #DC6C58;
    outline-offset: 2px;
  }

  input[type="file"]::before {
    top: 16px;
  }

  input[type="file"]::after {
    top: 14px;
  }

  /* ------- From Step 2 ------- */

  input[type="file"] {
    position: relative;

  }

  input[type="file"]::file-selector-button {
    width: 136px;
    color: transparent;
  }

  input[type="file"]::before {
    position: absolute;
    pointer-events: none;
    /*   top: 11px; */
    left: 40px;
    color: #DC6C58;
    content: "Upload File";
  }

  input[type="file"]::after {
    position: absolute;
    pointer-events: none;
    /*   top: 10px; */
    left: 16px;
    height: 20px;
    width: 20px;
    content: "";
    background-image: url("../static/images/upload-file-svgrepo-com\ 1.svg");
    background-position: center;
    background-size: contain;

  }

  /* ------- From Step 1 ------- */

  /* file upload button */
  input[type="file"]::file-selector-button {
    border-radius: 4px;
    padding: 0 16px;
    height: 40px;
    cursor: pointer;
    background-color: white;
    border: 1px solid rgba(0, 0, 0, 0.16);
    box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
    margin-right: 16px;
    transition: background-color 200ms;
  }

  /* file upload button hover state */
  input[type="file"]::file-selector-button:hover {
    background-color: #f3f4f6;
  }

  /* file upload button active state */
  input[type="file"]::file-selector-button:active {
    background-color: #e5e7eb;
  }

.like_dislike_comment{
    display: flex;
    padding-left: 65px;
    gap: 15px;
}

/* -----------------------commentaire---------------------------------------- */

.comment_input,form .comment_input{
    width: 30em;
    max-width: 500px;
    height: 45px;
    padding: 15px;
    border-radius: 10px;
    border: 1.5px solid lightgrey;
    outline: none;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0px 0px 20px -18px;
}

.comment_input:hover, form .comment_input:hover{
    border: 2px solid lightgrey;
    box-shadow: 0px 0px 20px -17px;
}

.comment_input:active, form .comment_input:active{
    transform: scale(0.95);
}
.comment_input:focus, form .comment_input:focus{
    border: 2px solid grey;
}

.entete_comment{
    display: flex;
    gap: 1em;
    padding: 10px 0px 0px 10px;
}
.user_comment{
    width: 35px;
    height: 35px;
    border-radius: 15px;
}

.commentaire{
    border: 1px solid #DC6C58;
    border-radius: 10px;
    width: 26.8em;
}

.content_comm{
    display: flex;
    flex-direction: column;
    padding: 0px 0px 6px 60px;
    font-size: 16px;
}

.comment_text{
    max-height: 20em;
    overflow: scroll;
}
.comment_text::-webkit-scrollbar{
    width: 5px;
    height: 0;
}

.comment_text:hover::-webkit-scrollbar-thumb{
background-color: #ee9181;
border-radius: 5px;
}
.comment_text.content{
    padding-bottom: 10px;
}
.user_like_dislike.box{
    padding: 0px;
}
.submit_comment{
    width: 118px;
    height: 35px;
    border: none;
    color: white;
    background-color:#DC6C58 ;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.submit_comment:hover{
    transform: scale(1.08);
}

/* -------------------------------------------------------------- */
.popular_container{
    /* border: 1px solid black; */
    background-color: #ffffff;
    width: 20%;
    height: 87vh;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.banner_profile {
    background-color: #E16957;
    width: 100%;
    height: 18vh;
    border-radius: 10px;
}

.Profile_image {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 5px solid #ffffff;
    background-color: white;
    position: relative;
    top: 60px;
    left: 20px;
}

.connect_statut {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 1;
    position: relative;
    top: 35px;
    left: 80px;
    border: 5px solid #ffffff;
    background-color: #7EC338;
}
.disconnect_statut {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    z-index: 1;
    position: relative;
    top: 35px;
    left: 80px;
    border: 5px solid #ffffff;
    background-color: gray;
}

.banner_user_info {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 18vh;
    padding: 10px;
    color: white;
    background-color: #DC6C58;
    border-radius: 10px;
    margin: 0px 15px;
}

.banner_user_info p {
    font-size: 18px;
    font-weight: 500;
}

.banner_user_line{
    background-color: white;
    width: 100%;
    height: 2px;
    margin: 10px 0px;
}

.banner_user_info .Thedate{
    font-size: 9px;
    font-weight: 400;
    color: #000000a2;
}

.user_Created_post{
    display: flex;
    justify-content: space-between;
    padding-right: 15px;
    align-items: self-end;
}

.user_Liked_Post{
    display: flex;
    justify-content: space-between;
    padding-right: 15px;
    align-items: center;

}

.form_comment{
    display: flex;
    gap: 0.5em;
    align-items: center;
}

.post_button_width_resize{
    display: none;
}


.dropbtn {
    color: rgb(0, 0, 0);
    font-size: 14px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .dropdown {
   
    display: none;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 260px;
    overflow: auto;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    top: 49px;
  }
  
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }

  .dropdown-content .user_box{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
  }
  
  .dropdown a:hover {background-color: #ddd;}
  
  .show {display: block;}
    /* The side navigation menu */
    .sidenav {
        height: 100%; /* 100% Full-height */
        width: 0; /* 0 width - change this with JavaScript */
        position: fixed; /* Stay in place */
        z-index: 1; /* Stay on top */
        top: 0; /* Stay at the top */
        left: 0;
        background-color: #ffffff; /* Black*/
        overflow-x: hidden; /* Disable horizontal scroll */
        padding-top: 60px; /* Place content 60px from the top */
        transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
      }
      
      /* The navigation menu links */
      .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s;
      }
      
      /* When you mouse over the navigation links, change their color */
      .sidenav a:hover {
        color: #f1f1f1;
      }
      
      /* Position and style the close button (top right corner) */
      .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
      }
      
      /* Style page content - use this if you want to push the page content to the right when you open the side navigation */
      #main {
        transition: margin-left .5s;
        padding: 20px;
      }
      
      /* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
      @media screen and (max-height: 450px) {
        .sidenav {padding-top: 15px;}
        .sidenav a {font-size: 18px;}
      }

@media screen and (max-width: 1380px) and (min-width: 200px) {
    .container_all{
        gap: 5em;
        font-size: 12px;
    }
    .right_container{
        gap: 10em;
    }
    .left_container{
        gap: 5em;
    }
    .popular_container{
        display: none;
    }

    .post_container{
        width: 60%;
    }

    .user_box{
        display: none;
    }

    .categorie_container{
        width: 25%;
    }

    .post_button_width_resize{
        display: block;
       
    }

    .post_button{
        display: none;
    }

    .dropdown{
        position: relative;
        display: inline-block;
    }


    .form_container{
        width: 95%;
    }

    .Title_input{
        width: 25em;
    }

    form .content_input{
        width: 25em;
    }

    .checkbox-container{
        width: 40%;
        height: 40px;
    }

    .checkmark {
        position: absolute;
        top: 5px;
        left: 10px;
        height: 30px;
        width: 30px;
        background-color: #eee;
        border-radius: 15px;
        transition: background-color 0.3s;
        /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
    }

    .open-sidenav{
        display: none;
    }
    
}

@media screen and (max-width: 880px) {
    .container_all{
        gap: 5em;
    }
    .right_container{
        gap: 5em;
    }
    .login_box a p {
        display: none;
    }



    .categorie_container{
        display: none;
    }

    .sidenav .categorie_container{
        display: block;
        width: 100%;
    }
    .post_container{
        width: 80%;
    }

    .open-sidenav{
        display: inline;
    }




}


@media screen and (max-width: 1920px) and (min-width: 1380px) {
  .Profile_image{
    top: 105px;
  }

  .sidenav{
    display: none;
  }

  .disconnect_statut, .connect_statut {
    top: 80px;
  }

  .banner_user_info{
    height: 15vh;
  }

  .open-sidenav{
    display: none;
  }
}

@media screen and (max-width: 600px) {
    .container_all{
        gap: 5em;
        font-size: 12px;
        width: 100%;
    }

    .right_container{
        gap: 5em;
    }

    .logout_box p{
        display: none;
    }
    
    .user_img{
        display: none;
    }

    .left_container{
        gap: 3em;
    }

    .popular_container{
        display: none;
    }

    .post_container{
        width: 30em;
    }

    .user_box{
        display: none;
    }

    .categorie_container{
        width: 25%;
    }

    .post_button_width_resize{
        display: block;
       
    }

    .post_button{
        display: none;
    }

    .dropdown{
        position: relative;
        display: inline-block;
    }
    .home_box a p {
        display: none;
    }

    .home_box{
        width: auto;
    }

    .user_img{
        display: block;
    }

    .form_container{
        width: 95%;
    }

    .Title_input{
        width: 25em;
    }

    form .content_input{
        width: 25em;
    }

    .checkbox-container{
        width: 40%;
        height: 40px;
    }

    .checkmark {
        position: absolute;
        top: 5px;
        left: 10px;
        height: 30px;
        width: 30px;
        background-color: #eee;
        border-radius: 15px;
        transition: background-color 0.3s;
        /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); */
    }

}