.wrapper {
    margin: 20px auto;
    color: #000;
    max-width: 1200px;
    padding: 0 10px;
}

.container {
  display: grid; 
  grid-template-columns: 1fr 0.4fr 1.7fr 0.9fr 1fr 1fr 1fr 1fr; 
  grid-template-rows: 1fr 1fr 0.9fr 1.1fr 1fr 1fr 1.5fr 0.5fr; 
  gap: 20px 20px;
}

.header { 
    grid-area: 1 / 1 / 2 / 9; 
    background-color: #fff;
    width: auto;
    height: 100px;
    background-color: #000;
    display: flex;
    align-items: center;
    position: relative;
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,1) 100%),
        url(https://artificialdeath.b-cdn.net/neocities%20images/Inverted_Mausoleum_Official.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
    overflow: hidden;
}

.header-title {
    color: #fff;
    margin-left: auto;
    font-size: 20px;
    padding: 40px;
}

.nav { 
    grid-area: 2 / 1 / 9 / 3;  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-right: 8px;
}

.nav-image { 
    grid-area: 2 / 1 / 4 / 3;
    display: block;
    align-items: center;
    margin:10px;
    width: 250px;
    height: 250px;
    border-radius: 100%;
    overflow: hidden;
}

.nav-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile hamburger button */
        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 10px;
            margin: 20px auto;
            z-index: 15;
            position: relative;
        }

        /* Hamburger icon styling */
        .mobile-menu-toggle span {
            display: block;
            width: 25px;
            height: 3px;
            background: #b8860b;
            margin: 5px 0;
            transition: all 0.3s ease;
        }

        .mobile-menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .mobile-menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .mobile-menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -6px);
        }


.nav-menu { 
    grid-area: 4 / 1 / 9 / 3; 
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 800px;
    color: #fff;
    border: 8px double #000;
    background-image: url("https://artificialdeath.b-cdn.net/Neocities/Overall%20Images/photo2.jpg");
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 1.4),
        inset 0 0 30px rgba(0, 0, 0, 1.2);
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.nav-menu li {
    padding: 5px 15px;
    
}

.nav-menu h1 {
    font-size: 50px;
    margin: 20px 10px;
}

.nav-menu hr {
      width:100%;
  margin: 20px;
border-image-slice: 1;
    border-image-source: linear-gradient(
        to right,
        transparent,
        var(--hr-color) calc(50% - var(--hr-line-offset)),
        var(--hr-color) calc(50% + var(--hr-line-offset)),
        transparent
    );
}

.nav-menu a {
    color: #b8860b;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #fff;
}

.title { 
    grid-area: 2 / 3 / 3 / 9;  
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    font-family: "Tangerine", cursive;
    color: #b8860b;
            background: linear-gradient(45deg, 
                #b8860b 0%, 
                #b8860b 40%, 
                #ffd700 50%, 
                #b8860b 60%, 
                #b8860b 100%
            );
            background-size: 200% 200%;
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: sheen-gold 10s ease-in-out infinite;
            text-align: center;
            line-height: 1.2;
}

  @keyframes sheen-gold {
            0% {
                background-position: -200% -200%;
            }
            100% {
                background-position: 200% 200%;
            }
}

.literally-me { 
    grid-area: 3 / 3 / 6 / 9;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    padding: 15px;
    text-align: left;
    color:#fff;
    font-size: 23px;
    border: 8px double #000;
    background-image: url("https://artificialdeath.b-cdn.net/Neocities/Overall%20Images/photo2.jpg");
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 1.4),
        inset 0 0 30px rgba(0, 0, 0, 1.2);
    overflow-x: scroll;
    overflow-y: hidden;
}

.literally-me::-webkit-scrollbar { 
    height: 5px;
}

.literally-me::-webkit-scrollbar-track {
    background-color: transparent;
}

.literally-me::-webkit-scrollbar-thumb {
    background-color: #000000;
}

.favorites { 
    grid-area: 6 / 3 / 9 / 9;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    padding: 15px;
    text-align: left;
    color:#fff;
    font-size: 23px;
    border: 8px double #000;
    background-image: url("https://artificialdeath.b-cdn.net/Neocities/Overall%20Images/photo2.jpg");
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 1.4),
        inset 0 0 30px rgba(0, 0, 0, 1.2);
    overflow-x: scroll;
    overflow-y: hidden;
}

.favorites::-webkit-scrollbar { 
    height: 5px;
}

.favorites::-webkit-scrollbar-track {
    background-color: transparent;
}

.favorites::-webkit-scrollbar-thumb {
    background-color: #000000;
}


.character-container {
    border: 2px solid #b8870b00;
    background-color: #222;
    box-shadow: 8px 0 15px rgba(0, 0, 0, 2.5);
    width: 150px;
    height: 421px;
    flex-shrink: 0;
    transform: scale(1);
    transition: transform 0s ease, filter 0s ease;
}

.top-text {
    position: absolute;
    top: -15px;
    right: -10px;
    color: #000000;
    background: linear-gradient(
        45deg,
        #b8860b 0%, 
        #b8860b 30%, 
        #ffd700 50%, 
        #b8860b 70%, 
        #b8860b 100%
    );
    background-size: 200% 200%;
    border-radius: 2px;
    padding: 2px;
    font-size: 30px;
    font-weight: bold;
    z-index: 1;
}

.character-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0s ease;
}

.character-container:hover {
    transform: scale(1.05);
    border: 2px solid #b8860b;
}

.character-container:hover img {
    filter: grayscale(0%);
}



        /* Animation for mobile menu */
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        /* Large tablet/small desktop breakpoint */
        @media (max-width: 1200px) and (min-width: 1025px) {
            .nav-image { 
                width: 200px;
                height: 200px;
                margin: 15px auto;
            }
            
            .nav-menu {
                height: 600px;
                padding: 18px;
            }
            
            .nav-menu h1 {
                font-size: 40px;
                margin: 15px 8px;
            }
            
            .nav-menu hr {
                margin: 15px;
            }
            
            .nav-menu li {
                padding: 4px 12px;
            }
            
            .nav-menu a {
                font-size: 17px;
            }
        }

        /* Tablet breakpoint */
        @media (max-width: 1024px) and (min-width: 769px) {
            .wrapper {
                margin: 15px auto;
                padding: 0 8px;
            }
            
            .container {
                display: flex;
                flex-direction: column;
                gap: 15px;
            }
            
            .header { 
                order: 1;
                width: 100%;
            }
            
            .nav { 
                order: 2;
                display: flex;
                flex-direction: column;
                align-items: center;
                position: relative;
                padding: 0;
                z-index: 10;
                width: 100%;
            }
            
            .nav-image { 
                width: 250px;
                height: 250px;
                margin: 15px auto;
            }
            
            /* Show mobile menu toggle on tablet */
            .mobile-menu-toggle {
                display: block;
            }

            /* Hide menu by default on tablet */
            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 50%;
                transform: translateX(-50%);
                width: 280px;
                height: auto;
                min-height: 320px;
                padding: 18px;
                z-index: 20;
                animation: slideDown 0.3s ease;
                border-width: 5px;
            }

            /* Show menu when active */
            .nav-menu.active {
                display: flex;
            }

            .nav-menu h1 {
                font-size: 40px;
                margin: 10px 5px;
            }

            .nav-menu hr {
                margin: 10px;
            }

            .nav-menu li {
                padding: 10px 12px;

            }

            .nav-menu li:last-child {
                border-bottom: none;
            }

            .nav-menu a {
                display: block;
                padding: 8px;
                border-radius: 5px;
                transition: all 0.3s ease;
                font-size: 20px;
            }

            .nav-menu a:hover {
                color: #fff;
            }
            
            .title { 
                order: 3;
                font-size: 100px;
                width: 100%;
            }
            
            .literally-me { 
                order: 4;
                width: 100%;
            }

            .favorites { 
                order: 5;
                width: 100%;
            }

        }

        /* Mobile breakpoint */
        @media (max-width: 768px) and (min-width: 481px) {
            .wrapper {
                margin: 10px;
                padding: 0 5px;
            }
            
            .container {
                display: flex;
                flex-direction: column;
                gap: 20px;
            }
            
            .header { 
                order: 1;
                width: 100%;
            }
            
            .nav { 
                order: 2;
                display: flex;
                flex-direction: column;
                align-items: center;
                position: relative;
                padding: 0;
                z-index: 10;
                width: 100%;
            }
            
            .nav-image { 
                width: 250px;
                height: 250px;
                margin: 15px auto;
            }
            
            /* Show mobile menu toggle */
            .mobile-menu-toggle {
                display: block;
            }

            /* Hide menu by default on mobile */
            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 50%;
                transform: translateX(-50%);
                width: 250px;
                height: auto;
                min-height: 280px;
                padding: 15px;
                z-index: 20;
                animation: slideDown 0.3s ease;
                border-width: 4px;
            }

            /* Show menu when active */
            .nav-menu.active {
                display: flex;
            }

            .nav-menu h1 {
                font-size: 40px;
                margin: 8px 5px;
            }

            .nav-menu hr {
                margin: 8px;
            }

            .nav-menu li {
                padding: 8px 12px;
            }

            .nav-menu li:last-child {
                border-bottom: none;
            }

            .nav-menu a {
                display: block;
                padding: 6px;
                border-radius: 4px;
                transition: all 0.3s ease;
                font-size: 20px;
            }

            .nav-menu a:hover {
                color: #fff;
            }
            
            .title { 
                order: 3;
                font-size: 80px;
                width: 100%;
            }
            
            .literally-me { 
                order: 4;
                width: 100%;
            }

            .favorites { 
                order: 5;
                width: 100%;
            }

        }

        /* Small mobile breakpoint */
        @media (max-width: 480px) {
            .wrapper {
                margin: 5px;
                padding: 0;
            }
            
            .container {
                display: flex;
                flex-direction: column;
                gap: 15px;
            }
            
            .header { 
                order: 1;
                width: 100%;
            }
            
            .nav { 
                order: 2;
                display: flex;
                flex-direction: column;
                align-items: center;
                position: relative;
                padding: 0;
                z-index: 10;
                width: 100%;
            }
            
            .nav-image { 
                width: 250px;
                height: 250px;
                margin: 10px auto;
            }
            
            /* Show mobile menu toggle */
            .mobile-menu-toggle {
                display: block;
            }

            /* Hide menu by default on small mobile */
            .nav-menu {
                display: none;
                position: absolute;
                top: 100%;
                left: 50%;
                transform: translateX(-50%);
                width: 220px;
                height: auto;
                min-height: 240px;
                padding: 12px;
                z-index: 20;
                animation: slideDown 0.3s ease;
                border-width: 3px;
            }

            /* Show menu when active */
            .nav-menu.active {
                display: flex;
            }
            
            .nav-menu h1 {
                font-size: 40px;
                margin: 6px 3px;
            }
            
            .nav-menu hr {
                margin: 6px;
            }
            
            .nav-menu li {
                padding: 6px 8px;
            }

            .nav-menu li:last-child {
                border-bottom: none;
            }
            
            .nav-menu a {
                display: block;
                padding: 4px;
                border-radius: 3px;
                transition: all 0.3s ease;
                font-size: 20px;
            }

            .nav-menu a:hover {
                color: #fff;
            }
            
            .title { 
                order: 3;
                font-size: 60px;
                width: 100%;
            }
            
            .literally-me { 
                order: 4;
                width: 100%;
            }

            .favorites { 
                order: 5;
                width: 100%;
            }

        
        }

        /* Extra small mobile breakpoint */
        @media (max-width: 320px) {
            .wrapper {
                margin: 3px;
                padding: 0;
            }
            
            .nav-image { 
                width: 80px;
                height: 80px;
                margin: 8px auto;
            }
            
            .nav-menu {
                width: 200px;
                min-height: 220px;
                padding: 10px;
                border-width: 2px;
            }
            
            .nav-menu h1 {
                font-size: 18px;
                margin: 5px 2px;
            }
            
            .nav-menu hr {
                margin: 5px;
            }
            
            .nav-menu li {
                padding: 5px 6px;
            }
            
            .nav-menu a {
                font-size: 12px;
                padding: 3px;
            }
            
            .title { 
                font-size: 50px;
            }
        }