/*---- UNIVERSALS -------------------------------------------------------------------------------*/
:root {
    --bg1: #000000;
    --bg2: #5a5449;
    --main: #faf1f1;
    --accent1: #68bada;
    --accent2: #dc4141;
}
body {
    background-color: var(--bg1);
    padding: 16px 0 0 0;
    overflow-y: scroll;
}
* * {
    box-sizing: border-box;
}
@font-face {
    font-family: "Instrument";
    src: url("/asset/font/InstrumentSerif.woff2") format("woff2"),
         url("/asset/font/InstrumentSerif.woff") format("woff");
}
@font-face {
    font-family: "Instrument";
    src: url("/asset/font/InstrumentSerif-Italic.woff2") format("woff2"),
         url("/asset/font/InstrumentSerif-Italic.woff") format("woff");
    font-style: italic;
}
@font-face {
    font-family: "Doto";
    src: url("/asset/font/Doto.woff2") format("woff2"),
         url("/asset/font/Doto.woff") format("woff");
}
/*---- PAGE LAYOUT ------------------------------------------------------------------------------*/
#container {
    margin: auto;
    width: 1024px;
}
#core, #landing, #reader {
    background-color: var(--bg1);
}
/*-------------- Header -------------*/
header {
    outline: solid var(--main) 2px;
}
header img {
    width: 540px;
    margin: 8px 0 0 8px;
}
header :nth-child(2) {
    width: 164px;
    margin-left: 20px;
}
header .splashtxt {
    width: 757px;
    overflow: hidden;
    white-space: nowrap;
}
header .splashtxt p {
    display: inline-block;
    animation: splash-scroll 45s linear infinite;
    color: #faf1f1;
    font-family: Doto;
    margin-top: 32px;
}
@keyframes splash-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
/*-------------- Nav ----------------*/
nav {
    outline: solid var(--main) 2px;
}
/*-------------- Main ---------------*/
main {
    outline: solid var(--main) 2px;
    padding: 32px;
}
/*-------------- Aside --------------*/
aside {
    outline: solid var(--main) 2px;
}
aside div {
    margin:  0 0 0 0;
    padding: 8px;
    border-bottom:  solid 2px var(--main);
}
aside div h2 {
    font-family: Doto;
    font-weight: bold !important;
    margin: 0 0 8px 0;
    padding: 0;
    font-size: 16px;
}
aside .data {
    font-family: Doto;
    color: #faf1f1;
    text-align: right;
    float: right;
    margin-right: 24px;
    display: inline;
}
aside p {
    font-family: Instrument;
    margin: 0;
    display: inline-block;
}
aside p, aside h2 {
    color: var(--main);
}
#webfriends td img {
    margin: 0 4px 0 0;
    filter: grayscale(100%);
    transition: transform 1.3s ease;
}
#webfriends td img:hover, #navlink:hover {
    filter: grayscale(0%);
}
#navlink {
    filter: grayscale(100%);
    padding: 0;
    width: 252px;
    height: 254px;
    overflow: hidden;
}

/*-------------- Footer -------------*/
footer {
    outline: solid var(--main) 2px;
}
footer * {
    text-decoration: none !important;
    font-family: Instrument;
}
footer table {
    margin: 0;
    width: 100%;
}
footer img {
    width: 36px;
    margin: 8px 16px 0 12px;
}
#my-button img {
    margin: 2px 11px 0 0;
}
footer p {
    white-space: pre;
    text-indent: 0 !important;
    text-justify:  auto;
    font-size: 16px;
    text-align: center;
    font-family: Instrument;
}
footer td {
    height: 62px;
    width: 33%;
    outline: none;
}
#my-button * {
    float: right;
}
#my-button img {
    width: auto;
}
/*-------------- LANDING LAYOUT -------------*/
#landing {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 512px 64px;
    grid-row-gap: 16px;
}
#landing header { display: none; }
#landing nav    { display: none; }
#landing main   { grid-area: 1 / 1 / 2 / 2; overflow: hidden; }
#landing aside  { display: none; }
#landing footer { grid-area: 2 / 1 / 3 / 2; }

#otherenter {
    position: relative;
    font-size: 12px;
    bottom: -40px;
    left: -16px;
}
/*-------------- CORE LAYOUT ----------------*/
#core {
    display: grid;
    grid-template-columns: calc(100% - 268px) 252px;
    grid-template-rows: 252px auto 64px;
    grid-column-gap: 16px;
    grid-row-gap: 16px;
}
#core header { grid-area: 1 / 1 / 2 / 2; }
#core nav    { grid-area: 1 / 2 / 2 / 3; }
#core main   { grid-area: 2 / 1 / 3 / 2; }
#core aside  { grid-area: 2 / 2 / 4 / 3; }
#core footer { grid-area: 3 / 1 / 4 / 2; }
/*-------------- READER LAYOUT- -------------*/
#reader {
    display: grid;
    grid-template-columns: calc(100% - 268px) 252px;
    grid-template-rows: 252px auto 64px;
    grid-column-gap: 16px;
    grid-row-gap: 16px;
}
#reader header { grid-area: 1 / 1 / 2 / 2; }
#reader nav    { grid-area: 1 / 2 / 2 / 3; }
#reader main   { grid-area: 2 / 1 / 3 / 3; }
#reader aside  { display: none; }
#reader footer { grid-area: 3 / 1 / 4 / 3; }
/*---- PAGE CONTENT -----------------------------------------------------------------------------*/
/*-------------- HEADERS --------------------*/
h1 {
    font-family: Instrument;
    color: var(--main);
    text-align: center;
    font-size: 40px;
    font-style: normal;
    text-transform: uppercase;
    margin: 32px 0 0 0;
    padding: 0;
}
 h2 {
    font-family: Instrument;
    color: var(--main);
    text-indent: 0px;
    font-size: 32px;
    font-style: normal;
    text-transform: uppercase;
    margin: 32px 0 0 0;
    padding: 0;
}
h3 {
    font-family: Instrument;
    color: var(--main);
    text-indent: 48px;
    font-size: 24px;
    text-transform: uppercase;
    margin: 32px 0 0 0;
    padding: 0;
}
h4 {
    font-family: Instrument;
    color: var(--main);
    text-indent: 96px;
    font-size: 16px;
    font-style: italic;
    text-transform: none;
    margin: 0;
    padding: 0;
}
/*-------------- PARAGRAPHS -----------------*/
 p {
    font-family: Instrument;
    color: var(--main);
    text-indent: 24px;
    font-size: 16px;
    font-style: normal;
    text-transform: none;
    margin: 8px 0 8px 0;
    padding: 0;

    text-align: justify;
}
#main p.quote {
    margin: 12px 96px 12px 96px;
    text-indent: 0;
    font-size: 16px;
    font-style: italic;
    text-align: center;
}
#main p.quote::after {
    content: '"';
}
#main p.quote::before {
    content: '"';
}
#main p.code {
    font-family: monospace;
    background: var(--bg2);
    color: var(--main);
    border-radius: 8px;
    white-space: pre;
    overflow-x: auto;
    margin: 0 32px 0 32px;
    text-align: left;
    padding: 24px 4px 24px 4px;
    font-size: 12px;
}
/*-------------- LINKS ----------------------*/
a {
    color: var(--accent1);
}
#enter-start {
    text-align: center;
    margin-top: 64px;
}
#enter-start a {
    color: var(--main);
    border: solid 2px var(--main);
    text-decoration: none;
    padding :16px;
    font-family: Instrument;
    font-weight: bold;
}
#enter-start a:hover {
    background-color: var(--accent1);
}
/*-------------- LISTS ----------------------*/
ul, ol, li {
    color: var(--main);
    font-family: Instrument;
    margin: 0;
}
ol { list-style-type: decimal; }
ol ol { list-style-type: lower-alpha; }
ol ol ol { list-style-type: lower-roman; }
ul, ol {
    padding-left: 24px;
}
/*-------------- TABLES ---------------------*/
#main table {
    color: var(--main);
    outline: none;
    font-family: Instrument;
    margin: 16px auto 16px auto;
}
#main th {
    color: var(--main);
    outline: solid var(--main) 2px;
    background-color: #2a2a2a;
    font-family: Doto;
    padding: 6px;
    text-align: center;
}
#main td {
    color: var(--main);
    outline: solid var(--main) 2px;
    font-family: Instrument;
    padding: 6px;
}
/*-------------- IMAGES ---------------------*/
img.right {
    border: solid 2px var(--main);
    float: right;
    width: 340px;
    margin: 8px 8px 8px 16px;
}
img.left {
    border: solid 2px var(--main);
    float: left;
    width: 340px;
    margin: 8px 16px 8px 8px;
}
img.center {
    border: solid 2px var(--main);
    display: block;
    width: 340px;
    margin: 8px auto 8px auto;
}
img.full {
    border: solid 2px var(--main);
    display: block;
    width: 100%;
    margin: 8px auto 8px auto;
}
img.noframe {
    border: none !important;
}
img + p + p {
    display: block;
}
#guestbook {
    width: 698px;
    height: 1024px;
    border: none;
}
/*-------------- MISC ELEMENTS --------------*/
hr {
    border-top: solid var(--main) 2px;
    margin: 0 24px 16px 24px;
}
/*---- ANIMATIONS -------------------------------------------------------------------------------*/
/*-------------- Grow on Hover --------------*/
.grow-anim {
    transition: transform 0.08s ease-in-out;
}
.grow-anim:hover {
    transform: scale(1.2);
}
/*-------------- Tilt on Hover --------------*/
.tilt-anim {
    transition: transform 0.3s ease-in-out;
}
.tilt-anim:hover {
    transform: rotate(15deg);
}
/*-------------- GrowTilt -------------------*/
.growtilt {
    transition: transform 0.3s ease;
}
.growtilt:hover {
    transform: scale(1.15) rotate(10deg);
}
/*-------------- Shake on Hover -------------*/
.shake-anim:hover {
    animation: shake 0.8s ease-in-out;
}
@keyframes shake {
    0%, 100% { transform: translateX(0px);   }
    15%          { transform: translateX(-4px); }
    30%          { transform: translateX(4px);  }
    45%          { transform: translateX(-3px); }
    60%          { transform: translateX(3px);  }
    75%          { transform: translateX(-2px); }
    90%          { transform: translateX(2px);  }
}
/*-------------- CRT Filter -----------------*/
@keyframes flicker {
    0%   { opacity: 0.27861; }
    5%   { opacity: 0.34769; }
    10%  { opacity: 0.23604; }
    15%  { opacity: 0.90626; }
    20%  { opacity: 0.18128; }
    25%  { opacity: 0.83891; }
    30%  { opacity: 0.65583; }
    35%  { opacity: 0.67807; }
    40%  { opacity: 0.26559; }
    45%  { opacity: 0.84693; }
    50%  { opacity: 0.96019; }
    55%  { opacity: 0.08594; }
    60%  { opacity: 0.20313; }
    65%  { opacity: 0.71988; }
    70%  { opacity: 0.53455; }
    75%  { opacity: 0.37288; }
    80%  { opacity: 0.71428; }
    85%  { opacity: 0.70419; }
    90%  { opacity: 0.70030; }
    95%  { opacity: 0.36108; }
    100% { opacity: 0.24387; }
}
@keyframes textShadow {
    0%   { text-shadow: 0.4389924193300864px   0 1px rgba(0,30,255,0.2), -0.4389924193300864px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    5%   { text-shadow: 2.7928974010788217px   0 1px rgba(0,30,255,0.2), -2.7928974010788217px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    10%  { text-shadow: 0.0295627584348129px   0 1px rgba(0,30,255,0.2), -0.0295627584348129px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    15%  { text-shadow: 0.4021853855287836px   0 1px rgba(0,30,255,0.2), -0.4021853855287836px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    20%  { text-shadow: 3.4794037899852017px   0 1px rgba(0,30,255,0.2), -3.4794037899852017px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    25%  { text-shadow: 1.6125630401149584px   0 1px rgba(0,30,255,0.2), -1.6125630401149584px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    30%  { text-shadow: 0.7015590085143956px   0 1px rgba(0,30,255,0.2), -0.7015590085143956px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    35%  { text-shadow: 3.8969140476503001px   0 1px rgba(0,30,255,0.2), -3.8969140476503001px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    40%  { text-shadow: 3.8709056148488190px   0 1px rgba(0,30,255,0.2), -3.8709056148488190px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    45%  { text-shadow: 2.2310569633618909px   0 1px rgba(0,30,255,0.2), -2.2310569633618909px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    50%  { text-shadow: 0.0808429041789804px   0 1px rgba(0,30,255,0.2), -0.0808429041789804px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    55%  { text-shadow: 2.3758461067427543px   0 1px rgba(0,30,255,0.2), -2.3758461067427543px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    60%  { text-shadow: 2.2021930510506360px   0 1px rgba(0,30,255,0.2), -2.2021930510506360px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    65%  { text-shadow: 2.8638780614874975px   0 1px rgba(0,30,255,0.2), -2.8638780614874975px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    70%  { text-shadow: 0.4887402515549734px   0 1px rgba(0,30,255,0.2), -0.4887402515549734px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    75%  { text-shadow: 1.8948491305757957px   0 1px rgba(0,30,255,0.2), -1.8948491305757957px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    80%  { text-shadow: 0.0833037308038857px   0 1px rgba(0,30,255,0.2), -0.0833037308038857px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    85%  { text-shadow: 0.0976982725524035px   0 1px rgba(0,30,255,0.2), -0.0976982725524035px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    90%  { text-shadow: 3.4433397614817802px   0 1px rgba(0,30,255,0.2), -3.4433397614817802px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    95%  { text-shadow: 2.1841838852799786px   0 1px rgba(0,30,255,0.2), -2.1841838852799786px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
    100% { text-shadow: 2.6208764473832130px   0 1px rgba(0,30,255,0.2), -2.6208764473832130px   0 1px rgba(255,0,80,0.3), 0 0 3px; }
}
.crt {
    animation: textShadow 1.6s infinite;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9990 !important;
    pointer-events: none;
}
#view-controller {
    /* Changed: relative so ::before/::after are scoped to this div */
    position: relative;
    /* Removed: top, left, width, height, z-index — let the div size itself naturally */
    /* Add overflow: hidden so the scanlines/flicker don't bleed outside the div */
    overflow: hidden;
    pointer-events: none;
}
.crt::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 2;
    pointer-events: none;
}
.crt::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(18, 16, 16, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}
#gallery img {
    position: relative;
    width: 475px;
    z-index: 9999 !important;
}
#gallery td {
    vertical-align: top;
}
.homepreview {
    width: 600px;
    z-index: 9999;
    position: relative;
    margin-left: 45px;
}