body {
    font-family: Arial, Helvetica, sans-serif;
    overflow: hidden;
}

#main {
    display: flex;
    flex-direction: column;
}

#menu {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#folders_menu {
    display: flex;
    flex-direction: row;
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 0px;
}

#folders_menu li {
    display: flex;
    padding: 5px;
    background: lightgray;
    border-radius: 5px;
    list-style: none;
}

#folders_menu a {
    text-decoration: none;
}

#folders_menu a:visited {
    color: black;
}

#content {
    display: flex;
    flex-direction: column;
}

#current_folder_content {
    display: flex;
    margin: 5px;
}

#folders_content {
    display: flex;
    flex-direction: column;
}

#folders_list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#folders_list a {
    text-decoration: none;
    color: black;
}

#folders_list a:visited {
    color: black;
}

#folders_title {
    display: flex;
    margin: 5px;
    font-weight: bold;
}

.folderDiv {
    display: flex;
    flex-direction: row;
    width: 230px;
    height: 40px;
    margin: 5px 5px 5px 5px;
    background-color: lightgray;
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
}

.folderIconDiv {
    display: flex;
}

.folderNameDiv {
    display: flex;
    padding-left: 10px;
    overflow: hidden;
    white-space: nowrap;
}

.folderNameDiv span {
    max-width: 100%;
}

#files_content {
    display: flex;
    flex-direction: column;
}

#files_title {
    display: flex;
    margin: 5px;
    font-weight: bold;
}

#files_list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#files_list a {
    text-decoration: none;
    color: black;
}

#files_list a:visited {
    color: black;
}

.fileDiv {
    display: flex;
    flex-direction: column;
    margin: 5px;
    padding: 10px;
    width: 280px;
    height: 280px;
    border-radius: 5px;
    background: lightgray;
}

.fileIconDiv {
    display: flex;
    justify-content: center;
}

.fileIcon {
    object-fit: cover;
    width: 256px;
    height: 256px;
}

.fileNameDiv {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    overflow: hidden;
    white-space: nowrap;
}

.fileNameDiv span {
    max-width: 100%;
}

#view_overlay {
    opacity:1;
    background-color:#ccc;
    position:fixed;
    width:100%;
    height:100%;
    top:0px;
    left:0px;
    z-index:500;
    display: none;
}

#view_overlay_toolbar {
    position:absolute;
    width:100%;
    height:32px;
    top:0px;
    left:0px;
    z-index:510;
    display: flex;
    justify-content: flex-end;

}

#view_overlay_image {
    position:absolute;
    width:100%;
    height:100%;
    top:0px;
    left:0px;
    z-index:505;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
}

#view_overlay_video_video {
    max-width: 100%;
     max-height: 100%;
}
#view_overlay_video {
    position:absolute;
    width:100%;
    height:100%;
    top:0px;
    left:0px;
    z-index:505;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: black;
}

#view_overlay_image_img {
    max-width: 100%;
     max-height: 100%;
}

#download_image img {
    margin: 10px;
}

#close_view_overlay img {
    margin: 10px;
}

.inactiveLink {
   pointer-events: none;
   cursor: default;
}

.fileDateDiv {
    flex-basis: 100%;
    margin: 5px;
    font-weight: bold;
}

.videoIcon {
    position: absolute;
    margin-right: -203px;
    margin-top: 5px;
}