@import url('https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Macondo+Swash+Caps&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Almendra+SC&family=Macondo+Swash+Caps&display=swap');


@font-face {
  font-family: 'Sperry';
  /* The path is now simpler because the file is in the root folder */
  src: url('sperry.ttf') format('truetype');
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Sperry', sans-serif; /* Change the font here */
	font-size: 14px; /* You may need to adjust the size for the new font */
	font-weight: bold;
	background-image: url(https://i.ibb.co/p2kzxPh/brown159.gif);
	background-size: repeat;
}

.outer {
	width: 1000px;
	margin: auto;
	position: relative;
}

.header {
	width: 100%;
	max-width: 100%;
	height: 300px;
	background-image: url(https://files.catbox.moe/b3h3pi.png);
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

/* --- NEW TRIPLE BOX LAYOUT --- */

/* 1. The Outer Decorative Layer */
.outer-frame {
	width: 1000px;
	margin: auto;
	position: relative; /* Make sure this line is here */
}

/* 2. The Middle Box with the "Predefined" Border */
.inner-frame {
	height: 100%;
	background-color: #f5cd95; /* Fills the space between the borders */
	padding: 10px;
	box-sizing: border-box;
	border: 30px solid transparent;
	border-image: url(https://dollarchive.neocities.org/css/borders/frame2.png) 30 round;
}

/* 3. The Inner Content Panel */
.content-panel {
	height: 100%;
	background-image: url(https://images4.imagebam.com/a8/c1/22/MERG2LL_o.png);
	padding: 24px;
	box-sizing: border-box;
	overflow-y: auto; /* Adds a scrollbar if content is too long */
}

/* --- STYLES FOR IMAGE NAVIGATION --- */

/* This turns the nav bar into a flex container */
.nav {
	display: flex;
	justify-content: center; /* Horizontally centers all buttons */
	align-items: center;   /* Vertically aligns all buttons */
	padding: 10px 0;       /* Adds some space above/below the nav bar */
	margin-top: -70px;
}

/* Styles for the button images */
.nav img {
	margin: 0 -7px;
	height: 120px;
	/* UPDATED: Added 'transform' to the transition for smooth animation */
	transition: opacity 0.2s ease, transform 0.2s ease;
}

/* A simple fade effect when you hover over a button */
.nav img:hover {
	opacity: 0.8;
	/* ADDED: Makes the button grow and rotate on hover */
	transform: scale(1.1) rotate(5deg);
}

.content {
	padding-bottom: 1rem;
}

.content p {
	font-family: 'Sperry', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	font-weight: bold;
	color: #000; /* Changed to black */
	/* This now creates a white outline/glow */
	text-shadow:
		-1px -1px 0 #fff,
		 1px -1px 0 #fff,
		-1px  1px 0 #fff,
		 1px  1px 0 #fff,
		 0    0   8px #fff;
}

.side {
	width: 250px;
	height: 100%;
	float: right;
}

.clear {
	clear: both;
}

.side-box {
	background: #EEE;
	padding: 12px;
	min-height: 200px;
	/* Frame removed, back to original */
}

textarea.code {
	background: #000;
	color: #FFF;
	font-family: monospace;
	padding: 12px;
	width: 100%;
}

.breadcrumbs {
	background: #EEE;
	display: inline-block;
	padding: 3px 6px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #666;
}

.breadcrumbs a {
	text-decoration: none;
	color: #666;
	font-weight: bold;
}

.nav a {
	color: #000;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 11px;
	font-weight: bold;
}

h1 {
	color: #000000; /* Changed from white to black */
	font-size: 36px; /* Made much larger */
	font-family: "Almendra SC", serif;
	text-transform: none; /* Removed uppercase for a more natural look */
	padding: 0;
	text-align: center; /* Centered the heading */
	border-bottom: 1px dotted #000; /* Added a separator line */
	margin-bottom: 1.5rem; /* Added space below the heading */
	text-shadow: 2px 2px 4px #FFF7D4; /* Gold-ish shadow effect */
	margin-top: -10px;                 /* Moves the heading up */
}

h2 {
	font-size: 1em;
	border-bottom: 1px dotted #000;
	margin-top: 2rem;
}

.border {
	border: 1px solid #000;
}

h2 a {
	text-decoration: none;
	color: #000;
}

.nav-item.nav-top {
	border: none;
}

.site-title {
	color: #FFF;
	margin-top: 40px;
	margin-left: 70px;
}

.site-title a {
	color: #FFF;
	text-decoration: none;
	font-family: 'Nanum Pen Script', cursive;
	font-size: 45px;
}

.update {
	display: inline;
	margin-right: 24px;
}

.updates {
	font-size: 11px;
	margin-top: 6px;
	margin-bottom: 3px;
}

.post-content img {
	max-width: 90%;
}

.muted {
	opacity: 0.3;
}

.recent-image img {
	width: 50px;
	border: 1px solid;
}

.sidebar {
	border: 0;
	width: 100%;
	height: 750px;
}

hr {
	border: 0;
	border-bottom: 1px dotted black;
	margin: 2rem 0;
}

table {
	border-collapse: collapse;
}

th, td {
	padding: 6px 12px;
	border: 1px solid #000;
	vertical-align: top;
}

th {
	background: #EEE;
	color: black;
}

table.border-0 th, table.border-0 td {
	border: 0;
}

.border-0 {
	border: none;
}

table img {
	max-width: 100%;
}

/* --- YASUSU (Left Side Image Swap) --- */
.yasusu-container {
	display: block;
	position: absolute;
	width: 260px;
	left: -95px;
	top: -10px;
	transition: transform 0.3s ease-in-out;
}
.yasusu-container img {
	width: 100%;
	transition: opacity 0.3s ease-in-out;
}
.yasusu-container .yasusu-hover {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}
.yasusu-container:hover {
	transform: translateY(-10px) translateX(10px) rotate(5deg) scale(1.05);
}
.yasusu-container:hover .yasusu-hover {
	opacity: 1;
}
.yasusu-container:hover .yasusu-default {
	opacity: 0;
}

/* --- YASU (Right Side Image Swap) --- */
.yasu-container {
	display: block;
	position: absolute;
	width: 220px;
	right: -30px;
	top: 100px;
	transition: transform 0.3s ease-in-out;
}
.yasu-container img {
	width: 100%;
	transition: opacity 0.3s ease-in-out;
}
.yasu-container .yasu-hover {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}
.yasu-container:hover {
	transform: translateY(-10px) translateX(10px) rotate(5deg) scale(1.05);
}
.yasu-container:hover .yasu-hover {
	opacity: 1;
}
.yasu-container:hover .yasu-default {
	opacity: 0;
}


/* --- LANGUAGE TOGGLE STYLES --- */

/* Hide Portuguese text by default */
[lang="pt"] {
	display: none;
}

/* When the body has the 'lang-pt' class, show Portuguese and hide English */
body.lang-pt [lang="pt"] {
	display: inline;
}
body.lang-pt [lang="en"] {
	display: none;
}

/* Style for the button (optional) */
#lang-toggle {
	position: fixed;
	bottom: 15px;
	right: 15px;
	padding: 8px 12px;
	background-color: #C0C0C0;
	border: 2px outset #FFFFFF;
	font-family: "MS Sans Serif", "Geneva", sans-serif;
	cursor: pointer;
}

/* --- DECORATIVE LACE BORDERS --- */

/* Add z-index to bring all lace pieces to the front layer */
.lace-left, .lace-right, .lace-top, .lace-bottom {
    position: absolute;
    z-index: 10; 
}

/* --- Vertical Side Pieces --- */
.lace-left, .lace-right {
    background-image: url(https://images4.imagebam.com/e4/e3/85/ME1195FY_o.png);
    background-repeat: repeat-y; /* This tiles the image vertically */
    width: 20px;
    height: 605px;
    top: 390px;
}

.lace-left { 
    left: -20px; 
    transform: scaleX(-1);
}

.lace-right { 
    right: -20px; 
}


/* --- Horizontal Top/Bottom Pieces --- */
.lace-top, .lace-bottom {
    background-image: url(https://images4.imagebam.com/e4/e3/85/ME1195FY_o.png);
    background-repeat: repeat-y; /* Also tiles vertically before rotation */
    width: 20px;
    height: 1020px;
    left: 50%;
}

.lace-top {
    top: 485px; 
    transform: translateX(-50%) rotate(90deg) scaleY(-1);
}

.lace-bottom {
    bottom: 92px;
    transform: rotate(90deg) scaleX(-1);
}