@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

body {
    background-color: #232323;
    color: white;
    font-family: "Roboto", sans-serif;
}

.listing {
    display: flex;
    align-items: center;

    margin: 0;
    cursor: pointer;

    padding: 8px;

    /*background-color: #3c3c3c;*/

    justify-content: space-between;

    transition: background-color 150ms;

    user-select: none;

    border-bottom-style: solid;
    border-bottom-color: #3c3c3c;
    border-bottom-width: 1px;
}

.listing span {
    display: flex;
    align-items: center;
}

.listing img {
    margin-right: 5px;
}

.file-preview-overlay {
    display: flex;
    justify-content: center;
    align-items: center;

    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;

    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.file-preview-container {
    background: #232323;

    z-index: 10000;

    width: 80%;
    height: 80%;
}

.file-preview-topbar {
    z-index: 10001;

    display: flex;
    justify-content: space-between;
    align-items: center;
    
    padding-left: 15px;
    padding-right: 15px;
    height: 40px;

    user-select: none;

    background: #3c3c3c;
    top: 0; 
    left: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.file-preview-content {
    height: 90%;     /* hack to make it not flow */
    max-width: 100%;
    max-height: 90%; /* out of the container */
    overflow: auto;

    margin: 15px;
}

.hidden {
    display: none;
}

.listing:hover {
    background-color: #3c3c3c;
}

.topbar {
    position: fixed;
    z-index: 10001;

    display: flex;
    justify-content: space-between;
    align-items: center;
    
    padding-left: 15px;
    padding-right: 15px;
    height: 40px;

    width: 100%;
    user-select: none;

    background: #3c3c3c;
    top: 0; 
    left: 0;
}