
        body {
            background-color: #222;
            background-image: url("https://coreadore.pro/assets/corepattern.png");
            background-size: 10%;
            background-repeat: repeat;
            font-family: 'Comic Sans MS', 'Comic Sans', cursive;
            display: flex;
            min-height: 100vh;
            animation: scroll-bg 100s linear infinite;
        }
        
        @keyframes scroll-bg {
            0% {
                background-position: 0 0;
            }
            100% {
                background-position: 100% -100%;
            }
        }
        /* Sidebar */
        
        #sidebar {
            width: 10vw;
            background: #121212;
            color: white;
            padding: 1em;
            padding-top: 3rem;
            min-height: 100vh;
            position: fixed;
            top: 0;
            left: -10vw;
            transition: left 0.3s ease;
            z-index: 1000;
        }
        /* Sidebar Active */
        
        #sidebar.active {
            left: 0;
        }
        /* Sticky Toggle Button (attached tab style) */
        
        #sidebarToggle {
            position: absolute;
            top: 20px;
            right: -40px;
            width: 40px;
            height: 40px;
            background: #121212;
            color: white;
            border: none;
            font-size: 1.2rem;
            border-radius: 0 4px 4px 0;
            cursor: pointer;
            z-index: 1000;
        }
        /* Sidebar Buttons */
        
        #sidebar button:not(#sidebarToggle) {
            display: block;
            width: 100%;
            padding: 10px;
            background: none;
            border: none;
            color: white;
            text-align: left;
            cursor: pointer;
            font-size: 1rem;
            margin-bottom: 10px;
        }
        
        #sidebar button:not(#sidebarToggle):hover {
            background: #fff;
            color: #000;
        }
        /* Main Content Slide with Sidebar */
        
        #middiv {
            flex: 1;
            margin: 5% auto!important;
            max-width: 80vw;
            margin-left: 0;
            padding: 2em;
            background: #f5f5f5;
            transition: margin-left 0.3s ease;
        }
        
        #sidebar.active~#middiv {
            margin-left: 10vw;
        }
        /* Main content */
        
        #middiv {
            flex: 1;
            margin-left: 0;
            padding: 2em;
            background: #f5f5f5;
            width: 100%;
            transition: margin-left 0.3s ease;
        }
        
        #sidebar.active~#middiv {
            margin-left: 10vw;
        }
        .profile-text p{
            background-color:#ffffff90;
            padding:1%;
        }
.carousel-wrapper {
    width: 50vw;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

        
        .carousel-track {
            display: flex;
            gap: 10px;
            transition: transform 0.3s ease;
            will-change: transform;
        }
        
        .carousel-item {
            flex: 0 0 calc(16.66% - 10px); 
            box-sizing: border-box;
        }
        
        .carousel-item img {
            width: 100%;
            object-fit: cover;
            border-radius: 8px;
                transition: background-color 0.3s, transform 0.3s;
        }
        
        .carousel-item img:hover {
    transform: scale(1.05);
}

        .carousel-arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            font-size: 2rem;
            padding: 0 12px;
            cursor: pointer;
            height: 100%;
        }
        
        .carousel-arrow.left {
            margin-right: 10px;
        }
        
        .carousel-arrow.right {
            margin-left: 10px;
        }
        .carousel-button {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #121212;
    color: white;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    padding: 20px;
    text-align: center;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover {
    background-color: #333;
    transform: scale(1.05);
}

        @media (max-width: 800px) {
            .carousel-item {
                flex: 0 0 calc(50% - 10px);
                /* 2 per row on smaller screens */
            }
        }
        
        @media (max-width: 500px) {
            body {
                font-family: Arial, sans-serif;
            }
            .carousel-item {
                flex: 0 0 100%;
                /* 1 per row on phones */
            }
            .carousel-arrow {
                height: auto;
            }
        }
        
        .see-all-btn {
            display: block;
            margin: 10px auto 30px;
            padding: 10px 20px;
            background: #000000;
            color: white;
            text-align: center;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        
        
        .index-info {
           margin-bottom: 30px;
          display: flex;
  gap: 20px;
  padding: 30px;
  max-width: 50%;
  justify-items: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 auto;
        }

        .profile-info {
           display: flex;
           gap: 20px;
           margin-bottom: 30px;
           flex-wrap: wrap;
           align-items: flex-start;
        }

        .profile-details {
          flex: 1;
          display: flex;
          flex-direction: column;
          justify-content: flex-start;
        }

        .profile-header {
           text-align: center;
           margin-left: 5%;
           margin-bottom: 3%;
        }
        
        .profile-header h1 {
            margin: 0;
            font-size: 2.5rem;
        }
        
        .profile-header p {
            margin: 0;
            font-size: 1.5rem;
            color: #666;
        }
        
        .profile-image {
            flex: 0 0 20vw;
        }
        
        .profile-image img {
            width: 100%;
            border-radius: 8px;
        }
        
        .profile-text {
            flex: 1;
        }
        
#gallery {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
  gap: 10px;
}

.gallery-item {
  border-radius: 6px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

@media (max-width: 860px) {
  #gallery {
    height: 220vw;
  }
  .gallery-item {
    width: 50%;
  }
}

@media (max-width: 667px) {
  #gallery {
    height: auto;
  }
  .gallery-item {
    width: 100%;
  }
}

        .gallery img:hover {
    transform: scale(1.05);
    filter: contrast(400%) brightness(100%) grayscale(100%);
}

          #imagePopup {
      position: fixed;
      top: 0;
      left: 0;
      height: 100vh;
      width: 100vw;
      background-color: rgba(0, 0, 0, 0.8);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      display: none;
  }

  #imagePopup img {
      max-height: 90vh;
      max-width: 90vw;
      border-radius: 10px;
      box-shadow: 0 0 20px rgba(0,0,0,0.8);
  }
  
  hr {
  border: none;
  height: 4px;
  background-color: #121212;
  width: 80%;
  margin: 40px auto;
  border-radius: 2px;
}

#characterGrid {
  display: flex;
  gap: 10px;
  padding: 30px;
  max-width: 50%;
  justify-items: center;
  align-content: center;
  flex-wrap: wrap;
  margin: 0 auto;
}

.character-icon {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.character-card {
  text-align: center;
  text-decoration: none;
  width: 15%;
  transition: transform 0.2s;
}

.character-card:hover {
  transform: scale(1.05);
}

.character-name-tag {
  background-color: #121212;
  color: white;
  border-radius: 12px;
  padding: 4px 10px;
  margin-top: 8px;
  font-weight: bold;
  display: inline-block;
}

.character-subtext {
  font-size: 0.85em;
  color: #444;
  font-style: italic;
  margin-top: 4px;
}
        .power-box {
    float: right;
    width: 30%;
    background-color: #1e1e1e;
    color: #fff;
    padding: 15px;
    margin: 10px 0 10px 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    font-family: sans-serif;
}

.power-box h3 {
    margin-top: 0;
    font-size: 1.2em;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.power-box ul {
    padding-left: 20px;
    margin: 10px 0 0 0;
}

.power-box li {
    margin-bottom: 10px;
}