@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

/* === CUSTOM FONT SETUP === */
@font-face {
  font-family: 'Lana';
  src: url('./lana.ttf') format('truetype');
}

/* === COLORS === */
:root {
  --bg: #FFFFFF;
  --fg: #000;
  --accent: #ff00ff;
  --rgb1: #ff0000;
  --rgb2: #00ffff;
}

/* === CURSOR === */
* {
  cursor: url(https://cur.cursors-4u.net/cursors/cur-3/cur242.ani), 
          url(https://cur.cursors-4u.net/cursors/cur-3/cur242.png), auto !important;
}

/* === BACKGROUND === */
html {
  background-image: url("https://jaennymorton.neocities.org/Background.png");
  background-repeat: repeat;
  min-height: 100vh;
}

/* === BASE === */
body {
  display: table; /* Changed from inline-block for better centering */
  position: relative;
  margin: 2rem auto; /* Centered with auto margins */
  padding: 2rem;
  color: var(--fg);
  font-family: 'Helvetica', sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  background: transparent; /* Ensure background shows through */
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  border: 1px solid #ccc;
  box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Optional subtle shadow */
}

/* === FOUR CORNER ANIMATED DECALS === */
body::before, body::after,
.corner-tl::before, .corner-br::after {
  content: "";
  position: fixed;
  width: 75px;
  height: 75px;
  background: url("https://jaennymorton.neocities.org/Prinkcross.gif") no-repeat;
  background-size: contain;
  z-index: 100;
  pointer-events: none;
}

/* Top-Left */
body::before {
  top: 5px;
  left: 5px;
}

/* Top-Right */
body::after {
  top: 5px;
  right: 5px;
}

/* Bottom-Left */
.corner-tl::before {
  bottom: 5px;
  left: 5px;
}

/* Bottom-Right */
.corner-br::after {
  bottom: 5px;
  right: 5px;
}

/* === TEXT === */
h1 {
  color: pink;
  font-family: 'Lana', sans-serif;
  position: relative;
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0; /* Remove default margins */
}

h1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: -1;
}

/* === GLITCH EFFECT === */
.glitch {
  position: relative;
  display: inline-block;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
}
.glitch::before {
  top: 1px;
  color: var(--rgb2);
  z-index: -1;
}
.glitch::after {
  top: -1px;
  color: var(--rgb1);
  z-index: -2;
}

/* === BLOCKS === */
.block {
  border: 1px solid var(--fg);
  padding: 1.5rem;
  margin: 1rem auto; /* Centered blocks */
  max-width: 700px;
  background: var(--bg);
}

/* === BUTTON === */
button {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--fg);
  padding: 0.5rem 1rem;
  font: inherit;
  text-transform: uppercase;
  font-weight: 400;
  cursor: pointer;
}
button:hover {
  background: var(--accent);
  color: var(--bg);
}

/* === BOX MODULES === */
.intro-box {
  position: relative;
  display: inline-block;
  padding: 0.5rem;
  margin: 1rem 0;
}

.intro-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: -1;
  border: 1px solid #ccc;
}

.links-box {
  position: relative;
  display: inline-block;
  padding: 1rem;
  margin: 1rem 0;
}

.links-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: -1;
  border: 1px solid #ccc;
}

.newspaper-text {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  line-height: 1.5;
  max-width: 1000px;
  margin: 20px auto;
  padding: 15px;
  background: white;
  border: 1px solid #ddd;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

a:hover {
  cursor: url("https://jaennymorton.neocities.org/eyeball.png") 16 16, auto;
}