@import url('https://site-assets.fontawesome.com/releases/v6.2.0/css/all.css');
@import url('/assets/css/cropbox.css');
@import url('/assets/css/bulma.css');
@import url('/assets/css/fonts.css');

@media (prefers-color-scheme:light) {
    :root {
        --bg-color: #fff;
        --text-color: #242425;
    }
}

@media (prefers-color-scheme:dark) {
    :root {
        --bg-color: #242425;
        --text-color: #fff;
    }

    .hero.is-link {
        filter: brightness(90%);
    }

    .navbar.is-link {
        filter: brightness(90%);
    }
}

.navbar.is-link>.container {
    filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.616));
}

.navbar.is-link .navTitle {
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.616);
}

html {
    background: var(--bg-color);
}

body,
html {
    font-family: 'Montserrat';
    width: 100vw;
    color: var(--text-color);
    background-color: var(--bg-color);
    user-select: none;
}

* {
    font-family: 'Montserrat';
}

body h1 {
    font-family: 'Montserrat-Black';
}

.content h1 {
    color: var(--text-color);
}

.content p {
    max-width: 50vw;
}

.notifications {
    top: 1%;
    width: 20%;
    position: fixed;
    z-index: 9999;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .5s;
    height: 2%;
    min-width: 250px;
    max-width: 500px;
}

.notifications>.notification {
    padding: 15px;
    border-radius: 20px;
    margin-top: 10px;
    transition: .5s;
    cursor: pointer;
    min-width: 250px;
    max-width: 500px;
    padding-left: 20px;
}

.notifications>.notification.error {
    background: rgba(171, 61, 222, 0.801);
    color: #fff;
    transition: .5s;
    inline-size: 100%;
    overflow-wrap: break-word;
}

a:not(.button) {
    color: #ac3cde;
    text-decoration: none;
    position: relative;
}

a:not(.button):hover {
    color: #ac3cde;
}

a:not(.button)::before {
    background-color: #ac3cde;
    bottom: -0.5px;
    content: '';
    display: block;
    height: 1px;
    left: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left top;
    transition: transform 0.3s ease 0s;
    width: 100%;
}

a:not(.button):hover::before,
a:not(.button):focus::before {
    transform: scaleX(1);
}

.navbar a {
    color: #fff;
}

.navbar a:hover {
    color: #fff;
}

.navbar a::before {
    display: none;
}

.hero.is-link:not(.is-halfheight) {
    background-image: url('/assets/img/background.jpeg');
    mask-image: url('/assets/img/cutout.svg');
    -webkit-mask-image: url('/assets/img/cutout.svg');
    mask-size: 100vw;
    -webkit-mask-size: 100vw;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    min-height: calc(100vw * calc(102 / 300));
    margin-bottom: 50px;
}

.hero.is-link.is-halfheight {
    background-image: url('/assets/img/background.jpeg');
    mask-image: url('/assets/img/halfheight-cutout.svg');
    -webkit-mask-image: url('/assets/img/halfheight-cutout.svg');
    mask-size: 100vw;
    -webkit-mask-size: 100vw;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    min-height: calc(100vw * calc(245 / 900));
    margin-bottom: 50px;
}

body.modalpage {
    background-image: url('/assets/img/background.jpeg');
    background-position: 0;
    text-align: center;
    overflow: hidden;
    width: 100vw;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    margin: 0px;
}

body>div.main.hidden+body::-webkit-scrollbar-track {
    display: none;
}

body>div.main.hidden+body::-webkit-scrollbar {
    display: none;
}

body.modalpage::-webkit-scrollbar {
    display: none;
}

body.modalpage::-webkit-scrollbar-track {
    display: none;
}

.title {
    font-family: montserrat-black;
}

:disabled {
    cursor: not-allowed;
}

html.noscroll {
    overflow: hidden;
}

body.noscroll {
    overflow: hidden;
}

body.noscroll::-webkit-scrollbar {
    display: none;
}

body.noscroll::-webkit-scrollbar-track {
    display: none;
}

::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: rgba(171, 61, 222, 0.2);
}

::-webkit-scrollbar-thumb {
    background: #ab3dde;
    border: 4px solid transparent;
    background-clip: content-box;
    border-radius: 8px;
}

::-webkit-scrollbar-corner {
    background: transparent;
}

.navbar {
    background-image: url('/assets/img/background.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.navbar-item {
    color: #fff;
}

.navbar a.navbar-item.is-dropdown:hover {
    background-color: #ab3dde;
}

footer {
    background-image: url('/assets/img/background.jpeg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    user-select: none;
    padding: 4% 5% 4% 5%;
    mask-image: url('/assets/img/footer-cutout.svg');
    -webkit-mask-image: url('/assets/img/footer-cutout.svg');
    mask-size: 100vw;
    -webkit-mask-size: 100vw;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    color: #fff;
    margin-top: 50px;
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.616);
}

footer p {
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.616);
}

footer h1 {
    color: #fff;
}

footer::before {
    display: block;
    content: '';
    height: 270px;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

footer .socials i {
    margin: 10px;
    margin-left: 5px;
    margin-right: 5px;
    font-size: 20px;
    cursor: pointer;
}

footer .socials a {
    color: #fff;
}

footer .socials a:hover {
    color: #fff;
}

footer .socials a::before {
    display: none;
}

footer .socials i:is(:first-child) {
    margin-left: 0px;
}

footer a {
    font-family: 'Montserrat-Bold';
}

footer .right {
    text-align: right;
}

footer .title:not(:last-child) {
    display: flex;
    margin: 0px;
}

footer .title img {
    width: 40px;
    height: 40px;
    margin-left: 10px;
    filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0.616));
}

span.Icon>svg {
    margin: auto;
    font-size: 20px;
}

span.Icon {
    margin: auto;
}

.avatarContainer {
    display: flex;
}

.userid {
    top: 35%;
    left: 62%;
    position: absolute;
}

button.button.is-rounded.is-link.has-right-sharp {
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
}

div.select.is-link.is-rounded.sortSelect>select {
    border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
    border-left: none;
    box-shadow: none;
}

input.is-link.is-rounded.searchBar {
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
    border-right-color: transparent;
    text-align: left;
    padding-left: 40px;
}

input.is-link.is-rounded.searchBar {
    box-shadow: none;
}

input.is-link.is-rounded.searchBar {
    box-shadow: none;
}

.usernameForm {
    padding: 20px;
    display: flex;
    width: 400px;
}

input.input.is-link.is-rounded[data-attr='username'] {
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
}

.author {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 20px;
}

.comment-subject {
    word-wrap: break-word;
}

.comment {
    width: 300px;
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
}

.closeModalPannel {
    margin: 5px;
    position: fixed;
    cursor: pointer;
    left: 80%;
}

.closeModalPannel>i {
    font-size: 30px;
    color: #000;
}

[data-attr='comment-subject'] {
    resize: none;
}

.post-comment {
    padding: 10px;
    bottom: 0px;
    position: sticky;
    background: #fff;
}

.is-right {
    float: right;
}

.comments {
    padding: 2px;
    margin: 20px;
    overflow: hidden;
}

.card {
    margin: auto;
    background-color: var(--bg-color);
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.616);
}

.username-container>i {
    font-size: 20px;
    padding: 3px;
    cursor: pointer;
}

.profile#app {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: auto;
}

.new-avatar {
    width: 200px;
    height: 200px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    outline: 2px solid #fff;
    border-radius: 10px;
}

.navbar-item.has-dropdown {
    padding-right: 10px;
}

.select select {
    background: transparent;
    color: var(--text-color);
}

.control i {
    color: var(--text-color);
}

.input {
    background: transparent;
    color: var(--text-color);
}

.input::placeholder {
    color: var(--text-color);
}

.avatar-small {
    margin: auto;
    border-radius: 10px;
    background-color: #fff;
    width: 40px;
    height: 40px;
    outline: 2px solid #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.616);
    background-image: url('/assets/img/logo.png');
}

.database_nav {
    width: 100vw;
    top: 50px;
    background: var(--bg-color);
    z-index: 4;
    padding: 20px;
    display: flex;
    flex-direction: row;
    margin: auto;
    transition: .3s;
    position: sticky;
    position: -webkit-sticky;
}

.database_nav.shadowed {
    box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.616);
}

.searchErr {
    margin-top: 85px;
    margin-bottom: 85px;
    text-align: center;
}

.searchErr h1 {
    font-size: 40px;
}

.sort {
    display: inline-block;
    margin: auto;
    margin-left: 0px;
}

.search {
    text-align: center;
    width: 500px;
    display: inline-block;
    margin: auto;
    margin-right: 0px;
}

.search input {
    width: 500px;
    text-align: center;
}

.search i {
    position: absolute;
    z-index: 1;
    padding: 12px;
}

.content:not(:last-child) {
    min-height: 32vh;
    margin: 100px;
    margin-top: 0px;
    margin-bottom: 0px;
    user-select: text;
    width: 100%;
}

.heroIcon {
    margin: auto;
    width: 40px;
    height: 40px;
}

.heroTitle {
    font-family: montserrat-black;
    font-size: 100px;
    text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.616);
}

.navTitle {
    margin: auto;
    margin-left: 10px;
    cursor: pointer;
}

.err {
    color: red;
    margin: 15px;
}

.box {
    color: #000;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.616)
}

.innerGame {
    width: 100%;
    height: 100%;
    background: var(--bg-color);
}

.games {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.game {
    display: inline-block;
    vertical-align: middle;
    margin: 10px;
    position: relative;
    border-radius: 10px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.616);
    background-color: var(--bg-color);
    user-select: none;
    transition: 0.5s;
    object-fit: cover;
    object-position: center;
    width: 200px;
    height: 200px;
    cursor: pointer;
    padding: 10px;
}

.game.failed img {
    padding: 10px;
    background: #fff;
}

.game>img {
    width: 180px;
    height: 180px;
    padding: 0px;
    user-select: none;
    transition: 0.5s;
    object-fit: cover;
    object-position: center;
    border-radius: 5px;
}

.game>p {
    transition: 0.5s;
    text-align: center;
    border-radius: 0px 0px 10px 10px;
    padding: 10px;
    bottom: 0px;
    right: 0px;
    position: absolute;
    width: 100%;
    background-color: rgb(0, 0, 0, 0.7);
    color: white;
    text-overflow: ellipsis;
}

.game:hover {
    background-color: rgb(0, 0, 0, 0.5);
}

.gameFrame {
    background-color: var(--bg-color);
    width: 100%;
    height: 100vh;
}

.hidden {
    transition: 0.5s;
    display: none;
}

.avatar {
    margin: auto;
    transition: 0.5s;
    border-radius: 15px;
    width: 80px;
    height: 80px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.username {
    text-align: center;
    font-size: 30px;
    cursor: pointer;
}

.uploadIcon {
    transition: 0.5s;
    position: absolute;
    background-color: rgb(0, 0, 0, 0.5);
    color: #fff;
    font-size: 20px;
    border-radius: 15px;
    padding: 30px;
    padding-bottom: 20px;
}

.hero {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.frame_500x500 {
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    margin: auto;
}

.modalstyle_error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.is-center {
    text-align: center;
}

.loading {
    background-color: #ededed;
    background: linear-gradient(100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, .5) 50%,
            rgba(255, 255, 255, 0) 60%) #ededed;
    background-size: 200% 100%;
    background-position-x: 180%;
    animation: 1s loading-in-out infinite;
}

.loading img,
.loading h4,
.loading .description {
    background-color: #ededed;
    background: linear-gradient(100deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, .5) 50%,
            rgba(255, 255, 255, 0) 60%) #ededed;
    background-size: 200% 100%;
    background-position-x: 180%;
    animation: 1s loading-in-out infinite;
}

@keyframes loading {
    to {
        background-position-x: -20%;
    }
}

#loader {
    background: var(--bg-color);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 6px;
}

#loader div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    background: var(--text-color);
    border-radius: 3px;
    animation: loader 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

#loader div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}

#loader div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}

#loader div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}

@keyframes loader {
    0% {
        top: 8px;
        height: 64px;
    }

    50%,
    100% {
        top: 24px;
        height: 32px;
    }
}

.lds-spinner {
    margin: auto;
    color: official;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-spinner div {
    transform-origin: 40px 40px;
    animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
    content: ' ';
    display: block;
    position: absolute;
    top: 3px;
    left: 37px;
    width: 6px;
    height: 18px;
    border-radius: 20%;
    background: #000;
}

.lds-spinner div:nth-child(1) {
    transform: rotate(0deg);
    animation-delay: -1.1s;
}

.lds-spinner div:nth-child(2) {
    transform: rotate(30deg);
    animation-delay: -1s;
}

.lds-spinner div:nth-child(3) {
    transform: rotate(60deg);
    animation-delay: -0.9s;
}

.lds-spinner div:nth-child(4) {
    transform: rotate(90deg);
    animation-delay: -0.8s;
}

.lds-spinner div:nth-child(5) {
    transform: rotate(120deg);
    animation-delay: -0.7s;
}

.lds-spinner div:nth-child(6) {
    transform: rotate(150deg);
    animation-delay: -0.6s;
}

.lds-spinner div:nth-child(7) {
    transform: rotate(180deg);
    animation-delay: -0.5s;
}

.lds-spinner div:nth-child(8) {
    transform: rotate(210deg);
    animation-delay: -0.4s;
}

.lds-spinner div:nth-child(9) {
    transform: rotate(240deg);
    animation-delay: -0.3s;
}

.lds-spinner div:nth-child(10) {
    transform: rotate(270deg);
    animation-delay: -0.2s;
}

.lds-spinner div:nth-child(11) {
    transform: rotate(300deg);
    animation-delay: -0.1s;
}

.lds-spinner div:nth-child(12) {
    transform: rotate(330deg);
    animation-delay: 0s;
}

@keyframes lds-spinner {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}