* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-color: #000000;
    color: #fff;
    --text-color: #fff;
    --dark-color: #000000;
    scroll-behavior: smooth;
    min-height: 100vh;
}

body, div, ul, nav, header, footer, a, li, label, h1, h2, h3, h4, p{
    margin: 0;
    padding: 0;
}

/*--------HEADER SECTION--------*/
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    container-type: inline-size;
    container-name: header;
    padding: 11px 0;
    position: fixed;
    top: 0; 
    width: 100%; 
    z-index: 10;
    background-color: var(--dark-color);
}

.header__logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.header__open-nav-button {
    color: var(--text-color);
    font-size: 3rem;
    font-weight: 600;
    padding: 0;
    max-width: 100%;
    width: 100%;
    text-align: right;
    padding: 0 25px;
    right: 10px;
}

.header__checkbox{
    display: none;
}

.header__nav {
    display: none;
    background-color: var(--dark-color);
    padding: 0 10px;
    position: absolute;
    height: 100dvh;
    width: 70dvw;
    top: 0;
    z-index: 2;
}

.header__nav-list {
    display: flex;
    flex-direction: column;
    height: 50dvh;
    margin: auto 5%;
    justify-content: space-evenly;
}

.header__checkbox:checked ~ .header__nav {
    display: flex;
    animation-name: nav-siding;
    animation-duration: .2s;
}

.header__logo {
    max-width: 100%;
    width: 100px;
}

.header__slogan {
    max-width: 100%;
    width: 100%;
    font-size: 10px;
    right: 10px;
    text-align: left;
    padding: 0 25px;
    mix-blend-mode: difference;
}

.header__nav-item {
    font-size: 20px;
    list-style: none;
    text-align: left;
    cursor: pointer;
}

.header__nav-item a {
    color: #fff;
    text-decoration: none;
}

.header__nav-item :is(:hover,:active) {
    text-decoration: underline;
}

.header__checkbox-l{
    display: none;
}

.header__nav-list-ul {
    display: none;
    height: 100dvh;
    width: 60dvw;
    position: absolute;
    margin: auto;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: var(--dark-color);
    top: 0;
}

.header__checkbox-l:checked ~ .header__nav-list-ul {
    display: flex;
}

.header__nav-item-B {
    list-style: none;
    position: absolute;
    margin-top: -40px;
    font-size: 30px;
}

.header__nav-item-l2{
    list-style: none;
}

.header__nav-item-l2 a{
    text-decoration: none;
    color: #fff;
}

.header__nav-item-l2 a:hover {
    text-decoration: underline;
}

@keyframes nav-siding {
    from{
        left: -100%;
    }

    to{
        left: 0;
    }
}

@container header (min-width: 1012px) {
    .header__nav {
        display: flex;
        position: static;
        height: auto;
        width: auto;
        background-color: transparent;
        z-index: 1;
        mix-blend-mode: difference;
    }
    
    .header__nav-list {
        flex-direction: row;
        padding: 0 45px;
        height: auto;
        width: auto;
        gap: 25px;
        z-index: 1;
    }
    
    .header__logo{
        height: auto;
        width: 200px;
    }    
    
    .header__open-nav-button{
        display: none;
        width: auto;
    }

    .header__nav-item {
        flex: 1;
        text-align: center;
        min-width: 120px;
        max-width: 150px;
        white-space: nowrap;
        padding-bottom: 7px;
    }
    
    .header__nav-item a {
        font-size: 16px;
    }
    
    .header__slogan {
        font-size: 16px;
        padding: 0 45px;
        height: auto;
        width: auto;
        z-index: 1;
    } 

    .header__slogan P {
        padding-right: 245PX;
        text-align: center;
    }

    .header__nav-list-ul {
        display: none;
        height: 70dvh;
        width: 15dvw;
        position: absolute;
        margin: auto;
        flex-direction: column;
        justify-content: space-evenly;
        background-color: #282828;
        margin: 84px;
        text-align: center;
    }

    .header__nav-item-B {
        display: none;
    }

    .header__nav-item-l2 {
        margin-bottom: 18%;
    }
}  
/*--------HEADER SECTION END--------*/

/*--------MAIN--------*/

.social-menu {
    min-width: auto;
    display: flex;
    justify-content: space-around;
    position: absolute;
    margin-top: 56px;
    z-index: 100;
}

.social-menu a {
    text-decoration: none;
    font-size: 18px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    color: #f1f1f1;
    transition: all .1s ease-in-out;
}

.social-menu a:hover {
    transform: scale(1.2);
}

.search-box {
    width: 100%;
    z-index: 1;
    position: absolute;
    display: flex;
    justify-content: center;
    container-type: inline-size;
    container-name: search;
    top: 100px;
    padding: 0;
}

.search-input {
    width: 80%;
    padding: 12px;
    border-radius: 10px 0 0 10px;
    font-size: 17px;
    background-color: #fff;
    border: none;
    outline: none;
}

.search-button {
    align-items: center;
    width: 12%;
    border-radius: 0 10px 10px 0;
    border: none;
    background-color: #fff;
    outline: none;
    cursor: pointer;
}

@container search (min-width: 450px){
    .social-menu{
        margin-top: 65px;
    }
}

@container search (min-width: 912px) {
    .search-box{
        top: 110px;
    }
    .search-input{
        width: 40%;
    }
    .search-button{
        width: 3%;
    }
    .social-menu{
        margin-top: 60px;
    }
}

/*--------CONTENT--------*/

.content{
    margin-top: 210px;
    margin-bottom: 10px;
    container-type: inline-size;
    container-name: cont;
}

.item__content-container{
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, 180px);
    grid-template-rows: repeat(9, 250px);
    grid-auto-rows: 130px;
    grid-auto-flow: row;
    grid-auto-columns: 100px;
    gap: 10px;
}

.item__content{
    mix-blend-mode: luminosity;
    display: inline-block;
    border-radius: 5px;
    background-position: top;
    transition: all .1s ease-in-out;
}

.item__content:hover{
    transform: scale(1.02);
    mix-blend-mode: normal;
}

.item__content:first-child{ /*One Piece*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/fIIyiTd.jpg");
    background-size: cover;
}

.item__content:nth-child(2){ /*Jujutsu Kaisen*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/2gfQTxj.jpg");
    background-size: cover;
}

.item__content:nth-child(3){ /*My Dress-Up Darling*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/CwpCG5P.png");
    background-size: cover;
}

.item__content:nth-child(4){ /*DanDaDan*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/e2FEQgB.png");
    background-size: cover;
}

.item__content:nth-child(5){ /*Berserk*/ 
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/toa1UV0.jpg");
    background-size: cover;
}

.item__content:nth-child(6){ /*Death Note*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/IyFZJJF.jpg");
    background-size: cover;
}

.item__content:nth-child(7){ /*My Hero Academia*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/icvhxPQ.jpg");
    background-size: cover;
}

.item__content:nth-child(8){ /*Jojo's Bizarre Adventure*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/B2ylMjn.png");
    background-size: cover;
}

.item__content:nth-child(9){ /*Assassination Classroom*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/ymDPK8D.jpg");
    background-size: cover;
}

.item__content:nth-child(10){ /*Dragon Ball*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/zsOdOfr.png");
    background-size: cover;
}

.item__content:nth-child(11){ /*Bleach*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/UWvE8ax.png");
    background-size: cover;
}

.item__content:nth-child(12){ /*Chainsaw Man*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/QMYNR6D.png");
    background-size: cover;
}

.item__content:nth-child(13){ /*One Punch Man*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/m14UUNA.jpg");
    background-size: cover;
}

.item__content:nth-child(14){ /*Spy x Family*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/vcYFmEv.jpg");
    background-size: cover;
}

.item__content:nth-child(15){ /*Zom 100*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/Ata1cRc.jpg");
    background-size: cover;
}

.item__content:nth-child(16){ /*Demon Slayer*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/5thdSzL.jpg");
    background-size: cover;
}

.item__content:nth-child(17){ /*Oshi No Ko*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/cq9Oad8.jpg");
    background-size: cover;
}

.item__content:nth-child(18){ /*Fullmetal Alchimist*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/mKDocWQ.jpg");
    background-size: cover;
}

.item__content:nth-child(19){ /*Attack On Titan*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/yzG8X9p.png");
    background-size: cover;
}

.item__content:nth-child(20){ /*Goodnight Punpun*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/7heqsyD.jpg");
    background-size: cover;
}

.item__content:nth-child(21){ /*Kaguya Sama: Love Is War*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/CJKBjti.jpg");
    background-size: cover;
}

.item__content:nth-child(22){ /*Frieren: Beyond Journey's End*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/ROvIeNE.png");
    background-size: cover;
}

.item__content:nth-child(23){ /*Hunter x Hunter*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/Qp0WMYJ.jpg");
    background-size: cover;
}

.item__content:nth-child(24){ /*Pluto*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/nW7wxhL.jpg");
    background-size: cover;
}

.item__content:nth-child(25){ /*Sailor Moon*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/pZgb2bD.png");
    background-size: cover;
}

.item__content:nth-child(26){ /*Naruto*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/sD2fSyi.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(27){ /*Monster*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/Qc89ydv.png");
    background-size: cover;
    display: none;
}

.item__content:nth-child(28){ /*Vinland Saga*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/7QZ75Fo.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(29){ /*Kingdom*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/NfEF8zS.png");
    background-size: cover;
    display: none;
}

.item__content:nth-child(30){ /*The Dangers in My Heart*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/Md0eOTV.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(31){ /*Rent-A-Girlfriend*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/DEaEZ1y.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(32){ /*Urusei Yatsura*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/sHtCzgi.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(33){ /*Vagabond*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/7U9ExTQ.png");
    background-size: cover;
    display: none;
}

.item__content:nth-child(34){ /*Slam Dunk*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/4bSisFq.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(35){ /*Komi Can't Communicate*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/rbmy6Jg.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(36){ /*Ashita No Joe*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/QQ43pcn.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(37){ /*Haikyuu!!*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/eNO1o09.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(38){ /*Nana*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/pFxGFTP.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(39){ /*Made In Abyss*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/Rw8WbXK.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(40){ /*Girls' Last Tour*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/w0F2IcX.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(41){ /*The Apothecary Diaries*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/y4UqOSG.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(42){ /*The 100 Girlfriends Who Really, Really, Really, Really, Really Love You*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/TQ4zPmd.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(43){ /*Mob Psycho 100*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/36A9FA4.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(44){ /*Rurouni Kenshin*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/iqKC4ip.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(45){ /*Tokyo Ghoul*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/ns3HrPb.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(46){ /*Fruits Basket*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/xDXkquk.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(47){ /*Blue Lock*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/KhWqOZN.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(48){ /*Kaiji*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/sy9xEp5.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(49){ /*Your Name*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/3qQnWNP.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(50){ /*Battle Angel Alita*/
    background-image: linear-gradient(#0000,#00000045), url("https://i.imgur.com/1t4tp9W.jpeg");
    background-size: cover;
    display: none;
}

.item__content:nth-child(51){ /**/
    background-image: linear-gradient(#0000,#00000045), url("");
    background-size: cover;
    display: none;
}

@container cont (min-width: 450px){
    .item__content-container{
        display: grid;
        grid-template-columns: repeat(auto-fill,minmax(250px,2fr));
        grid-template-rows: repeat(auto-fill,minmax(400px, 2fr));
        grid-auto-rows: 500px;
        margin: 10px;
    }
}

@container cont (min-width: 1000px){
    .item__content-container{
        display: grid;
        grid-template-columns: repeat(auto-fill,minmax(300px,2fr));
        grid-template-rows: repeat(auto-fill,minmax(500px, 2fr));
        grid-auto-rows: 500px;
        margin: 10px;
    }
}