/* ====== Base Colors ====== */
:root {
  --pink-bg: #fff6f9;
  --pink-border: #f3dce2;
  --blue-bg: #f4f9ff;
  --blue-border: #d6e4f0;
  --yellow-bg: #fffdf3;
  --yellow-border: #f6e7b9;
  --lavender-bg: #f8f3ff;
  --lavender-border: #e1d6f6;

  --text-color: #000;
  --sidebar-bg: #fdebf0;
}

/* ====== General Styles ====== */
body {
  margin: 0;
  font-family: 'Courier New', Courier, monospace;
  background-color: #fffdf8;
  color: var(--text-color);
  background-image: url('/design/backgrounds/pinktexture.png');
  background-repeat: repeat;
  background-position: top left;
}

/* ====== Main Layout ====== */
.layout {
  display: flex;
}

/* ====== Sidebar ====== */
.sidebar {
  background-color: var(--sidebar-bg);
  width: 220px;
  padding: 20px;
  box-shadow: 4px 0px 0px var(--pink-border);
  flex-shrink: 0; /* Ensure sidebar stays fixed width */
}

.site-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 22px;
  margin-bottom: 20px;
}

.nav-menu a {
  display: block;
  margin: 12px 0;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 16px;
  background-color: #fff;
  border: 2px solid var(--pink-border);
  box-shadow: 3px 3px 0 var(--pink-border);
  font-family: 'Courier New', Courier, monospace;
  transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.nav-menu a:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--pink-border);
  text-decoration: none;
}

/* ===== Boxed Section Titles ===== */
.page-title {
  display: inline-block;
  padding: 8px 14px;
  background-color: #fff;
  border: 3px solid var(--pink-border);
  box-shadow: 4px 4px 0 var(--pink-border);
  font-family: 'Courier New', Courier, monospace;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.post-title {
  display: inline-block;
  padding: 5px 10px;
  background-color: #fff;
  border: 2px solid var(--pink-border);
  box-shadow: 2px 2px 0 var(--pink-border);
  font-family: 'Courier New', Courier, monospace;
  font-size: 18px;
  margin-bottom: 15px;
}

/* ====== Main Content Area ====== */
.content {
  flex: 1;
  padding: 20px;
  max-width: 1000px; /* Set fixed width for consistency */
  box-sizing: border-box;
}

/* ====== Pastel Boxes ====== */
.pastel-box {
  border: 2px solid;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 3px 3px 0;
}

.pink {
  background-color: var(--pink-bg);
  border-color: var(--pink-border);
}

.lavender {
  background-color: var(--lavender-bg);
  border-color: var(--lavender-border);
}

.blue {
  background-color: var(--blue-bg);
  border-color: var(--blue-border);
}

.yellow {
  background-color: var(--yellow-bg);
  border-color: var(--yellow-border);
}
/* ===== Footer Styles (Unified + Softer) ===== */
.site-footer {
  text-align: center;
  font-family: 'Courier New', Courier, monospace;

  padding: 30px 0;
  margin-top: 50px;

  /* Soft blended background */
  background: #f6f0f8; /* pale lavender cream */

  /* Subtle lavender border */
  border-top: 2px solid var(--pink-border);

  /* Remove heavy box style */
  border-left: none;
  border-right: none;
  border-bottom: none;
  box-shadow: none;
}

.site-footer a {
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px dashed var(--pink-border);
}

.site-footer a:hover {
  color: var(--pink-border);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 900px; /* keeps it from stretching too far */
  margin: 0 auto;
  padding: 10px 20px;
}

.footer-left,
.footer-center,
.footer-right {
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
}

.footer-center {
  text-align: center;
  flex-grow: 1;
}

.footer-left,
.footer-right {
  width: 33%;
}



/* ====== Responsive Sidebar for Mobile ====== */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    box-shadow: none;
    padding: 10px;
    background-color: var(--sidebar-bg);
    border-bottom: 2px solid var(--pink-border);
  }

  .site-title {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
  }

  .nav-menu a {
    margin: 0;
    flex: 1 1 auto;
    min-width: 100px;
    text-align: center;
  }

  .content {
    max-width: 100%;
    padding: 15px;
  }
}

/* --- Portal quadrant grid (inside the big content panel) --- */
.portal-grid{
  /* fill more of the big panel, raise this number */
  max-width: 950px;

  /* a little tighter overall */
  margin: 2.2rem auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  /* closer together (width + height) */
  column-gap: 1.8rem;
  row-gap: 1.2rem;

  /* optional: gives a bit more breathing room from edges */
  padding: 0 0.5rem;
}

/* --- Portal card --- */
.portal{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  text-decoration: none;

  padding: 2.75rem 2rem;
  border: 2px solid rgba(0,0,0,0.25);

  /* portal-ish shape (arch top, flatter bottom) */
  border-radius: 240px 240px 240px 240px;

  position: relative;

  /* makes the cards feel consistent */
  min-height: 360px;
  box-sizing: border-box;
}

/* inner frame (optional but nice) */
.portal::before{
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 210px 210px 210px 210px;
  pointer-events: none;
}

/* title image inside portal (text images) */
.portal-title{
  display: block;
  max-width: 88%;
  height: auto;
  margin: 0 auto 1.5rem;
}

/* icon image inside portal */
.portal-icon{
  display: block;
  max-width: 170px;
  height: auto;
  margin: 0 auto;
}

/* stack to 1 column when the content area gets narrow */
@media (max-width: 900px){
  .portal-grid{
    grid-template-columns: 1fr;
    max-width: 520px;

    /* still keep it tight on mobile */
    row-gap: 1.2rem;
  }
}

.portals-header,
.portals-warning{
  text-align: center;
  margin: 1.5rem 0;
}

.portals-warning img{
  display: block;
  margin: 0 auto 0.75rem;
}

.portal{
  background-color: #FAF4F0;
}


.portal{
  transform: scale(0.75);
  transform-origin: top center;
}



