* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

ul {
    list-style: none;
}

body * {
    font-family: 'Inter', sans-serif;
    line-height: 160%;
}

body {
    background-image: url(./assets/b1g.jpg);
    background-position: top center;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-color: #121214;
}

header {
    padding-top: 32px;
    height: calc(120px + 32px);
    
}

header div:hover {
    transform: scale(1.1)
}

header div {
    width: 110px;
    margin: auto;
    background-image: linear-gradient(90deg, #9572FC 0%, #43E7AD 50.52%, #E2D45C 100%);
    border-radius: 50%;
    display: flex;
    padding: 4px;
    transition: transform .3s;

}
header div img {
    width: 100px;
    border-radius: 50%;
    


}
main { 
    max-width: 580px;
    width: 90%;
    margin: 32px auto;
    display: grid;
    gap: 24px;
    


}

section {
    color: white;
    background-image: linear-gradient(90deg, #9572FC 0%, #43E7AD 50.52%, #E2D45C 100%);
    padding-top: 4px;
    border-radius: 10px;
    
    
}

section div {
    background-color: #2A2634;
    padding: 32px;
    padding-top: 24px;
    border-radius: 8px;
}    

section h2 {
   letter-spacing: -0.47px;
}

section p {
    letter-spacing: -0.18px;
    color: #A1A1AA;
}


section ul li:hover {
    transform: scale(1.1);

}

section ul li {
    transition: transform .3s;
}

section ul {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;

}

.movies-list img {
    border-radius: 8px;
    width: 90px;

}

.books-list img {
    border-radius: 8%;
    width:  90px;
}

/* animation */

header div {
    animation: fromTop .3s .2s backwards;


}

main section {
    animation:  fromBottom .7S backwards;
}

main section:nth-child(1) {
    animation-delay: 0;
}

main section:nth-child(2) {
    animation-delay: .4s;
}

main section:nth-child(3) {
    animation-delay: .8s;
}

@keyframes fromTop {
    from {
        opacity:0;
        transform: translateY(-30px);
    
    }

    top {
        opacity: 1;
        transform:  translateY(0);
    }
}

@keyframes fromBottom {
    from {
        opacity:0;
        transform: translateY(30px);
    
    }

    top {
        opacity: 1;
        transform:  translateY(0);
    }


}