body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    background-color: #222;
    color: #fff;
}
h1 {
    font-weight: 100;
    font-size: 2.4em;
    margin: 0px;
}
button {
    padding: 10px;
    margin: 6px 0px;
    border: none;
    /* font-size: 1.2em; */
    background-color: #2f2f2f;
    color: #fff;
    cursor: pointer;
}
.form-button {
    width: 100%;
    padding: 10px;
    margin: 12px 0px;
    border: none;
    font-size: 1.2em;
    background-color: #2f2f2f;
    color: #fff;
    cursor: pointer;
}
#login-window {
    max-width: 300px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}
#titlebar {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 10px;
}
#title-image {
    max-width: 324px;
    height: auto;
    filter: drop-shadow(0px 0px 10px #000000);
}
#about {
    text-align: center;
    padding: 10px;
    background-position: center;
    background-size: cover;
}
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.gallery-item {
    color: #fff;
    margin: 0px;
    padding: 0px;
    width: 250px;
    text-align: center;
    background-color: #333;
    margin: 6px;
    border-radius: 18px;
    overflow: hidden;
}

.gallery-item img {
    max-width: 100%;
    height: auto;
}
.admin-image {
    width: 124px;
    height: 124px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center; 
    background-size: cover;
}
.preview-image {
    height: 300px;
    background-color: #444;
    background-repeat: no-repeat;
    background-position: center; 
    background-size: cover;
}
.image-title {
    font-weight: 900;
    font-size: 1.2em;
}
.image-info {
    line-height: 4px;
    font-size: .8em;
}
.admin-listing {
    margin: 12px;
    display: flex;
}
.admin-info {
    margin: -4px 12px;
}
#admin-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
    width: 424px;
    left: 50%;
    transform: translate(-50%, 0%);
    position: relative;
}
#nav {
    text-align: center;
    overflow: hidden;
}
#filter {
    display: flex;
    
    justify-content: center;
    flex-wrap: wrap;
    margin: 10px;
    color: #fff
}
.filter-category {
    background-color: #5c5c5c;
    padding: 10px 24px;
    margin: 6px 6px;
    border-radius: 24px;
}
input, select {
    width: 100%;
    padding: 10px;
    margin: 6px 0px;
    border: none;
    font-size: 1.2em;
    /* background-color: #2f2f2f;
    color: #fff; */
    text-align: center;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}
.active {
    background-color: #1a1a1a;
}

#modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#modal-content {
    background-color: transparent;
    width: calc(100% - 48px);
    height: calc(100% - 48px);
    position: relative;
    overflow: hidden;
}

#modal-image {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 100%;
    height: 100%;
}

@media only screen and (max-width: 920px) {
    .gallery-item {
        width: 336px;
    }
}

#update-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#update-modal-form {
    background-color: #0e0e0e;
    width: 364px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 24px;
}
#update-modal-form input {
    width: auto;
    background-color: #c9c9c9;
    color: #0e0e0e;
}

/* duplicate ew */

#upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

#upload-modal-form {
    background-color: #0e0e0e;
    width: 364px;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 24px;
}
#upload-modal-form input {
    width: auto;
    background-color: #c9c9c9;
    color: #0e0e0e;
}