:root {
    --base: #697373;
    --base2: #444444;
    --accent1: #004040;
    --accent2: #0b6363;
    --accent3: #666666;
    --text1: #000000;
    --text2: #ffffff;
    --subtext1: #BBB;
}

* {
    margin: 0px;
    border: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Roboto", Arial, Helvetica, sans-serif;
}

.subtext1 {
    color: var(--subtext1);
}

.bold {
    font-weight: bold;
}

.underline {
    text-decoration: underline;
}

.center {
    justify-self: center;
    text-align: center;
}

#content {
    background-color: var(--base);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px !important;
}

.noselect {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input {
    outline: none;
    padding-block: 2px;
    padding-inline: 3px;
}

textarea {
    padding: 5px;
    outline: none;
}

select {
    outline: none;
}

select>option {
    background-color: var(--accent2);
    color: var(--text2);
}

.selected {
    box-shadow: inset 0px 0px 10px var(--text2) !important;
}

.selected2 {
    border: 2px solid var(--text2) !important;
}

button, .button {
    background-color: var(--accent2);
    color: var(--text2);
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    padding-inline: 6px;
    padding-block: 3px;
    border-radius: 30px;
    width: fit-content;
    text-decoration: none;
}

.divc {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.divr {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.text1 {
    color: var(--text1);
}

.text2 {
    color: var(--text2);
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.pagetitle {
    color: var(--text2);
    letter-spacing: 1px;
}

.success {
    color: rgb(2, 99, 2);
    text-shadow: 0px 0px 6px rgb(112 233 36);
}

.error {
    color: rgb(99, 2, 2);
    text-shadow: 0px 0px 6px rgb(233, 36, 36);
}

.redb {
    background-color: red;
    box-shadow: 0px 0px 3px #afafaf;
}

.greenb {
    background-color: green;
    box-shadow: 0px 0px 3px #afafaf;
}

.window1 {
    background-color: var(--accent1);
    border: 2px solid var(--accent2);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px;
    box-shadow: 0 0 20px #FFF;
}

.topm {
    margin-top: 15px;
}

.botm {
    margin-bottom: 15px;
}

.botms {
    margin-bottom: 5px;
}

/* navigation bar */
#nav {
    display: flex;
    flex-direction: row;
    align-items: start;
    width: 100%;
    padding-left: 5px;
    background-color: var(--accent1);
    position: fixed;
    top: 0px;
    justify-content: center;
    max-height: 60px;
    height: 60px;
    z-index: 5;
}
#nav_logo, #nav_logo_l {
    height: 50px;
    width: 50px;
    align-self: center;
}
#nav_title {
    font-size: 25px;
    line-height: 50px;
    margin-left: 10px;
    font-weight: bold;
}

#nav_bar {
    margin-left: auto;
    margin-right: 10px;
    align-self: center;
    display: flex;
    flex-direction: row;
    align-items: center;
}
#navlist {
    display: flex;
    flex-direction: row;
    list-style: none;
}
.navlink a {
    text-decoration: none;
    color: var(--text2);
    display: flex;
    padding: 10px;
    background-color: var(--accent2);
    max-height: 40px;
}
.navlink a:hover {
    outline: 2px solid var(--text2);
}
.navlink {
    display: flex;
    margin: 10px;
}
#nav_menu_icon {
    display: none;
}
#nav_menu_icon {
    height: 40px;
    width: 40px;
    fill: var(--text2);
    position: fixed;
    left: 5px;
}
#logged_in_as {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text2);
}
body {
    background-color: var(--accent1);
}

#uploads {
    width: 100%;
}

.upload_bar {
    width: 100%;
    height: 20px;
    border: 1px solid #FFF;
    grid-area: 5 / 1 / 5 / 3;
    box-sizing: content-box;
}

.upload_inner_bar {
    height: 20px;
    position: relative;
}

.upload_bar>p {
    width: 100%;
    text-align: center;
    position: relative;
    line-height: 20px;
    margin-top: -20px;
}

.upload_item {
    margin: 10px;
    padding: 5px;
    display: grid;
    grid-template-columns: 3fr minmax(100px, 1fr);
    grid-template-rows: 16px minmax(12px, 18px) minmax(12px, 16px) auto auto;
}
.upload_item>p:first-child {
    grid-area: 1 / 1 / 1 / 3;
    font-size: 16px;
}
.upload_item>p:nth-child(2) {
    grid-area: 2 / 1 / 2 / 2;
    text-align: left;
    overflow: hidden;
}
.upload_item>p:nth-child(3) {
    grid-area: 3 / 1 / 3 / 2;
    text-align: left;
    color: var(--subtext1);
    font-size: 14px;
}
.upload_item>p:nth-child(4) {
    grid-area: 2 / 2 / 4 / 3;
    font-size: 14px;
    padding: 3px;
}
.upload_item>p:nth-child(5) {
    grid-area: 4 / 1 / 4 / 3;
    font-size: 14px;
    padding-top: 10px;
}

#upload_div {
    position: absolute;
    display: flex;
    top: 100px;
    padding-top: 20px;
    background-color: var(--accent1);
    border: 5px solid var(--accent2);
    text-align: center;
    padding: 20px;
    left: 50%;
    width: 100%;
    max-width: 500px;
    transform: translate(-50%, 0);
    max-height: 80vh;
}
#uploads {
    overflow-y: scroll; /* Ensures content is scrollable */
    border-top: 4px solid var(--base);
    margin-top: 10px;
    
    /* For Firefox */
    scrollbar-width: none;
    
    /* For Internet Explorer and older Edge */
    -ms-overflow-style: none;
  }
  
  /* For Chrome, Safari, newer Edge, and Opera (WebKit browsers) */
  #uploads::-webkit-scrollbar {
    display: none;
  }
#upload_div input {
    width: initial;
}

#maintenance_options_input {
    padding: 10px;
}

.maintenance_option_div {
    display: flex;
    flex-direction: row;
}
.maintenance_option_div>label {
    margin: 4px;
    padding: 4px;
    border: 2px solid transparent;
    background-color: var(--accent2);
}
.maintenance_option_div>input {
    display: none;
}
.maintenance_option_div:has(input:checked)>label {
    border: 2px solid #FFF;

}
#upload_file_type>input {
    display: none;
}
#upload_file_type>label {
    padding: 10px;
    margin: 10px;
    background-color: var(--accent2);
    line-height: 50px;
}

#upload_file_type>input[type="radio"]:checked + label  {
    border: 2px solid #FFF;
}

#upload_count_d {
    position: relative;
    right: 0px;
    background: #f4f904;
    height: 20px;
    line-height: 20px;
    font-size: 16px;
    padding-left: 5px;
    padding-right: 5px;
    align-self: start;
    border-radius: 15px;
    padding-top: 1px;
    margin-left: -10px;
    margin-top: -10px;
    margin-right: -10px;
}
#upload_count_m {
    visibility: hidden;
}

#upload_close {
    position: absolute;
    height: 30px;
    width: 30px;
    fill: red;
    stroke: #000;
    stroke-width: 10px;
    align-self: end;
    margin-top: -10px;
    margin-right: -10px;
    cursor: pointer;
    user-select: none;
}

/* navigation bar end */
@media only screen and (max-width: 600px) {
    #upload_div {
        max-height: initial;
        top: 50px;
    }
    #uploads {
        overflow-y: visible;
    }
    #upload_count_d {
        position: relative;
        right: 0px;
        background: #f4f904;
        height: 20px;
        line-height: 20px;
        font-size: 16px;
        padding-left: 5px;
        padding-right: 5px;
        align-self: center;
        border-radius: 15px;
        padding-top: 1px;
        margin-left: -30px;
        margin-top: 0px;
        margin-right: -10px;
    }
    #upload_count_m {
        position: relative;
        right: 0px;
        background: #f4f904;
        height: 20px;
        line-height: 20px;
        font-size: 16px;
        padding-left: 5px;
        padding-right: 5px;
        align-self: start;
        border-radius: 15px;
        padding-top: 1px;
        margin-left: 25px;
        margin-top: -2px;
        margin-right: -44px;
        z-index: 6;
        visibility: visible;
    }
    #content {
        padding-top: 50px !important;
    }
    /* navigation bar */
    #nav {
        padding-left: 0px;
        justify-content: center;
        flex-direction: column-reverse;
        max-height: unset;
        height: unset;
    }
    #nav_menu_icon {
        display: flex;
    }
    #nav_bar {
        padding: 5px;
        width: inherit;
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    #navlist {
        flex-direction: column;
        width: inherit;
        text-align: center;
        display: none;
        padding-bottom: 10px;
    }
    .navlink a {
        width: inherit;
        display: block;
        text-align: center;
    }
    .navlink {
        width: -webkit-fill-available;
        margin: 2px;
    }
    #nav_logo_l, #nav_logo {
        display: block;
        margin: auto;
        max-height: 40px;
        width: auto;
    }
    .nav_visible {
        display: flex !important;
    }
    #logged_in_as {
        flex-direction: row;
        justify-content: center;
        height: 20px;
        margin: 0px;
        margin-top: 5px;
    }
    #logged_in_as>p {
        margin-inline: 5px;
    }
    /* navigation bar end */
}