* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Georgia", "Times New Roman", serif;
}

body {
    background-color: #ffffff;
    overflow-x: hidden;
    margin: 0;
}

/* ---------- NAVIGATION ---------- */

.navigation {
    background-color: #000000;
    position: sticky;
    top: 0;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 0rem;
    z-index: 20;
}

.navs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex: 1;
}

.navigation a:not(.varukorg) { /*om inte varukorg bilden blir mindre nu så tappar jag förståndét*/
    font-family: "Impact", sans-serif;
    color: #fffefe;
    text-decoration: none;
    margin: 0 0.9375rem; /* converted margin to rem */
    font-size: 2.5rem; /* typographic sizing in rem */
    text-transform: uppercase;
    transition: color 0.3s;
    padding: 0.375rem 0.9375rem; /* spacing in rem */
    z-index: 100;
}

.navigation a:hover {
    color: #ca0000;
}

.helaSHOP {
    background-image: url(webdetails/comic-sidescribble.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

h1 {
    font-family: 'Impact', sans-serif;
    font-size: clamp(3rem, 8vw, 8rem); /* responsive heading using clamp */
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 1rem;
    text-align: center;
}

/* ---------- ART GALLERY ---------- */

.artgallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 50rem; /* slightly increased width */
    margin: 0 auto;
    padding: 2rem;
    overflow: visible; 
    padding-bottom: 5rem;
    row-gap: 2rem;
    column-gap: 2rem;
}

.art {
    display: block;
    width: 100%;
    height: 28rem; 
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
    overflow: visible; /* allow image to overflow on hover */
}

.art:hover {
    transform: scale(1.1); 
    z-index: 10; /* appear above other images */
}



/*------------------about section-------------------*/

#scribble {
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}

.about-menyn {
    position: relative;
    display: block;
    padding: 5rem;
    margin-top: -0.1875rem; /* small negative shift converted to rem */
    background-color: #000;
    text-align: center;
    min-height: 6rem; /* ensure space for heading row */
}

.about-menyn h2 {
    position: absolute;
    left: 50%;
    top: 1.5rem; /* position heading near top of section */
    transform: translateX(-50%);
    font-family: "Impact", sans-serif;
    font-size: 3rem; /* heading sized in rem */
    color: #ffffff;
    text-transform: uppercase;
    margin: 0;
}

.about-menyn .up {
    position: absolute;
    right: 1.5rem; /* place the back-to-top link to the right of the section */
    top: 1.5rem; /* align vertically with the heading */
    transform: none;
}

.about-menyn p {
    font-family: "Helvetica", sans-serif;
    font-size: 1.25rem; /* body text in rem */
    color: #fffefe;
    max-width: 60rem;
    margin: 4rem auto 0 auto; /* place paragraph below the heading row */
}

.up {  /* back to top knappen */
    font-family: "Impact", sans-serif;
    font-size: 1.25rem; /* typographic size in rem */
    text-decoration: none;
    color: #fffefe;
}

.up:hover {
    color: #ca0000;
}

/* ------- contact och flervalslista ----*/

.contact {
    background: #000;
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
    margin-top: 0;
    margin: 0;
    min-height: 100vh;
}

.contact h2 {
    font-family: "Impact", sans-serif;
    font-size: 4.5rem; /* large contact heading in rem */
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #fff;
}

.contact-links {
    margin-bottom: 4rem;
}

.contact-links a {
    font-family: "Impact", sans-serif;
    font-size: 1.75rem; /* link size in rem */
    color: #fff;
    text-decoration: none;
    margin: 0 1rem;
    border-bottom: 3px solid #fff;
}

.contact-links a:hover {
    color: #ca0000;
    border-color: #ca0000;
}

/* ---------- RESPONSIVE DESIGN ---------- */

@media (max-width: 1024px) {
    /* tablet breakpoint */
    .artgallery {
        max-width: 90%; /* wider on tablet */
    }
}

@media (max-width: 600px) {

    .artgallery {
        grid-template-columns: 1fr; /* 1 image per row on mobile */
        margin-top: 4rem; /* spacing to not cover h1 on mobile */
        gap: 4rem; /* gap between images on mobile */
        padding: 1rem;
    }

    .art {
        height: auto; /* full size images on mobile */
        max-height: none;
        aspect-ratio: auto; /* don't constrain aspect ratio on mobile */
        object-fit: contain; /* show full image without crop */
    }

    .navigation {     /* navigation för mobil, mindre padding */
        padding: 1rem;
        gap: 0.5rem;
    }

    .navs {
        gap: 1rem;
    }

    .navigation a:not(.varukorg) {
        font-size: 1.25rem; /* responsive font on mobile */
        margin: 0 0.3125rem; /* responsive margin in rem */
        padding: 0.25rem 0.5rem; /* responsive padding in rem */
    }

    .varukorg img { 
        width: 2.5rem; /* responsive image sizing in rem */
        max-height: 2.5rem; /* responsive max-height */
    }

    #counter {
        font-size: 1rem; /* responsive counter on mobile */
    }

    h1 {
        font-size: 4rem; /* responsive heading on mobile */
        margin-bottom: 0.5rem;
    }

    .produkt-rad-figurer, .produkt-rad-posters, .produkt-rad-clothes, .produkt-rad-annat {
        margin: 1rem 0;
        padding: 0 1rem;
    }

    .produkt-rad-figurer h2, .produkt-rad-posters h2, .produkt-rad-clothes h2, .produkt-rad-annat h2 {
        font-size: 2rem; /* responsive heading on mobile */
        margin-bottom: 0.5rem;
        padding-left: 1rem;
    }

    .container {
        padding: 1rem;
        gap: 0.5rem;
    }

    .produkt {
        width: 11.25rem; /* converted width to rem */
        padding: 0.25rem;
    }

    .produkt img {
        height: 15.625rem; /* converted height to rem */
    }

    .produkt p {
        font-size: 1rem; /* responsive text on mobile */
    }

    .produkt:hover { /* lite ändrad hover */
        transform: translateY(-0.1875rem) rotate(-0.25deg); /* responsive transform in rem */
        box-shadow: 0.25rem 0.25rem 0 #000; /* responsive shadow in rem */
    }

    .produkt-rad-posters .scroll-knapp { /* ändra storlek och position på knapparna */
        width: 2.5rem; /* converted to rem */
        height: 2.5rem; /* converted to rem */
        font-size: 1.75rem; /* converted to rem */
        left: 0.25rem; /* converted to rem */
        right: 0.25rem; /* converted to rem */
    }

    .homeknapp {
        left: 0.75rem; /* converted to rem */
        top: 0.75rem; /* converted to rem */
        font-size: 1.25rem; /* converted to rem */
        margin-left: 0.9375rem; /* converted to rem */
    }

    .carttitle {
        font-size: 2.5rem; /* converted to rem */
        margin-top: 4.375rem; /* converted to rem */
    }

    .clearcart {
        right: 0.75rem; /* converted to rem */
        top: 0.75rem; /* converted to rem */
        font-size: 1.25rem; /* converted to rem */
        padding: 0.5rem 1rem; /* converted to rem */
        box-shadow: 0.25rem 0.25rem 0 #000000; /* converted to rem */
    }

    .clearcart:hover {
        transform: translate(0.125rem, 0.125rem); /* converted to rem */
        box-shadow: 0.125rem 0.125rem 0 #000000; /* converted to rem */
    }

    .WIP {
        font-size: 0.875rem; /* converted to rem */
        margin-top: 1.875rem; /* converted to rem */
    }

}