html {
    width: 100%;
    height: 100vh;
    padding: 0;
    box-sizing: border-box;
}
body {
    display: flex;
    width: 100%;
    height: 100vh;
    padding: 0;
    box-sizing: border-box;
    zoom: 75%;
    flex-direction: column;

}
.wrapper {
    display: flex;
    min-height: 135vh;
    flex: 1;
}

a:hover {
    text-decoration: underline !important;
}


.container {
    display: flex;
    flex-direction: column;
    position:relative;
    min-height: 100vh;
    box-sizing: inherit;
    min-width: 500px;

    overflow: hidden;

}

.header {
    display: flex;
    flex-direction: row;
    margin-inline: 2vw;
    margin-top:60px;
    margin-bottom: 10px;
    justify-content: space-between;
    align-items: center;
    border: #D9D9D9 1px solid;
    padding-block: 15px;
    padding-inline: 3.5%;
    border-radius: 15px;
    box-shadow:0px 2px 10px -4.5px gray;
    color: #5E5E5E;
    gap: 50px;

}



.header p {
    margin: 0;
}

h5 {
    font-size: 18px;
    margin: 0;
    
}

.item-count {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-left: 35px;
    margin-bottom: 50px;
}

.sort {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex: 1;
    gap: 10px;
    align-items: center;
}

.sort input{
    width: 100%;
    border: none;
    padding-block: 5px;
    border-radius: 5px;
    padding-left: 10px;

}

.sort input:focus {
    border: none !important;
    outline: 1px solid #dddddd;
}

.sort button {
    background-color: #2E3D96;
    color: white;
    width: 150px;
    height: 35px;
    border: none;
    border-radius: 8px;
    padding: 0;
    margin: 0;


}

.sort button:hover {
    background-color: #2E3D96;
    box-shadow: 0px 2px 5px #a5a5a5;

}
.sort button:active {
    background-color: #222e73;
}


.document-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    padding-inline: 30px;
    overflow-y: auto;
    min-width: 50px;
    overflow: auto;

}

#item {
    background-color: white;
    width: 100%;
    padding-inline: 10px;
}


#item p {
    margin: 0px;
    word-break: break-word;
}

#item a {
    color: black;
    text-decoration: none;
}

.doc-header {
    margin-bottom: 3px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 100px;
}
.doc-header h5:hover {
    text-decoration: underline !important;
}

.tag {
    display: flex;
    flex-direction: row;
    gap: 5px;
    color: #1F1F1F ;
}




.upload-button {
    position: relative;
    width: 200px;
    border-radius: 7px;
    height: auto;
    background-color:#2E3D96 ;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 10px;
    margin-left: auto;
    transition: background-color  0.2s ease, transform 0.2s ease ;
    margin-block: 50px ;
    cursor: pointer;
   

}

.upload-button:hover {
    background-color: #2E3D96;
    box-shadow: 0px 2px 5px #a5a5a5;
}
.upload-button:active {
    background-color: #222e73;
}
.upload-button p {
    margin: 0;
    color: white;
    font-weight: 400;
}



.nav-container {
    background-color: white;
    width: 275px;
    height: 100% ;
    z-index: 4;
    box-shadow: 12px 0px 20px  #e8e8e8;
    z-index: 100;
    left: 0;
    top: 0;
    position: relative;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    flex-shrink: 0;
    transition: width  0.4s ease, transform 0.5s ease !important ;

}

.check {
    display: flex;
    gap: 3px;
}


.back {
    display: flex;
    justify-content: end;
    padding: 10px;
    font-weight: bold;
    
}
.index {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-inline: 25px;
    margin-top: 20px;
    
    position:absolute;
    background-color: white;
    padding-top: 20px;

    width: inherit;

} 

.index a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2E3D96;
    font-weight: 500;
}

.index p {
    margin: 0;
    margin-bottom: 1px;
}

.filter {
    margin-top: 15px;

}


.filter h4 {
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 30px;
    color: #222e73;
    font-weight:600;
}

.filter p {
    text-align: end;
    margin-right: 10%;
    text-decoration: underline;
    color: #9D9D9D;
}

.filter-container{
    margin-inline-start: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
}
.filter-container .items {
    margin-top: 5px;
    margin-inline-start: 10px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.nav-container hr {
    margin: 0;
    transform: translateX(-10px);
} 

.filter-container span {
    margin: 0;
    cursor: pointer;

}

.check:hover {
    margin: 0;
    cursor: pointer;
    text-decoration: underline !important;
}

#clear {
    cursor: pointer;
}

a {
    text-decoration: none;
}

.tags {
    display: flex;
    gap: 10px;
    justify-content: center ;
    flex-wrap: wrap;
    padding-inline: 15px;
    margin-bottom: 30px;
    border: 1px solid #9D9D9D;
    padding-block: 15px;
    border-radius: 10px;
    margin-inline: 20px;

}

.tags .tags-items {
    background-color: white ;
    padding-inline: 5%;
    color:  #2E3D96;
    padding-block: 1%;
    border-radius: 100px;
    border: 1px solid  #2E3D96 ;
    box-shadow: 0px 2px 5px #a5a5a5;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.tags-items img {
    padding-left: 10px;
    margin: 0;
}

.tags-items p {
    margin: 0;
    padding-left: 5px;
    color: #2E3D96;
    text-decoration: none ;
}

.apply-container {
    display: none;
    flex-direction: column;
}

.apply-container p {
    margin-block: 0;
}

.apply {
    background-color: #2E3D96;
    box-sizing: border-box;
    border-radius: 5px;
    margin-left: auto;
    text-align: center;
    padding-inline: 20px;
    padding-block: 2px;
    display: block;
    color: white !important;
    text-decoration: none !important ;
}

img {
    cursor: pointer;
}

.apply:hover {
    background-color: #2E3D96;
    box-shadow: 0px 2px 5px #a5a5a5;
    cursor: pointer;
}
.apply:active {
    background-color: #222e73;
}

.clear {
    padding-right: 10px;
    padding-top: 5px;
    display: none;
}

#delete-tags {
    cursor: pointer;
}

button.logout {
    color: red;
    width: max-content;
    transform: translateX(-4.5px) !important;
    background-color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    font-weight: 600;

}
button.logout:hover {
    color: rgb(236, 0, 0);
    text-shadow: 0px 0px 5px #d8d8d8;
    text-decoration: underline;
}



footer {
    background-color:#1F1F1F;
    height: auto;
    width: 100%;
    position:inherit;
    bottom: 0;
    margin-top: auto;
    padding: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    z-index: 100;


}

footer .foot-container {
    display: flex;
    flex-direction: column;
    color: #d7d7d7;
    width: 25%;
    height: 100%;
    align-items: start;
    justify-content: start;
    gap: 10px;
}

footer .foot-container hr {
    margin-block: 5px;
    margin-top: 1px;
}

footer .foot-container h5 {
    font-size: medium;
    margin: 0;
}
footer .foot-container p {
    font-size: small;
    margin: 0;
}

footer .foot-container .sub-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
}
footer .foot-container .sub-container a :hover {
    opacity: 80%;
}

.filter-white {
    filter: invert(96%) sepia(0%) saturate(187%) hue-rotate(218deg) brightness(90%) contrast(95%);
}

.rotate {
    transform: rotate(180deg);
}

img#drop {
    transition:0.3s ease-out;
    padding: 5px;
    padding-top: 10px;
    border-radius: 50px;
}

img#drop:hover {
    background-color: #e8e8e8;
}

.page-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.page {
    background-color: white;
    width: 60%;
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.num-container {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 60%;
}

.num-container p {
    margin:0    ;
}

.logo-container {
    display: flex;
    flex-direction: row;
    height: 100px;
    justify-content: space-between;
    /* padding-left: 25px; */
    align-items: center;
}

@media (max-width:820px) {
    
    .container {
        min-width: 700px !important;
    
    }
    .document-list {
        min-width: 640px !important;
    }
    #item {
        min-width: 560px !important ;
    }
    .page-container {
        padding-inline: 50px !important;
    }
    footer {
        min-width: 1000px !important;
    }

}

@media (max-height:700px){
    .wrapper {
        min-height: 950px !important;
    }
}

.block {
    color: #808080;
    cursor:default;
}
.block:hover {
    text-decoration: none !important;
    cursor:default !important;
}

.img-block {
    filter: invert(56%) sepia(0%) saturate(3323%) hue-rotate(54deg) brightness(92%) contrast(83%);
}

.thainame {
    color: gray;
    margin-bottom: 5px !important;
}

.authorsname {
    color: #2E3D96;
}
.conference-line {
  display: flex;
  flex-wrap: wrap;   /* หรือ nowrap ถ้าคุณต้องการให้มันไม่ตัดบรรทัดเลย */
  gap: 4px;
  align-items: center;
}

.conference-line p {
  display: inline;
  margin: 0;
}
.tagdiv {
    margin-block: 10px;
}

#name {
    font-weight:bolder;
}

.edit-button {
   background-color: #2E3D96;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.edit-button:hover {
    background-color: #2E3D96;
    transform: translateY(-2px);
}

.edit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}