/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== GLOBAL ===== */
html, body {
    height: 100%;
    font-family: "Trebuchet MS", Arial, sans-serif;
    background-color: #7ec850; /* Grass green */
    color: #1f2937;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: repeating-linear-gradient(
        45deg,
        #7ec850,
        #7ec850 20px,
        #6fbf44 20px,
        #6fbf44 40px
    );
}

main {
    flex: 1 0 auto;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== HEADER (STONE BLOCK) ===== */
header {
    background: #6b7280;
    border-bottom: 6px solid #374151;
    color: #ecfdf5;
}

header .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

header h1 {
    font-size: 1.75rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px #000;
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

header nav a {
    color: #bbf7d0;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    border: 2px solid transparent;
}

header nav a:hover {
    border: 2px solid #22c55e;
    background-color: #14532d;
}

/* ===== LOGO ===== */
.logo-section {
    text-align: center;
    padding: 1.5rem 0;
}

.logo-section img {
    max-width: 150px;
    image-rendering: pixelated;
    border: 4px solid #14532d;
    background-color: #22c55e;
}

/* ===== OPENING SECTION ===== */
.opening-section {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    background-color: #bbf7d0;
    border: 6px solid #14532d;
    margin-bottom: 2rem;
}

.opening-content {
    flex: 1;
    min-width: 300px;
}

.opening-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px #16a34a;
}

.opening-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.opening-content a {
    display: inline-block;
    background-color: #22c55e;
    color: #052e16;
    padding: 0.6rem 1.2rem;
    text-decoration: none;
    border: 4px solid #14532d;
    font-weight: bold;
}

.opening-content a:hover {
    background-color: #16a34a;
}

/* ===== IMAGE ===== */
.opening-image {
    flex: 1;
    min-width: 300px;
}

.opening-image img {
    width: 100%;
    max-width: 500px;
    border: 6px solid #14532d;
    image-rendering: pixelated;
}

/* ===== PORTFOLIO ===== */
.portfolio-section {
    padding: 2rem 0;
}

.portfolio-section h3 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px #14532d;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    background-color: #ecfeff;
    border: 6px solid #374151;
    padding: 1rem;
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    image-rendering: pixelated;
    border: 4px solid #14532d;
    margin-bottom: 1rem;
}

.portfolio-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ===== FOOTER (BEDROCK) ===== */
footer {
    background-color: #111827;
    color: #d1d5db;
    padding: 1rem;
    text-align: center;
    border-top: 6px solid #374151;
}

footer a {
    color: #22c55e;
    text-decoration: none;
    margin: 0 0.5rem;
}

footer a:hover {
    color: #4ade80;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .opening-section {
        flex-direction: column;
    }
}

body.inverted {
  filter: invert(1) hue-rotate(180deg);
  transition: filter 0.4s ease;
}

.opening-image video {
    border: 3px solid #55ff55; /* Minecraft Green border */
    border-radius: 12px;       /* Rounded corners */
    box-shadow: 0 0 20px rgba(85, 255, 85, 0.5); /* Glow effect */
}

/* Container for all portfolio items */
.portfolio-container {
    display: flex;
    flex-wrap: wrap;       /* This lets items move to the next row if they run out of room */
    gap: 20px;            /* Space between your meme cards */
    justify-content: center;
    padding: 20px;
}

/* Individual Portfolio Card */
.portfolio-item {
    background-color: #1a1a1a; /* Dark gamer background */
    border: 2px solid #55ff55;  /* Minecraft Green border */
    border-radius: 12px;
    padding: 15px;
    width: 300px;              /* Keeps all cards the same size */
    text-align: center;
    transition: transform 0.3s ease; /* Smooth hover effect */
}

/* Make the video fit perfectly inside the card */
.portfolio-video {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Hover Effect: Card grows slightly when you mouse over it */
.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(85, 255, 85, 0.6);
}

/* Text Styling */
.portfolio-item h4 {
    color: #55ff55;
    margin: 10px 0 5px 0;
    text-transform: uppercase;
}

.portfolio-item p {
    color: #ccc;
    font-size: 0.9rem;
}

body {
    background-color: #87CEEB;
    font-family: 'Courier New', monospace;
    text-align: center;
}

h1, h2 {
    color: #2e7d32;
}

.game-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px;
}

.block {
    width: 100px;
    height: 100px;
    border: 4px solid #333;
    cursor: pointer;
    transition: transform 0.1s;
}

.block:active {
    transform: scale(0.9);
}

/* Minecraft-style textures (simple colors) */
.wood {
    background: #8B4513;
}

.stone {
    background: #808080;
}

.diamond {
    background: #00CED1;
}

.stats {
    font-size: 18px;
    margin: 15px;
}

button {
    padding: 10px 20px;
    background: #558b2f;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #33691e;
}

/* Invert mode support */
.inverted {
    filter: invert(1) hue-rotate(180deg);
}

.style-switcher {
  position: relative;
}

.style-switcher .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  padding: 10px;
  border-radius: 8px;
  display: none;
  min-width: 150px;
  z-index: 1000;
}

.style-switcher .dropdown li {
  margin: 5px 0;
  list-style: none;
}

.style-switcher .dropdown a {
  color: #fff;
  text-decoration: none;
}

.style-switcher .dropdown a:hover {
  color: #00ffff;
}

/* MODES */
body.party {
  background: linear-gradient(45deg, #ff00cc, #3333ff);
  color: white;
  animation: partyFlash 1s infinite alternate;
}

@keyframes partyFlash {
  from { filter: hue-rotate(0deg); }
  to { filter: hue-rotate(90deg); }
}

body.focus {
  background: #f4f4f4;
  color: #222;
  font-family: Arial, sans-serif;
}

/* Make sure dropdown is hidden initially */
#style-options {
  display: none;
  position: absolute;
  background: #222;
  padding: 10px;
  border-radius: 8px;
  list-style: none;
}

.style-switcher {
  position: relative;
}

/* Show dropdown when active */
.style-switcher.active #style-options {
  display: block;
}

#style-options a {
  color: white;
  text-decoration: none;
}

/* MODES */
body.party {
  background: linear-gradient(45deg, #ff00cc, #3333ff);
  color: white;
}

body.focus {
  background: #f4f4f4;
  color: #222;
}

/* ===== SONGS PAGE ===== */

.songs-section {
    padding: 2rem;
}

.songs-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px #14532d;
}

/* Song List Container */
.song-list {
    max-width: 800px;
    margin: 0 auto;
    background-color: #bbf7d0;
    border: 6px solid #14532d;
    padding: 1rem;
}

/* Each Song Item */
.song {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 3px solid #14532d;
    background-color: #ecfeff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.song:last-child {
    border-bottom: none;
}

/* Hover effect (Minecraft glow vibe) */
.song:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}

/* Song text */
.song-info {
    text-align: left;
}

.song-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #14532d;
}

.song-artist {
    font-size: 0.9rem;
    color: #555;
}

/* Play button */
.play-btn {
    background-color: #22c55e;
    border: 3px solid #14532d;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: bold;
    color: #052e16;
}

.play-btn:hover {
    background-color: #16a34a;
}

/* Audio Player */
audio {
    width: 100%;
    margin-top: 1rem;
    border: 3px solid #14532d;
}

/* Mobile */
@media (max-width: 600px) {
    .song {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .play-btn {
        align-self: flex-end;
    }
}