body
{
    font-family: "3DS Fonticon", sans-serif;
    font-size-adjust: inherit;
    font-size: medium;
    margin: 0px;
}

.heading
{
    position: fixed;
    display: inline-flex;
    color: white;
    background-blend-mode: multiply;
    background: transparent url("../media/header.jpg");
    margin: 0;
    height: 70px;
    padding: 0 0 0 0;
    align-items: center;
    width: 100%;
    overflow: visible;
    top: 0;
    z-index: 3;
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.1),4px 6px 10px 4px rgba(0, 0, 0, 0.15);
}

.heading h1
{
    height: auto;
    padding: 0;
    margin-bottom: 0;
    margin-top: 0;
    width: 25%;
    position:inherit;
    display: inline-block;
    margin-left: 20px;
}

#storage-info {
    position: relative;
    display: inline-block;
    font-size: large;
    right: 20px;
    top: 10px;
    overflow-x: hidden;
}

.file-manager {
    height: calc(100% - 70px);
    background: azure;
    position: fixed;
    top:70px;
    margin:0;
    transform-origin: right;
    width: 50%;
    overflow-y: scroll;
}

.file
{
    padding: 15px 15px 15px;
    transition: 0.2s linear;
    width: 50vw;
    height: fit-content;
    overflow-x: fragments;
    display: flex;
    vertical-align: middle;
    -webkit-animation: fadein 1s;
}

@-webkit-keyframes fadein
{
    from { opacity: 0; }
    to   { opacity: 1; }
}

.file:hover
{
    background: rgba(55, 246, 240, 0.4);
    cursor: pointer;
}

.file.active
{
    background: rgba(55, 246, 240, 0.4);
}

#text-editor
{
    display: inline-block;
    horiz-align: right;
    position: fixed;
    right: 0;
    height: calc(100vh - 70px);
    width: 50%;
    transform-origin: right;
    top: 70px;
}

#text-editor .sidePanelOpen
{
    width: 40vw;
    transition: width 200ms ease-in-out;
}

#text-area
{
    position: inherit;
    height: calc(100vh - 100px - 50px);
    width: inherit;
}

.button-bounding-box
{
    display: inline-flex;
    position: fixed;
    right: 15px;
}

.button{
    position: relative;
    border: none;
    padding: 10px;
    font-size: large;
    border-radius: 5px;
    transition: 0.2s linear;
    display: inline-block;
    margin-left: 20px;
}

.button:hover{
    background: coral;
    cursor: context-menu;
    border: none;
}
.button:active{
    border:none
}

.context-menu {
    position:fixed;
    z-index:1;
    width:150px;
    background:rgba(100, 100, 100, 0.8);
    color: rgba(0, 0, 0, 0.8);
    border-radius:1px;
    transform:scale(0);
    transform-origin:top left;
}
.context-menu.active {
    transform:scale(1);
    transition:transform 200ms ease-in-out;
}
.context-menu .item {
    padding:8px 10px;
    font-size:15px;
    color:#eee;
}
.context-menu .item:hover {
    background:#555;
    cursor:pointer;
}
.context-menu .item i {
    display:inline-block;
    margin-right:5px;
}
.context-menu hr {
    margin:2px 0px;
    border-color:#555;
}

#file-info
{
    position: relative;
    display: inline-block;
    padding: 10px;
    align-content: stretch;
    width: available;
    height: available;
    top: calc(100vh - 70px - 75px);
}

.fileSize
{
    position: absolute;
    display: inline-block;
    right: 20px;
    background: transparent;
    margin: 0;
}

#progress-bar
{
    height: 20px;
    -webkit-appearance: none;
    appearance: none;
    background-color: #f1f1f1;
    width: 90%;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25) inset;
}

.progress
{
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: large;
}

/* Popup style definitions */

.popup {
    display:none;
    position: fixed; /* Stay in place */
    z-index: 4; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    transition: fade-in 0.2s linear;
}
.popup-header
{
    padding: 2px 16px;
    background-color: rgba(87, 87, 87, 0.16);
    background-blend-mode: multiply;
    background-image: url("../media/header.jpg");
    background-position: right;
    color: white;
}

.popup-body {
    padding: 2px 16px;
}

.popup-footer {
    padding: 2px 16px;
    background-color: rgba(87, 87, 87, 0.16);
    background-blend-mode: multiply;
    background-image: url("../media/header.jpg");
    background-position: left;
    height: 30px;
    color: white;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.download-popup {
    position: relative;
    top: 25%;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 50%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0, 0, 0, 0.19);
    animation-name: animatetop;
    animation-duration: 0.4s;
}

#close, #close-about{
    color: #ffffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#close:hover, #close-about:hover,
#close:hover, #close-about:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

@media only screen and (max-width: 800px) {

    #storage-info {
        display: none
    }

    .fileSize{
        display: none
    }
}

#about {
    font-family: georgia,garamond,serif;font-size:35px;
    margin-left: 28px;
    margin-right: 15px;
}

#about:hover {
    cursor: pointer;
    color: #004484;
}

.about {
    display: block;
    width: 40%;
    height: fit-content;
}

#aboutPopup {
    position: absolute;
    horiz-align: center;
    display: none;
}

.about-popup {
    display: inline;
}

