/* Comic Book Style - Modern & Minimalist */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Shantell Sans', 'Arial Black', 'Impact', sans-serif;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    background-image:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.05) 0, rgba(0, 0, 0, 0.05) 2px, transparent 2px, transparent 100%),
        linear-gradient(45deg, rgba(255, 0, 102, 0.03) 25%, transparent 25%, transparent 75%, rgba(255, 0, 102, 0.03) 75%);
    background-size: 12px 12px, 40px 40px;
    color: #333;
    overflow-x: hidden;
    line-height: 1.4;
    min-height: 100vh;
    position: relative;
}

/* Comic Page Container */
.comic-page {
    position: relative;
    width: 100%;
    padding: 10px;
}

/* Base Panel Styling - All visual styling */
.panel {
    background: #fff;
    color: #000;
    border: 4px solid #000;
    box-shadow:
        6px 6px 0 rgba(0, 0, 0, 0.3),
        0 0 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 1;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    margin: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.panel:hover {
    transform: scale(1.02) translateY(-5px) rotate(0.5deg);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, z-index 0s;
}

.panel-content {
    position: relative;
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    overflow: hidden;
}

.panel-content .team-flag {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    width: 200px;
    height: 294px;
    margin: 0;
    filter: blur(6px);
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.panel-content .head {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: 80px;
    margin: 0;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    background: black;
}

.panel-content h2 {
    margin-left: 100px;
    text-align: left;
    margin-top: 0;
    margin-bottom: 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.panel-content p,
.panel-content ul {
    clear: both;
    margin-top: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.panel-border {
    display: none;
}

/* Masonry Grid Item Sizing - Clean containers for layout */
.grid-sizer,
.grid-item {
    width: calc(33.333% - 7px);
    transition: width 0.5s ease;
}

.grid-item-width2 {
    width: calc(66.666% - 7px);
    transition: width 0.5s ease;
}

.grid-item-full {
    width: calc(100% - 14px) !important;
}

/* Base Panel Styling - All visual styling inside containers */
.panel {
    background: linear-gradient(135deg, #ff0066, #ff6600);
    color: #fff;
    border-color: #000;
    border-radius: 15px;
    z-index: 10;
}

/* Hero Panel Layout */
.panel-hero {
    position: relative;
    overflow: hidden;
}

.panel-hero .panel-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 25px;
    min-height: 250px;
}

/* Hero Panel Logo */
.hero-logo {
    width: 350px;
    height: auto;
    z-index: 2;
    position: relative;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
    margin-bottom: 10px;
}

/* Wild Garlic Games Logo in Hero */
.hero-wgg-logo {
    width: 120px;
    height: auto;
    z-index: 2;
    position: relative;
    filter: drop-shadow(3px 3px 6px rgba(0, 0, 0, 0.5));
    margin-top: 15px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Hero Characters Artwork - Bottom Aligned */
.hero-characters {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
    width: auto;
    max-width: 60%;
    object-fit: contain;
    object-position: bottom right;
    z-index: 1;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
}

.comic-subtitle {
    z-index: 2;
    position: relative;
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: 0.05em;
    margin: 0 0 10px 0;
    max-width: 350px;
}

.hero-tagline {
    z-index: 2;
    position: relative;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: bold;
    max-width: 350px;
    line-height: 1.4;
    margin: 0;
}

/* Improved text outline utility for better readability */
.text-outline-black {
    text-shadow: none;
}

.text-outline-white {
    text-shadow: none;
}

.comic-title {
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.05em;
    text-shadow: none;
    line-height: 1;
    color: #000;
}

.comic-subtitle {
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: clamp(1.2rem, 3vw, 2rem);
    letter-spacing: 0.2em;
    margin-top: 10px;
    text-shadow: none;
    color: #000;
}

/* Panel 2: About */
.panel-about {
    background: linear-gradient(135deg, #ffff00, #ffd700);
    color: #000;
    border-radius: 15px;
    z-index: 9;
}

/* Panel: Steam Widget */
.panel-steam {
    background: linear-gradient(135deg, #1b2838, #2a475e);
    border-color: #000;
    border-radius: 15px;
    z-index: 10;
    position: relative;
    overflow: visible;
    color: #c7d5e0;
}

.panel-steam:hover {
    transform: scale(1.02) translateY(-5px) rotate(0.5deg);
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, z-index 0s;
}

.steam-brand-logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 200px;
    height: auto;
    z-index: 10;
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    transition: none;
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: auto;
}

.panel-steam:hover .steam-brand-logo {
    filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
    image-rendering: auto;
}

.steam-postit {
    position: absolute;
    top: -20px;
    right: 20px;
    padding: 12px 20px;
    background: #ffeb3b;
    color: #000;
    font-family: 'Shantell Sans', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #000;
    box-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
    transform: rotate(2deg);
    z-index: 20;
    line-height: 1.2;
    text-align: center;
}

.panel-steam .panel-content {
    padding: 25px;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.steam-info h2 {
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 2.5rem;
    color: #fff;
    text-align: left;
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.5);
}

.steam-description {
    color: #c7d5e0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: bold;
    font-family: 'Shantell Sans', sans-serif;
}

.steam-details {
    margin-bottom: 20px;
}

.steam-release {
    display: inline-block;
    padding: 8px 20px;
    background: #5c7e10;
    color: #fff;
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 1rem;
    letter-spacing: 0.08em;
    border: 2px solid #000;
    border-radius: 5px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.steam-wishlist-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #5c7e10;
    color: #fff;
    text-decoration: none;
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 1.1rem;
    border: 3px solid #000;
    border-radius: 8px;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.steam-wishlist-btn:hover {
    background: #78a216;
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

.panel-about .release-date {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background: #000;
    color: #fff;
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 1rem;
    letter-spacing: 0.2em;
    border: 2px solid #fff;
    text-shadow: none;
}

/* Panel 2.5: Trailer Video */
.panel-trailer {
    background: #000;
    padding: 0;
    border-radius: 15px;
    border-color: #ff0066;
    box-shadow: 6px 6px 0 rgba(255, 0, 102, 0.5);
    z-index: 8;
}

.panel-trailer:hover {
    box-shadow:
        12px 12px 0 rgba(255, 0, 102, 0.7),
        0 0 25px rgba(255, 0, 102, 0.3);
}

.panel-trailer .panel-content {
    padding: 10px;
    justify-content: flex-start;
    gap: 10px;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 2px solid #ff0066;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-label {
    display: inline-block;
    padding: 8px 20px;
    background: #ff0066;
    color: #000;
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    letter-spacing: 0.15em;
    font-size: 1rem;
    border: 2px solid #fff;
    align-self: center;
    text-shadow: none;
}

/* Video Player Panels */
.panel-video {
    background: #000;
    padding: 0;
    border-radius: 15px;
    border-color: #00ffff;
    box-shadow: 6px 6px 0 rgba(0, 255, 255, 0.5);
    z-index: 8;
}

.panel-video:hover {
    box-shadow:
        12px 12px 0 rgba(0, 255, 255, 0.7),
        0 0 25px rgba(0, 255, 255, 0.3);
}

.panel-video .panel-content {
    padding: 10px;
    justify-content: flex-start;
    gap: 10px;
}

.video-player-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border: 2px solid #00ffff;
    overflow: hidden;
}

.comic-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-caption {
    display: inline-block;
    padding: 8px 20px;
    background: #00ffff;
    color: #000;
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    letter-spacing: 0.15em;
    font-size: 1rem;
    border: 2px solid #fff;
    align-self: center;
    text-shadow: none;
    font-weight: bold;
}

/* Panel 3: Features */
.panel-features {
    background: linear-gradient(135deg, #00ffff, #00bfff);
    z-index: 7;
}

.feature-list {
    list-style: none;
    margin-top: 0;
    padding-left: 0;
}

.feature-list li {
    padding: 12px 0 12px 50px;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.feature-list li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-image: url('assets/HeadBackground.png');
    background-size: cover;
    background-position: center;
    mix-blend-mode: multiply;
}

.feature-list li:nth-child(1)::before {
    background: linear-gradient(135deg, #ff0066, #ff3388);
}

.feature-list li:nth-child(2)::before {
    background: linear-gradient(135deg, #00ffff, #00ccff);
}

.feature-list li:nth-child(3)::before {
    background: linear-gradient(135deg, #ffff00, #ffcc00);
}

.feature-list li:nth-child(4)::before {
    background: linear-gradient(135deg, #9d50ff, #bb77ff);
}

.feature-list li:nth-child(5)::before {
    background: linear-gradient(135deg, #00ff00, #33ff33);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Content Panels - Unified Styles */
.panel-about,
.panel-features,
.panel-gamemodes,
.panel-weapons,
.panel-abilities,
.panel-customization,
.panel-team,
.panel-specs {
    color: #000;
    border-radius: 15px;
}

.panel-about h2,
.panel-features h2,
.panel-gamemodes h2,
.panel-weapons h2,
.panel-abilities h2,
.panel-customization h2,
.panel-team h2,
.panel-specs h2 {
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 2.5rem;
    color: #000;
    text-shadow: none;
}

.panel-about p,
.panel-features p,
.panel-gamemodes p,
.panel-weapons p,
.panel-abilities p,
.panel-customization p,
.panel-team p,
.panel-specs p,
.feature-list li {
    color: #000;
    font-weight: bold;
    text-shadow: none;
    font-family: 'Shantell Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Panel: Game Modes */
.panel-gamemodes {
    background: linear-gradient(135deg, #ff6b9d, #ffc6e0);
    z-index: 6;
}

/* Panel: Weapons */
.panel-weapons {
    background: linear-gradient(135deg, #9d50ff, #c999ff);
    z-index: 5;
}

/* Panel: Abilities */
.panel-abilities {
    background: linear-gradient(135deg, #ff9500, #ffbb33);
    z-index: 4;
}

/* Panel: Character Customization */
.panel-customization {
    background: linear-gradient(135deg, #50ff50, #99ff99);
    z-index: 3;
}

/* Image Panels */
.panel-img-1,
.panel-img-2,
.panel-img-3,
.panel-img-4 {
    display: none;
}


/* Panel 7: Team */
.panel-team {
    background: linear-gradient(135deg, #ff00ff, #ff6bff);
    z-index: 2;
}

.team-wgg-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 20px auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.panel-team .panel-content {
    text-align: center;
}

.panel-team h2 {
    margin-left: 0;
    text-align: center;
    min-height: auto;
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 20px;
    margin-top: 10px;
    padding: 0 10px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.team-face {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.team-name {
    font-family: 'Shantell Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    color: #000;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

/* Panel 8: Specs */
.panel-specs {
    background: linear-gradient(135deg, #00ff00, #32cd32);
    z-index: 1;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-family: 'Shantell Sans', sans-serif;
}

.specs-table thead th {
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 1.2rem;
    padding: 10px 8px;
    text-align: left;
    border-bottom: 3px solid #000;
}

.specs-table thead th:first-child {
    width: 25%;
}

.specs-table tbody td {
    padding: 12px 8px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    font-weight: bold;
    font-size: 1rem;
}

.specs-table tbody tr:last-child td {
    border-bottom: none;
}

.specs-table .specs-label {
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 1.1rem;
}

/* Panel 9: Footer */
.panel-footer {
    background: linear-gradient(135deg, #fff, #f8f8f8);
    color: #000;
    border-radius: 15px;
    z-index: 0;
    border: 4px solid #000;
}

.panel-footer .panel-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 25px;
}

.panel-footer p {
    font-weight: bold;
    text-shadow: none;
    font-family: 'Shantell Sans', sans-serif;
    font-size: 1rem;
}

.panel-footer a {
    color: #000;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: none;
    transition: color 0.3s, border-color 0.3s;
    text-shadow: none;
}

.panel-footer a:hover {
    color: #ff0066;
    border-color: #ff0066;
    text-shadow: none;
}

.head {
    position: relative;
    width: 128px;
    height: 128px;
    margin: 20px auto;
}

.head .head-background,
.head .head-face {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.head .head-face {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
}

.head-and-flag-container {
    display: contents;
}

/* Impressum Page Styles */
main {
    max-width: 800px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

main h1 {
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ff0066;
}

main h2 {
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #333;
}

main p {
    font-family: 'Shantell Sans', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: bold;
}

main a {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: #ff0066;
    color: #fff;
    text-decoration: none;
    font-family: 'Luckiest Guy', 'Bangers', cursive;
    border: 3px solid #000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 4px 4px 0 #000;
}

main a:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0 #000;
}

footer {
    text-align: center;
    padding: 20px;
    font-family: 'Shantell Sans', sans-serif;
    font-size: 1rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {

    .grid-sizer,
    .grid-item {
        width: calc(50% - 10px);
    }

    .grid-item-width2 {
        width: calc(100% - 10px);
    }
}

@media (max-width: 768px) {
    .comic-page {
        padding: 5px;
    }

    .grid-sizer,
    .grid-item,
    .grid-item-width2 {
        width: 100%;
    }

    .comic-title {
        font-size: clamp(2.5rem, 15vw, 4rem);
    }

    .panel-footer .panel-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    main {
        margin: 20px;
        padding: 20px;
    }

    main h1 {
        font-size: 2rem;
    }

    main h2 {
        font-size: 1.4rem;
    }

    .hero-logo {
        width: 180px;
    }

    .hero-characters {
        max-width: 70%;
    }

    .panel-hero .panel-content {
        min-height: 250px;
        padding: 20px;
    }

    .comic-subtitle {
        max-width: 60%;
    }

    .hero-tagline {
        max-width: 60%;
    }
}