@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

html {
    --main-color: #997420;
    background-color: #1d1d1d;
    color: white;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
}

main {
    background-color: #2b2b2b;
    border-radius: 15px;
    margin: auto;
    width: 80%;
    padding: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.submit {
    background-color: var(--main-color);
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.241);
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
}

.submit:hover {
    filter: brightness(75%);
}

form {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: space-evenly;
}

input {
    margin: 20px;
    color: white;
    font-size: 20px;
    font-family: 'Roboto', sans-serif;
    background-color: #1d1d1d;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
    border-radius: 15px;
    padding: 5px;
    text-align: center;
    border: transparent;
}

label {
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 5px;
    margin-bottom: 5px;
}

h1 {
    text-align: center;
}

a {
    text-decoration: none;
    color: white;
}

a:link {
    text-decoration: none;
    color: white;
}

a:visited {
    text-decoration: none;
    color: white;
}

a:hover {
    text-decoration: none;
    color: white;
}

a:active {
    text-decoration: none;
    color: white;
}

#upload {
    width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}

#files_container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding: 10px;
}

.file {
    font-size: 16px;
    height: 190px;
    width: 190px;
    text-align: center;
    background-color: #202020;
    margin: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.file > span{
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.file > span:hover{
    word-wrap: break-word;
    text-wrap: balance;
    width: 100%;
}

img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
}

#menu {
    width: 50%;
    position: fixed;
    top: 5px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    background-color: #3a3a3a;
    border-radius: 15px;
    padding: 10px;
    left: 50%;
    margin-left: -25%;
}

button {
    background-color: var(--main-color);
    font-size: 16px;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.241);
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 1);
    border-width: 0;
    color: white;
    line-height: 20px;
    margin: 0;
    padding: 10px;
    text-align: center;
    vertical-align: baseline;
    width: 190px;
}

button:hover {
    filter: brightness(75%);
}

.imgcontainer {
    max-height: 90px;
    cursor: pointer;
    max-width: 90px;
}

.messages {
    color: var(--main-color);
}

.shadow {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    width: 100%;
    height: 100%;
}

.popup {
    background-color: #303030;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 25px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    max-height: 80vh;
}

.popup>span {
    padding: 10px;
}

.popup_buttons {
    padding: 10px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.hidden {
    display: none;
}

#close_options {
    position: absolute;
    top: -2%;
    left: 93%;
    width: 50px;
    height: 50px;
}

#share_options {
    margin: auto;
    width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
}

#share_button {
    width: 200px;
}

#share_options>span {
    padding: 10px;
}

#delete_options {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    padding: 15px;
}

#name_options {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    padding: 15px;
}

#options_popup>hr {
    width: 100%;
}

.bar_container{
    margin-top: 10px;
    width: 500px;
    height: 20px;
    border-radius: 10px;
    background-color: #1d1d1d;
    overflow: hidden;
}

.loading_bar{
    width: 0%;
    height: 100%;
    background-color: var(--main-color);
}

#close_shared_links {
    position: absolute;
    top: -2%;
    left: 93%;
    width: 50px;
    height: 50px;
}

#shared_links_container{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

.shared_link_entry{
    display: flex;
    justify-content:space-between;
    align-items: center;
    text-align: center;
    padding: 15px;
    width: 90%;
}

.shared_link_link{
    display: inline-block;
    width: 20%;
    font-size: 14px;
}

.shared_link_expiration{
    display: inline-block;
    width: 20%;
}

.shared_link_filename{
    display: inline-block;
    width: 20%;
    line-break: anywhere;   
}

.shared_link_delete{
    display: inline-block;
    width: 20%;
}

#shared_links_popup{
    width: 80%;
    min-height: 300px;
    max-height: 800px;
}

#search{
    width: 80%;
    justify-content: center;
}

main{
    text-align: center;
}

#local_share_options{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
}

#local_share_span{
    margin: 10px;
}

#local_share_select{
    margin: 10px;
}

#local_share_button{
    margin: 10px;
}

.shared_file_entry{
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 15px;
}

.shared_file_reciever{
    display: inline-block;
    width: 30%;
}

.shared_file_filename{
    display: inline-block;
    width: 30%;
}

.stop_share{
    display: inline-block;
    width: 30%;
}

#shared_files_popup{
    height: 600px;
    overflow: visible;
    display: block;
    width: 800px;
}

#shared_files_popup > span{
    display: block;
    text-align: center;
}

#shared_files_container{
    width: 90%;
}

#close_shared_files {
    position: absolute;
    top: -2%;
    left: 93%;
    width: 50px;
    height: 50px;
}

#error_files_files{
    height: 600px;
    overflow: scroll;
}

#options_popup{ 
    max-height: 600px;
    display: block;
    width: 800px;
}

#media_right{
    position: absolute;
    top: 50%;
    left: 95%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
}

#media_left{
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
}

#media_close{
    position: absolute;
    top: -2%;
    left: 93%;
    width: 50px;
    height: 50px;
}

#media_download{
    position: absolute;
    top: 98%;
    width: 150px;
    height: 50px;
}

#media_container{
    width: 80vw;
    height: 70vh;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#media_container > video{
    max-width: 80%;
    max-height: 90%;
    border-radius: 10px;
}

#media_container > span{
    margin: auto;
    text-align: center;
}

#media_container > #bar_container{
    display: none;
}

#media_popup > span{
    word-wrap: break-word;
}

#delete_all_popup{
    min-width: 300px;
}

#no_modify_notification{
    width: 450px;
    text-align: center;
    display: block;
    margin:20px;
}

.shared_indicator{
    color: green;
    font-weight: bold;
}

.scroll{
    overflow-y: scroll;
    height: fit-content;
    max-height: 600px;
    text-align: center;
    width: 80%;
    margin: auto;
}

#shared_to{
    text-align: center;
}

.header_button {
    font-size: 16px;
    height: 36px;
    width: 200px;
    padding: 2px;
    margin: 5px;
    background-color: #303030;
    border-radius: 15px;
}

#color{
    margin: 5px;
    font-size: 16px;
    padding: 2px;
    width: 200px;
    height: 32px;
    border-radius: 15px;
    background-color: #303030;
}

#loading_status{
    margin-top: 10px;
}

header{
    position: fixed;
    top: 0;
    left: 2%;
    margin: 10px;
    display: none;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: fit-content;
}

#close_header{
    background-color:#303030;
    width: 35px;
    height: 35px;
    position: fixed;
    top: 5px;
    left: 5px;
    padding: 5px;
}

.shared_link_img{
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
}

.chart_container{
    width: 400px;
    height: auto;
}

#stats_container{
    display:flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;

}

#text_stats{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

#chart_stats{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
}

@media only screen and (max-width: 600px) {
    header{
        left: 6%;
    }
    .submit {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    input {
        font-size: 16px;
        margin: 10px;
    }
    
    label {
        margin: 10px;
    }
    .bar_container {
        width: 70vw;
    }
    #loading_status{
        width: 70vw;
    }
    #upload{
        width: 80vw;
    }
    form{
        width: 70vw;
    }
    #menu > button {
        width: 100px;
        font-size: 12px;
        margin-top:10px;
    }
    .file{
        width: 90%;
        height: 100px;
        flex-direction: row;
        overflow:hidden;
        flex-shrink: 0;
    }
    img{
        max-height: 80px;
    }
    .file > span{
        word-wrap: break-word;
        text-wrap: balance;
        width: 100%;
    }
    #menu {
        justify-content: space-evenly;
        flex-wrap: wrap;
    }
    .popup{
        width: 100%;
        height: 100%;
        max-height: 100vh;
    }
    #media_container > img{
        max-width: 75vw;
        max-height: 75vh;
    }
    #media_right{
        right: 2.5vw;
        left: auto;
    }
    #media_left{
        left: 2.5vw;
    }
    #media_download{
        top: auto;
        bottom: 2.5vh;
    }
    #media_close{
        top: 2.5vh;
        left: auto;
        right: 2.5vh
    }
    .imgcontainer{
        width: 125px;
        flex-shrink: 0;
        margin: 5px;
    }
    .options{
        width: min-content;
    }
    #options_popup{
        width: 100%;
        height: 100%;
        max-height: 100%;
        display: flex;
    }
    #close_options{
        top: 2.5vh;
        left: auto;
        right: 2.5vh
    }
    .scroll{
        max-height: fit-content;
        width: 100%;
    }
    #shared_links_popup{
        width: 100%;
        height: 100%;
        max-height: 100%;
    }
    .copy_share_link:hover{
        cursor: pointer;
        filter: brightness(75%)
    }
    .shared_link_img{
        width: 90px;
        height: 90px;
    }
    #close_shared_links{
        top: 2.5vh;
        left: auto;
        right: 2.5vh
    }
    .shared_link_entry > span{
        font-size: 12px;
    }
    .shared_link_delete{
        font-size: 12px;
    }
}