*, *::before, *::after {
    box-sizing: border-box;
}

/* GENERAL STYLES */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #ffffff;
    background-color: #000000;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Prevent elements from extending off the right side */
* {
    box-sizing: border-box;
}

a {
    color: red;
    text-decoration: none;
}

button {
    border-radius: 10px; /* This will apply rounded corners to all buttons */
}

.button:hover {
    transform: scale(1.1);
}

a:hover {
    color: orange;
}

a:active {
    color: green;
}

/* NAVIGATION BAR */
nav {
    background-color: #111111;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    height: 100px;
}

.nav-container {
    max-width: 1000px; /* Constrain the width */
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Align logo and nav links */
    align-items: center;
    padding: 0 20px;
}

nav .logo img {
    width: 200px;
    height: auto;
    position: relative;
    z-index: 1;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center; /* Center the nav links */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ffffff;
    font-weight: bold;
    font-size: 1em;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff0000;
}

.menu-icon {
    display: none; /* Hide by default, shown in media query */
    flex-direction: column;
    cursor: pointer;
}

.menu-icon div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
}

/* Slideshow Styles */
.slideshow {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 15s infinite;
    z-index: 0;
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes slideAnimation {
    0% {
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    33% {
        opacity: 1;
    }
    41% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    margin-top: 80px;
    text-align: center;
    
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    color: #fff;
    padding: 40px 0;
    border-radius: 5px;
    text-align: center;
    background-color: transparent; /* Explicitly set background to transparent */
}

.hero-content img {
    width: auto; /* Adjusted width */
    max-width: 100%;
    height: auto;
}

.hero-content .btn {
    padding: 10px 20px;
    background-color: #ff0000;
    color: #ffffff;
    text-decoration: none;
    border: 2px solid #ff0000;
    border-radius: 5px;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-content .btn:hover {
    background-color: #ffffff;
    color: #ff0000;
    border-color: #ffffff;
}

/* COMIC POPUP STYLES */
.comic-item {
    position: relative;
}

.comic-popup {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Translucent black background */
    color: white;
    padding: 10px;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease; /* Smooth fade-in */
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: left;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
    display: block; /* Ensure each paragraph behaves as a block */
    margin-bottom: 1em; /* Adds space between the paragraphs */
}

.comic-item:hover .comic-popup {
    opacity: 1; /* Show on hover */
}

.comic-item img:hover {
    opacity: 0.6; /* Keep the existing hover effect */
}

/* COMICS SECTION */
.comics-section {
    padding: 60px 20px;
    background-color: #1a1a1a;
    text-align: center;
    max-width: 1200px; /* Limit width on larger screens */
    margin: 0 auto;
}

.comics-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.comic-item {
    margin: 20px;
    width: 300px;
    position: relative;
    transition: opacity 0.3s ease; /* Smooth transition */
}

.comic-item img {
    width: 100%;
    height: auto;
    display: block;
    border: 2px solid #ffffff;
}

.comic-item img:hover {
    opacity: 0.6; /* Apply the shading by reducing opacity */
    cursor: pointer; /* Changes cursor to pointer to indicate it's clickable */
}

/* ABOUT SECTION */
.about-section {
    padding: 60px 20px;
    background-color: #111111;
    text-align: center;
    max-width: 1200px; /* Limit width on larger screens */
    margin: 0 auto;
}

.about-section img {
    max-width: 100%;
    height: auto;
}

/* CONTACT SECTION */
.contact-section {
    padding: 60px 20px;
    background-color: #1a1a1a;
    text-align: center;
    max-width: 1200px; /* Limit width on larger screens */
    margin: 0 auto;
}

.contact-section img {
    max-width: 100%;
    height: auto;
}

/* FOOTER */
footer {
    background-color: #111111;
    text-align: center;
    padding: 20px;
}

/* MEDIA QUERIES FOR RESPONSIVENESS */
@media (max-width: 768px) {
    /* Show hamburger menu on smaller screens */
    .menu-icon {
        display: flex;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: -100vw;
        width: 100%;
        height: calc(100% - 80px);
        background-color: #111111;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.3s ease;
        z-index: 99;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 20px 0;
    }

    nav ul li a {
        font-size: 1.5em;
    }

    .hero-content img {
        width: 60vw; /* Reduce logo size on mobile */
        height: auto; /* Explicitly set the height, adjust as necessary */
        padding: 15px; /* Adjust padding for smaller screens */
    }

    .hero-content .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    .comics-gallery {
        flex-direction: column;
        align-items: center;
    }

    .comic-item {
        width: 90%;
        margin-bottom: 20px;
    }

.comic-item img {
    transition: opacity 0.3s ease; /* Smooth transition */
    }

.comic-item img:hover {
    opacity: 0.7; /* Apply the shading by reducing opacity */
    cursor: pointer; /* Changes cursor to pointer to indicate it's clickable */
    }

}

/* CREATOR SECTION */
.creator-section {
    padding: 60px 20px;
    background-color: #1a1a1a;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.creator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    width: 100%;
}

.creator-photo img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

.creator-info {
    text-align: justify;
    color: white;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.creator-info p {
    font-size: 1.2em;
    margin-bottom: 20px;
    text-align: justify;
}

@media (max-width: 768px) {
    .creator-section {
        max-width: 100%;
        margin: 0;
        padding: 20px 0; /* Adjusted padding: 20px top/bottom, 0 left/right */
        
    }

    .creator-container {
        padding: 0;
        width: 100%;
        text-align: left;
    }

    .creator-photo img {
        width: 100%;
        height: auto;
	border-radius: 0; /* Optional: remove border radius on mobile */
    }

    .creator-info {
        padding: 0 10px; /* Optional: small side padding */
        width: 100%;
        font-size: 1em;
    }

    .creator-info p {
        font-size: 1em;
    }
}


/* ARTISTS SECTION */
.artists-section {
    padding: 60px 20px;
    background-color: #1a1a1a;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.artists-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #fff;
}

.artists-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Artist card */
.artist-card {
    width: 45%; /* Two columns */
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

.artist-card a {
    text-decoration: none;
    color: inherit;
}

.artist-photo {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.artist-name {
    margin-top: 10px;
    color: #fff;
    font-size: 1.2em;
    text-align: center;
}

/* Modal overlay */
.artist-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Background property removed */
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.artist-modal:target {
    display: flex;
}

.artist-modal::before {
    content: '';
    position: absolute; /* Absolute positioning relative to .artist-modal */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.9; /* Adjust this value between 0 and 1 */
    z-index: -1; /* Ensure it sits behind the modal content */
}

/* Modal content */
.artist-modal-content {
    position: relative;
    color: white;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.artist-modal-photo {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.artist-modal-bio {
    font-weight: bold;
    font-size: 1.2em;
    text-align: left;    /* Align text to the left */
    margin: 0 auto;      /* Center the bio container */
    max-width: 768px;    /* Limit the width of the bio text */
    width: 100%;         /* Ensure it fills the modal content width */
}

.artist-modal-bio p {
    line-height: 1.6;    /* Improve readability */
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: red;
    font-size: 2em;
    text-decoration: none;
    font-weight: bold;
}

.close-button:hover {
    color: #ccc;
}

/* Image zoom effect */
.artist-card:hover .artist-photo {
    transform: scale(1.05); /* Slight zoom */
}

@media (max-width: 768px) {
    .artist-card {
        width: 100%; /* Stack on smaller screens */
    }
}

@media (max-width: 768px) {
    /* Adjustments for smaller screens */
    .hero-content img {
        width: 250px; /* Reduce logo size on mobile */
        height: auto; /* Explicitly set the height, adjust as necessary */
        padding: 15px; /* Adjust padding for smaller screens */
    }

    .hero-content .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
}
