    :root {
    --bg-color: #F8EEDA;
    --text-color: #AC5908;
    --box-bg: #fffefc;
    --border-color: #AC5908;
    --scrollbar-thumb: #967e68;
    --link-color: #76AFC2;
    --visited-link: #AC5908;
    --side: #FFFEFC;
    --list-image: url('https://files.catbox.moe/htzv4e.gif');
     --button-bg: #ffffff00;
  --button-border: #AC5908;
  --button-text: #AC5908;
  }

  body.dark-mode {
    --bg-color: #1d1b1b;
    --text-color: #4f8ed6;
    --box-bg: #FFFEFC;
    --border-color: #7BC5F0;
    --scrollbar-thumb: #c4975b;
    --link-color: #AEE7F8;
    --visited-link: #7BC5F0;
    --list-image: url('https://files.catbox.moe/0ygzx9.gif');
    background-image: url(https://i.pinimg.com/1200x/4a/e1/d0/4ae1d0aa604b88c29494c262ce414b74.jpg);
    --button-bg: #ffffff00;
  --button-border: #7BC5F0;
  --button-text: #7BC5F0;
  }

  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  body {
    background-image: url('https://files.catbox.moe/yu9hbk.png');
    background-color: var(--bg-color);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    margin: 7%;
    font-family: 'Comic Sans Ms', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    cursor: url('https://files.catbox.moe/22tiik.png'), auto;
  }

  a:hover, button:hover {
    cursor: url('https://files.catbox.moe/xfme93.gif'), pointer;
  }

  .sidebg {
    background-image: url('https://i.imgur.com/WWd5ZJ1.png');
    background-repeat: repeat-y;
    background-position: top right;
    width: 200px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
  }

  .side {
    background-color: var(--box-bg);
    width: 176px;
    height: 100%;
    padding: 1rem 0.5rem 1rem 1rem;
    text-align: justify;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .avatar {
    width: 100%;
    opacity: 1;
    border-radius: 20%;
    object-fit: cover;
    border: 5px dashed #f0e5cc;
    margin-bottom: 0.5rem;
    transition: border 0.3s;
  }

  .desc {
    padding: 0.5rem;
  }

  .sideheaders {
    font-family: 'Love Ya Like A Sister', serif;
    font-weight: normal;
    font-size: 28px;
  }

  .side ul {
    padding-left: 2.5rem;
  }

  .side li {
    list-style-image: var(--list-image);
    font-size: 16px;
  }

  .container {
    display: flex;
    flex-direction: column;
    margin-left: 200px;
  }

  .headerwrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .title {
    font-family: 'Love Ya Like A Sister', serif;
    font-weight: normal;
    color: var(--text-color);
    font-size: 46px;
    align-self: flex-end;
    margin-left: -1rem;
  }

  .headerimg {
    width: 285px;
    align-self: flex-end;
    margin-right: -1rem;
    margin-bottom: -1rem;
    position: relative;
    z-index: 1;
  }

  .boxgap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .box {
    display: flex;
    flex-direction: row;
    background-color: var(--box-bg);
    border: 4px dotted var(--border-color);
  }

  .left {
    border-right: 3px solid var(--border-color);
    padding: 0.7rem;
    text-align: center;
  }

  .icon {
    border: 2px solid #967E68;
  }

  .right {
    padding: 1rem;
  }

  a {
    color: var(--link-color);
    text-decoration: none;
  }

  a:visited {
    color: var(--visited-link);
  }

  a:hover {
    font-weight: bold;
  }

  a:active {
    font-style: italic;
    font-weight: normal;
  }

  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background-color: transparent;
  }

  ::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
  }

  #toggleTheme {
    margin-top: auto;
    padding: 0.5rem;
    font-family: 'Comic Sans Ms';
    font-size: 15px;
    background: none;
    border: 2px dashed var(--border-color);
    color: var(--text-color);
    cursor: pointer;
  }

  @media(max-width:760px) {
    body {
      margin: 0;
      padding: 1rem;
    }

    .sidebg {
      background-image: none;
      position: relative;
      top: 0;
      margin-bottom: 1rem;
      width: 100%;
      height: auto;
    }

    .side {
      height: auto;
      width: 100%;
      text-align: center;
      padding: 1rem;
    }

    .desc {
      font-size: 16px;
    }

    .side ul {
      padding: 0;
    }

    .side li {
      display: inline;
      margin-left: 4px;
    }

    .avatar {
      width: 250px;
      margin: 0 auto;
    }

    .container {
      margin: 0;
    }

    .headerimg {
      width: 180px;
    }

    .title {
      font-size: 36px;
      margin: 0;
    }
  }
    
    .button {
  background: var(--button-bg);
  border: 3px dashed var(--button-border);
  border-radius: 25%;
  color: var(--button-text);
  padding: 0.5rem;
  font-weight: bold;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  font-size: 14px;
  transition: background 0.3s, color 0.3s, border 0.3s;
  margin: 0.5rem;
  
}
 
    
  .background-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://files.catbox.moe/yu9hbk.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  z-index: -1;
  opacity: 1;
  transition: background-image 0.5s ease-in-out, opacity 0.4s ease-in-out;
}  
    
  body.dark-mode .background-wrapper {
  background-image: url('https://i.pinimg.com/1200x/4a/e1/d0/4ae1d0aa604b88c29494c262ce414b74.jpg');
}

 /* Page switching */
  .page {
    display: none;
  }
  .page.active {
    display: block;
  }

  /* Character select styling */
  #characters {
    margin-left: 200px;
    padding: 1rem;
  }
  .character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    max-width: 800px;
  }
  .character {
    text-align: center;
  }
  .character img {
    width: 100px;
    height: 100px;
    border-radius: 20%;
    border: 3px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .character-name {
    margin-top: 0.5rem;
    font-weight: bold;
  }

  /* Bounce + shine on hover */
  .character img:hover {
    animation: bounce 0.6s ease infinite alternate, shine 1s linear forwards;
    box-shadow: 0 0 10px var(--link-color);
  }
  @keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
  }
  @keyframes shine {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.4); }
    100% { filter: brightness(1); }
  }

.tag-buttons {
  margin-bottom: 1rem;
}

.tag-button {
  background: var(--button-bg);
  border: 2px solid var(--border-color);
  color: var(--text-color);
  padding: 0.3rem 0.6rem;
  margin: 0.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Comic Sans MS', cursive, sans-serif;
}

.tag-button.active {
  background: var(--link-color);
  color: white;
}

.tag-button:hover {
  animation: bounce 1.0s ease;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
