body {
    display: flex;
    justify-content: center;

    margin: 0;
}

.content-container {
    display: flex;
    width: 100%;
    margin-top: 100px;
    font-size: 0.9em;
    margin-bottom:20px;
    align-content: center;
}

.left, .right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

a:hover{
    font-weight: 600;
}

.active {
    font-weight: 600;
}

.text-container{
    padding:0 40px;
}

.archives {
    flex-basis: 60%;
    display: flex;
    gap: 50px;
    align-content: start;
    flex-direction: column;
    align-items: center;
}

.article{
    display: flex;
    width: 100%;
    background-color: rgb(255 255 255);
    border: 1px solid #b5b5b512;
    box-shadow: 5px 5px 10px 0px #0000001c;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    /*min-height: 500px;*/
}

.article-content{
    display:flex;
    /* width: calc(100% - 100px); */
    padding: 20px;
    flex-direction: column;
}

h2{
    margin: 20px 0 10px 0;
}

p {
    font-size:1em;
    margin:0 !important;
}

h3{
    font-size:1em;
    margin:10px 0 0 0 !important;
}


.info {
    font-size:0.9em;
    font-weight:bold;
    padding-bottom: 20px;
}

.img {
    width: 100%;
    object-fit:contain;
}


.text {
    text-align: center;
}

.tags{
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 30px !important;
}

/* ARCHIVES POPUP*/

.archive-pop {
    
    margin-left: 20px;
    }

    .popup-hidden {
        display: none;
    }
    
    #popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(255 255 255 / 80%);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
    
    #popup-content {
        display: flex;
        width: 60%;
        font-size: 0.9em;
        background-color: white;
        padding: 50px 20px 20px 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        position: relative;
        flex-direction: column;
        gap: 15px;
        overflow: hidden;
    }
    
    #btn-close-popup {
        position: absolute;
        top: 10px;
        right: 10px;
        border: none;
        background: none;
        cursor: pointer;
        font-size: 24px;
        color: #333;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }
    
    .right-move {
        margin-left: 20px;
    }

    .image-upload {
        margin-top:30px !important;
    }

    .image-preview {
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px dashed #ccc;
        width: 100%;
        position: relative;
        padding-top: 56.25%;
        overflow: hidden;
    }
    .image-preview__image {
        max-width: 100%;
        max-height: 100%;
        display: block;
    }
    .image-preview__default-text {
        font-size: 210px;
        color: #ccc;
    }
    .tabs {
        display: flex;
        margin: 0;
        padding: 0;
    }
    .tab {
        cursor: pointer;
        color: #666;
        border-bottom: 2px solid transparent;
    }
    .tab.active {
    }

    .text-article{
        /*height: 200px !important;*/
    }
    .content {
        display: flex;
        margin: 0;

        gap: 15px !important;
        flex-direction: column;
    }
    /*.text-article, */.content textarea {
        min-height: 150px;
        overflow-y: auto;
        resize: none;
    }

    .button-container{
        display:flex;
        gap:20px;
        margin-top:20px;
        justify-content: flex-end;
    }
    .actions {
        /* margin-top: 10px; */
        text-align: right;
    }
    .actions button {
        padding: 5px 10px;
        margin-left: 5px;
    }

/*header*/
.article-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
}

.article-id {
    font-weight: bold;
    color: #8b8b8b;
}

/*PAGINATION*/

.pagination {
    list-style: none;
    text-align: center;
    padding: 0;
}

.pagination li {
    display: inline;
    margin: 5px;
}

.pagination li a {
    text-decoration: none;
    color: black;
    padding: 8px 12px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

.pagination li a:hover, .pagination li.active a {
    background-color: #cccccc;
}

.pagination li.active a {
    font-weight: bold;
    color: #333;
}

.article-content:not(:checked) {

}
.article-content:checked {
}


@media (max-width: 1100px) {
    .left {
        display: none;
    }

    .right {
        display: flex;
        flex-direction:row;
        flex: 0;
        justify-content: center;
    }

    .archives{
        width:100vw;
    }

    .article-content {
        display: flex;
        width:100%;
        padding: 0;
        flex-direction: column;
    }

    .article{
        padding:20px;
        width: calc(100vw - 100px);
    }

    .content-container {
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-end;
        margin-top: 60px;
        align-items: center;
        gap: 20px;
        text-align: left;
        /* width: 100%; */
    }

    .text-container{
        padding: 0;
    }


}

