@import "https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap";

body {
    margin: 0;
    font-family: Roboto, Arial, sans-serif;
    text-align: center;
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: #FFFFFF;
    background-color: #323232;
}

.watermark {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5rem 1rem;
    font-size: clamp(0.5rem, 1vw, 1.25rem);
}

.eqnx-logo {
    display: inline-block;
    width: clamp(0.5rem, 1vw, 1.25rem);
    height: clamp(0.5rem, 1vw, 1.25rem);
    transform: translateY(15%);
}

.center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 60%;
    width: 60%;
    max-height: 70%;
    height: 70%;
    background-color: #262626;
    box-shadow: -5px 5px 13px -6px rgb(0 0 0 / 75%);
    border-radius: 1rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 1fr);
}

*::-webkit-scrollbar {
    visibility: hidden;
    width: 0;
}

.header {
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    font-family: Quicksand,sans-serif;
    font-size: clamp(0.5rem, 2vw, 1rem);
    line-height: 1.5;
    font-weight: 600;
    pointer-events: none;
    grid-row: span 1;
}

.header .original_name {
    font-size: clamp(0.5rem, 2vw, 2.4rem);
    font-weight: bold;
    color: #FFFFFF;
    padding: 1rem 0 0 0;
}

.header .system_name {
    color: #FFFFFF;
}

.header .size {
    color: rgb(140, 144, 149);
}
.header .size:before {
    content: "(";
}
.header .size:after {
    content: ")";
}

.header .system_name,
.header .size {
    display: inline-block;
    padding: 0 5px 0 5px;
}

.content {
    grid-row: span 3;
    padding: 0 20px 0 20px;
}

.content > a {
    display: flexbox;
    width: 100%;
    height: 100%;
}

.content > a > img,
.content > a > video {
    display: inline-flex;
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

/*.content > a {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.content > a > img,
.content > a > video {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
}*/

.footer {
    grid-row: span 1;
    font-size: clamp(0.5rem, 2vw, 1.25rem);
}

.uploaded-by {
    padding: 1rem 0 0.25rem 0;
}

.uploaded-by > a {
    color: rgba(127,0,255,1);
    text-decoration: none;
    font-weight: bold;
}

.uploaded-at {
    padding: 0 0 0.5rem 0;
}

.uploaded-at > span {
    color: #afafaf;
}

.buttons {
    display: inline-flex;
    padding: 0.5rem;
    flex-direction: row;
    gap: 0.5rem;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: center;
}

.buttons > a {
    display: inline-flexbox;
    word-wrap: nowrap;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-radius: 10000px;
    font-size: clamp(0.5rem, 2vw, 1rem);
}

.buttons > a > i {
    display: inline-block;
}

.download {
    background-color: rgba(191,95,255,1);
}

.report {
    background-color: rgb(240, 71, 71);
}

a {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    pointer-events: all;
}

@media screen and (max-width:1000px) {
    .center {
        max-width: 90%;
        max-height: 70%;
        width: 90%;
        height: 70%;
    }
    .header .original_name {
        font-size: clamp(1.2rem, 1vw, 1.2rem);
    }
    .header {
        font-size: 0.9rem;
    }
    .footer {
        font-size: 1rem;
    }
    .buttons > a {
        padding: 0.3rem 1rem 0.3rem 1rem;
        font-size: 0.8rem;
    }
}