/* Styling for the image of your face */
img[src="assets/nigga.jpg"] {
    max-width: 50%; /* <--- THIS IS THE LINE you adjust to make it smaller or larger */
    height: auto;
    display: block;
    margin: 0 auto;
} 
/* Import custom font if you have it */
@font-face {
    font-family: 'CCroman';
    src: url('fonts/CCroman.ttf') format('truetype');
}

/* ----------------------------------- */
/* NEW EASY COOL EFFECTS              */
/* ----------------------------------- */
html {
    /* 1. SMOOTH SCROLL: Makes anchor links glide instead of snapping */
    scroll-behavior: smooth;
}
/* ----------------------------------- */
/* CSS KEYFRAMES                      */
/* ----------------------------------- */

/* 1. Subtle Floating Effect for Logo */
@keyframes subtle-float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); box-shadow: 0 0 25px #9f5bff; }
    100% { transform: translateY(0); }
}

/* 2. Neon Blinking Effect for Titles */
@keyframes neon-blink {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px #d29bff, 0 0 20px #8c52ff; }
    50% { opacity: 0.9; text-shadow: none; }
}

/*
 * This code replaces the previous linear-gradient with your image.
 * Apply this to the element you want the background on (e.g., body or a specific div).
 */


/* ----------------------------------- */
/* RESET & BODY                       */
/* ----------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url("mlbb\ background.jpg"); 
    background-color: #0b001a; 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'CCroman', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
}

/* ----------------------------------- */
/* HEADER                             */
/* ----------------------------------- */
header {
    background: rgba(106, 0, 255, 0.7);
    backdrop-filter: blur(8px);
    padding: 1rem 0;
    box-shadow: 0 0 15px #b741ff88;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #fff;
    font-size: 2rem;
    animation: neon-blink 3s step-end infinite;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; 
}

header nav a {
    color: #eae6ff;
    text-decoration: none;
    font-size: 1.05rem;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

header nav a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1); 
    text-shadow: 0 0 8px #8c52ff, 0 0 12px #4fc3ff;
    transform: translateY(-2px);
}

/* ----------------------------------- */
/* LOGO SECTION                       */
/* ----------------------------------- */
.logo-section {
    text-align: center;
    padding: 2rem 0;
}

.logo-section img {
    max-width: 180px;
    filter: drop-shadow(0 0 15px #9f5bff); 
    animation: subtle-float 5s ease-in-out infinite;
}

/* ----------------------------------- */
/* OPENING SECTION (HERO)             */
/* ----------------------------------- */
.opening-section {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    padding: 4rem 0;
    align-items: center;
}

.opening-content {
    flex: 1;
    min-width: 300px;
}

.opening-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 0 10px #b57bff;
    line-height: 1.2;
}
.opening-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.opening-content a {
    display: inline-block;
    background: linear-gradient(90deg, #6a00ff, #00b4ff);
    padding: 0.8rem 1.6rem;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease;
    box-shadow: 0 0 12px #8c52ff;
}

.opening-content a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #00b4ff;
}

/* 3. PRESS EFFECT: When the button is clicked */
.opening-content a:active {
    transform: scale(0.98); 
    box-shadow: 0 0 5px #00b4ff; 
}

.opening-image img {
    width: 100%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 0 20px #8c52ff88;
    transition: 0.3s ease;
}

.opening-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px #00b4ff;
}

/* ----------------------------------- */
/* PORTFOLIO SECTION                  */
/* ----------------------------------- */
.portfolio-section {
    padding: 4rem 0;
    scroll-margin-top: 100px; 
}

.portfolio-section h3 {
    text-align: center;
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 0 12px #c78bff;
    margin-bottom: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2rem;
}

.portfolio-item {
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #1a0b2e;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    display: flex;
    flex-direction: column;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px #9c5bff66; 
}

.portfolio-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    /* 2. IMAGE HOVER ZOOM: The image transition */
    transition: transform 0.3s ease-in-out;
}

/* 2. IMAGE HOVER ZOOM: When hovering over the portfolio item, zoom the image */
.portfolio-item:hover img {
    transform: scale(1.05); 
}

.portfolio-item h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.portfolio-item p {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
}

/* ----------------------------------- */
/* FOOTER                             */
/* ----------------------------------- */
footer {
    background: rgba(45, 0, 80, 0.8);
    padding: 2rem 1rem;
    color: white;
    text-align: center;
    border-top: 1px solid rgba(160, 80, 255, 0.3);
    box-shadow: 0 -5px 20px rgba(140, 82, 255, 0.2);
    margin-top: auto;
}

footer a {
    color: #cbbdff;
    text-decoration: none;
    margin: 0 0.8rem;
    transition: 0.25s;
    font-weight: bold;
}

footer a:hover {
    color: #fff;
    text-shadow: 0 0 8px #00b4ff;
}

/* ----------------------------------- */
/* RESPONSIVE                         */
/* ----------------------------------- */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    header nav ul {
        justify-content: center;
        gap: 0.5rem;
    }

    .opening-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .opening-content h2 {
        font-size: 2.2rem;
    }

    .opening-content a {
        width: 100%; 
        text-align: center;
    }
}
/* --- THE FIX: BACKGROUND & TURRET --- */

/* Reset the kill counter at the very top of your CSS file */
html { counter-reset: kills; }

.mlbb-theme {
    position: relative;
    width: 100%;
    height: 550px;
    background-image: url('map.jpg') !important; /* Matches your map.jpg */
    background-size: cover;
    background-position: center;
    border: 5px solid #ffd700;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 2rem;
    z-index: 1;
}

/* START SCREEN LOGIC */
.start-trigger { display: none; }
.start-screen {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 100; /* Stays on top until clicked */
    display: flex;
    justify-content: center;
    align-items: center;
}
.start-trigger:checked ~ .start-screen { display: none; }

/* TURRET (Centered Left) */
.turret-station {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 130px;
    z-index: 10;
}
.lifebar-container {
    width: 100%;
    height: 12px;
    background: #333;
    border: 1px solid #fff;
    margin-bottom: 5px;
}
.lifebar {
    width: 100%;
    height: 100%;
    background: #00ff00;
    animation: drain 180s linear forwards;
    animation-play-state: paused;
}

/* MOB MOVEMENT */
.creep {
    position: absolute;
    right: -200px;
    background-size: contain;
    background-repeat: no-repeat;
    animation: walk-left 8s linear infinite;
    animation-play-state: paused;
    display: block;
}
.start-trigger:checked ~ .creep { animation-play-state: running; }

@keyframes walk-left {
    from { right: -200px; }
    to { right: 120%; }
}

/* MOB STYLES - Matches your folder names */
.minion {
    width: 100px; height: 100px;
    background-image: url('minion.jpg');
}
.boss {
    width: 180px; height: 150px;
    background-image: url('epstein.jpg');
}

/* KILL LOGIC */
.kill-check { display: none; }
.kill-check:checked { counter-increment: kills; }
.kill-check:checked + .creep { display: none; }
.kill-total::after { content: counter(kills); }

/* DEFEAT SCREEN */
.game-over-screen {
    position: absolute;
    inset: 0;
    background: rgba(150, 0, 0, 0.9);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s;
}
.start-trigger:checked ~ .game-over-screen {
    animation: showDefeat 1s linear forwards;
    animation-delay: 180s;
}
@keyframes showDefeat { to { opacity: 1; pointer-events: auto; } }
.music-header {
    font-family: 'CCroman', sans-serif;
}
/* ----------------------------------- */
/* MOBILE RESPONSIVENESS               */
/* ----------------------------------- */
@media (max-width: 768px) {
    .role-grid {
        grid-template-columns: 1fr; /* Changes from 5 columns to 1 column */
        max-width: 300px;
        margin: 0 auto;
    }
}
body.choice-page {
    background-image: url("../choice.jpg") !important;
}
/* STRIPPED DOWN BUTTON LAYOUT */
.simple-switcher {
    text-align: center;
    /* MAGIC NUMBER 1: Change this number to push the buttons up or down */
    margin-top: 200px; 
}

.role-buttons {
    display: grid;
    /* This creates exactly 5 rigid columns of equal size */
    grid-template-columns: repeat(5, 1fr); 
    /* This locks each button directly in the dead-center of its column */
    justify-items: center; 
    
    /* THE SQUEEZE/STRETCH MAGIC NUMBERS */
    width: 80%; 
    max-width: 1100px;
    margin: 0 auto 40px auto; 
}

.role-buttons button, .reset-btn {
    padding: 12px 25px;
    background: linear-gradient(90deg, #6a00ff, #00b4ff);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    transition: 0.3s ease;
}

.role-buttons button:hover, .reset-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00b4ff;
}

.reset-btn {
    background: linear-gradient(90deg, #ff0044, #ff5e00);
}
/* =========================================
   CONTACT PAGE STYLES
   ========================================= */
.contact-section {
    max-width: 600px;
    margin: 4rem auto;
    background: rgba(11, 0, 26, 0.8);
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid #8c52ff;
    text-align: center;
    box-shadow: 0 0 20px rgba(106, 0, 255, 0.3);
}

.contact-section h2 {
    color: white;
    margin-bottom: 0.5rem;
}

.contact-section p {
    color: #ccc;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.contact-form label {
    color: #00b4ff;
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #6a00ff;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

/* Adds a cool glow when they are typing */
.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: #00b4ff;
    box-shadow: 0 0 10px #00b4ff;
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    margin-top: 10px;
    padding: 15px;
    background: linear-gradient(90deg, #6a00ff, #00b4ff);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #00b4ff;
}
/* =========================================
   MUSIC WIDGET STYLES (FOR ALL PAGES)
   ========================================= */
.music-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #cba135; 
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    z-index: 9999; /* Made this very high so it's always on top */
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    font-family: sans-serif;
    transition: width 0.3s;
}

.music-btn {
    background: none;
    border: none;
    color: #cba135;
    font-size: 24px;
    cursor: pointer;
    outline: none;
}

.music-btn:hover {
    color: white;
    transform: scale(1.1);
}

.music-info {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    margin-right: 10px;
}

.music-bars {
    display: flex;
    gap: 3px;
    height: 15px;
    align-items: flex-end;
}

.bar {
    width: 3px;
    background-color: #cba135;
    animation: bounce 0s infinite;
}

@keyframes bounce {
    0% { height: 2px; }
    50% { height: 15px; }
    100% { height: 2px; }
}

.playing .bar { animation-duration: 0.5s; }
.playing .bar:nth-child(1) { animation-duration: 0.6s; }
.playing .bar:nth-child(2) { animation-duration: 0.8s; }
.playing .bar:nth-child(3) { animation-duration: 0.4s; }
.playing .bar:nth-child(4) { animation-duration: 0.7s; }