/* --- Font --- */
@font-face {
    font-display: block;
    font-family: 'Roboto Mono';
    src: url('/res/roboto_mono.ttf') format('truetype');
}

/* --- Body --- */
body {
    align-items: center; 
    background-color: rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
}

/* --- Image --- */
.img {
    display: block;
    width: 300px;
}


/* --- Image Gallery Thumbnail --- */
.gallery_thumb {
    cursor: pointer;
    height: 223px;
    position: relative;
    width: 300px;
}

.gallery_thumb .state {
    height: 100%;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
}

.gallery_thumb .default {
    opacity: 1;
}

.gallery_thumb:hover .default {
    opacity: 0;
}

.gallery_thumb:hover .hover {
    opacity: 1;
}

.gallery_thumb:active .hover {
    opacity: 0;
}

.gallery_thumb:active .active {
    opacity: 1;
}


/* --- Image Gallery --- */
.gallery {
    inset: 0;
    position: fixed;
    z-index: 9999;
}

.gallery_backdrop {
    background: rgba(0,0,0,0.91);
    inset: 0;
    position: absolute;
}

#gallery_display {
    left: 50%;
    max-height: 90vh;
    max-width: 90vw;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
}

.gallery_img {
    display: none;
}

.gallery_nav {
    color: white;
    cursor: pointer;
    font-family: 'Roboto Mono';
    font-size: 48px;
    padding: 20px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
}

.gallery_status {
    -webkit-text-size-adjust: 100%;
    align-items: center;
    bottom: 30px; 
    color: white;
    display: flex;
    font-family: 'Roboto Mono';
    font-size: clamp(27px, 1.8vw, 45px);
    height: auto;
    justify-content: center;
    left: 50%;
    line-height: 1;
    position: absolute;
    transform: translateX(-50%);
    user-select: none;
    width: 100%;
}

.gallery_close {
    right: 30px;
    top: 30px;
    mask-image: url('/res/gallery_exit.svg');
    -webkit-mask-image: url('/res/gallery_exit.svg');
}

.gallery_nav_left,
.gallery_nav_right,
.gallery_close {
    cursor: pointer;
    height: clamp(30px, 4vw, 60px);
    width: clamp(30px, 4vw, 60px);
    position: absolute;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    background-color: #FFFFFF;
}

.gallery_nav_left:hover,
.gallery_nav_right:hover,
.gallery_close:hover {
    background-color: #E8E8E8FF;
}

.gallery_nav_left:active,
.gallery_nav_right:active,
.gallery_close:active {
    background-color: #F7F7F7FF;
}

.gallery_nav_left {
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    mask-image: url('/res/gallery_prev.svg');
    -webkit-mask-image: url('/res/gallery_prev.svg');
}

.gallery_nav_right {
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    mask-image: url('/res/gallery_next.svg');
    -webkit-mask-image: url('/res/gallery_next.svg');
}

/* --- Heading --- */
.heading {
    color: white;
    cursor: pointer;
    font-family: "Roboto Mono";
    font-size: 27px;
    height: 45px;
    line-height: 43px;
    text-align: center;
    width: 300px;
}

.heading:hover {
    background-color: white;
    color: black;
}

/* --- Link --- */
a {
    text-decoration: none;
}

/* --- Text --- */
.text {
    color: white;
    font-family: 'Roboto Mono';
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    width: 300px;
}

/* --- Download Button --- */

.download {
    cursor: pointer;
    display: block;
    height: 26px;
    position: relative;
    width: 300px;
}

.download .state {
    display: block;
    height: 100%;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}

.download .default { opacity: 1; }
.download:hover .default { opacity: 0; }
.download:hover .hover   { opacity: 1; }
.download:active .hover  { opacity: 0; }
.download:active .active { opacity: 1; }

.download_title {
    align-items: center;
    color: rgb(0, 0, 0);
    display: flex;
    font-family: 'Roboto Mono';
    font-size: 13px;
    font-weight: 600;
    height: 100%;
    justify-content: center;
    left: 0;
    pointer-events: none;
    position: absolute;
    text-decoration: underline;
    top: 0;
    transform: translateY(-1px);
    user-select: none;
    width: 100%;
    z-index: 2;
}

/* --- Small Text --- */
.text_small {
    color: white;
    font-family: 'Roboto Mono';
    font-size: 14px;
    line-height: 2;
    text-align: center;
    width: 300px;
}