html, body {
    margin: 0;
    min-height: 100%;
}

body {
    background-image: url("images/145e36d9-bf00-448c-b8a8-b33c86276c0b (1).png");
    background-repeat: repeat-y;      
    background-repeat: repeat-y;
    background-position: top center;
    background-size: 100% auto;      
}

hero h1 {
    color: white;
    text-align: center;
    font-size: 130px;
}

#brainrots{
    padding: 40px 10%;
}

#brainrots h1{
    color: white;
    text-align: center;
    font-size: 6rem;
    margin-bottom: 40px;
}

#cards{
    display: grid;
    grid-template-columns: repeat(3, 300px);
    justify-content: center;
    column-gap: 300px;
    row-gap: 100px;
}

.card {
    width: 450px;
    background: rgba(30,30,30,0.75);
    border: 2px solid rgba(225,255,255,0.68);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.card:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: #f6d365;
    box-shadow: 0 20px 40px rgba(0,0,0,0.55);
}

.card img {
    width: 90%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    margin: 15px 0;
}

.card h2 {
    color: white;
    margin: 0;
    font-size: 2.5rem;
}

.card p {
    color: whitesmoke;
    margin: 15px 0 20px;
    line-height: 1.4;
    font-size: 40px;
}

.button {
    display: inline-block;
    text-decoration: none;
    color: azure;
    background: #300050;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: bold;
    transition: 0.5s;
    font-size: 30px;
}

.button:hover {
    background: #ff6f8f;
    transform: scale(1.08);
}

.card:nth-child(odd){
    transform: rotate(-1deg);
}

.card:nth-child(even){
    transform: rotate(1deg);
}

.card:hover{
    transform: rotate(0deg) scale(1.05);
}

#facts h1 {
    font-size: 6rem;
    color:antiquewhite;
    margin-bottom: 50px;
}

.facts-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

#facts {
    text-align: center;
    padding: 80px 10%;
}

.fact{
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;
    padding: 20px 25px;
    color: white;
    font-size: 1.15rem;
    text-align: left;
    transition: .25s ease;
}

.fact:hover {
    transform: translateX(8px);
    background: rgba(255,255,255,0.12);
    border-color: #ff6b6b;
}

#rules{
    padding: 150px 10%;
}

#rules h1{
    text-align: center;
    font-size: 6rem;
    color: antiquewhite;
    margin-bottom: 80px;
}

.rules-content{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    flex-wrap: wrap;
}

.rules-content img{
    width: 550px;
    border-radius: 25px;
    border: 3px solid rgba(255,255,255,.25);
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.rules-list{
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 850px;
    width: 100%;
}

.rule{
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 22px;
    padding: 35px 40px;
    transition: .3s;
}

.rule:hover{
    transform: translateX(10px) scale(1.02);
    background: rgba(255,255,255,.14);
    border-color: #f6d365;
}

.rule h2{
    margin: 0 0 15px;
    font-size: 2.2rem;
    color: white;
}

.rule p{
    margin: 0;
    font-size: 1.4rem;
    color: whitesmoke;
    line-height: 1.7;
}