html {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'IBM Plex Mono', monospace;
}

* {
    -webkit-transition: all 0.15s ease-in;
    -o-transition: all 0.15s ease-in;
    transition: all 0.15s ease-in;
}

a,
.link {
    text-decoration: underline;
    color: #fff;
}

.link:hover {
    cursor: pointer;
}

*,
*:before,
*:after {
    -webkit-box-sizing: inherit;
    box-sizing: inherit;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

ol,
ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

nav {
    background-color: #1f1f1f;
    color: #fff;
    padding: 1rem 2rem;
    font-size: 20px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}

footer {
    background-color: #1f1f1f;
    color: #fff;
    padding: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
}

main {
    padding-block: 2rem;
    padding-inline: 1rem;
    background-color: #2f2f2f;
    color: #fff;
    min-height: 89vh;
}

#filter {
    width: 200px;
}

.content {
    max-width: 1100px;
    margin: auto;
}

.button {
    background-color: #c8c8c8;
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    font-weight: 500;
}

.button:hover {
    background-color: #e8e8e8;
    cursor: pointer;
}

.search-box {
    background-color: #c8c8c8;
    color: black;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    font-weight: 500;
}

#controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #5b5660;
    margin-bottom: 2rem;
}

#gallery {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 1rem;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}

#about {
    position: fixed;
    top: 0;
    left: 0;
    min-height: 100vh;
    min-width: 100vw;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
}

.about-container {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: #3f3f3f;
    max-width: 600px;
    -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.item-container {
    width: 300px;
    border-radius: 12px;
    overflow: hidden;
    -webkit-box-shadow: 0px 10px 55px 0px rgba(0, 0, 0, 0.38);
    box-shadow: 0px 10px 55px 0px rgba(0, 0, 0, 0.38);
    position: relative;
}

.item-container:hover img {
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
}

.item-container img {
    vertical-align: middle;
    -o-object-fit: cover;
    object-fit: cover;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#uploader {
    z-index: 10;
    min-height: 100vh;
    min-width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    /* background-color: rgba(0, 0, 0, 0.5); */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
}

.viri-heading {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.list li {
    padding: 0.5rem;
    border-bottom: 1px solid #5b5660;
    cursor: pointer;
}

.uploader-container {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: #3f3f3f;
    -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: #fff;
    padding: 2rem;
    border-radius: 12px;
}


/* .uploader-image {
    max-height: 300px;
    overflow: auto;
} */

.uploader-image-heading {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.uploader-form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 2rem;
}

textarea {
    resize: none;
    height: 100px;
    border-radius: 8px;
    border: 2px solid #9b94a2;
    padding: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
    background-color: #4d4a50;
    color: #ffffff;
}

.uploader-prompt {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 1rem;
}

.uploader-prompt-input {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.5rem;
}

.uploader-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 1rem;
}

.uploader-actions .button:hover {
    cursor: pointer;
    text-decoration: underline;
}

.uploader-image {
    border-radius: 12px;
    display: -ms-grid;
    display: grid;
    place-items: center;
}

#file-input-button {
    width: 300px;
    height: 300px;
    display: -ms-grid;
    display: grid;
    font-weight: 500;
    place-items: center;
    color: #988f9f;
    background-color: #4d4a50;
    border-radius: 8px;
    border: 4px dashed #9b94a2;
    position: relative;
    font-size: 0;
}

#file-input-button:after {
    font-size: 3rem;
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#file-input-button:hover {
    cursor: pointer;
    background-color: #4f4b55;
    color: #fff;
    border: 4px dashed #fff;
    -webkit-transform: scale(1.02);
    -ms-transform: scale(1.02);
    transform: scale(1.02);
}

.item-dialog {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.8rem 1rem;
    margin: 0.7rem;
    min-width: calc(100% - 1.4rem);
    background: rgba(0, 0, 0, 0.649);
    border-radius: 12px;
    -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 1rem;
    -webkit-transform: translateY(4px);
    -ms-transform: translateY(4px);
    transform: translateY(4px);
    opacity: 0;
    visibility: hidden;
}

.item-container:hover .item-dialog {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
}

.item-controls {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    color: #c7c7c7;
}

.item-button:hover {
    cursor: pointer;
    color: #fff;
}

@media only screen and (max-width: 750px) {
    .uploader-form {
        width: 100%;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}