@charset "utf-8";
/* -------------------- FONTS -------------------- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&family=Source+Code+Pro:ital,wght@0,200..900;1,200..900&family=Workbench&display=swap');

/* -------------------- VARIABLES -------------------- */
:root {
	--text-main: cyan;
	/* primary var(--text-main) color */
	--highlight: yellow;
	/* yellow highlight for bold/links */
	--bg-main: black;
	/* main background */
	--text-light: white;
	/* lighter text */
	--border: orange;
}



/* -------------------- BASE STYLES -------------------- */
* {
	box-sizing: border-box;
	font-family: "Source Code Pro", monospace;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--bg-main);
}

/* -------------------- PARAGRAPHS -------------------- */
p {
	color: var(--text-main);
	text-shadow: 0 0 4px var(--text-main);
	padding: 0.25rem 0.5rem;
	margin: 0 1rem 1rem 1rem;
	text-decoration-color: var(--highlight);
}

/* -------------------- TYPOGRAPHY HIGHLIGHTS -------------------- */
b,
strong {
	color: var(--highlight);
	text-shadow: 0 0 4px var(--highlight);
	text-decoration-color: var(--highlight);
}

i,
em {
	color: var(--text-light);
	text-shadow: 0 0 4px var(--text-light);
	text-decoration-color: var(--highlight);
}

/* -------------------- LISTS AND BULLETS -------------------- */
ul,
ol {
	padding-left: 2rem;
	margin-bottom: 1rem;
	list-style: none;
}

ul li,
ol li {
	position: relative;
	color: var(--text-main);
	margin-bottom: 0.5rem;
}

ul li::before {
	content: "• ";
	color: var(--highlight);
	font-weight: bold;
	text-shadow: 0 0 4px var(--highlight);
	position: absolute;
	left: -1.5rem;
}

ol {
	counter-reset: li;
}

ol li::before {
	counter-increment: li;
	content: counter(li) ". ";
	color: var(--highlight);
	font-weight: bold;
	text-shadow: 0 0 4px var(--highlight);
	position: absolute;
	left: -1.5rem;
}

/* -------------------- TABLES -------------------- */
.table-container {
	padding-left: 2rem;
	padding-right: 2rem;
	overflow-x: auto;
}

.table-container table {
	margin-bottom: 1rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	border-collapse: collapse;
	font-family: 'JetBrains Mono', monospace;
	color: var(--text-main);
	text-shadow: 0 0 2px var(--text-main);
}

.table-container th,
.table-container td {
	border: 1px solid var(--text-main);
	padding: 0.5rem 1rem;
	text-align: left;
	background-color: rgba(0, 0, 0, 0.8);
}

.table-container th {
	background-color: rgba(0, 255, 255, 0.2);
	font-weight: bold;
}

.table-container tbody tr:hover {
	background-color: rgba(0, 255, 255, 0.1);
}

/* -------------------- LINKS -------------------- */
a {
	color: var(--text-main);
	text-decoration: underline;
	text-decoration-color: var(--highlight);
	text-decoration-thickness: 2px;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--highlight);
}

/* -------------------- HEADINGS -------------------- */
h1 {
	background-color: var(--text-main);
	box-shadow: 0 0 4px var(--text-main);
	color: var(--bg-main);
	padding: 4px 8px;
	text-transform: uppercase;
	transition: 0.3s ease;
}

h2 {
	color: var(--text-main);
	background: none;
	padding: 4px 8px;
	text-transform: uppercase;
	transition: 0.3s ease;
}

h3 {
	color: var(--highlight);
	padding: 4px 8px;
	text-transform: uppercase;
	transition: 0.3s ease;
}

h1:hover {
	box-shadow: 0 0 16px var(--text-main);
}

h2:hover {
  color: var(--highlight);
  text-shadow: 0 0 24px var(--highlight);
}

h3:hover {
	text-shadow: 0 0 16px var(--highlight);
}



/* -------------------- MAIN CONTENT -------------------- */
#MainContent {
    display: flex;
    flex-direction: column;
    width: 100%;
    height:100%;
}

/* -------------------- MAIN CONTAINER -------------------- */
#MainContainer {
  display: grid;
  grid-template-columns:
    clamp(16rem, 12vw, 20rem)
    minmax(0, 1fr)
    clamp(8rem, 10vw, 10rem);
  grid-template-rows: 1fr auto;
  min-height: calc(100vh - 70px);
  margin-top: 60px;
}

.content-object {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	border: 0;
	overflow: hidden;
	background: transparent;
	transition: height 120ms ease-out;
}

/* -------------------- HEADER -------------------- */
#HeaderContainer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    padding: 0;
    margin: 0;
    border: thick outset var(--border);
    background: black;
    text-transform: uppercase;
    z-index: 2;
    overflow: hidden;
}

#HeaderLeft {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--text-main);
    height: 100%;
    padding: 0 4px;
    flex: 0 0 auto;
    z-index: 10;
}

#HeaderMid {
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    min-height: 100%;
    background-image: url("https://joats.neocities.org/images/logo/logo_right.gif");
    background-repeat: no-repeat;
    background-position: left;
}

#HeaderRight {
    flex: 0 0 auto;
    min-width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

/* -------------------- SIDEBARS -------------------- */
#LeftSidebar {
    flex: 0 0 auto;
    width: clamp(16rem, 12vw, 20rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 8px;
    color: black;
    border: thick outset var(--border);
    border-top:0;
    background: black;
    overflow-y: auto;
    overflow-x: hidden;
}

#RightSidebar {
    flex: 0 0 auto;
    width: clamp(8rem, 10vw, 10rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 8px;
    color: black;
    border: thick outset var(--border);
    border-top:0;
    background: black;
    overflow-y: auto;
    overflow-x: hidden;
}

/* -------------------- FRIEND BUTTONS -------------------- */
#FriendButtons {
    display: grid;
    border: thin solid var(--text-main);
    
}

#FriendButtons a {
    text-align: center;
    width:100%;
    padding: .1rem .2rem .1rem .2rem;
}

/* -------------------- GUESTBOOK -------------------- */
#GuestbookIframe {
    flex: 1 1 auto;
    min-height: 500px;
}

/* -------------------- FOOTER -------------------- */
#FooterContainer {
    display: flex;
    justify-content: center;
    border: thick outset var(--border);
    border-left: 0;
    border-right: 0;
    width: 100%;
}

/* -------------------- GRAPHICS / CARDS -------------------- */
.graphic {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	width: 25vw;
	min-width: 360px;
	max-width: 50vw;
	margin-bottom: 1rem;
	background-color: var(--text-main);
	border: thin solid var(--text-main);
	box-shadow: 0 0 8px var(--text-main);
	overflow: hidden;
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
}

.graphic:hover {
	transform: scale(1.5);
	box-shadow: 0 0 24px var(--text-main);
}

.graphic .image-container {
	width: 100%;
	overflow: hidden;
}

.graphic img {
	width: 100%;
	height: auto;
	object-fit: contain;
	transition: transform 0.3s ease, filter 0.3s ease;
}

.graphic p {
	width: 100%;
	text-align: center;
	font-style: italic;
	font-weight: bold;
	color: var(--bg-main);
	background-color: var(--text-main);
	margin: 0.5rem 0 0 0;
	padding: 0.25rem;
}

/* -------------------- COVER IMAGE CONTAINER -------------------- */
#coverimage-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 16px;
}

#coverimage-container p {
	text-align: center;
	font-weight: bolder;
	text-shadow: 0 0 8px var(--text-main);
}

/* -------------------- COVER CARDS -------------------- */
.cover {
	width: calc(20vw - 1vw);
	max-width: 200px;
	min-width: 120px;
	aspect-ratio: 2 / 3;
	margin-bottom: 1vw;
	object-fit: contain;
	transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.cover-link p {
  text-align: center;
  margin: 0.5rem auto 0;
  padding: 0.25rem 0.5rem;
}

/* -------------------- COVER GRID -------------------- */
.layout-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
  padding: 1rem;
  box-sizing: border-box;
}

/* -------------------- ROWS -------------------- */
.row {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	justify-content: center;
	align-content: center;
}

/* -------------------- SCROLLBARS -------------------- */
*::-webkit-scrollbar {
    width: 16px;
    height: 16px;
    background: black;
}

*::-webkit-scrollbar-track {
    background: black;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--text-main);
    border-radius: 0;
    border: 2px solid black;
    box-shadow: none;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #0ff;
}

*::-webkit-scrollbar-button {
    width: 16px;
    height: 16px;
}

*::-webkit-scrollbar-corner {
    background: black;
}


/* -------------------- ACCORDION -------------------- */
.accordion {
    /* Box & background */
    background: var(--bg-main);
    border: 0.1rem solid var(--text-main);
    box-shadow: 0 0 8px var(--text-main);
    
    /* Layout & spacing */
    margin-bottom: 1rem;
}

.accordion-header {
    /* Box & background */
    background: var(--text-main);
    border: 0;
    
    /* Typography */
    color: var(--bg-main);
    font-size: 1.2rem;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    
    /* Layout */
    cursor: pointer;
    padding: 0.4rem 0.4rem;
    width: 100%;
}

.accordion-header:hover {
    background: rgba(0, 255, 255, 0.6);
}

.accordion-content {
    display: none;
    padding: 0.4rem 0.4rem 0.4rem;
}

.accordion.active > .accordion-content {
    display: block;
}

.accordion-content a {
    /* Box & layout */
    display: block;
    margin: 0.4rem;
    padding-left: 2em;
    text-indent: -2em;
    text-overflow: ellipsis;
    
    /* Typography */
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
}

.accordion-content a:hover {
    color: var(--highlight);
}

/* Sub-accordion */
.accordion.sub {
    margin-left: clamp(0.75rem, 2vw, 1.25rem);
}


/* -------------------- INFO CARDS -------------------- */
.info-card {
    /* Layout & positioning */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    
    /* Box & background */
    border: 2px solid var(--text-main);
    border-radius: 0;
    background: var(--bg-main);
    box-shadow: none;
    padding: 0.6rem;
    
    /* Typography */
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    
    /* Transition */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translate(-8px, -8px);
    box-shadow: 8px 8px 0 var(--text-main), 0 0 16px var(--text-main);
    z-index: 10;
}

.info-card-placeholder {
    height: 160px;
    margin-bottom: 20px;
    pointer-events: none;
}


.spoiler {
	background: var(--text-main);
	color: var(--bg-main);
	cursor: pointer;
	display: block;
	padding: 0.25rem 0.5rem;
	text-align: center;
	margin-top: 0.5rem;
	border-radius: 2px;
	transition: color 0.3s ease;
	min-height: 1.2em;
	overflow: hidden;
}

.spoiler.revealed {
	color: var(--text-main);
}

.spoiler::after {
	display: block;
	text-align: center;
	content: "";
}

/* -------------------- CONNECTOR LINES -------------------- */
#connector-lines {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

#connector-lines line {
	stroke: var(--text-main);
	stroke-width: 2;
	stroke-dasharray: 4 2;
	filter: drop-shadow(2px -2px 2px var(--text-main));
	transition: stroke 0.3s ease;
}

#connector-lines line:hover {
	stroke: #0ff;
}

/* -------------------- YOUTUBE EMBEDS -------------------- */
iframe {
	border: none;
}

/* -------------------- ANIMATIONS -------------------- */
@keyframes saturate {
	0% {
		filter: saturate(0%);
		drop-shadow: 0 0 0 var(--text-main);
	}

	100% {
		filter: saturate(100%);
		drop-shadow: 0 0 16px var(--text-main);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

#MainBody {
    display: flex;
    flex-direction: column;
    background: black;
    height: 100%;
}

/* -------------------- ICONS & IMAGES -------------------- */
.navicon {
    height: 30px;
    filter: drop-shadow(0 0 7px var(--text-main));
    padding: 0 4px;
}

.image {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--text-main);
    height: 100%;
    width: 100%;
    z-index: 3;
    background: none;
}

/* -------------------- EFFECTS -------------------- */

/* Text glow effects */
.textglow a {
    box-shadow: 0 0 8px var(--text-main);
}

.textglow a:hover {
    animation: textglowgrow 0.5s forwards;
}

.glow {
    text-shadow: 0 0 4px var(--text-main);
}

.black-and-white {
  filter: saturate(0);
  transition: filter 0.3s ease;
}

.black-and-white:hover {
  filter: saturate(100%);
}

/* Float / transform effects */
.float-shadow {
    display: inline-block;
    position: relative;
    transition: transform 1s ease;
}

.float-shadow:hover {
    transform: translateY(-5px);
}

.pop-glow:hover {
  transition: transform 0.3s, box-shadow 0.3s;
	transform: translateY(-.4rem) translateX(-.4rem);
	box-shadow: .4rem .4rem 0 var(--text-main),.4rem .4rem .8rem var(--text-main), 0 0 .8rem var(--text-main);
}


/* -------------------- HOVERCARD -------------------- */
.hovercard {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 280px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.hovercard.show {
    opacity: 1;
}

/* -------------------- MARQUEE -------------------- */
.marquee {
  margin: 0;
  padding: 0.25rem 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.marquee span {
  display: inline-block;
  will-change: transform;
  animation: marquee 15s linear infinite;
}

/* -------------------- ANIMATIONS -------------------- */
@keyframes marquee {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes wobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

@keyframes textglowgrow {
    0% { box-shadow: 0 0 8px var(--text-main); }
    100% { box-shadow: 0 0 16px var(--text-main); }
}

@keyframes jello {
    11.1% { transform: none }
    22.2% { transform: skewX(-12.5deg) skewY(-12.5deg) }
    33.3% { transform: skewX(6.25deg) skewY(6.25deg) }
    44.4% { transform: skewX(-3.125deg) skewY(-3.125deg) }
    55.5% { transform: skewX(1.5625deg) skewY(1.5625deg) }
    66.6% { transform: skewX(-0.78125deg) skewY(-0.78125deg) }
    77.7% { transform: skewX(0.390625deg) skewY(0.390625deg) }
    88.8% { transform: skewX(-0.1953125deg) skewY(-0.1953125deg) }
    100% { transform: none }
}

.jello:hover { animation: jello 2s infinite; transform-origin: center; }
.wobble:hover { animation: wobble 1s ease-in-out infinite; }

/* -------------------- CRT OVERLAY -------------------- */
.crt::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(18,16,16,0.1);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

.crt::before {
    content: " ";
    display: block;
    position: fixed;
    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));
    z-index: 3;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 900px) {
    /* Stack main container vertically */
    #MainContainer {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #LeftSidebar,
    #RightSidebar {
        flex: 1 1 100%;
        border-left: none;
        border-right: none;
        max-width: 100%;
        min-width: 100%;
        margin: 0;
        padding: 0.5rem 0;
    }
}
