html, body {
    padding: 0;
    margin: 0;
    outline: 0;
    border: 0;
    font-family: Raleway,sans-serif;
}

.header {
    padding-top: 5px;
    padding-bottom: 5px;
    width: 100%;
    height: 50px;
    display: flex;
    font-weight: bold;
    border-style: solid;
    border-width: 0 0 1px 0;
    border-color: #eee;
}

.header a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Nunito Sans,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
    text-decoration: none;
    color: rgb(100, 116, 139);
    font-size: 1.25rem;
    font-weight: 500;
    text-transform: capitalize;
}

.header a:first-child {
    margin-left: 10px;
}

.header a:last-child {
    margin-right: 10px;
}

.header a img.logo {
    max-height: 40px;
}

.dim:hover {
    opacity: .5;
}

.cta {
    color: #4099de;
    align-self: center;
    margin-left: auto;
    text-decoration: none;
}

h1 {
    margin: 0;
}

.folder-name {
    color: #252d37;
    margin-bottom: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-left: 10px;
}

.cut-text {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 200px;
    white-space: nowrap;
}

.folder-name svg{
    margin-top: 5px;
    margin-right: 10px;
}

.container {
    width: 95%;
    margin: auto;
    margin-bottom: 50px;
}

.file-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    color: #4a4a4a;
    font-weight: bold;
    display: table-header-group;
}

.table-header a, .table-header a:visited, .table-header a:hover, .table-header a:active{
    text-decoration: none;
    color: #4a4a4a;
}

.table-row {
    display: table-row;
    border-width: 0 0 1px 0;
    border-color: #ddd;
    border-style: solid;
}

.table-cell {
    display: table-cell;
    padding: 10px;
    vertical-align: middle;
}

.noselect {
    user-select: none;
}

.thumbnail {
    width: 50px;
    text-align: center;
    position: relative;
}

.thumbnail img {
    position: absolute;
    height: 35px;
    vertical-align: middle;
    opacity: 0;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transition: opacity 0.2s;
}

.thumbnail svg {
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.thumbnail.loaded svg {
    display: none;
}

.thumbnail.loaded img {
    opacity: 1;
}

.table-row-hover:hover {
    background: #f6f6f6;
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,.8);
    transition: visibility 0.2s linear, opacity 0.2s linear;
    visibility: hidden;
    opacity: 0;
    overflow: auto;
    z-index: 999;
}

.overlay-container {
    background: rgba(0,0,0,.8);
    display: flex;
    justify-content: center;
    border-radius: 5px;
    box-shadow: 5px 5px 20px black
}

.show-overlay {
    visibility: visible;
    opacity: 1;
}

.loader {
    display: none;
    width: 60px;
    height: 15px;
}

.preview {
    display: none;
    width: 50%;
    padding: 20px;
}

.absolute-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.file-name {
    position: absolute;
    color: white;
    top: 10px;
    left: 20px;
    margin: 0;
    text-shadow: 2px 2px 2px black;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: 80%;
}

.file-actions {
    background: rgba(0,0,0,.8);
    display: flex;
    border-radius: 5px;
    box-shadow: 5px 5px 20px black;
    position: absolute;
    top: 10px;
    right: 20px;
    padding: 10px;
    gap: 10px;
}

.file-download {
    display: none;
}

.button {
    height: 24px;
}

.button:hover svg {
    stroke: #4099de;
}

body.preview-open {
    position: fixed;
    overflow-x: hidden;
    overflow-y: scroll !important;
    width: 100%;
}

.previous, .next {
    position: fixed;
    top: 0;
    bottom: 0;
    margin: auto;
    background: rgba(0,0,0,.8);
    box-shadow: 5px 5px 20px black;
    color: white;
    height: 50px;
    border-radius: 50%;
    width: 50px;
    text-align: center;
    cursor: pointer;
    display: none;
    z-index: 99999;
}

.previous {
    left: 20px;
}

.next {
    right: 20px;
}

.previous svg, .next svg {
    fill: white;
}

.previous:hover svg, .next:hover svg {
    fill: #4099de;
}

.pagination {
    padding: 10px;
    display: flex;
    justify-content: space-between;
}

.pagination a, .pagination .disabled, .pagination .active {
    text-decoration: none;
    font-size: 14px;
    padding: 10px 20px;
    border-width: 0 1px 0 0;
    border-color: #ddd;
    border-style: solid;
    background: none;
    cursor: pointer;
    color: black;
}

.pagination .disabled {
    cursor: not-allowed;
}

.pagination .active {
    cursor: not-allowed;
    color: #4099de;
}

.pagination a:hover, .pagination a:visited, .pagination a:active {
    color: black;
}

.pagination a:hover {
    background: #f6f6f6;
}

.pagination .pages a:last-child{
    border: 0;
}

.pagination .pages {
    display: flex;
}

.pagination .pages .active {
    color: #4099de;
}

.mr-5 {
    margin-right: 5px;
}

.no-files {
    padding: 20px;
    width: 100%;
    text-align: center;
}

.infinityload {
    width: 100%;
    display: none;
}

.infinityload .loader {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
}

.infinity-page {
    position: fixed;
    bottom: 10px;
    right: 10px;
}

.pages-details {
    margin-top: 10px;
}

@media only screen and (max-width: 1080px) {
    .preview {
        width: 80%;
    }

    .file-info {
        font-size: 12px;
    }
}

@media only screen and (max-width: 600px) {
    .hide-600 {
        display: none;
    }

    .pagination {
        flex-direction: column;
        align-items: center;
    }
}

@media only screen and (max-width: 450px) {
    .hide-450 {
        display: none;
    }

    .cut-text {
        font-size: 12px;
        word-wrap: anywhere;
        white-space: normal;
    }

    .pagination a, .pagination .active {
        padding: 10px 10px;
    }
}