body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('https://aetherzone.neocities.org/directory/about%20v2/simple%20bg.png');
    background-size: cover;
    font-family: 'Jersey 20', sans-serif;
    overflow: hidden;
}

.main-wrapper {
    position: relative;
    width: 1000px; 
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-container {
    width: 900px;
    height: 480px;
    background-image: url('https://aetherzone.neocities.org/directory/about%20v2/abt%20border.png');
    background-size: 100% 100%;
    position: relative;
    padding: 65px 85px 75px 85px; 
    box-sizing: border-box;
    display: block; 
}

.content-box {
    background: white;
    border: 4px solid #7a5ba7; 
    border-radius: 20px;
    height: 350px;
    width: 88%;
    position: relative;
    padding: 20px 25px;
    box-sizing: border-box;
}

.pagedoll {
    position: absolute;
    right: -15px;
    bottom: -20px;
    height: 110%;
    z-index: 10;
    pointer-events: none;
}

.header-text {
    position: absolute;
    top: -10px;
    left: 80px;
    font-size: 80px;
    color: #4a3475;
    margin: 0;
    display: none; 
    z-index: 5;
}

.tab-nav {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 25;
}

.nav-btn {
    background: #f0abfc; 
    border: 3px solid #7a5ba7;
    color: #4a3475;
    padding: 5px 15px;
    cursor: pointer;
    text-decoration: none;
    font-size: 20px;
    transition: 0.2s;
}

.nav-btn:hover { background: white; }

.section-content { 
    display: none; 
    width: 100%;
    height: 100%;
    overflow-y: auto; 
    padding-right: 10px;
    box-sizing: border-box;
}

p { font-size: 24px; color: #4a3475; margin: 0; line-height: 1.2; }

.typology-layout { display: flex; gap: 20px; align-items: flex-start; }

.fav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    flex-shrink: 0; 
}

.fav-item img {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #7a5ba7;
    object-fit: cover;
    display: block;
}

.fav-text-container {
    display: flex;
    align-items: flex-start; 
    justify-content: flex-start;
    gap: 50px; 
    width: 100%;
    box-sizing: border-box;
}

.fav-column {
    display: flex;
    flex-direction: column;
    min-width: 180px; 
}

.fanlist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;        
    width: 110px;    
    margin-top: 5px;
}

.fanlist-grid a img {
    width: 50px;
    height: 50px;
    display: block;
    border: none;     
}

input[type="radio"] { display: none; }

#tab-basic:checked ~ .about-container .basic-title { display: block; }
#tab-basic:checked ~ .about-container .section-basic { display: flex; flex-direction: column; }

#tab-typology:checked ~ .about-container .typology-title { display: block; }
#tab-typology:checked ~ .about-container .section-typology { display: flex; flex-direction: column; }

#tab-favourites:checked ~ .about-container .favourites-title { display: block; }
#tab-favourites:checked ~ .about-container .section-favourites { display: flex; flex-direction: column; }

#tab-basic:checked ~ .about-container .nav-btn[for="tab-basic"],
#tab-typology:checked ~ .about-container .nav-btn[for="tab-typology"],
#tab-favourites:checked ~ .about-container .nav-btn[for="tab-favourites"] {
    background: white;
    transform: translateY(-3px);
}