/* GENERAL */
html {
    box-sizing: border-box;
}
  *, *:before, *:after {
    box-sizing: inherit;
}

body {
    line-height: 1.3;
    font-family: "Urbanist";
    font-size: 17px;
    overflow-y:scroll;
    position: absolute;
    top: 0px;
    width: 100%;
    height: 100%;
}

body.dark-mode {
    filter:invert(1);
    background-color: #121212;
}

@font-face {
    font-family: "Urbanist";
    src: url(../assets/fonts/Urbanist-Light.ttf);
    font-weight: 400;
}

@font-face {
    font-family: "Urbanist";
    src: url(../assets/fonts/Urbanist-LightItalic.ttf);
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Urbanist";
    src: url(../assets/fonts/Urbanist-Regular.ttf);
    font-weight: 400;
}

@font-face {
    font-family: "Urbanist";
    src: url(../assets/fonts/Urbanist-Italic.ttf);
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Urbanist";
    src: url(../assets/fonts/Urbanist-SemiBold.ttf);
    font-weight: 600;
}

@font-face {
    font-family: "Urbanist";
    src: url(../assets/fonts/Urbanist-SemiBoldItalic.ttf);
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: "Urbanist";
    src: url(../assets/fonts/Urbanist-Bold.ttf);
    font-weight: 600;
}

@font-face {
    font-family: "Urbanist";
    src: url(../assets/fonts/Urbanist-BoldItalic.ttf);
    font-weight: 600;
    font-style: italic;
}


/* HEADER */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    height: 142px;
    z-index: 99;
}

.header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 25px 20px 25px;
    background-color: #fefefe;
    box-shadow: 0 1px 20px #121212;
    height: 100%;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.header-title {
    font-size: xx-large;
    cursor: pointer;
    width: 55%;
}

#view-nav-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 45%;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
}

#nav-dark-mode {
    background-image: url(../assets/img/contrast_24dp_000000_FILL0_wght400_GRAD0_opsz24.svg);
    width: 36px;
    height: 36px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 70% auto;
    cursor: pointer;
    border-radius: 4px;
}

.nav-item {
    display: none;
    cursor: pointer;
    line-height: 18px;
    padding: 10px;
    font-size: larger;
    align-content: center;
}

.nav-item.active {
    border-bottom: 1px solid #121212;
}

.nav-item.shown {
    display: block;
}

.header-sub-title {
    font-size: larger;
}


/* SECTION CONTAINER */
#section-container {
    position:relative;
    top: 170px;
}

.inner {
    padding:48px 32px;
}

.section {
    display: none;
}

.section.active{
    display: block;
}

.loading {
    margin-top: 15%;
    background-size: auto 90%;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url(../assets/img/loading-icon.svg);
}


/* HOME */
.home-inner {
    padding: 50px;
    display: flex;
    flex-direction: column;
    gap: 23px;
    overflow: auto;
    font-size: large;
    align-items: start;
}

.home-contact{
    border-bottom: 1px solid;
    cursor: pointer;
}

.home-upload-route{
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid;
    margin-top: 35px;
}


/* LIST VIEW */
.list-inner {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: end;
}

.list-download-all{
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    justify-content: end;
    width: 220px;
    font-size: larger;
}

.list-download-all-inner{
    border: 1px solid #121212;
    padding: 8px 24px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.list-header{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 26px;
    font-size: x-large;
    font-weight: bold;
    border-bottom: 2px solid #121212;
}

.list-header-preview{
    width: 10%;
    overflow-wrap: break-word;
    margin-left: 20px;
}

.list-header-name{
    width: 50%;
}

.list-header-size{
    width: 25%;
}

.list-header-download{
    width: 15%;
    overflow-wrap: break-word;
}

.file-list-item{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 30px;
    font-size: larger;
    height: 75px;
}

.file-list-item:not(:last-child){
    border-bottom: 1px solid #121212;
}

.file-list-preview{
    width: 10%;
    font-weight: bold;
    padding: 5px;
    margin-left: 20px;
}

.file-list-preview-image{
    background-repeat: no-repeat;
    background-size: auto 80%;
    background-position: left center;
}

.file-list-title{
    width: 50%;
    overflow-wrap: break-word;
}

.file-list-size{
    width: 25%;
}

.file-list-download{
    width: 15%;
}

.file-list-download-button{
    background-image: url(../assets/img/download_24dp_000000_FILL0_wght400_GRAD0_opsz24.svg);
    width: 36px;
    height: 36px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 70% auto;
    cursor: pointer;
    border-radius: 4px;
}

/* CARD VIEW */
.card-inner {
    padding: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 60px;
}

.card-download-all{
    display: flex;
    flex-direction: row;
    justify-content: end;
    width: 100%;
    font-size: larger;
}

.card-download-all-inner{
    border: 1px solid #121212;
    padding: 8px 24px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    width: 220px;
}

.file-card-item{
    padding: 20px;
    border: 1px solid #121212;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}

.file-card-preview{
    width: 260px;
    height: 200px;
    text-align: center;
    align-content: center;
    font-size: xxx-large;
}

.file-card-preview-image{
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.file-card-footer{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.file-card-info{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80%;
}

.file-card-title{
    overflow-wrap: break-word;
    font-weight: bold;
}

.file-card-download{
    background-image: url(../assets/img/download_24dp_000000_FILL0_wght400_GRAD0_opsz24.svg);
    width: 36px;
    height: 36px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 70% auto;
    cursor: pointer;
    border-radius: 4px;
}


/* FILE ICON */
.file-icon {
    background-size: auto 50%;
    background-position: center center;
    background-repeat: no-repeat;
}

.file-icon.icon-list {
    background-size: auto 80%;
    background-position: left center;
}

.hasViewer {
    cursor: pointer;
}

.hasViewer:hover {
    opacity: 0.33;
}

.file-icon.preview-image {
    background-image: url(../assets/img/image_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}

.file-icon.preview-svg {
    background-image: url(../assets/img/hallway_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}

.file-icon.preview-table {
    background-image: url(../assets/img/table_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}

.file-icon.preview-video {
    background-image: url(../assets/img/movie_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}

.file-icon.preview-audio {
    background-image: url(../assets/img/music_note_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}

.file-icon.preview-pdf {
    background-image: url(../assets/img/picture_as_pdf_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}

.file-icon.preview-text {
    background-image: url(../assets/img/description_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}

.file-icon.preview-code {
    background-image: url(../assets/img/code_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}

.file-icon.preview-archive {
    background-image: url(../assets/img/inventory_2_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}

.file-icon.preview-app {
    background-image: url(../assets/img/terminal_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}

.file-icon.preview-font {
    background-image: url(../assets/img/text_fields_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}

.file-icon.preview-file {
    background-image: url(../assets/img/file_present_48dp_000000_FILL0_wght400_GRAD0_opsz48.svg);
}


/* PASSWORD POPUP */
#password-popup-container{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 800;
    backdrop-filter: blur(4px);
}

#password-popup-container.active{
    display: flex;
}

#password-popup {
    padding: 48px;
    background-color: #fff;
    text-align: center;
    position: relative;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#password-popup-title{
    font-weight: 600;
    margin-bottom: 16px;
}

#password-popup-input-wrapper {
    display:flex;
    flex-direction: row;
    width: 100%;
}

#password-popup-input {
    width: 100%;
    margin-bottom: 10px;
}

#password-popup-input-visible{
    width: 20px;
    height: 22px;
    margin-left: -30px;
    cursor: pointer;
    background-image: url(../assets/img/visibility_off_24dp_FILL0_wght400_GRAD0_opsz24.svg);
    background-position: center center;
    background-repeat: no-repeat;
    filter: invert(1); 
    opacity: 0.5;
}

#password-popup-input-visible.active{
    background-image: url(../assets/img/visibility_24dp_FILL0_wght400_GRAD0_opsz24.svg);
    opacity:0.5;
}

#password-popup-confirm {
    padding: 12px 16px;
    cursor: pointer;
    background-color: #121212;
    color: #fff;
    border-radius: 4px;
    margin-top: 24px;
}


/* FILE VIEWER POPUP */
#file-popup-container{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 700;
    backdrop-filter: blur(4px);
}

#file-popup-container.active{
    display: flex;
}

#file-popup {
    padding: 25px;
    background-color: #fefefe;
    position: relative;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#file-popup-close{
    align-self: end;
    padding: 5px;
    cursor: pointer;
}

#file-popup-title{
    font-size: larger;
    font-weight: bold;
    margin-bottom: 6px;
    text-align: center;
}

#file-popup-sub-title{
    font-size: medium;
    margin-bottom: 35px;
    text-align: center;
}

#file-popup-content {
    margin: 12px;
    max-width: 75vw;
    max-height: 70vh;
    text-align: center;
}

.file-view-element {
    height: 100%;
    max-width: 100%;
}

#file-popup-download{
    background-image: url(../assets/img/download_24dp_000000_FILL0_wght400_GRAD0_opsz24.svg);
    width: 48px;
    height: 48px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 70% auto;
    cursor: pointer;
    border-radius: 4px;
    align-self: center;
}


/* POPUP */
#popup-container{
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(4px);
}

#popup-container.active{
    display: flex;
}

#popup {
    padding: 48px;
    background-color: #fff;
    text-align: center;
    position: relative;
    border-radius: 4px;
}

#popup-title{
    font-weight: 600;
    margin-bottom: 16px;
}

#popup-info {
    text-align: center;
}

#popup-confirm {
    padding: 12px 16px;
    cursor: pointer;
    background-color: #121212;
    color: #fff;
    border-radius: 4px;
    margin-top: 24px;
}