/* GLOBAL */
* { box-sizing: border-box; margin:0; padding:0; font-family: Verdana, Arial, sans-serif; }
body { background: #FFFFFF; color: #1E2A5C; }

/* HEADER */
header {
  background: #e67c8b;
  position: relative;
  border-bottom: 8px solid #5266e7;
  padding: 15px 20px;
  max-width: 1024px;
  margin: 15px auto;
  display: flex;
  align-items: center;
}
header::before {
  content:"";
  position:absolute;
  inset:0;
  background:url('https://i.postimg.cc/66LXB1Pc/CBMain-Header-Image.png') center/cover no-repeat;
}

header img { height:80px; z-index:1; }
header p { margin-left:auto; font-size:20px; z-index:1; font-style:italic; }

/* PAGE FRAME */
.main-frame {
  max-width:1024px;
  margin:0 auto;
  background:#FFFFFF;
  padding-bottom:20px;
  border:0px solid #7393f5;
}

/* NAV */
nav {
  display:flex;
  justify-content:center;
  background:#99c4ff;
  border-top:3px solid #7393f5;
  border-bottom:3px solid #7393f5;
}
nav a {
  color:#1E2A5C;
  text-decoration:none;
  padding:12px 22px;
  border-right:1px solid #7393f5;
}
nav a:hover {
  background:#7393f5;
  color:#fff;
}
nav a:last-child { border-right:none; }

/* LAYOUT */
.content-area { display:flex; padding:15px; gap:15px; }

aside {
  width:25%;
  background:
    url('https://i.postimg.cc/dQGf9RXn/Aside-BG.png') center/cover repeat;
  background-color:#f7a8a1;
  padding:15px;
  border:4px solid #e67c8b;
  position: relative;
  overflow: visible;
}

aside::after {
  content:"";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;  
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  pointer-events: none;
}

.page-baby aside::after {
  background-image: url('https://i.postimg.cc/mrxPhQQP/CB-Aside-(1)-(1).png');
}

.page-ballora aside::after {
  background-image: url('https://i.postimg.cc/KjKKRQsh/BLL-Aside-(1).png');
}

.page-foxy aside::after {
  background-image: url('https://i.postimg.cc/vTr6Zy8t/FTFX-Aside.png');
}

.page-freddy aside::after {
  background-image: url('https://i.postimg.cc/Kv2kZ7DS/FTFR-Aside-(3).png');
}

.page-bbjj aside::after {
  background-image: url('https://i.postimg.cc/KzdHyP4c/BBJJ-Aside.png');
}

.page-coils aside::after {
  background-image: url('https://i.postimg.cc/bN4KhjD6/CTC-Aside.png');
}

.page-jest aside::after {
  background-image: url('https://i.postimg.cc/pdLRP2Dw/JST-Aside.png');
}

aside h2 { font-size:18px; margin-bottom:10px; }
aside ul { list-style:square; padding-left:20px; }
aside li { margin-bottom:8px; }

main {
  width:75%;
  background:#ffffff;
  padding:20px;
  border:2px solid #7393f5;
}
main h2 { font-size:24px; margin-bottom:10px; }
main p { font-size:15px; margin-top:10px; }

/* NEW CHARACTER BUTTON STRIP */
.char-buttons {
  display:flex;
  flex-wrap:nowrap;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin-top: 25px;
}

.char-buttons a {
  position: relative;
  display:center;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  height: 85px; /* ← increase this value */
  width:430px;
  border:2px solid #7393f5;
  border-radius:14px;
  text-decoration:none;
  color:#1E2A5C;
  overflow:hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(210,225,255,0.85));
}

/* background image layer */
.char-buttons a::before {
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--bg);
  background-size:cover;
  background-repeat:no-repeat;
  background-position:center;
  opacity:0.65; /* LOW OPACITY */
  z-index:0;
}

.char-buttons a:hover {
  background: linear-gradient(180deg, rgba(210,225,255,1), rgba(255,255,255,1));
}

/* LARGE DISPLAY FRAME */
.display-frame {
  width: 100%;
  height: 420px;
  border: 10px solid #5a53e3;
  border-radius: 12px;
  background-image: url('https://i.postimg.cc/j5bWxJQd/Winter-Display.gif');
  background-size: cover;          /* makes the image fill the box */
  background-position: center;     /* centers the image */
  background-repeat: no-repeat;    /* prevents tiling */
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  font-size: 20px;
}

/* THUMBNAIL STRIP CAROUSEL */
.thumbnail-carousel {
  margin-top:15px;
  display:flex;
  align-items:center;
  gap:10px;
}
.thumb-track {
  display:flex;
  overflow:hidden;
  width:100%;
}
.thumb-strip {
  display:flex;
  transition:transform 0.4s ease;
  gap:10px;
}
.thumb-item img {
  width:130px;
  height:90px;
  object-fit:cover;
  border:2px solid #7393f5;
  cursor:pointer;
}
.carousel-btn {
  background:#1E2A5C;
  color:#fff;
  padding:6px 10px;
  border:none;
  cursor:pointer;
  font-size:16px;
}
.carousel-btn:hover { background:#7393f5; }

  .cart-box {
    background: #fffbe6;
    border: 3px double #7393f5;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
  }
  
  .cart-box h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #1E2A5C;
  }
  
  .cart-view {
    display: inline-block;
    background: #7393f5;
    color: #fff;
    padding: 4px 8px;
    border: 2px outset #3b4a91;
    text-decoration: none;
    font-size: 13px;
  }
  
  .cart-view:hover {
    background: #1E2A5C;
  }
  
  page-title-img {
    display: block;
    margin: 10 auto 0px auto;
    height: 120px;          /* sets fixed height */
    width: auto;            /* keeps aspect ratio */
  }

/* MERCH */
  /* COLLAPSIBLE CATEGORY PANELS */
  .category-panel {
    border: 3px solid #4f6ad8;
    margin-top: 18px;
    background:#eef3ff;
  }
  
  /* Header bar you click to expand/collapse */
  .category-header {
    background: linear-gradient(#d0ddff, #a9c1ff);
    padding: 10px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    border-bottom: 3px solid #4f6ad8;
    user-select:none;
  }
  
  /* Hidden by default until opened */
  .category-content {
    display: none;
    padding:0;
  }

  .table-frame {
    border: 3px solid #4f6ad8;
    background: #eef3ff;
    padding: 0;
    margin-top: 20px;
  }

  .merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px; /* tighter spacing, more 2005 feel */
    padding: 10px;
    background-color: #d7e4ff; /* light Windows XP tint */
    border: 0px solid #7393f5;
    border-top: 0px double #7393f5;
    border-bottom: 0px double #7393f5;
  }

  .item {
    background: linear-gradient(#ffffff, #e9efff); /* subtle XP-style gradient */
    border: 2px solid #4f6ad8; /* strong blue border */
    padding: 8px;
    text-align: center;
    border-radius: 0px; /* <-- removes modern rounded corners */
  }

  .item img {
    border: 3px solid #7393f5;
    background: #ffffff;
    padding: 3px;
    width: 100%;
    height: auto;
  }

  .item h3 {
    font-size: 1.1em;
    margin: 10px 0 5px;
  }

  .price {
    color: #1E2A5C;
    font-weight: bold;
  }

.button {
    display: inline-block;
    background: #7393f5;
    color: #fff;
    padding: 4px 8px;
    border: 2px outset #3b4a91;
    text-decoration: none;
    font-size: 13px;
  }
  
  .button:hover {
    background: #7393f5;
    border: 2px inset #8da600;
  }

/*CHARACTERS*/
  .animatronic-card {
    display: flex;
    align-items: flex-start;
    background: #e67c8b url('https://i.postimg.cc/XvGBmdCT/Animatronic-BG.png') no-repeat;
    background-size: cover;
    border: 0px solid #1E2A5C;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  }
  
  .animatronic-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
  }
  
  .animatronic-img {
    width: 180px;
    height: auto;
    background-color: #FFFFFF;
    border: 0px solid #FFFFFF;
    margin-right: 0px;
    border-radius: 6px;
  }
  
  .image-caption {
    background-color: #F7A8A1; /* Pastel Coral */
    color: #1E2A5C;
    border: 0px solid #1E2A5C;
    border-radius: 6px;
    padding: 8px;
    margin-top: 10px;
    font-size: 0.9em;
    text-align: center;
    width: 180px; /* match image width */
    box-sizing: border-box;
  }

  .animatronic-info h3 {
    margin-top: 0;
    color: #FFFFFF;
  }
  
  .animatronic-info table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
  }
  
  .animatronic-info td {
    padding: 4px 6px;
    vertical-align: top;
  }

/*INPUT SECTIONS*/
  .form-section, .info-section {
    flex: 1;
    border: 2px solid #1E2A5C;
    padding: 15px;
    margin: 5px;
    background-color: #BFD9FF;
  }
  
  /* Contact form */
    form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    label {
      font-weight: bold;
      margin-bottom: 6px;
      display: block;
    }

  input[type="text"], input[type="email"], textarea {
    width: 95%;
    border: 2px solid #1E2A5C;
    padding: 5px;
    font-family: Verdana, Arial, sans-serif;
    font-size: 14px;
    background-color: #FFFFFF;
    color: #1E2A5C;
  }

  textarea {
    height: 120px;
  }

  input[type="submit"] {
    margin-top: 10px;
    background-color: #B7E000; 
    border: 2px solid #1E2A5C;
    font-weight: bold;
    color: #1E2A5C;
    padding: 6px 15px;
    cursor: pointer;
  }

  input[type="submit"]:hover {
    background-color: #C6B3FF; 
  }

    select, input, textarea {
      padding: 10px;
      border: 2px solid #1E2A5C; 
      border-radius: 0px;
      width: 100%;
      box-sizing: border-box;
      background-color: #FFFFFF;
      font-size: 1em;
    }

    textarea {
      resize: none;
    }

    .button {
      display: inline-block;
      background: #7393f5;
      color: #fff;
      padding: 4px 8px;
      border: 2px outset #3b4a91;
      text-decoration: none;
      font-size: 13px;
  }

    .button:hover {
      background-color: #A2CA00;
    }

  /* Info panel */
  .info-section p {
    font-size: 13px;
    line-height: 1.5em;
  }

  .info-box {
    border: 2px dashed #1E2A5C;
    background-color: #FFFFFF;
    padding: 8px;
    margin-top: 10px;
  }
  
  bigbutton {
    width: 200px;
    border: 0px solid #1E2A5C;
    border-radius: 10px;
    margin: 0 auto;
    background-color: #7393f5;
    font-weight: bold;
    cursor: pointer;
    box-shadow:
      inset 0 3px 4px rgba(255, 255, 255, 0.7), /* top light bevel */
      inset 0 -3px 5px rgba(0, 0, 0, 0.2), /* bottom dark bevel */
      inset 3px 0 4px rgba(255, 255, 255, 0.5), /* left light bevel */
      inset -3px 0 4px rgba(0, 0, 0, 0.2); /* right dark bevel */
  }

  bigbutton:hover {
    background-color: #99c4ff;
  }

    .event {
      margin-bottom: 60px;
      margin-top: 10px
    }

.carousel {
  position: relative;
  width: 50%;
  height: 200px;   /* Carousel viewport height */
  overflow: hidden;
  border: 2px solid #1E2A5C;
  background-color: #F5F7FF;
}

.carousel img {
  width: 100%;
  height: 100%;    /* Match the carousel height so cropping is consistent */
  object-fit: cover;
  display: none;
}

.carousel img.active {
  display: block;
}

/* Buttons */
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #010203;
  border: 2px solid #FFFFFF;
  padding: 8px 12px;
  cursor: pointer;
  color: #FFFFFF;
  font-weight: bold;
}

/* Left button */
.carousel .prev {
  left: 10px;
}

/* Right button */
.carousel .next {
  right: 10px;
}

    .event h3 {
      font-family: "Trebuchet MS", sans-serif;
      color: #1E2A5C;
      font-size: 20px;
      margin-top: 15px;
    }

    .event p {
      font-size: 14px;
      line-height: 1.6;
    }

  section {
  margin-top: 40px;
  padding: 20px;
  }

.section-box {
background: #FFFFFF;
border: 3px solid #1E2A5C;
padding: 10px;
margin-top: 20px;
}


/* Games grid (10 placeholders) */
.games-grid {
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.game-tile {
  border:3px solid #1E2A5C;
  background:#f5f7ff;
  padding:10px;
  height:160px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.game-thumb {
  border:2px solid #7393f5;
  height:86px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  color:#1E2A5C;
  background:#ffffff;
}
.game-title {
  font-size:14px;
  font-weight:bold;
  margin-top:6px;
}
.game-actions {
  display:flex;
  gap:6px;
  margin-top:6px;
}

.coloring-grid {
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:8px;
}
.color-thumb {
  border:3px solid #1E2A5C;
  background:#ffffff;
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:6px;
}

.modal-backdrop {
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.55);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
}
.modal {
  width:820px;
  max-width:95%;
  background:#ffffff;
  border:4px solid #4f6ad8;
  padding:8px;
}
.modal .modal-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:2px solid #7393f5;
  padding-bottom:6px;
  margin-bottom:8px;
}
.modal .modal-body {
  min-height:360px;
  background:#f5f7ff;
  border:2px solid #1E2A5C;
  padding:6px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.modal .close {
  cursor:pointer;
  font-weight:bold;
  padding:4px 8px;
  border:2px solid #1E2A5C;
  background:#dfe8ff;
}

/* Small info area */
.info {
  font-size:13px;
  border:2px solid #c0c8ff;
  background:#eef3ff;
  padding:8px;
  margin-top:10px;
}

/* Simple responsive tweaks */
@media (max-width:800px) {
  .content { flex-direction:column; }
  aside { width:100%; }
  .games-grid { grid-template-columns: 1fr; }
  .coloring-grid { grid-template-columns: repeat(2,1fr); }
}


/* FOOTER */
footer {
  background:#2f3379;
  color:#fff;
  text-align:center;
  padding:12px;
  font-size:12px;
  margin-top:30px;
}
