

/* Breakpoint: 920px (920/16 = 57.5rem */
@media (max-width: 57.5rem ) {
  
    .inside-content {
        padding: 0rem 0 3rem 0;
    }

    .steam-widget {
        max-width: 600px;
    }

    footer nav {
        padding-top: 2%; 
        padding-bottom: 2%;
    }

    .footer-ul { 
        padding: 2% 2% 2% 2%; 
        gap: 2rem;
    }

    .footer-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
}


/* Breakpoint: 800px (800/16 = 50rem */
@media (max-width: 50rem ) {
    .text-content {
        padding-left: 3rem;
        padding-right: 3rem;
    }    
}

/* Breakpoint: 720px (720/16 = 45rem */
@media (max-width: 45rem ) {

    h1 {
        font-size: 3.25rem;
    }

    h2 {
        font-size: 2.75rem;
    }

    p { 
        font-size: 1.75rem;
        line-height: 2.75rem;
    }

    .section h1, .section h2 {
        margin-top: 1rem;
    }

    .footer-ul li a{
        font-size: 1.75rem;
    }

}

/* Breakpoint: 480px (480/16 = 30rem */
@media (max-width: 30rem ) {

    h1 {
        font-size: 3.25;
        margin-bottom: 0;
    }

    h2 {
        font-size: 2.33rem;
        margin-bottom: 0;
    }

    p { 
        font-size: 1.55rem;
        line-height: 2.35rem;
    }

    .section h1, .section h2 {
        margin-top: 0rem;
        max-width: 40rem;
    }

     .text-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }  

    .footer-ul li a{
        font-size: 1.5rem;
    }
}


/* --- Burger menu --- */
@media (max-width: 900px) {
    .header-nav {
        position: absolute;
        top: 6rem;
        right: 0;
        background: black;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem;
        width: 100%;

        /* Animation setup */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    /* Show burger icon */
    .burger {
        display: flex;
        margin-left: auto;
    }

    /* Style the burger lines */
    .burger span {
        display: block;
        height: 3px;
        background: white;
        border-radius: 5px;
        transition: all 0.3s ease; /* smooth animation */
    }

    /* When menu is open */
    .menu-toggle:checked + .burger span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle:checked + .burger span:nth-child(2) {
        opacity: 0; /* middle line fades out */
    }

    .menu-toggle:checked + .burger span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* When checkbox is checked → show nav */
    .menu-toggle:checked ~ nav .header-nav {
            max-height: 500px;   /* big enough to fit links */
            opacity: 1;
    }

} /* end bureger media query */


