@font-face {
  font-family: pixel;
  src: url(https://dl.dropbox.com/s/kmhe7d3n18vdz5e/w95fa.woff?dl=0);
}
@font-face {
  src: url(https://dl.dropbox.com/s/ktlx5w7t8gk42nb/SakeMoru-Regular.ttf);
  font-family: SakeMoru;
}

/* color palette */
:root {
  --accent: #f5c29c;
  --accent-dark: #d78b5c;
  --accent-2: #b5d78d;
  --card-bg: #fff6f8;
  --mint: #a8f0d1;
}

/* Main Holy Grail Layout Container */
.holy-grail-flexbox {
  max-width: 950px;
  margin: 0 auto;
  border: 2px solid #e5cfc2;
  border-radius: 15px;
  background-color: rgba(255, 250, 245, 0.92);
  padding: 10px;
  display: flex;
  flex-direction: column;
}

/* Header & Overlapping Name Setup */
.header {
  border: 7px solid;
  border-image: url("https://foollovers.com/mat/baf/food/fo32-008-a.gif") 7
    round;
  background-image: url("images/header.gif");
  background-size: cover;
  background-position: center;
  height: 170px;
  position: relative;
  box-shadow: 0 0 8px 8px #ffdca5 inset;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#name {
  font-family: "Kosugi Maru", "Sawarabi Mincho", Arial, sans-serif;
  font-size: 4.0em;
  font-weight: 700;
  color: #778F3E;
  letter-spacing: 0.02em;
  text-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.25);
  margin-left: 0.5em;
  margin-bottom: 0.2em;
}

.marquee {
  width: 100%;
  margin: 10px auto 0;
  background: rgba(255, 255, 255, 0.88);
  font-family: pixel, "Kosugi Maru", Arial, sans-serif;
  text-align: center;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--accent-2);
}

/* Three Column Row Wrapper */
.columns-container {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  gap: 15px;
}

/* Column 1: Left Side Layout Elements */
.left-sidebar {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.notepad {
  height: 220px;
  background: white;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0,
    rgba(0, 0, 0, 0.08) 1px,
    transparent 1px,
    transparent 24px
  );
  border-radius: 12px;
  padding: 16px;
  box-sizing: border-box;
  font-family: pixel, "Kosugi Maru", Arial, sans-serif;
  color: #333;
  overflow-y: auto;
}

/* Column 2: Middle Main Content Window */
.main-content {
  flex: 1; /* Automatically scales width depending on screen size */
}

.intro {
  font-family: "Kosugi Maru", Arial, sans-serif;
  color: black;
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 15px;
}

.intro img {
  width: 200px;
  max-width: 100%;
  height: auto;
  display: inline-block;
}


/* Column 3: Right Side Layout Elements */
.right-sidebar {
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.navi, .bg {
  border: 2px solid var(--accent-dark);
  padding: 10px;
  background: linear-gradient(#fff, var(--card-bg));
  border-radius: 8px;
}
.navi button {
  border-radius: 18px;
  border: 2px solid var(--accent-dark);
  background: linear-gradient(var(--accent), var(--accent-2));
  font-family: "Kosugi Maru", pixel, Arial, sans-serif;
  color: #fff;
  width: 100%;
  padding: 8px;
  margin-bottom: 8px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15);
}

.comm {
  border-radius: 10px;
  border: 2px solid white;
  background: radial-gradient(circle, #fff 37%, var(--accent-2) 100%);
  padding: 10px;
}
.imagemask {
  background: var(--accent-2);
  font-family: "Kosugi Maru", pixel, Arial, sans-serif;
  text-align: center;
  color: white;
  border-radius: 10px 10px 0 0;
  padding: 0.5em;
}
.bottom {
  background: #eee;
  border-radius: 0 0 10px 10px;
  padding: 10px;
  height: 120px;
  overflow-y: scroll;
  color: black;
  font-family: pixel, "Kosugi Maru", Arial, sans-serif;
}

/* Custom Text Formatting Details */
mark {
  font-family: "Kosugi Maru", pixel, Arial, sans-serif;
  background: linear-gradient(var(--accent-dark) 50%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
hello {
  font-family: "Kosugi Maru", pixel;
  border: 1px solid black;
  color: white;
  background: var(--accent);
  padding: 2px 4px;
}
bye {
  font-family: "Kosugi Maru", pixel;
  color: var(--accent);
  font-size: 1.2em;
  font-weight: bold;
}

/* Bottom Footer Structure */
.footer {
  margin-top: 20px;
  text-align: center;
  font-family: pixel, "Kosugi Maru", Arial, sans-serif;
  padding: 10px;
  border-top: 2px dashed var(--accent-dark);
}

/* Vintage tiled paper background behind container */
body {
  font-family: "Kosugi Maru", Arial, sans-serif;
  background-image: url("images/bg.gif");
  background-repeat: repeat;
  background-size: auto;
  background-position: top center;
  background-color: #fdeee6;
}
/* Optional scanline / CRT overlay for retro feel */
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    rgba(0, 0, 0, 0.03) 0 1px,
    transparent 1px 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.55;
}

::selection {
  /* Change highlight background color */
  background: #ff8fb1;
  /* Change highlight text color */
  color: #ffffff;
}

.box23 {
  padding: 15px;
  background: white;
  width: 250px;
  height: 260px;
  box-sizing: border-box;
  position: relative;
  margin: 45px auto 20px;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.18);
}
.icon01 {
  background: url(images/masking01.png) no-repeat center;
  height: 50px;
  position: absolute;
  top: -25px;
  width: 100%;
}

.nav-title {
  font-family: "Kosugi Maru", pixel, Arial, sans-serif;
  text-align: center;
  font-size: 1.5em;
  margin-bottom: 10px;
}

button:hover {
  background: linear-gradient(var(--accent), var(--accent-dark));
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.1);
  transition: background 0.5s ease, box-shadow 0.5s ease;
  transition: transform 0.5s ease;
  transform: scale(1.05);
}
.floating-gif {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 100px;
  height: auto;
  z-index: 999;
  pointer-events: none;
}