@font-face {
    font-family: 'Montserrat';
    src: url(../assets/Montserrat-Thin.ttf) format('truetype');
}

@keyframes shine {
    from {
        background-position: 200% center;
    }
}

.files {
    margin: 0 15px 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    align-content: stretch;
    row-gap: 7px;
}

.file, .file-header {
    padding: 2px 3px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    align-content: space-around;
}

.file-name {
    color: white;
    order: 0;
    overflow: visible;
    white-space: nowrap;
}

.file > * {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    margin: 0 0;
}

.file-header > * {
    align-self: center;
    flex-basis: 30%;
}

.file > * {align-self: center;}
.file-name {flex-basis: 27%;}
.file-type {flex-basis: 25%;}
.file-size {flex-basis: 17%;}
.file-icon {flex-basis: 2%;}
.file-date {flex-basis: 27%;}

.file-icon {
    max-height: 30px;
    max-width: 30px;
}

.file {
    transition: background-color .1s ease-in, padding-top .12s ease-in, padding-bottom .12s ease-in;
    border-radius: 5px 5px;
    padding: 4px;
    height: 30px;
}

.file:hover {background-color: #90909049;}
.file:focus, .file:active, .file-active {
    padding-top: 6px;
    padding-bottom: 6px;
    background: linear-gradient(to right, #5d60ca78 20%, #17171778 35%, #17171778 35%, #5d60ca99 50%, #5d60ca99 50%, #af218878 75%, #5d60ca78 90%);
    background-size: 200% auto;
    animation: shine 10s linear infinite;
}

@keyframes scroll-text {
    from {transform: translateX(50%);}
    to {transform: translateX(-105%);}
}

.large-file-name {
    position: absolute;
    animation: scroll-text 10s linear infinite;
    width: max-content;
    height: max-content;
    margin: 0 0;
    transform: translateX(0%);
    animation-fill-mode: both;
    top: 4px;
}

.large-file-name-container {
    overflow: hidden;
    position: relative;
    margin: 0 0;
    padding: 0 0;
    width: 27%;
    height: 100%;
}