@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

body {
margin: 0;
background: #f5f0d8;
font-family: 'Comic Neue', cursive;
color: #222;
}

/* HEADER */

header {
background: #c62828;
color: white;
}

.banner {
position: relative;
overflow: hidden;
border-bottom: 6px solid #222;
}

.banner-image {
width: 100%;
display: block;
}

.banner-text {
position: absolute;
bottom: 20px;
left: 40px;
background: rgba(255, 255, 255, 0.85);
padding: 15px 25px;
border-radius: 10px;
}

.banner-text h1 {
margin: 0;
font-size: 3rem;
}

.banner-text p {
margin-top: 10px;
font-size: 1.2rem;
}

/* NAVIGATION */

.main-menu {
background: #c62828;
border-bottom: 4px solid #222;
}

.main-menu ul {
margin: 0;
padding: 0;
list-style: none;


display: flex;
justify-content: center;


}

.main-menu li {
margin: 0;
}

.main-menu a {
display: block;
padding: 18px 30px;


color: white;
font-weight: bold;
text-decoration: none;

transition: 0.3s;


}

.main-menu a:hover {
background: #222;
color: yellow;
}

.main-menu a.active {
background: #222;
}

/* MAIN CONTENT */

main {
max-width: 1200px;
margin: auto;
padding: 30px;
}

main h2 {
text-align: center;
font-size: 2.5rem;
}

/* CARTOON GRID */

.cartoon-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
}

.cartoon-card img {
    width: 100%;
    height: 350px;
    object-fit: fill;
    display: block;
}

box-shadow: 6px 6px 0 #222;

transition: 0.2s;


}

.cartoon-card:hover {
transform: rotate(-1deg) scale(1.02);
}

.cartoon-card img {
width: 100%;
display: block;
}

.cartoon-card h3 {
text-align: center;
padding: 15px;
margin: 0;
}

/* OTHER PAGES */

.page-content {
min-height: 500px;
}

/* FOOTER */

footer {
background: #222;
color: white;
text-align: center;
padding: 20px;
}




/* CLICKABLE CARTOON THUMBNAILS */

.cartoon-card img {
    cursor: zoom-in;
}


/* FULL-SCREEN CARTOON VIEWER */

.cartoon-viewer {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.92);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    padding: 30px;
    box-sizing: border-box;
}


/* Show the viewer when its ID is targeted */

.cartoon-viewer:target {
    display: flex;
}


/* Image container */

.cartoon-viewer-container {
    position: relative;

    max-width: 95vw;
    max-height: 95vh;

    background: white;

    border: 5px solid #222;
    border-radius: 10px;

    padding: 15px;

    box-shadow: 10px 10px 0 #111;

    box-sizing: border-box;
}


/* Full-size cartoon */

.cartoon-viewer-container img {
    display: block;

    max-width: 90vw;
    max-height: 85vh;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* X button */

.cartoon-close {
    position: absolute;

    top: -25px;
    right: -25px;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    background: #c62828;
    color: white;

    border: 4px solid #222;

    text-decoration: none;

    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: bold;

    line-height: 42px;
    text-align: center;

    box-shadow: 4px 4px 0 #111;

    z-index: 10000;

    transition: 0.2s;
}


.cartoon-close:hover {
    background: #222;
    color: yellow;

    transform: scale(1.1);
}


/* Mobile sizing */

@media (max-width: 700px) {

    .cartoon-viewer {
        padding: 15px;
    }

    .cartoon-viewer-container {
        padding: 8px;
        max-width: 98vw;
        max-height: 95vh;
    }

    .cartoon-viewer-container img {
        max-width: 94vw;
        max-height: 88vh;
    }

    .cartoon-close {
        top: -18px;
        right: -18px;

        width: 40px;
        height: 40px;

        font-size: 30px;
        line-height: 33px;
    }

}




/* WEBSITE WATERMARK ON CARTOONS */

.cartoon-card > a {
    position: relative;
    display: block;
}

.cartoon-card > a::after {
    content: "http://leftreversal.online";
    position: absolute;

    right: 10px;
    bottom: 10px;

    color: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;

    text-shadow:
        2px 2px 3px black,
        -1px -1px 2px black;

    pointer-events: none;
    z-index: 2;
}



/* WATERMARK ON FULL-SCREEN CARTOON */

.cartoon-viewer-container {
    position: relative;
}

.cartoon-viewer-container::after {
    content: "http://leftreversal.online";
    position: absolute;
    right: 15px;
    bottom: 15px;

    color: white;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: bold;

    text-shadow:
        2px 2px 4px #000,
        -1px -1px 2px #000;

    pointer-events: none;
    z-index: 10;
}
