@font-face {
    font-family: "Cherry Bomb One";
    src: url("assets/fonts/CherryBombOne-Regular.ttf");
}
@font-face {
    font-display: swap;
    font-family: "Lato";
    font-style: normal;
    font-weight: normal;
    src: url("assets/fonts/Lato-Regular.ttf");
}
@font-face {
    font-display: swap;
    font-family: "Lato";
    font-style: normal;
    font-weight: bold;
    src: url("assets/fonts/Lato-Bold.ttf");
}
:root {
    --accent: #ff849c;
    --stroke: #fff;
    --marquee: #ff84e4;
}

html{
    scrollbar-color: var(--accent) black;
}
html::-webkit-scrollbar{
    background: black;
}
html::-webkit-scrollbar-thumb{
    background: var(--accent);
}

/* Background */
body {
    background: black;
    margin: 0;

    font-family: "Lato", serif;
    font-size: 18px;
    color: white;
}

/* Content container */
@keyframes start {
    0%{ opacity: 0; top: 20px; }
    100%{ opacity: 1; top: 0; }
}
.content {
    position: relative;
    width: 60%;
    min-height: 100%;
    margin: auto;
    padding: 32px 48px;

    background: #000000ff;
    box-shadow: 3px 0px 12px black, -3px 0px 12px black;
    z-index: 2;

    animation: 0.4s start linear;
}

/* Bubbly text */
.text_bubbly {
    /*letter-spacing: -2px;*/
    transition-duration: 0.2s;
    font-family: "Cherry Bomb One", serif;

    /* SVG */
    dominant-baseline: middle;
    text-anchor: middle;
    stroke-dasharray: 1000, 1000;
    fill: var(--accent);
    paint-order: stroke;
    stroke: var(--stroke);
    stroke-width: 14px;
    stroke-linecap: round;
    stroke-linejoin: round;
}
a:has(.x3c_logo) {
    width: 50%;
}
a:has(.x3c_title) {
    width: 50%;
}
.x3c_logo {
    font-size: 128px;
}
.x3c_title {
    font-size: 42px;
    stroke-width: 12px;
}
a:hover .text_bubbly {
    stroke-width: 32px;
}
a:hover .x3c_title {
    stroke-width: 20px;
}

/* Links */
.link_shadow:hover {
    background: black;
    border-radius: 6px;
    box-shadow: 3px 3px 6px black, -3px -3px 6px black;
}
a {
    transition-duration: 0.2s;
    display: inline-block;
    color: var(--accent)
}
a:hover {
    transform: rotate(4deg) scale(1.15, 1.15);
}

/* Other */
.MathJax {
    font-size: 1.5em !important;
}
.smoll {
    color: #888;
    font-size: 14px;
    width: 100%;
    text-align: center;
}
a:has(img) {
    /*width: 90%;*/
    margin: 24px;
    margin-right: 0;
    vertical-align: top;
    width: calc(100% - 24px);
}
a > img {
    width: 100%;
    border-radius: 16px;
}
.center {
    width: 100%;
    text-align: center;
}

/* Syntax Highlighting */
pre {
    border-radius: 16px;
    padding: 0 32px !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;

    color:#ccc;
    background:0 0;
    font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;
    /*font-size:1em;*/
    font-size:0.9em !important;
    text-align:left;
    background:#2d2d2d
}
code {
    margin: 0 120px;
    /* word wrapping */
    white-space: pre-wrap !important;
    word-break: break-word !important;
}

/* Flag */
@keyframes rainbow_text {
    0%   { color: #6666ff; }
    10%  { color: #0099ff; }
    50%  { color: #00ff00; }
    75%  { color: #ff3399; }
    100% { color: #6666ff; }
}
.text_rainbow_big {
    width: 100%;
    text-align: center;
    font-size: 32px;
    margin: 32px 0;
    animation: 4s rainbow_text linear infinite;
}
.code_spoiler {
    transition-duration: 0.2s;
    opacity: 0;
}
.code_spoiler:hover {
    opacity: 1;
}
.spoiler {
    color: white;
    background: white;
    user-select: none;
    transition-duration: 0.2s;
}
.spoiler:hover {
    background: #00000000;
}

#payload_png {
    border: 2px solid var(--accent);
    margin: 16px;
    width: 512px;
    height: 512px;
    image-rendering: pixelated;
}
.inp {
    margin: 12px;
}
.columns {
    vertical-align: middle;
}
.columns div {
    display: inline-block;
    vertical-align: middle;
}
.columns::after {
    content: "";
    clear: both;
    display: table;
}

input[type="text"], #regex_output, #after_conv {
    /*background: var(--accent);*/
    background: #00000000;
    flex-grow: 1;
    flex-basis: 0;
    flex-direction: column;
    /*display: block;*/
    border: 2px solid var(--accent);
    border-radius: 64px;
    padding: 4px 16px;
    margin: 16px;
    font-size: 16px;
    height: 2em;
    line-height: 2em;
    vertical-align: middle;
    color: white;;
}