/* 
body {
    background-color: #4b5470; 

    background-image:
        linear-gradient(rgba(115, 211, 255, 0.418) 3px, transparent 2px),
        linear-gradient(90deg, rgba(124, 218, 255, 0.37) 3px, transparent 2px);

    background-size: 50px 50px;

    animation: moveGrid 12s linear infinite;
}

@keyframes moveGrid {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 50px -50px;
    }
} 

*/
@font-face {
  font-family: "Cordata"; 
  src: url('https://file.garden/ai_j0FB-2xOPAAOo/assets/SHPinscher-Regular.otf') format('opentype');
}

body {
    background-image: url("https://file.garden/ai_j0FB-2xOPAAOo/assets/paper.png");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-attachment: fixed;
}


body {
  margin: 0;
  font-family: Cordata, sans-serif;
}

/* CENTER WINDOW */
.centercontent {
  display: flex;
  justify-content: center;
  padding: 40px 10px;
}

/* WINDOW */
.window {
  width: min(900px, 95vw);
  background: #fffaf3;
  border: 2px solid #2b2b2b;
  box-shadow: 4px 4px 0 #2b2b2b;
}

/* TITLEBAR */
.titlebar {
  padding: 8px 12px;
  font-weight: bold;
  border-bottom: 2px solid #2b2b2b;
  background: #71c6ff88;
}

/* BODY */
.windowbody {
  padding: 12px;
}

/* NOTE BOX */
.note {
  background: #e8f7ff;
  border: 2px solid #2b2b2b;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
}

/* FILTERS */

#filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;  /* <- this centers them */
  gap: 6px;
  margin: 10px 0;
}

/* FILTER BUTTONS */
.filtertag {
  cursor: pointer;
  padding: 4px 10px;
  border: 2px solid #2b2b2b;
  background: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: 0.15s;
}

.filtertag:hover {
  transform: translateY(-2px);
  background: #6fddff25;
}

.filtertag.active {
  background: #82f0ff63;
}



/* GRID */


.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 🪟 CARD STYLE (THIS is the important part) */
.filterbookmark {
  display: none;

  padding: 12px;
  border-radius: 10px;

  background: #fff;
  border: 2px solid #2b2b2b;

  box-shadow: 4px 4px 0 #2b2b2b;

  transition: all 0.15s ease;
}

.filterbookmark.show {
  display: block;
}

/* REAL “CARD LIFT” */
.filterbookmark:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 #2b2b2b;
}

/* TITLE LINK */
.filterbookmark a {
  font-weight: bold;
  display: block;
  margin-bottom: 6px;
  color: #1653d4;
  text-decoration: none;
  font-size: 1.3rem;
  background-color: rgba(138, 179, 255, 0.274);
}

/* TAGS */
.fictag {
  display: inline-block;
  padding: 2px 6px;
  margin: 2px;

  font-size: 0.75rem;

  border: 2px solid #2b2b2b;
  background: #e8f7ff;
  border-radius: 4px;
}

/* DESCRIPTION */
.desc {
  margin-top: 6px;
  padding-left: 8px;
  border-left: 3px solid #79afff;
  font-size: 1.2rem;
  opacity: 0.85;
}

/* MOBILE */
@media (max-width: 920px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* MAIN LAYOUT */
.layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 40px 10px;
}

/* LEFT PANEL */
.leftpanel {
    position: fixed;
    left: 30px;
    top: 40px;

    width: 300px;

    background: #fffaf3;
    border: 2px solid #2b2b2b;
    box-shadow: 3px 3px 0 #2b2b2b;

    padding: 10px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout paint;
}

.leftpanel a{
    font-size: 1.4rem;
}

/* LEFT PANEL IMG*/

.panelimg {
    contain: paint;
}

.panelimg img {
    
    display: block;
    width: 100px;
    height: 160px;

    transform: translateZ(0);
    will-change: transform;
}



/* BACK BUTTON */
.backbtn {
  padding: 6px;
  border: 2px solid #2b2b2b;
  background: #e8f7ff;
  cursor: pointer;
  font-weight: bold;
}

.backbtn:hover {
  transform: translateY(-2px);
}

/* IMAGE SLOT */
.panelimg img {
  width: 100%;
  border: 2px solid #2b2b2b;
  display: block;
}

/* OPTIONAL TEXT */
.paneltext {
  font-size: 0.85rem;
  opacity: 0.85;
}

/* CENTER AREA (important fix) */
.centercontent {
  display: flex;
  justify-content: center;
  flex: 1;
}

/* MOBILE */
@media (max-width: 920px) {
  .leftpanel {
    display: none;
  }

  .layout {
    display: block;
    padding: 15px;
  }

  .centercontent {
    width: 100%;
    padding: 0;
  }

  .window {
    width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
}