*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,html {
    padding: 0;
    margin: 0;
    overflow: hidden;

    font-family: 'Outfit', sans-serif;
}

.files_content,
.files_content * {
    color: #f9f9fb;
}

.files_content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    width: 100%;
    height: 40vmin;
}

.files_top_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.375vmin;
    width: 100%;
    height: 5vmin;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
}

.files_header_icon {
    width: 75%;
    height: 75%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}

.files_return_to_parent_directory_button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    margin: 0.375vmin;
    height: 3.5vmin;
    aspect-ratio: 1 / 1;
    border-radius: 1vmin;
    transition: all 0.1s ease;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);
}

.files_return_to_parent_directory_button:hover {
    transform: scale(1.1);
}

.files_current_directory {
    display: block;
    overflow: hidden;

    margin: 0 0.375vmin;
    padding: 1vmin;
    height: 3.5vmin;
    line-height: 1.5vmin;
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    border-radius: 1vmin;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);

    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 1.4vmin;
}

.files_add_button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    margin: 0.375vmin;
    height: 3.5vmin;
    aspect-ratio: 1 / 1;
    border-radius: 1vmin;
    transition: all 0.1s ease;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);
}

.files_add_button:hover {
    transform: scale(1.1);
}

.files_main_content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;

    width: 100%;
    height: 100%;
    min-height: 0;
    flex: 1;
}

.files_content_sidebar {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;

    padding: 0 1vmin 2vmin;
    width: 30%;
    height: 100%;
    min-height: 0;
    border-radius: 0 0 1vmin 0;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);
}

.files_content_sidebar_title {
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 2vmin 0;
    width: 100%;
    height: 3vmin;
    border-radius: 1vmin;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);
}

.files_content_sidebar_list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;

    padding: 0.5vmin 1vmin;
    width: 100%;
    flex: 1;
    min-height: 0;
    border-radius: 1vmin;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);
}

.files_sidebar_content_directory {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    overflow: hidden;

    margin: 0.5vmin 0;
    padding: 0.375vmin;
    height: 3.5vmin;
    width: 100%;
    border-radius: 1vmin;
    transition: all 0.1s ease;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);
}

.files_sidebar_content_directory:hover {
    transform: scale(1.03);
}

.files_sidebar_content_directory_icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;

    margin-right: 0.5vmin;
    height: 2.5vmin;
    aspect-ratio: 1 / 1;
    border-radius: 1vmin;
}

.files_sidebar_content_directory_icon_svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}

.files_sidebar_content_directory_name {
    display: block;
    min-width: 0;
    flex: 1;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    line-height: 1.4vmin;
    font-size: 1.4vmin;
}

.files_content_main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow-y: auto;

    padding: 1vmin;
    height: 100%;
    flex: 1;
    min-height: 0;
}

.file_item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;

    width: 100%;
    padding: 0.5vmin 1vmin;
    height: 6.5vmin;
    border-radius: 1vmin;
    transition: all 0.1s ease;
}

.file_item:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

.file_item_icon {
    display: flex;
    justify-content: center;
    align-items: center;

    height: 5vmin;
    aspect-ratio: 1 / 1;
    border-radius: 1vmin;
    transition: all 0.1s ease;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);
}

.file_item_icon:hover {
    transform: scale(1.1);
}

.new_folder_icon_svg {
    width: 75%;
    height: 75%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}

.file_item_name {
    display: block;

    flex: 1;
    min-width: 0;
    margin-left: 1vmin;
    overflow: hidden;

    font-size: 1.4vmin;
    line-height: 6.5vmin;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file_item_delete_button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    margin-left: 0.5vmin;
    height: 3.5vmin;
    aspect-ratio: 1 / 1;
    border-radius: 1vmin;
    transition: all 0.1s ease;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);
}

.file_item_delete_button:hover {
    transform: scale(1.1);
}

.file_item_delete_button_icon {
    width: 75%;
    height: 75%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}

.text_file_name_input {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    width: 100%;
    height: 100%;
}

.text_file_name_input_area {
    display: flex;

    margin-bottom: 1vmin;
    padding: 1vmin;
    width: 50%;
    height: 5vmin;
    border-radius: 1vmin;
    outline: none;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);

    font-size: 3vmin;
}

.text_file_name_button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    margin: 0.5vmin;
    width: 50%;
    height: 2.5vmin;
    border-radius: 1vmin;
    transition: all 0.1s ease;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);
}

.text_file_name_button:hover {
    transform: scale(1.1);
}

.text_file_window {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    width: 100%;
    height: 100%;
}

.text_file_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    min-width: 0;

    padding: 1vmin;
    width: 100%;
    height: 5vmin;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);

    font-size: 3vmin;
    font-weight: 600;
}

.text_file_header > *:not(.text_file_header_controls) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.text_file_header_controls {
    display: flex;
    justify-content: space-between;
    align-items: center;

    height: 100%;
    width: contain;
    flex-shrink: 0;
}

.text_file_header_button {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;

    margin: 0.5vmin;
    height: 3vmin;
    aspect-ratio: 1 / 1;
    border-radius: 1vmin;
    flex-shrink: 0;

    transition: all 0.1s ease;

    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 0.0625rem solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 1vmin 3vmin rgba(0, 0, 0, 0.4);
}

.text_file_header_button:hover {
    transform: scale(1.1);
}

.text_file_header_icon {
    width: 75%;
    height: 75%;
    object-fit: cover;
    filter: brightness(0) invert(1);
}

.text_file_content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;

    width: 100%;
    flex: 1;
}

.text_file_content_area {
    padding: 1vmin;
    width: 100%;
    height: 100%;
    outline: none;
    white-space: pre-wrap;

    font-size: 2vmin;
}

.files_button_press_animation {
    animation: filesButtonPressAnimation 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes filesButtonPressAnimation {
    0% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1.1);
    }
}