/*
 * Electric Blue: a recreation of the original ViperGB skin used at gbzx.mahoganyrush.net.
 * Colours, fonts and sizes are taken from the original stylesheet; images are the original ones.
 * Desktop-first like the original, with adjustments so it doesn't break on phones.
 */

body {
    margin: 0;
    padding: 0;
    background: #000;
    color: #aea7e2;
    font: 12px Verdana, Arial, sans-serif;
}

a { color: #aea7e4; font-weight: bold; text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
img { border: 0; }

/* Banner, buttons and back link */

.eb-header {
    position: relative;
    padding: 8px 30px 0;
    margin-bottom: 16px;
}

.eb-banner { display: inline-block; max-width: 100%; }
.eb-title { display: block; max-width: 100%; height: auto; }

.eb-menu { display: flex; align-items: flex-start; max-width: 100%; }
.eb-menu > img, .eb-menu a, .eb-menu span { display: block; flex: 0 1 auto; min-width: 0; line-height: 0; }
.eb-menu img { max-width: 100%; height: auto; }

.eb-back {
    position: absolute;
    top: 40px;
    right: 8px;
    font-size: 10px;
}
.eb-back img { vertical-align: middle; }

/* Page links */

.eb-pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0 12px;
    padding: 0 20px 4px;
}
.eb-pages .page { color: #aea7e4; font-size: 10px; font-weight: bold; }
.eb-pages .page img { vertical-align: middle; }
.eb-pages .pagelink { font-size: 12px; }
.eb-pages .apage { color: #fff; font-size: 12px; font-weight: bold; text-decoration: underline; }

/* Centred under the entries, so "Previous page" and "Next page" line up with their edges.
   (The original started this row at the far left of the page.) */
.eb-next {
    display: flex;
    justify-content: space-between;
    width: 70%;
    margin: 6px auto 0;
}
.eb-next .next { color: #fff; font-size: 10px; font-weight: normal; }
.eb-next img { vertical-align: top; }

/* One entry: top border, side columns with the glow, bottom border */

.eb-entry { width: 70%; margin: 0 auto; }

.eb-entry-top, .eb-entry-body {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 50px;
}

.eb-entry-top {
    height: 20px;
    background: url(../images/topborder.gif) repeat-x;
    align-items: end;
}
.eb-entry-top .eb-bullet { text-align: right; line-height: 0; padding-bottom: 3px; }
.eb-entry-top p { margin: 0; white-space: nowrap; overflow: hidden; }
.number { color: #fff; font: bold 14px Tahoma, Verdana, Arial, sans-serif; }
.topdata { color: #888; font: 11px Verdana, Arial, sans-serif; }

.eb-left { background: #000066 url(../images/entryleft.jpg) repeat-y; }
.eb-right { background: #000066; line-height: 0; padding-top: 2px; }

.eb-content { background: #000066 no-repeat; padding-bottom: 20px; }
.eb-bg1 { background-image: url(../images/bluebg1.gif); }
.eb-bg2 { background-image: url(../images/bluebg2.gif); }
.eb-bg3 { background-image: url(../images/bluebg3.gif); }
.eb-bg4 { background-image: url(../images/bluebg4.gif); }
.eb-bg5 { background-image: url(../images/bluebg5.gif); }

.eb-content .name {
    display: inline;
    margin: 0;
    color: #aea7e2;
    font: bold 14px Verdana, Arial, sans-serif;
}
.eb-content .name::before { content: ""; display: block; height: 16px; }
.eb-content .flag { vertical-align: baseline; }
.eb-fade { vertical-align: baseline; margin-left: 4px; }
.custom { display: block; color: #aea7e2; font: 11px/12px sans-serif; }
.eb-fields { margin-top: 0; }

.eb-content .text {
    margin-top: 16px;
    color: #fff;
    font: 14px Verdana, Arial, sans-serif;
    overflow-wrap: anywhere;
}
/* The original put a space before every emoticon. */
.text .emoticon, .comment .emoticon { vertical-align: middle; margin-left: 0.3em; }
.text a { font-size: 12px; }

.eb-reply { display: flex; gap: 2px; margin-top: 12px; padding-right: 40px; }
.eb-reply img { flex: 0 0 auto; }
.comment { color: #fff; font: bold 10px Verdana, Arial, sans-serif; padding-top: 4px; overflow-wrap: anywhere; }

.eb-entry-bottom { height: 18px; background: url(../images/bottomborder.gif) repeat-x; }

.eb-empty { text-align: center; color: #aea7e4; }

/* Footer logo */

.eb-footer { padding: 18px 0 16px; text-align: center; line-height: 0; }
.eb-footer img { vertical-align: top; max-width: 100%; height: auto; }

/* Glowing box used by the sign form, stats and search (the original's corner and edge images) */

.eb-frame {
    display: flex;
    justify-content: center;
    width: fit-content;
    max-width: calc(100% - 16px);
    margin: 34px auto 0;
}
.eb-frame::before, .eb-frame::after {
    content: "";
    flex: 0 0 13px;
}
.eb-frame::before { background: url(../images/lefttop.gif) no-repeat top, url(../images/leftbottom.gif) no-repeat bottom, url(../images/leftmiddle.gif) repeat-y; }
.eb-frame::after { background: url(../images/righttop.gif) no-repeat top, url(../images/rightbottom.gif) no-repeat bottom, url(../images/rightmiddle.gif) repeat-y; }

.eb-box {
    min-width: 0;
    padding: 0 33px 16px;
    border: 2px solid #aea7e2;
    background: url(../images/rightmiddle.gif) repeat-y left, url(../images/leftmiddle.gif) repeat-y right;
}
.formhead { margin: 0 0 18px; color: #aea7e2; font: bold 18px Verdana, Arial, sans-serif; }

/* Rows with a label and the underline image */
.eb-row { display: grid; grid-template-columns: minmax(180px, auto) minmax(0, 1fr); align-items: start; }
.eb-label {
    display: block;
    min-height: 20px;
    padding-right: 6px;
    background: url(../images/line.gif) repeat-x;
    color: #888;
    font: 10px Verdana, Arial, sans-serif;
}
.eb-label img { vertical-align: baseline; margin-right: 2px; }

input, textarea, select {
    border: 0;
    background: #000066;
    color: #aea7e2;
    font: 12px Verdana, Arial, sans-serif;
}
.eb-row input[type="text"], .eb-row input[type="email"], .eb-row input[type="search"] { width: 270px; max-width: 100%; padding: 2px; }
.eb-row select { max-width: 100%; }
.eb-row textarea { width: 600px; max-width: 100%; height: 190px; padding: 2px; box-sizing: border-box; }

.eb-emoticons {
    display: grid;
    grid-template-columns: repeat(4, 22px);
    gap: 2px;
    justify-content: center;
    margin-top: 24px;
}
.eb-emoticons[hidden] { display: none; }
.eb-emoticons button { padding: 0; border: 0; background: none; cursor: pointer; line-height: 0; }

.info { color: #888; font: 10px sans-serif; text-align: center; margin: 22px 0 10px; }
.eb-buttons { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.eb-buttons button {
    width: 100px;
    padding: 2px 0;
    border: 2px solid #484949;
    background: #353343;
    color: #aea7e2;
    font: 10px Verdana, Arial, sans-serif;
    letter-spacing: 0.25em;
    cursor: pointer;
}
.eb-buttons button:hover { color: #fff; }

.field-error { margin: 2px 0 6px; color: #ff0000; font: bold 12px Tahoma, sans-serif; }
.error { color: #ff0000; font: bold 12px Tahoma, sans-serif; text-align: center; }
.status { color: #fff; font: bold 12px Tahoma, sans-serif; text-align: center; }
.preview-title { color: #aea9e2; font: bold 18px Verdana, Arial, sans-serif; text-align: center; }
.eb-preview { margin-bottom: 24px; }

/* Hidden from people, visible to form-filling robots. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 10px 0 0; display: flex; justify-content: center; }

/* Stats */

.eb-stats { width: 300px; max-width: 100%; }
.statcat {
    display: block;
    min-height: 20px;
    margin: 6px 0 0;
    background: url(../images/line.gif) repeat-x;
    color: #888;
    font: bold 11px sans-serif;
}
.statcat img { vertical-align: baseline; }
.eb-stats table { margin: 2px 0 14px auto; border-collapse: separate; border-spacing: 2px; }
.eb-stats td { padding: 1px 2px; }
.statname, .option { color: #888; font: 10px sans-serif; }
.stats { color: #aea7e2; font: bold 11px Verdana, Arial, sans-serif; text-align: right; padding-left: 8px !important; }
.eb-stats .flag { vertical-align: middle; margin-right: 4px; }

/* Thank-you note */

.eb-thanks { text-align: center; padding: 10px 0; }

@media (max-width: 760px) {
    .eb-header { padding: 8px 8px 0; margin-bottom: 20px; }
    .eb-back { position: static; display: block; margin-top: 8px; text-align: right; }
    .eb-entry, .eb-next { width: auto; margin-left: 8px; margin-right: 8px; }
    .eb-entry-top, .eb-entry-body { grid-template-columns: 26px minmax(0, 1fr) 14px; }
    .eb-right img { display: none; }
    .eb-row { grid-template-columns: minmax(0, 1fr); }
    .eb-label { margin-top: 6px; }
    .eb-box { padding: 0 14px 14px; }
    .eb-emoticons { justify-content: start; margin-top: 6px; }
}
