body {
    margin: 0px;
    background-color: #0f0e15;
    background-image: url(media/daent_sides.png), url(media/daent_bac.png);
    background-size: 100%, 100%;
    background-repeat: no-repeat, no-repeat;
    
    color: #8b93af;
    font-family: Verdana, Geneva, Tahoma, sans-serif
}
h1 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #ffffff;
    text-shadow: 2px 2px 6px #9c6bdd, -2px 2px 6px #9c6bdd, 2px -2px 6px #9c6bdd, -2px -2px 6px #9c6bdd;
}
h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: #dae0ea;
    margin-top: 8px;
    margin-bottom: 8px;
}
h5 {
    color: #b3b9d1;
    margin-top: 8px;
    margin-bottom: 8px;
}
p {
    margin-top: 6px;
    margin-bottom: 6px;
}
a {
    color: #9c6bdd;
    cursor: pointer;
}
a:visited {
    color: #4a5462;
}
button {
    border: 2px solid #9c6bdd;
    border-radius: 4px;
    background-color: #793a80;
    color: #dae0ea;
    cursor: pointer;
}
button:hover {
    border-color: #dae0ea;
}
hr {
    border: 1px #403353 solid;
}
ul {
    margin-top: 8px;
    margin-bottom: 8px;
}
ol {
    margin-top: 8px;
    margin-bottom: 8px;
}
footer {
    font-size: 10;
    width: 100%;
}

button.disabled {
    border: 2px solid #793a80;
    border-radius: 4px;
    background-color: #403353;
    color: #8b93af;
    cursor: default;
}

.marquee {
    width: 450px;
    margin: 0 auto;
    overflow: hidden;
    box-sizing: border-box;

    display: inline-block;
    width: max-content;

    padding-left: 100%;
    /* show the marquee just outside the paragraph */
    will-change: transform;
    animation: marquee 30s linear infinite;
}
.marquee:hover {
    /* animation: marquee_glow 1s ease-in-out infinite; */
}
@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}
@keyframes marquee_glow {
    0% { color: #8b93af; }
    50% { color: #dae0ea; }
    100% { color: #8b93af; }
}

.wiggle {
    position: relative;
    animation: wiggle 2s ease-in-out infinite;
}
@keyframes wiggle {
    0%   {top:  2px;}
    50%  {top: -2px;}
    100% {top:  2px;}
}

.code {
    font-family: monospace;
}
.small-text {
    font-size: 10px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.hbox {
    display: flex;
    justify-content: space-around;
}
.vbox {
    display: flex;
    justify-content: space-around;

    flex-direction: column;
}

.upperbar {
    position: sticky;
    top: 0px;
    display: flex;
    flex-direction: column;
    margin-bottom: 80px;
    z-index: 1;
}
.upperbar-image-links {
    background-color: #141013;
    height: 64px;
}
.upperbar-text-links {
    background-color: #322b287f;
    justify-content: space-between;
}
.upperbar-text-links-section {
    justify-content: flex-start;
    align-items: center;
    width: calc(50% - 48px);
    height: 32px;
}
.upperbar-text-links a {
    padding-left: 8px;
    padding-right: 8px;
}

.link-section {
    background-color: #4a5462;
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 4px;
    margin-bottom: 4px;
}

.shrinker {
    max-width: 0px;
    max-height: 0px;
}
.shrinker div {
    position: relative;
    float: right;
    pointer-events: none;
}
.red-text {
    color: #df3e23;
}
img.overlay {
    position: relative;
    left: 50%;
}

.tooltipper {
    position: relative;
}
.tooltip {
    visibility: hidden;
    position: absolute;
    z-index: 1;
    width: 180px;
    top: 125%;
    left: 50%;
    margin-left: -90px;
    padding: 4px;

    border: 2px solid #793a80;
    background-color: #322b28;
    color: #8b93af;
    text-align: center;
    scale: 0;
    rotate: 20deg;

    transition: scale 0.5s, rotate 0.5s;
    transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}
.tooltipper:hover .tooltip {
    visibility: visible;
    scale: 1;
    rotate: 0deg;
}


.age-popup {
    width: 50%;
    height: 25vh;
    margin-left: 25%;
    margin-right: 25%;
    margin-top: 25vh;
    padding: 12px;

    border-image-outset: 16px;

    align-items: center;
}

.main-column {
    flex-direction: column;
    display: flex;
    align-items: center;

    margin-left: auto;
    margin-right: auto;
    width: 60%;
    min-width: min(960px, 100%);
    max-width: 100%;
}

.img-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.img-container {
    max-width: 314px;
    max-height: 314px;
    margin: 8px;
    overflow: hidden;

    transition: max-width 0.5s;
    transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);

    cursor: pointer;
}
.main-img {
    max-width: calc(100% - 4px);
    border: 2px solid #793a80;
}
.pop-img-grow {
    transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
    transition: rotate 0.1s, scale 0.1s;
}
.pop-img {
    cursor: pointer;

    transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
    transition: rotate 1.0s, scale 1.0s;
}

/* ARTICLES */

.article-outer {
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #322b28;

    border-image-source: url(media/window.png);
    border-image-slice: 32 8 8 8;
    border-image-width: 32px 8px 8px 8px;
    margin-bottom: 24px;
    
    box-shadow: 1px 1px 0px #0f0e15, 3px 3px 3px #0f0e15, 6px 6px 8px #0f0e15;
}
.article-inner {
    margin: 4px;
    padding: 4px;
    width: calc(100% - 40px);
    max-height: 100%;
    overflow: hidden;
}
.article-title {
    text-align: left;
    flex-grow: 1;
    cursor: pointer;
    user-select: none;
    text-shadow: 1px 1px 0px #403353, 3px 3px 3px #403353, 6px 6px 8px #403353;
}
.article-date {
    text-align: right;
    color: #512f5a;
    flex-grow: 1;
}
.article-underbar {
    margin-top: 6px;
    margin-bottom: 6px;
}

/* MESSAGES */

.message-box {
    display: flex;
    flex-direction: column;
    gap: 8px;

    background-color: #403353;
    border: 2px #8b93af solid;
    border-top-color: #4a5462;
    border-bottom-color: #b3b9d1;
    padding: 4px;
    max-height: 600px;
}
.message-history {
    background-color: #b3b9d1;
    color: #512f5a;
    border: 2px #322b28 solid;
    border-top-color: #0f0e15;
    border-bottom-color: #8b93af;
    padding: 4px;
    
    overflow-y: scroll;
}
.message-speaker {
    width: 100%;
}
.message-input {
    width: 100%;
    resize: vertical;
}
.message {
    background-color: #8b93af;
    border: 1px #512f5a solid;

    padding: 4px;
    margin-top: 4px;
    margin-bottom: 4px;
}

/* RESPONSES */

.response-outer {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    background-color: #141013;

    border-image-source: url(media/window_small.png);
    border-image-slice: 16 2 2 2;
    border-image-width: 16px 2px 2px 2px;
    margin-bottom: 12px;
}

.response-inner {
    padding: 4px;
    color: #8e5252;
}

.response-overlay {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;

    border-image-source: url(media/window_small_ornamentation.png);
    border-image-slice: 32 32 32 32;
    border-image-width: 32px 32px 32px 32px;

    pointer-events: none;
}

/* PANELS */

.panel {
    background-color: #242234;
    color: #8b93af;
    border-image: url("media/panel_chain.png");
    border-image-slice: 16;
    border-image-repeat: repeat;
    border-image-width: 16px;
    border-image-outset: 8px;
    padding: 16px;
    margin: 16px;
    max-width: calc(100% - 24px);
}
.panel h3 {
    color: #dae0ea;
}
.panel p {
    color: #8b93af;
}
.panel-zebra {
    background-color: #403353;
    color: #8b93af;
    border-image: url("media/panel_zebra.png");
    border-image-slice: 8;
    border-image-repeat: repeat;
    border-image-width: 8px;
    border-image-outset: 4px;
    padding: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
    margin: 8px;
    max-width: calc(100% - 12px);
}
.panel-zebra h3 {
    color: #dae0ea;
}
.panel-zebra p {
    color: #8b93af;
}
.panel-floral {
    background-color: #f5a097;
    color: #403353;
    border-image: url("media/panel_floral.png");
    border-image-slice: 8;
    border-image-repeat: repeat;
    border-image-width: 8px;
    border-image-outset: 4px;
    padding: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
    margin: 8px;
    box-shadow: #403353 4px 4px 4px;
    max-width: calc(100% - 12px);
}
.panel-floral h3 {
    color: #512f5a;
}
.panel-floral p {
    color: #403353;
}
.panel-eclipse {
    background-color: #242234;
    color: #fa6a0a;
    border-image: url("media/panel_eclipse.png");
    border-image-slice: 16;
    border-image-repeat: stretch;
    border-image-width: 16px;
    border-image-outset: 8px;
    padding: 16px;
    margin: 16px;
    max-width: calc(100% - 24px);
}
.panel-eclipse h3 {
    color: #fffc40;
}
.panel-eclipse p {
    color: #fa6a0a;
}
.panel-ornate {
    background-color: #403353;
    color: #fa6a0a;
    border-image: url("media/panel_ornate.png");
    border-image-slice: 16;
    border-image-repeat: repeat;
    border-image-width: 16px;
    border-image-outset: 8px;
    padding: 16px;
    margin: 16px;
    max-width: calc(100% - 24px);
}
.panel-ornate h3 {
    color: #fffc40;
}
.panel-ornate p {
    color: #fa6a0a;
}
