﻿/* Revert browser styles */

a {
    color: unset;
    text-decoration: unset;
    outline: 0;
    cursor: pointer;
}

img {
    border: none;
}

/* Init fonts */

@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/roboto/Roboto-Light.ttf) format('truetype');
}

@font-face {
    font-family: 'Roboto Bold';
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/roboto/Roboto-Regular.ttf) format('truetype');
}

@font-face {
    font-family: 'DroidSans';
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/droidsans/DroidSans.ttf) format('truetype');
}

@font-face {
    font-family: 'DroidSans Bold';
    font-style: normal;
    font-weight: 400;
    src: url(/fonts/droidsans/DroidSans-Bold.ttf) format('truetype');
}

@font-face {
    font-family: 'Segoe UI';
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/segoeui/Segoe UI.woff') format('woff');
}

@font-face {
    font-family: 'Segoe UI Italic';
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/segoeui/Segoe UI Italic.woff') format('woff');
}

@font-face {
    font-family: 'Segoe UI Bold';
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/segoeui/Segoe UI Bold.woff') format('woff');
}

@font-face {
    font-family: 'Segoe UI Bold Italic';
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/segoeui/Segoe UI Bold Italic.woff') format('woff');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Montserrat Bold';
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
}

@font-face {
    font-family: 'ScartanFloaben';
    font-style: normal;
    font-weight: normal;
    src: url('/fonts/scartanfloaben/ScartanFloaben-YE78.ttf') format('truetype');
}

/* Global style variables*/

:root {
    /*--colBlack: #2e333f;
    --colBackground: #414b63;
    --colElement: #a44d35;
    --colMidground: #ec933b;
    --colUiActive: #f8c151;
    --colUiHighlight: #f3dccc;
    --colForeground: #fffcf2;*/
    /*Layout*/
    --colBlack: #302e3f;
    --colBackground: #414b63;
    --colMidground: #ec933b;
    --colForeground: #fffcf2;
    /*Elements*/
    --colElement: #3c3a4f;
    --colElementActive: #48486c;
    --colElementHighlight: #ec933b;
    /*Ui*/
    --colUi: #f3dccc;
    --colUiActive: #fffcf2;
    --colUiHighlight: #f8c151;
    /*--fgMain: #2b2c39;*/
    --fgMain: #3a3c4f;
    --fgFront: #6777b9;
    --fgBack: #c3c6ff12;
    --fgBack2: #5b5e73;
    /*--mgBox: #080915;*/
    --mgBox: #0f101e;
    --mgFront: #505a87;
}

/* Global style backgrounds */

.fgMain {
    background: url('bg/black-orchid.png') var(--fgMain);
}

.fgBack {
    background: url('bg/black-orchid.png') #a1a1ff12;
}

.mgMain {
    background: url('bg/45-degree-fabric-dark.png') #1111224f;
}

.fgBox {
    background: url('bg/darth-stripe.png') #191a28;
}

.mgBox {
    background: url('bg/bedge-grunge.png') var(--colBlack);
}

/* Base elements */

body {
    width: 100%;
    height: 100%;
    margin: 0;
    user-select: none;
    outline: 0;
    color: var(--colUi);
    fill: var(--colUi);
    stroke: var(--colUi);
    stroke-width: 0;
    font-family: Montserrat;
    background: url('bg/black-orchid.png') #000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Montserrat Bold;
    font-weight: normal;
}

h1 {
    font-size: 36px;
}
h2 {
    font-size: 22px;
}
h3 {
    font-size: 14px;
}
h4 {
    font-size: 12px;
}
h5 {
    font-size: 10px;
}
h6 {
    font-size: 8px;
}

p {
    font-size: 17.5px;
    font-weight: 100;
    font-family: Montserrat
}

svg {
    width: 100%;
    height: 100%;
}

symbol[id^="svg-"] {
    overflow: visible;
}

    symbol[id^="svg-"] > rect {
        fill: #0000;
    }

/* Element helper classes */

.hide {
    display: none !important;
}

.semiHide {
    visibility: hidden !important;
}

.disabled {
    opacity: .1;
}

.permeable, .disabled {
    pointer-events: none;
}

.click {
    cursor: pointer;
}

    .click:hover {
        opacity: 1;
    }

    .click.fgMain:hover {
        background-color: var(--fgFront);
        box-shadow: inset 0 0 16px #0008;
        filter: drop-shadow(0 0 3px #0008);
        transition: 0s;
    }

.center {
    text-align: center;
    margin: auto;
    display: flex;
    justify-content: center;
}

    .center :first-child {
        margin: auto;
    }

.centerBody {
    margin: auto;
    display: table;
}

.mainGrid {
    display: grid;
    grid-template-rows: 48px 1fr 48px;
    grid-template-columns: 48px 1fr;
    width: 100vw;
    height: 100vh;
    /*height: calc(100vh - env(keyboard-inset-height));*/
}

.mainContent {
    grid-row: 1 / 4;
    grid-column: 2;
    overflow-y: scroll;
    overflow-x: hidden;
}

/* Designated button class for 'a' and div 'tags' that should look like buttons */

.btn {
    background: url('bg/black-orchid.png') var(--colElement);
    border-radius: 2px;
    cursor: pointer;
    transition: .1s cubic-bezier(0, .7, .3, 1);
    overflow: hidden;
}

    .btn.active {
        background-color: var(--colElementHighlight);
        color: var(--colUiActive);
        fill: var(--colUiActive);
    }

    .btn:hover {
        background-color: var(--colElementActive);
        box-shadow: 0 0 8px #0008;
        transition: 0s;
        color: var(--colUiActive);
        fill: var(--colUiActive);
    }

    .btn svg {
        overflow: visible;
    }

/* Navigation bar*/

.navbar {
    display: grid;
    grid-row: 1 / 4;
    grid-template-rows: repeat(auto-fit, minmax(0px, auto)) minmax(48px, 1fr);
    background: url('bg/black-orchid.png') var(--colBlack);
}

.navSpacer {
    margin: 8px;
    border-bottom: dotted 3px var(--colUi);
    opacity: .2;
}

/* normal size button */
.navButton {
    background: url('bg/black-orchid.png') var(--colBlack) fixed;
    height: 22px;
    width: 22px;
    margin: 3px 0 3px 3px;
    padding: 10px 13px 10px 10px;
    overflow: hidden;
    border-radius: 24px 0 0 24px;
}

    .navButton.active, .navButton:hover {
        background: url('bg/black-orchid.png') #000;
    }

    .navButton.active {
        color: var(--colUiActive);
        fill: var(--colUiActive);
        box-shadow: inset 6px 0px 4px 2px #000;
        text-shadow: 0 0 5px 5px #fff;
    }

    .navButton svg {
        transform: translateX(0) translateY(0);
        transition: .15s cubic-bezier(0, .7, .3, 1);
    }

    .navButton.active svg, .navButton:hover svg {
        transform: translateX(4px);
    }

/* hide selectable inactives */
    .navButton.showOnVisit:not(.active) {
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
    }

/* hide optional buttons when window is too small */
@media (max-width: 920px), (max-height: 640px) {
    .navButton.showIfSpace:not(.active) {
        width: 0;
        height: 0;
        margin: 0;
        padding: 0;
    }
}

/* put logout button at the end */
.navButton:last-child {
    grid-row: -1;
}

/* when window is large make everything larger too */
/*@media (min-width: 920px) and (min-height: 640px) {
    .mainGrid {
        grid-template-columns: 54px 1fr;
    }

    .navButton {
        height: 24px;
        width: 24px;
        margin: 6px;
        padding: 9px;
    }

    .navSpacer {
        margin: 12px 8px;
        border-bottom: dotted 2px #d0d8ff2e;
    }
}*/

/* Icon styling */

.icoTop path:nth-child(2) {
    filter: drop-shadow(.2px .1px .3px #0008);
    overflow: visible;
    transform: translateY(1.5px);
    transition: transform .2s cubic-bezier(.3, 0, 0, 1);
}

.icoTop path:first-child {
    transform: translateY(0px);
    transition: transform .2s cubic-bezier(.3, 0, 0, 1);
}

.icoTop:hover path:first-child, a:hover * * * .icoTop path:first-child {
    transform: translateY(-0.2px);
}

.icoTop:hover path:nth-child(2), a:hover * * * .icoTop path:nth-child(2) {
    transform: translateY(1px);
}

.icoFresh {
    stroke-width: 2px;
}

.icoSearch {
    stroke-width: 0.4px;
}

.icoExit :nth-child(2) {
    transform: translateX(-48px);
    transition: .2s cubic-bezier(0, .7, .3, 1);
}

.icoExit:hover :nth-child(2), a:hover .icoExit :nth-child(2), label:hover .icoExit :nth-child(2) {
    transform: translateX(0);
}

.icoAccount :nth-child(2) {
    filter: drop-shadow(0 0 16px #000);
    transition: .4s cubic-bezier(0, .7, .3, 1);
    transform-origin: 110.336px 138.132px;
    transform: rotate(0);
}

.icoAccount:hover :nth-child(2),
:host:hover .icoAccount :nth-child(2),
*:hover :host .icoAccount :nth-child(2),
*:hover * :host .icoAccount :nth-child(2) {
    transform: rotate(45deg);
}

/* input */

form:invalid .submit {
    opacity: .15;
}

/**/

.labelCheckbox {
    display: none;
}

    .labelCheckbox + label {
        background: none !important;
        cursor: pointer;
        position: relative;
    }

        .labelCheckbox + label::after {
            content: '✕';
            margin: auto 16px;
            transform: rotate(90deg);
            position: absolute;
            transition: .2s cubic-bezier(0, .7, .3, 1);
        }

    .labelCheckbox:checked + label::after {
        content: '✓';
        transform: rotate(0);
    }

    input, textarea, label.input, .labelCheckbox + label {
        color: inherit;
        font-family: 'Montserrat';
        display: block;
        background: url('bg/black-orchid.png') var(--colElement);
        margin: 22px 20px;
        padding: 10px 11px 8px 11px;
        line-height: 28px;
        overflow: hidden;
        font-size: 18px;
        border: none;
        outline: none;
        border-radius: 2px;
        transition: .15s cubic-bezier(0, .7, .3, 1);
    }

        input:-webkit-autofill {
            background: url('bg/black-orchid.png') #353544de !important;
            color: inherit !important;
        }

        input::placeholder, textarea::placeholder {
            font-family: 'Segoe UI Semibold';
            vertical-align: super;
            font-size: smaller;
            line-height: normal;
            color: #cad5ff7a;
            transition: all 3s cubic-bezier(0, .7, .3, 1);
        }

        input.wide, textarea.wide {
            width: calc(100% - 64px) !important;
        }

        input[type="button"], input[type="submit"] {
            cursor: pointer;
            min-width: 48px;
        }

            input[type="button"]:hover, input[type="submit"]:hover, input[type="text"]:hover, input[type="email"]:hover, input[type="password"]:hover, textarea:hover,
            input[type="button"]:focus, input[type="submit"]:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
                background-color: var(--colElementActive);
                color: var(--colUiActive);
            }

        input[type="text"], input[type="email"], input[type="password"], textarea {
            border-bottom: dashed 2px #ffffff00;
        }

            input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
                border-bottom: dashed 2px #ffffff1a;
            }

.input {
    cursor: pointer;
    height: 32px;
}

    .input svg path {
        transition: .15s cubic-bezier(0, .7, .3, 1);
    }

    .input:hover svg path {
        fill: var(--colUiActive);
        stroke: var(--colUiActive);
    }

    .input.icon {
        background: none;
    }

.simpleTwoGrid {
    display: grid;
    grid-template-columns: auto auto;
}

.contentBody {
    width: 640px;
    max-width: calc(100vw - 96px);
    overflow: hidden;
    margin: 48px;
}

/* MEME */

.memeBody, .contentBody {
    width: 640px;
    max-width: calc(100vw - 96px);
    overflow: hidden;
    margin: 48px;
}

.memeTitle > * {
    margin: 6px 8px;
}

.memeMedia {
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 2px;
    background: #14151a87;
}

video.memeMedia {
    max-height: 80vh;
    background: #14151a87;
}

.memeMediaContainer {
    position: relative;
    padding: 4px;
    display: flex;
    border-radius: 2px;
    z-index: 1;
    height: min-content;
}

    .memeMediaContainer.InitiallyHidden {
        overflow: hidden;
        cursor: pointer;
        display: grid;
    }

        .memeMediaContainer.InitiallyHidden img, .memeMediaContainer.InitiallyHidden video {
            filter: blur(32px);
            transition: .5s 10s;
        }

        .memeMediaContainer.InitiallyHidden::after {
            content: 'Visually Offensive Content';
            text-align: center;
            position: relative;
            font-size: 20px;
            padding: 6px;
            font-family: Segoe UI Bold;
            background: url('bg/black-orchid.png') #ff274691;
        }

        .memeMediaContainer.InitiallyHidden:active img, .memeMediaContainer.InitiallyHidden:active video {
            filter: none;
            transition: 0s 0s;
        }

    .memeMediaContainer svg {
        width: 20%;
        height: 20%;
        margin: 40%;
        fill: none;
        stroke-width: 2;
        stroke: #c0e0ff0a;
    }

.memeBottomBar {
    display: grid;
    grid-template-columns: 48px 48px 48px 48px 0.5fr 1fr;
    min-height: 48px;
    overflow: hidden;
    align-items: end;
}

    .memeBottomBar * {
        margin-top: auto;
        margin-bottom: auto;
    }

    .memeBottomBar .memeButton:nth-child(3) svg {
        stroke-width: 8px;
    }

.memeDescription {
    padding: 6px 8px;
    font-weight: normal;
    grid-column: 1/8;
    border-top: dashed 2px #c0c5ff30;
}

.memeUser {
    grid-column: -2;
}

    .memeUser.me h2 {
        display: none;
    }

    .memeUser.me::after {
        content: 'You';
        font-size: 22px;
        font-family: Montserrat Bold;
        color: var(--colUiHighlight);
    }

.memeDate {
    grid-column: -1;
    padding-right: 14px;
}

.memeButton {
    position: relative;
    width: 40px;
    height: 40px;
    margin: 4px;
}

    .memeButton svg {
        width: 22px;
        height: 22px;
    }

    .memeButton svg, .memeButton .memeButtonText {
        transition: .2s cubic-bezier(0, .7, .3, 1);
    }

.memeButtonText {
    font-size: 22px;
}

.upvoteCount {
    position: absolute;
    top: 17px;
    text-shadow: 0 0 1px #000, 0 0 2px #000, 0 0 4px #000, 0 0 8px #000;
    z-index: 99;
    opacity: 0;
    transition: 1s cubic-bezier(.5,0,0,1);
}

.memeButton:hover .upvoteCount {
    top: 7px;
    opacity: 1;
}

.memeEdit {
    width: 24px;
    height: 24px;
    padding: 8px;
    display: none;
}

    .memeEdit svg {
        width: 24px;
        height: 24px;
    }

.memeButton.active + .memeEdit {
    display: initial;
}

.memeButton:nth-child(2) {
    grid-column: 2;
}

.memeButton.active:nth-child(2) {
    grid-column: 2;
}

.memeUpvote svg {
    position: relative;
    fill: none;
    stroke: var(--colUi);
    stroke-width: 32px;
    overflow: visible;
    top: 0;
}

.memeUpvote.upvoted svg {
    stroke: none;
    fill: var(--colUiHighlight);
    transition: .5s cubic-bezier(0, .7, .3, 1);
}

.memeButton.memeUpvote:hover svg {
    top: -10px;
    opacity: 0;
}

.memeDetailsContainer {
    border-radius: 3px;
    margin: 4px 0;
}

.memeTopBar {
    display: flex;
    font-size: 22px;
    border-bottom: dashed 2px #c0c5ff30;
}

.memeDetail {
    white-space: nowrap;
    padding: 11px;
    display: flex;
}

    .memeDetail svg {
        height: 26px;
        width: 26px;
        margin-right: 8px;
        stroke-width: 1px;
        fill: none;
        padding: 2px;
    }

.memeTopBar > .memeDetail:nth-child(2) {
    right: 0;
    position: absolute;
}

.memeComment {
    padding-left: 12px;
    position: relative;
    border-left: solid 2px #fff2;
}

.memeCommentAction {
    display: flex;
}

    .memeCommentAction > * > * {
        margin: 0;
    }

    .memeCommentAction > * {
        margin: 0 8px 0 0;
        opacity: 0.4;
        cursor: pointer;
        height: 15px;
    }

    .memeCommentAction > *:hover {
        opacity: 1;
    }

    .memeCommentAction svg {
        height: 11px;
        padding: 2px;
    }

    .memeCommentAction hr {
        border: 0;
        border-left: dotted 2px;
    }

.memeCommentBar input[type="radio"] + .memeComment::after {
    content: '...';
    font-size: 28px;
    transition: .5s cubic-bezier(0, .7, .3, 1);
    height: 0;
    display: block;
    overflow: hidden;
}

.memeCommentBar .simpleTwoGrid input {
    margin: 12px 10px;
}

.memeCommentBar input[type="radio"]:checked + .memeComment {
    border-color: #fff4;
    padding-bottom: 8px;
}

    .memeCommentBar input[type="radio"]:checked + .memeComment::after {
        height: 32px;
    }

input:checked + .memeCommentParentReset {
    height: 0;
    padding: 0;
    margin: 0;
}

.memeComment.deleted > h4::after {
    content: 'deleted';
    opacity: 0.4;
    font-size: 12px;
}

.memeComment.deleted > h4 {
    margin-top: 2px;
    font-size: 0;
}

.memeCommentText {
    margin: 12px 0 4px 0;
}

.memeComment.deleted > .memeCommentAction {
    display: none;
}

.memeTagContainer, .memeUpvoterContainer {
    font-family: 'Segoe UI Bold';
    padding: 11px;
    display: flex;
    flex-wrap: wrap;
}

    .memeTagContainer *, .memeUpvoterContainer * {
        padding: 6px;
        align-self: center;
        margin: 4px;
    }

    .memeUpvoterContainer svg {
        fill: #9dafe329;
        position: absolute;
        transform: scale(2.5) rotate(20deg);
        z-index: -1;
    }

    .memeUpvoterContainer:hover svg {
        animation: spin .5s linear infinite;
    }

    .memeUpvoterContainer a {
        font-size: 13px;
    }

    .memeUpvoterContainer svg:last-child {
        transform: scale(2.5) rotate(160deg) translateY(-3px);
    }

@keyframes spin {
    0% {
        transform: scale(2.5) rotate(160deg) translateY(-3px);
    }

    100% {
        transform: scale(2.5) rotate(520deg) translateY(-3px);
    }
}

@media (min-width: 1800px) {
    .memeBody {
        width: 1600px;
        display: grid;
        grid-template-columns: 464px 640px 464px;
        grid-template-rows: auto auto auto;
        border-radius: 3px;
        gap: 4px;
    }

    .memeTitle {
        grid-area: 1 / 2;
    }

    .memeMediaContainer {
        grid-area: 2 / 2;
    }

    .memeBody > :nth-child(3) {
        grid-area: 2 / 3 / 4 / 4;
        height: auto;
    }

    .memeBottomBar {
        grid-area: 3 / 2 / 4 / 3;
    }

    .memeBody > :nth-child(5) {
        grid-area: 2 / 1 / 4 / 2;
    }
}

#boardBody > .contentBody {
    grid-column: 1/-1;
}

/*Gallery View*/

.boardHeader {

}


#boardBody.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, 288px);
    grid-auto-flow: dense;
    grid-template-rows: repeat(auto-fit, minmax(288px, 384px));
}

.gallery .memeBody {
    margin: 0;
    width: 100%;
    height: 100%;
    max-height: 384px;
    display: block;
}

.gallery .memeMediaContainer {
    height: inherit;
    padding: 1px;
    border-radius: 0;
}

.gallery .memeMedia {
    border-radius: 0;
    object-fit: cover;
}

.gallery .memeMedia:hover {
    object-fit: contain;
}

.gallery .memeTitle,
.gallery .mgBox,
.gallery .memeBottomBar {
    display: none;
}

/*Mobile View*/

@media (max-width: 920px) {
    body {
        font-size: 75%;
    }

    .hideOnMobile {
        display: none;
    }

    .navbar {
        grid-row: 3;
        grid-column: 1 / 3;
        grid-template-rows: 48px;
        grid-template-columns: repeat(auto-fit, minmax(0px, auto)) minmax(48px, 1fr);
    }

    .navButton {
        margin: 0px 3px 3px 3px;
        padding: 13px 10px 10px 10px;
        border-radius: 0 0 24px 24px;

    }

    .navSpacer {
        margin: 0;
        border-width: 0;
    }

        .navButton.active svg, .navButton:hover svg {
            transform: translateY(-4px);
        }

        .navButton.active, .navButton:hover {
            box-shadow: inset 0px -6px 4px 2px #000;
        }

    .mainContent {
        grid-row: 1 / 3;
        grid-column: 1 / 3;
    }

    .memeBody, .contentBody {
        margin: 48px 5px;
        max-width: calc(100vw - 10px);
    }

    /*Logout button*/
    .navButton:last-child {
        grid-row: initial;
        grid-column: -1;
    }

    .draftMini h5 {
        transition: .1s cubic-bezier(.3, 0, .3, 1);
        bottom: 0;
        position: absolute;
        padding: 0 4px;
        right: 0;
        background: #0004;
        backdrop-filter: none;
    }
}

.memeDetailsContainer, .memeCommentBar {
    position: relative;
    animation: opIn .2s cubic-bezier(0, .7, .3, 1);
}

.userOverview.you {
    display: block !important;
    color: var(--colUiHighlight);
}

/* ======= F0X - Alerts ======= */

@keyframes fxal-show {
    0% {
        background-color: #0000;
    }

    100% {
        background-color: #0006;
    }
}

.fxal-container-in {
    animation: fxal-container-in 1s cubic-bezier(0, 1, 0, 1) both;
}

@keyframes fxal-container-in {
    0% {
        opacity: 0;
        transform: translateX(-80px);
    }

    50% {
        opacity: 1;
    }
}

.fxalBlocker {
    height: 0;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 10;
    background-color: #0000;
    display: none;
}

.fxal-show {
    animation: fxal-show .1s cubic-bezier(.4, .6, .4, .6) both;
    height: 100% !important;
    display: flex;
}

.fxal-container {
    margin: auto;
    z-index: 100;
}

.fxal-space {
    width: 400px;
    box-shadow: 8px 2px 48px #0006;
    margin: auto;
    top: 0;
    position: relative;
    background: url('bg/black-orchid.png') #0b0c15;
    padding: 2px;
    max-width: 100%;
    border-bottom: solid 3px #FFF;
    overflow: hidden;
    border-radius: 3px;
}

.fxal-header {
    color: #FFF;
}

.fxal-content {
    color: #eee;
}

.fxal-action {
    margin-top: 32px;
}

#fxalResultOk {
    float: right;
}

#fxalResultCancel {
    float: left;
}

/*================== GENERAL KEYFRAMES ================*/

@keyframes opIn {
    0% {
        opacity: 0;
    }
}

.show {
    display: initial !important;
    opacity: 1 !important;
}