/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.post__title, .post__body {
    text-wrap: wrap;
    overflow-wrap: break-word;
    white-space: normal;
    word-break: normal;
    hyphens: none;
}
.post {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0 50px;
    border-radius: 35px;
}

.post__header {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.post__header img {
    border-radius: 50%;
}

.author {
    display: flex;
    flex-direction: column;
    padding: 0 16px;
}

.pseudo {
    font-size: 1.2rem;
    word-break: break-all;      /* coupe au milieu des mots */
    overflow-wrap: break-word;
    white-space: normal;
    display: inline-block;
    max-width: 100%;
}


time {
    font-size: 0.8rem;
    color: gray;
    white-space: nowrap;     /* garde la date entière sur une ligne */
    word-break: normal;
}

.post section {
    border-bottom: 1px solid #ddd;

}

.post__title {
    padding: 0;
    margin: 0;
}

.post__body {
    line-height: 1.6;
}

.post__header, .post__footer, .reactions {
    padding: 1rem 0;
    margin: 0;
}

.see-more {
    color: gray;
}

.reactions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}

.total-reactions {
    display: inline-flex;
    align-items: center;
    cursor:pointer;
}

.interact {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 30px;
    padding: 0;

}

.reaction-container {
    padding: 0;
    margin: 0;
    width: 70%;
    height: 100%;
}

.reaction {
    font-size: 20px;
    transition: font-size 0.25s;
}

.reaction:hover {
    font-size: 25px;
    cursor: pointer;
}

.interact button {
    background: white;
    border: none;
    display: inline-flex;
}

.post svg + span {
    padding-left: 0.5rem;
}

.premium img {
    border: 2px solid #e0a000;
}

.premium .pseudo {
    color: #e0a000;
    font-weight: bold;
}

.pinned svg {
    display: block;
    width: 24px;
}

article.post, section.comment-section {
    margin:20px 0;
}

.reaction-popup {
    display:none;
    flex-direction: column;
    background: #f5f5f5;
    width:1000px;
    height:60vh;
    position:fixed;
    left:calc(50% - 500px);
    border-radius:30px 30px 0 0 ;
    justify-items:right;
    transition: top 0.1s ease-in-out;
    box-sizing: border-box;
    border: 1px solid black;
    font-size: 20px;
    overflow-y:scroll;
    z-index: 888;
}
.reaction-popup h2 {
    margin-top: 30px;
    text-align:center;
}

.reaction-user-row {
    border-bottom: 1px lightgray solid;
    padding:10px 0;
    display:flex;
    align-items: center;
    flex-direction: row;
    min-width:80%;
}
.reaction-user-row img {
    margin: 0 15px;
}

.reaction-profile-pic {
    width:30px;
    border-radius:50%;
}

.close-reaction-popup {
    position:absolute;
    top:35px;
    left:calc(100% - 60px);
    color:black;
    cursor:pointer;
}

.reaction-popover-container {
    border:1px solid black;
    border-radius:20px;
    background:var(--cb-red);
    opacity:0.8;
    overflow:hidden;
    position: fixed;
}
button.reaction {
    background:none;
    border:none;

}
.react-button {
    display:inline-flex;
    flex-direction: row;
}
.react-button span {
    display:flex;
    flex-direction: row;
}

.reaction-popover-container {
    transition : display 0.3s ease-in-out;
}

.reaction-destination table {
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    height:45vh;
}

.fetched-reactions table {
    width: 100%;
}

.reaction-destination {
    display:flex;
    flex-direction:column;
    justify-content: center;
    align-items: center;
}
.reaction-destination > .fetched-reactions, .reaction-destination > .reaction-by-type {
    flex:1;
}

.reaction-by-type {
    position:fixed;
    top:95%;
}

/* Overlay sombre */
.non-commenters-popup-overlay, .non-reacters-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background:transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Conteneur de la popup */
.non-commenters-popup, .non-reacters.popup {
    background: #fff;
    max-width: 90%;
    width: 400px;
    max-height: 80vh;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    position: relative;
    font-family: sans-serif;
}

/* Bouton de fermeture */
.non-commenters-popup-close, .non-reacters-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}


.reaction-table-body{
margin: 0 auto;
}

.reaction-by-type {
    display:flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.sort-reaction, .btn-non-reacters {
    background:rgb(0,0,0,0.1);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    font-size: 18px;
    border:none;
    padding: 5px 8px;
    cursor:pointer;
    margin:0 5px;
}


.sort-reaction:hover, .btn-non-reacters:hover {
    background:rgb(0,0,0,0.3);
}

.btn-non-reacters {
    font-size: 15px;
}
.reaction-destination:last-child {
margin-bottom:15px;
}

button.btn-not-commenters {
    background:none;
    color:black;
    font-size: 16px;
}

.reaction-by-type {
    border-radius: 12px;
    padding: 3px 5px;
}

@media only screen and (max-width: 1200px) {
    .main-forum {
        padding:0 10%;
    }
    article.post, section.comment-section {
        margin: 10px 0 ;
    }
    .reaction-popup {
        width:600px;
        left:calc(50% - 300px);
    }
}
@media only screen and (max-width: 850px) {
    .main-forum{
        padding:0 20px;
    }
    article.post, section.comment-section {
        margin: 10px 0 ;
    }
    .reaction-popup {
        width:100vw;
        left:0;
    }
    .reaction-popup h2 {
        font-size: 20px;
    }
    .span-newpost {
        display:none;
    }
}

