body {
    padding: 0;
    margin: 0;
    font-family: 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Open Sans', 'Helvetica Neue', sans-serif
}

#loginBox {
    display: block;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Source Sans Pro', sans-serif;
}

#loginBox > p {
    width: 80%;
    display: block;
    margin: auto;
    border-bottom: 1px lightgray solid;
    padding: 10px;
    margin-bottom: 20px;
}

#loginControls {
    display: flex;
    width: 90%;
    margin: auto;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
    gap: 5px;
}

.loginControl {
    flex-basis: 30%;
    gap: 20px;
    height: 26px;
    padding-left: 10px;
    padding-right: 10px;
}

.loginControl.button {
    margin: 5px;
    min-width: 40%;
    height: 32px;
    color: black;
    border: 1px solid black;
    font-size: 14px;
}

.loginControl.button:hover {
    background-color: #333;
    color: white;
    cursor: pointer;
}

.loginControl.button:active {
    border-color: white;
}

.loginErrorMessage {
    color: #d12626;
    text-align: center;
    margin: auto;
}

.login_site_title {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    text-decoration: none;
    color: black;
    gap: 0;
    padding: 0 20px 0 0;
    justify-content: center;
}

.login_site_icon {
    width: 48px;
    height: 48px;
}

.navbar {
    display: flex;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.navbar .nav_link {
    text-align: center;
    color: black;
    padding: 14px 20px;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
}

.nav_link_title {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    text-decoration: none;
    color: black;
    gap: 0;
    padding: 0 20px 0 0;
}

.site_title_first, .site_title_second {
    line-height: 48px;
    font-size: 1.3em;
    font-family: 'Montserrat', 'Roboto', 'Helvetica', 'Helevetica', sans-serif;
}

.site_icon {
    width: 48px;
    height: 48px;
    display: block;
}

.navbar .username_message {
    margin-left: auto;
    margin-right: 10px;
    display: block;
    color: black;
    text-align: center;
    text-decoration: none;
}

.navbar a:hover, .navbar img:hover {
    background-color: #333;
    color: white;
}

.navbar a:active, .navbar img:active {
    background-color: black;
    color: white;
}

/* Footer styling */
footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

.page_title {
    font-size: 2em;
    padding: 10px 30px;
}

.ub_title {
    margin: auto;
    width: fit-content;
    font-size: 2em;
    padding: 5px;
}

.upload_box {
    display: block;
    width: 50%;
    height: auto;
    margin: auto;
    padding: 10px;
}

.upload_box > button {
    border-radius: 0;
    border: 1px solid gray;
    padding: 5px 15px;
    font-size: 1.2em;
}

.upload_form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
    flex-direction: column;
    border: solid 1px gray;
    border-radius: 10px;
    gap: 10px;
}

.upload_item {
    position: relative;
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.upload_item > label {
    font-weight: 400;
}

.upload_submit {
    margin: auto;
    display: block;
}

.upload_item > input {
    font-size: 12pt;
}

.upload_item > textarea {
    height: 10em;
    font-size: 12pt;
}

.video_title {
    font-size: 2em;
    margin: 10px auto;
    width: fit-content;
}

.video_gallery_box {
    padding: 0px 20px;
    display: flex;
    flex-direction: column;
}

.user_gallery_box {
    padding: 0px 20px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    flex-basis: 1;
    gap: 20px;
}

.gallery_row {
    display: flex;
    padding: 20px 0;
    flex-direction: row;
    gap: 20px;
    overflow-x: scroll;
    overflow-y: auto;
}

.gallery_title {
    padding: 0px 10px;
    font-size: 1.4em;
}

.gallery_item {
    position: relative;
    overflow: hidden;
    color: black;
    width: 356px;
    height: 200px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    transition: box-shadow 0.1s ease-in-out;
}

.gallery_item_backdrop {
    position: absolute;
    display: inline;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: 250%;
    filter: blur(8px) brightness(0.9);
}

.gallery_item:hover {
    box-shadow: 5px 5px 15px rgba(0,0,0,0.8);
}

.gallery_item_thumbnail {
    position: absolute;
    width: auto;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(20px);
}

.gallery_item_fade_overlay {
    position:absolute;
    width: 100%;
    height: 70%;
    bottom: 0;
    background: linear-gradient(to top, 
    rgba(0,0,0,.9), rgba(0,0,0,0.0));
}

.gallery_item p {
    position: absolute;
    color: white;
}

.gallery_item_title {
    left: 10px;
    bottom: 0px;
    font-weight: bold;
}

.gallery_item_author {
    left: 10px;
    bottom: 22px;
    color: gray;
    font-size: 0.9em;
}

.gallery_item_views {
    right: 10px;
    bottom: 15px;
    font-size: 0.9em;
}

.gallery_item_views_icon {
    display: inline;
    width: 18px;
    padding: 0 5px;
    vertical-align: center;
    height: auto;
}

.gallery_item_duration {
    right: 10px;
    bottom: 0;
    font-size: 0.85em
}
