/********** COLOR VARIABLES **********/
:root {
	/* text */
	--text: #ffffff;
	--link: #ffd0d6;
	--linkhover: #ffb0b6;
	--redlink: #ff8ba0;
	--header: #b37bb3;
	--boxheader: #eaf8ea;

	/* borders and underlines */
	--mainborder: #2f7b2d;
	--boxborder: #102534;
	--headerunderline: #b37bb3;

	/* backgrounds */
	--bodybg: #b37bb3;
	--mainbg: linear-gradient(180deg, #1b391f 0%, #2d6a2f 60%);
	--boxbg: rgba(255, 255, 255, 0.06);
	--boxheaderbg: #102534;
	--sidebarlinkhoverbg: rgba(255, 255, 255, 0.03);
}

/********** FONTS **********/

/* Pristina for headers */
@font-face {
	font-family: "Pristina";
	src: url("https://meadowie.neocities.org/fonts/PRISTINA.TTF") format("truetype");
	font-display: swap;
}

/* Pixelated MS Sans Serif for wiki legacy */
@font-face {
	font-family: "Pixelated MS Sans Serif";
	src: url("https://files.catbox.moe/1za99g.woff") format("woff");
	font-weight: normal;
	font-style: normal;
}

@font-face {
	font-family: "Pixelated MS Sans Serif";
	src: url("https://files.catbox.moe/z7csle.woff") format("woff");
	font-weight: bold;
	font-style: normal;
}

/********** BASIC STYLING **********/

body {
	background-size: cover;
	background-attachment: fixed;
	background-image: url("https://file.garden/aPlGg7vVb0z0KDh4/fairies/background4.png");
	color: var(--text);
	margin: 0;
	padding: 0;
	font-family: "Pixelated MS Sans Serif", Arial;
	font-weight: normal;
	font-size: 14px;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}

a {
	color: var(--link);
	text-decoration: underline;
}

a:hover {
	color: var(--linkhover);
}

h1,
h2,
h3,
h4,
h5 {
	font-family: "Pristina", cursive;
	color: var(--header);
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
	text-align: l;
}

h1 {
	font-size: 4em;
	border-bottom: 1px solid var(--headerunderline);
}

h2 {
	font-size: 2em;
}

h3 {
	font-size: 2.5em;
}

h1,
h2 {
	overflow: hidden;
	clear: left;
}

img {
	max-width: 100%;
}

/********** UTILITY CLASSES **********/

.text-center {
	text-align: center;
}

a.redlink {
	text-decoration: none;
	color: var(--redlink);
}

.big-text {
	font-size: large;
}

.clear-both {
	clear: both;
}

/********** GRID CONTAINER **********/

.container {
	display: grid;
	grid-template-columns: 200px auto;
	grid-template-rows: 1fr auto;
	grid-template-areas:
		"sidebar main"
		"footer footer";
	row-gap: 15px;
	column-gap: 15px;
	margin: 15px 0 0 0;
	min-height: Calc(100vh - 15px);
}

/********** SIDEBAR **********/

sidebar {
	grid-area: sidebar;
}

sidebar .logo-image {
	margin-bottom: 10px;
    padding-left: 55px;
}

sidebar nav {
	padding: 10px;
	background-image: url("https://file.garden/aPlGg7vVb0z0KDh4/fairies/background3.png");
	background-repeat: no-repeat;
	background-size: fill;
	background-position: center;
	margin-bottom: 10px;
	border-radius: 0 10px 10px 0;
	border: 3px solid var(--mainborder);
	border-left: none;
}

sidebar nav h2 {
	background-color: rgba(0, 0, 0, 0.5);
	/* semi-transparent dark overlay */
	color: #fff;
	border-radius: 8px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
	margin: 0;
	/* remove default margin */
	padding: 4px 8px;
	/* space inside the rounded background */
	display: inline-block;
}

sidebar nav ul {
	margin: 10px 5px 5px 5px;
	padding-left: 20px;
}

sidebar nav a {
	display: block;
	padding: 2px;
	color: var(--text);
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
	/* dark shadow for contrast */

}

sidebar nav a:hover {
	background-color: var(--sidebarlinkhoverbg);
}

/********** MAIN **********/

main {
	grid-area: main;
	padding: 10px;
	background: var(--mainbg);
	border-radius: 10px 0 0 10px;
	border: 2px solid var(--mainborder);
	border-right: none;
}

/***** boxes *****/

.box-row {
	margin-bottom: 10px;
	display: flex;
	flex-direction: row;
	justify-content: stretch;
	column-gap: 10px;
}

.box {
	padding: 10px;
	background: var(--boxbg);
	flex: 1 1 0;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.02);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.box h1,
.box h2,
.box h3,
.box h4,
.box h5 {
	color: var(--boxheader);
	background: var(--boxheaderbg);
	padding: 5px;
	border-radius: 8px;
	border-bottom: none;
}

/***** box navs *****/

ul.box-nav {
	list-style-type: none;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	padding: 0;
}

ul.box-nav li {
	flex: 1 1 0;
}

ul.box-nav a {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/***** infobox *****/

table.infobox {
	background: var(--boxbg);
	padding: 2px;
	border: 1px solid rgba(255, 255, 255, 0.02);
	width: 300px;
	float: right;
	margin-left: 10px;
	text-align: left;
}

table.infobox tbody {
	vertical-align: top;
}

table.infobox th[colspan="2"] {
	text-align: center;
}

.infobox h1,
.infobox h2,
.infobox h3,
.infobox h4,
.infobox h5 {
	border-bottom: none;
	background-color: var(--boxheaderbg);
	color: var(--boxheader);
	margin: 0;
}

table.infobox th,
table.infobox td {
	padding: 5px;
}

/***** table of contents *****/

details.toc {
	background: var(--boxbg);
	padding: 5px 10px;
	margin-bottom: 10px;
	display: inline-block;
	border: 1px solid rgba(255, 255, 255, 0.02);
}

details.toc ol {
	margin: 5px 0;
	counter-reset: index;
	list-style-type: none;
}

details.toc li::before {
	counter-increment: index;
	content: counters(index, ".", decimal) ". ";
}

/***** floating images *****/
figure.left-image,
figure.right-image {
	padding: 5px;
	margin: 0 0 5px 0;
	max-width: 253px;
	border: 1px solid rgba(255, 255, 255, 0.02);
}

figure.left-image img,
figure.right-image img {
	max-width: 250px;
	border: 1px solid rgba(255, 255, 255, 0.02);
}

figure.left-image {
	float: left;
	clear: left;
	margin-right: 10px;
}

figure.right-image {
	float: right;
	clear: right;
	margin-left: 10px;
}

/***** gallery *****/
.gallery {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 10px;
	row-gap: 10px;
	margin-bottom: 10px;
	align-items: start;
}

figure.gallery-image {
	padding: 5px;
	border: 1px solid rgba(255, 255, 255, 0.02);
	margin: 0;
}

figure.gallery-image img {
	border: 1px solid rgba(255, 255, 255, 0.02);
	max-height: 200px;
}

figure.gallery-image figcaption {
	width: 0;
	min-width: 100%;
}

/**** Notice ****/

.notice {
	background: var(--boxbg);
	padding: 10px;
	margin: 0 auto 10px auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	border: 1px solid rgba(255, 255, 255, 0.02);
	overflow: hidden;
}

.notice p {
	margin: 0;
	font-style: italic;
}

.notice img {
	max-height: 100px;
	height: auto;
	width: auto;
	margin-right: 10px;
	border-radius: 5px;
}

/********** FOOTER **********/

footer {
	grid-area: footer;
	text-align: center;
}

/********** FAIRY MUSIC PLAYER **********/
#fairy-music-player {
	font-family: "Pixelated MS Sans Serif", Arial;
	z-index: 999;
}

.window {
	width: 180px;
	box-shadow: inset -1px -1px #0a0a0a,
		inset 1px 1px #dfdfdf,
		inset -2px -2px #808080,
		inset 2px 2px #ffffff;
	background: #c0c0c0;
}

.title-bar {
	padding: 3px 3px 3px 5px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: linear-gradient(90deg, purple, orchid, white);
}

.title-bar-text {
	font-weight: bold;
	color: white;
}

.title-bar-controls {
	display: flex;
	gap: 2px;
}

.title-bar-controls button {
	width: 16px;
	height: 14px;
	background: silver;
	border: none;
	box-shadow: inset -1px -1px #0a0a0a,
		inset 1px 1px #fff,
		inset -2px -2px grey,
		inset 2px 2px #dfdfdf;
	cursor: pointer;
}

.title-bar-controls button[aria-label=Minimize] {
	background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/minimize.svg");
	background-position: bottom 3px left 4px;
	background-repeat: no-repeat;
}

.title-bar-controls button[aria-label=Maximize] {
	background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/maximize.svg");
	background-position: top 2px left 3px;
	background-repeat: no-repeat;
}

.title-bar-controls button[aria-label=Close] {
	background-image: url("https://raw.githubusercontent.com/jdan/98.css/main/icon/close.svg");
	background-position: top 3px left 4px;
	background-repeat: no-repeat;
}

.window-body {
	padding: 5px;
	background: #c0c0c0;
}

.song-info {
	background-color: #b37bb3;
	box-shadow: inset -1px -1px #fff,
		inset 1px 1px grey,
		inset -2px -2px #dfdfdf,
		inset 2px 2px #0a0a0a;
	padding: 5px;
	margin-bottom: 5px;
	overflow: hidden;
}

.controls {
	display: flex;
	justify-content: center;
	gap: 5px;
}

.controls button {
	background: #c0c0c0;
	border: 2px solid silver;
	box-shadow: inset -1px -1px #0a0a0a,
		inset 1px 1px #fff,
		inset -2px -2px grey,
		inset 2px 2px #dfdfdf;
	border-radius: 2px;
	cursor: pointer;
	padding: 3px;
}

.controls button:hover {
	box-shadow: inset -1px -1px #fff,
		inset 1px 1px #0a0a0a,
		inset -2px -2px #dfdfdf,
		inset 2px 2px grey;
}

.controlimg {
	width: 20px;
	height: 20px;
}

.arrival-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: relative; /* allows absolute positioning on hover */
}

.arrival-img {
  width: 100px;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1; /* default layer */
}

.arrival-img:hover {
  transform: scale(1.5);
  z-index: 10; /* hover image above others */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

    ::-webkit-scrollbar {
      width: 16px;
    }

    ::-webkit-scrollbar:horizontal {
      height: 17px;
    }

    ::-webkit-scrollbar-corner {
      background: #eee;
    }

    ::-webkit-scrollbar-track:vertical {
      background: linear-gradient(90deg, #e5e5e5, #f0f0f0 20%);
    }

    ::-webkit-scrollbar-track:horizontal {
      background: linear-gradient(180deg, #e5e5e5, #f0f0f0 20%);
    }

    ::-webkit-scrollbar-thumb {
      border: 1.5px solid #888;
      border-radius: 3px;
      box-shadow: inset 0 -1px 1px #fff, inset 0 1px 1px #fff;
      background-color: #eee;
    }

    ::-webkit-scrollbar-thumb:vertical {
      background: url("https://i.imgur.com/bfyvjnx.png") no-repeat 50%, linear-gradient(90deg, #eee 45%, #ddd 0, #bbb);
    }

    ::-webkit-scrollbar-thumb:horizontal {
      background: url("https://i.imgur.com/tqe4SxM.png") no-repeat 50%, linear-gradient(180deg, #eee 45%, #ddd 0, #bbb);
    }

    ::-webkit-scrollbar-button:horizontal:end:increment,
    ::-webkit-scrollbar-button:horizontal:start:decrement,
    ::-webkit-scrollbar-button:vertical:end:increment,
    ::-webkit-scrollbar-button:vertical:start:decrement {
      display: block;
    }

    ::-webkit-scrollbar-button:vertical {
      height: 17px;
    }

    ::-webkit-scrollbar-button:vertical:start:decrement {
      background: white;
      background-image: url("https://i.imgur.com/EFnEMEb.png");
      background-repeat: no-repeat;
      background-position: center;
      -moz-background-size: cover;
      -webkit-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
    }

    ::-webkit-scrollbar-button:vertical:start:increment {
      display: none;
    }

    ::-webkit-scrollbar-button:vertical:end:decrement {
      display: none;
    }

    ::-webkit-scrollbar-button:vertical:end:increment {
      background: white;
      background-image: url("https://i.imgur.com/xuIt6Lc.png");
      background-repeat: no-repeat;
      background-position: center;
      -moz-background-size: cover;
      -webkit-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
    }
