/* =========================================================
   SOHJOLAUTA
   Custom dark purple theme for Sriracha
   ========================================================= */

html,
body {
    background: #09070d;
    color: #e5e7eb;
}

/* ---------------------------------------------------------
   Links
   --------------------------------------------------------- */

a {
    color: #b56cff;
    text-decoration: none;
}

a:hover {
    color: #d3a4ff;
    text-decoration: underline;
}

label a {
    text-decoration: none;
}

/* ---------------------------------------------------------
   Horizontal rules
   --------------------------------------------------------- */

hr {
    border: 0;
    height: 1px;
    background: #30203f;
    background-image:
        linear-gradient(
            to right,
            rgba(9, 7, 13, 0),
            rgba(155, 89, 255, 0.65),
            rgba(9, 7, 13, 0)
        );
}

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */

.navbar {
    color: #9ca3af;
}

.adminbar {
    color: #a78bfa;
    margin-bottom: 8px;
}

.adminbar a {
    color: #c084fc;
}

.adminbar a:hover {
    color: #ffffff;
}

#switchStyle {
    background: #15101d;
    border: 1px solid #4c2c66;
    color: #e5e7eb;
    border-radius: 4px;
    padding: 3px 6px;
}

/* ---------------------------------------------------------
   Header / logo
   --------------------------------------------------------- */

.header {
    color: #c084fc;
}

.logo {
    color: #c084fc;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-shadow: 0 0 18px rgba(155, 89, 255, 0.25);
    margin: 12px 0;
}

/* ---------------------------------------------------------
   Reply mode / catalog mode
   --------------------------------------------------------- */

.replymode {
    background: #241334;
    color: #e9d5ff;
    border: 1px solid #4c2c66;
    padding: 4px 7px;
}

.catalogmode {
    background: #241334;
    color: #e9d5ff;
    border: 1px solid #4c2c66;
    padding: 4px;
}

/* ---------------------------------------------------------
   Post form
   --------------------------------------------------------- */

.postarea table {
    background: #15101d;
    border: 1px solid #30203f;
    border-radius: 5px;
    border-top: 0;
    border-left: 0;
}

.postblock {
    background: #21152d;
    color: #c084fc;
    font-weight: 800;
    border-right: 1px solid #30203f;
}

input:not([type=file]):not([type=submit]),
textarea,
select,
option {
    background-color: #0f0b14;
    border: 1px solid #4c2c66;
    color: #e5e7eb;
    border-radius: 4px;
}

input:not([type=file]):not([type=submit]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #9b59ff;
    box-shadow: 0 0 0 2px rgba(155, 89, 255, 0.15);
}

textarea {
    resize: vertical;
}

input[type=submit],
button {
    background: #6d28d9;
    border: 1px solid #8b5cf6;
    color: #ffffff;
    border-radius: 4px;
    padding: 5px 12px;
    cursor: pointer;
}

input[type=submit]:hover,
button:hover {
    background: #7c3aed;
    border-color: #c084fc;
}

/* ---------------------------------------------------------
   Rules under posting form
   --------------------------------------------------------- */

.rules {
    color: #9ca3af;
}

.rules a {
    color: #c084fc;
}

.rules li {
    margin-left: 1em;
}

/* ---------------------------------------------------------
   Posts
   --------------------------------------------------------- */

.reply {
    background: #15101d;
    border: 1px solid #30203f;
    border-top: 0;
    border-left: 0;
    border-radius: 4px;
    margin-bottom: 4px;
}

.reply:hover {
    border-color: #4c2c66;
}

.forumpost:target,
.reply:target,
.target {
    border: 2px solid #9b59ff;
    box-shadow: 0 0 12px rgba(155, 89, 255, 0.15);
}

/* ---------------------------------------------------------
   Post metadata
   --------------------------------------------------------- */

.filetitle {
    background: inherit;
    color: #c084fc;
    font-weight: 800;
}

.postername {
    color: #86efac;
    font-weight: bold;
}

.postertrip {
    color: #6ee7b7;
}

.reflink a {
    color: #a78bfa;
}

.reflink a:hover {
    color: #e9d5ff;
    font-weight: bold;
}

.oldpost {
    color: #a78bfa;
    font-weight: 800;
}

.omittedposts {
    color: #6b7280;
}

.filesize {
    color: #9ca3af;
    text-decoration: none;
}

.thumbnailmsg {
    color: #c084fc;
}

.abbrev {
    color: #6b7280;
}

/* ---------------------------------------------------------
   Quotes
   --------------------------------------------------------- */

.unkfunc {
    background: inherit;
    color: #86efac;
}

.unkfunc a {
    color: #86efac;
}

/* ---------------------------------------------------------
   Highlighted replies
   --------------------------------------------------------- */

.replyhl {
    background: #32142d;
    color: #f3e8ff;
    border-color: #a855f7;
}

.commentpostername {
    color: #86efac;
    font-weight: 800;
}

/* ---------------------------------------------------------
   Tables / catalog / management
   --------------------------------------------------------- */

fieldset,
.managetable,
.managetable th,
.managetable td {
    border-color: #4c2c66;
}

.managetable {
    background: #110d18;
}

.managetable th {
    background: #21152d;
    color: #c084fc;
}

.managetable td {
    background: #15101d;
}

.row1 {
    background: #15101d;
    color: #e5e7eb;
}

.row2 {
    background: #110d18;
    color: #e5e7eb;
}

/* ---------------------------------------------------------
   Error / status messages
   --------------------------------------------------------- */

.errormessage {
    background: #2a1118;
    border: 1px solid #7f1d1d;
    color: #fecaca;
}

.manageinfo {
    background: #10251a;
    border: 1px solid #166534;
    color: #bbf7d0;
}

.passvalid {
    background: #3b2450;
    text-align: center;
    width: 100%;
    color: #f3e8ff;
}

/* ---------------------------------------------------------
   Delete controls
   --------------------------------------------------------- */

.dellist {
    font-weight: bold;
    text-align: center;
}

.delbuttons {
    text-align: center;
    padding-bottom: 4px;
}

/* ---------------------------------------------------------
   Post lists
   --------------------------------------------------------- */

.postlists {
    background: #15101d;
    width: 100%;
    padding: 0;
    color: #c084fc;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.footer {
    color: #6b7280;
    text-align: center;
    padding: 20px 0;
}

.footer a {
    color: #8b5cf6;
}

.footer a:hover {
    color: #c084fc;
}

/* ---------------------------------------------------------
   Globe / misc
   --------------------------------------------------------- */

.globe {
    color: transparent;
    text-shadow: 0 0 0 #e5e7eb;
}

/* ---------------------------------------------------------
   CAPTCHA
   --------------------------------------------------------- */

#captchaimage {
    filter: invert(1);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 700px) {

    body {
        font-size: 14px;
    }

    .logo {
        font-size: 1.6rem;
    }

    .adminbar {
        line-height: 2;
    }

    .postarea {
        overflow-x: auto;
    }

    .postarea table {
        max-width: 100%;
    }

    textarea {
        max-width: 100%;
        box-sizing: border-box;
    }

    input[type=text],
    input[type=password],
    select {
        max-width: 100%;
        box-sizing: border-box;
    }

    .reply {
        max-width: 100%;
        box-sizing: border-box;
    }
}
