/* ========================================
   MINECRAFT THEME - PROBLEM STATEMENTS
   ======================================== */

/* Import Minecraft-style Font */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
    --minecraft-green: #55FF55;
    --minecraft-brown: #8B4513;
    --minecraft-dirt: #654321;
    --minecraft-stone: #7F7F7F;
    --minecraft-gold: #FFD700;
    --minecraft-diamond: #00FFFF;
    --minecraft-redstone: #FF0000;
    --minecraft-grass: #7CBD56;
    --minecraft-dark: #2C2C2C;
    --minecraft-white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background: #1a1a1a;
    color: var(--minecraft-white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ========================================
   MINECRAFT BACKGROUND
   ======================================== */
.ps-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #1a1a1a;
    overflow: hidden;
}

.ps-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    opacity: 0.15;
    object-fit: cover;
    z-index: 1;
}

.ps-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(45deg, rgba(44, 44, 44, 0.8) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(44, 44, 44, 0.8) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(44, 44, 44, 0.8) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(44, 44, 44, 0.8) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: rgba(0, 0, 0, 0.85);
    animation: minecraftScroll 20s linear infinite;
    z-index: 2;
}

@keyframes minecraftScroll {
    0% {
        background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    }

    100% {
        background-position: 20px 20px, 20px 30px, 30px 10px, 10px 20px;
    }
}

/* ========================================
   MAIN CONTAINER
   ======================================== */
.problem-statements-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 2rem 2rem;
    position: relative;
    z-index: 100;
    min-height: 100vh;
}

/* ========================================
   HEADER SECTION
   ======================================== */
.minecraft-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: slideDown 0.8s ease-out;
    position: relative;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.minecraft-title-box {
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.9) 0%, rgba(26, 26, 26, 0.95) 100%);
    border: 6px solid var(--minecraft-gold);
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.5),
        inset 4px 4px 0 rgba(255, 215, 0, 0.2),
        0 10px 0 var(--minecraft-dark),
        0 15px 40px rgba(255, 215, 0, 0.3),
        0 0 60px rgba(255, 215, 0, 0.2);
    padding: 2.5rem 2rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.minecraft-title-box::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(255, 215, 0, 0.1),
            transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.minecraft-title {
    font-size: 2rem;
    color: var(--minecraft-gold);
    text-shadow:
        3px 3px 0 var(--minecraft-dark),
        0 0 20px rgba(255, 215, 0, 0.8),
        0 0 40px rgba(255, 215, 0, 0.5);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    animation: titlePulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes titlePulse {

    0%,
    100% {
        text-shadow:
            3px 3px 0 var(--minecraft-dark),
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.5);
    }

    50% {
        text-shadow:
            3px 3px 0 var(--minecraft-dark),
            0 0 30px rgba(255, 215, 0, 1),
            0 0 60px rgba(255, 215, 0, 0.7);
    }
}

.minecraft-subtitle {
    font-size: 0.8rem;
    color: var(--minecraft-diamond);
    text-shadow:
        2px 2px 0 var(--minecraft-dark),
        0 0 10px rgba(0, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}

/* ========================================
   PROBLEMS GRID
   ======================================== */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* ========================================
   MINECRAFT CARD
   ======================================== */
.minecraft-card {
    background: linear-gradient(135deg, rgba(90, 90, 90, 0.95) 0%, rgba(60, 60, 60, 0.98) 100%);
    border: 5px solid var(--minecraft-dark);
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.5),
        inset 4px 4px 0 rgba(255, 255, 255, 0.2),
        0 8px 0 var(--minecraft-dark),
        0 12px 25px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.1);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
    overflow: hidden;
}

.minecraft-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 215, 0, 0.1),
            transparent);
    transition: left 0.5s;
}

.minecraft-card:hover::before {
    left: 100%;
}

.minecraft-card:nth-child(1) {
    animation-delay: 0.1s;
}

.minecraft-card:nth-child(2) {
    animation-delay: 0.2s;
}

.minecraft-card:nth-child(3) {
    animation-delay: 0.3s;
}

.minecraft-card:nth-child(4) {
    animation-delay: 0.4s;
}

.minecraft-card:nth-child(5) {
    animation-delay: 0.5s;
}

.minecraft-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.minecraft-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.5),
        inset 4px 4px 0 rgba(255, 255, 255, 0.2),
        0 12px 0 var(--minecraft-dark),
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 50px rgba(255, 215, 0, 0.3);
}

/* ========================================
   CARD HEADER
   ======================================== */
.card-header {
    background: linear-gradient(135deg, var(--minecraft-brown) 0%, var(--minecraft-dirt) 100%);
    padding: 1.5rem;
    border-bottom: 4px solid var(--minecraft-dark);
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.minecraft-icon {
    font-size: 2rem;
    filter: drop-shadow(2px 2px 0 var(--minecraft-dark));
}

.card-title {
    font-size: 0.9rem;
    color: var(--minecraft-gold);
    text-shadow: 2px 2px 0 var(--minecraft-dark);
    flex: 1;
}

/* ========================================
   DIFFICULTY BADGES
   ======================================== */
.difficulty-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.6rem;
    border: 3px solid var(--minecraft-dark);
    box-shadow:
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 0 var(--minecraft-dark);
}

.difficulty-badge.easy {
    background: var(--minecraft-green);
    color: var(--minecraft-dark);
}

.difficulty-badge.medium {
    background: var(--minecraft-gold);
    color: var(--minecraft-dark);
}

.difficulty-badge.hard {
    background: var(--minecraft-redstone);
    color: var(--minecraft-white);
}

/* ========================================
   CARD CONTENT
   ======================================== */
.card-content {
    padding: 1.5rem;
}

.problem-name {
    font-size: 1rem;
    color: var(--minecraft-diamond);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 0 var(--minecraft-dark);
}

.problem-description {
    font-size: 0.65rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* ========================================
   PROBLEM TAGS
   ======================================== */
.problem-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--minecraft-grass);
    color: var(--minecraft-dark);
    padding: 0.4rem 0.8rem;
    font-size: 0.5rem;
    border: 2px solid var(--minecraft-dark);
    box-shadow:
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        2px 2px 0 var(--minecraft-dark);
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.3);
}

/* ========================================
   CARD FOOTER & BUTTON
   ======================================== */
.card-footer {
    display: flex;
    justify-content: center;
}

.minecraft-btn {
    background: linear-gradient(135deg, var(--minecraft-grass) 0%, #5a9f3d 100%);
    color: var(--minecraft-white);
    border: 4px solid var(--minecraft-dark);
    padding: 0.8rem 1.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.7rem;
    cursor: pointer;
    position: relative;
    box-shadow:
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 0 rgba(255, 255, 255, 0.2),
        0 4px 0 var(--minecraft-dark);
    text-shadow: 2px 2px 0 var(--minecraft-dark);
    transition: all 0.1s;
}

.minecraft-btn:hover {
    background: linear-gradient(135deg, #6ac24a 0%, var(--minecraft-grass) 100%);
    transform: translateY(-2px);
    box-shadow:
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 0 rgba(255, 255, 255, 0.2),
        0 6px 0 var(--minecraft-dark);
}

.minecraft-btn:active {
    transform: translateY(2px);
    box-shadow:
        inset -2px -2px 0 rgba(0, 0, 0, 0.5),
        inset 2px 2px 0 rgba(255, 255, 255, 0.1),
        0 2px 0 var(--minecraft-dark);
}

/* ========================================
   CARD DETAILS (EXPANDABLE)
   ======================================== */
.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    background: rgba(0, 0, 0, 0.3);
    border-top: 0px solid var(--minecraft-dark);
}

.card-details.active {
    max-height: 1000px;
    padding: 1.5rem;
    border-top: 4px solid var(--minecraft-dark);
}

.card-details h4 {
    font-size: 0.8rem;
    color: var(--minecraft-gold);
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 0 var(--minecraft-dark);
}

.card-details ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-details li {
    font-size: 0.6rem;
    color: #d0d0d0;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.card-details li::before {
    content: "⛏️";
    position: absolute;
    left: 0;
}

.card-details p {
    font-size: 0.65rem;
    color: var(--minecraft-green);
    line-height: 1.8;
}

/* ========================================
   DOWNLOAD SECTION
   ======================================== */
.minecraft-download-section {
    text-align: center;
    margin: 4rem 0;
    animation: fadeIn 1s ease-out 0.8s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-box {
    background: linear-gradient(135deg, var(--minecraft-brown) 0%, var(--minecraft-dirt) 100%);
    border: 4px solid var(--minecraft-dark);
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.5),
        inset 4px 4px 0 rgba(255, 255, 255, 0.1),
        0 8px 0 var(--minecraft-dark),
        0 12px 25px rgba(0, 0, 0, 0.5);
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.download-box:hover {
    transform: translateY(-5px);
    box-shadow:
        inset -4px -4px 0 rgba(0, 0, 0, 0.5),
        inset 4px 4px 0 rgba(255, 255, 255, 0.1),
        0 12px 0 var(--minecraft-dark),
        0 16px 35px rgba(0, 0, 0, 0.6);
}

.minecraft-icon-large {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.download-box h2 {
    font-size: 1.3rem;
    color: var(--minecraft-gold);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 var(--minecraft-dark);
    letter-spacing: 2px;
}

.download-box p {
    font-size: 0.75rem;
    color: var(--minecraft-white);
    margin-bottom: 2rem;
    line-height: 2;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image:
        radial-gradient(circle, var(--minecraft-gold) 2px, transparent 2px),
        radial-gradient(circle, var(--minecraft-diamond) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    background-position: 0 0, 40px 40px;
    opacity: 0.1;
    animation: particleMove 30s linear infinite;
}

@keyframes particleMove {
    0% {
        background-position: 0 0, 40px 40px;
    }

    100% {
        background-position: 50px 50px, 90px 90px;
    }
}

.minecraft-download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--minecraft-diamond) 0%, #00aaaa 100%);
    color: var(--minecraft-dark);
    border: 4px solid var(--minecraft-dark);
    padding: 1.2rem 2.5rem;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.8rem;
    text-decoration: none;
    box-shadow:
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 0 rgba(255, 255, 255, 0.3),
        0 6px 0 var(--minecraft-dark);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.minecraft-download-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.minecraft-download-btn:hover::before {
    width: 300px;
    height: 300px;
}

.minecraft-download-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 0 rgba(255, 255, 255, 0.3),
        0 8px 0 var(--minecraft-dark),
        0 12px 20px rgba(0, 255, 255, 0.5);
}

.minecraft-download-btn:active {
    transform: translateY(4px);
    box-shadow:
        inset -2px -2px 0 rgba(0, 0, 0, 0.3),
        inset 2px 2px 0 rgba(255, 255, 255, 0.3),
        0 2px 0 var(--minecraft-dark);
}

.minecraft-download-btn span {
    position: relative;
    z-index: 1;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media screen and (max-width: 768px) {
    .problem-statements-container {
        padding: 6rem 1rem 1rem 1rem;
    }

    .minecraft-title {
        font-size: 1.5rem;
    }

    .minecraft-subtitle {
        font-size: 0.6rem;
    }

    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-header {
        padding: 1rem;
    }

    .minecraft-icon {
        font-size: 1.5rem;
    }

    .card-title {
        font-size: 0.7rem;
    }

    .problem-name {
        font-size: 0.8rem;
    }

    .problem-description {
        font-size: 0.55rem;
    }

    .download-box h2 {
        font-size: 0.9rem;
    }

    .download-box p {
        font-size: 0.6rem;
    }
}

@media screen and (max-width: 480px) {
    .minecraft-title {
        font-size: 1.2rem;
    }

    .minecraft-subtitle {
        font-size: 0.5rem;
    }

    .minecraft-title-box {
        padding: 1.5rem 1rem;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .difficulty-badge {
        align-self: flex-end;
    }

    .minecraft-btn {
        font-size: 0.6rem;
        padding: 0.6rem 1rem;
    }

    .minecraft-download-btn {
        font-size: 0.65rem;
        padding: 0.8rem 1.5rem;
    }

    .card-details li {
        font-size: 0.55rem;
    }
}

/* ========================================
   MODAL POPUP STYLES
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-container {
    background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
    border: 6px solid var(--minecraft-gold);
    border-radius: 0;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 0 0 3px #000,
        0 0 30px rgba(255, 215, 0, 0.5),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.7) translateY(-50px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--minecraft-gold), #FFA500);
    padding: 1.5rem;
    border-bottom: 4px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-size: 1.2rem;
    color: #000;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
}

.modal-close {
    background: #FF0000;
    border: 3px solid #000;
    color: #FFF;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
    transition: all 0.2s;
    box-shadow: 3px 3px 0 #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.5rem;
    line-height: 1;
}

.modal-close:hover {
    background: #CC0000;
    transform: scale(1.1);
}

.modal-close:active {
    transform: scale(0.95);
    box-shadow: 1px 1px 0 #000;
}

.modal-content {
    padding: 2rem;
}

.modal-problem-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 3px solid var(--minecraft-gold);
    box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.2);
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.modal-problem-title {
    font-size: 1.1rem;
    color: var(--minecraft-gold);
    text-shadow:
        2px 2px 0 #000,
        0 0 10px rgba(255, 215, 0, 0.5);
    line-height: 1.8;
    letter-spacing: 1px;
}

.modal-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(44, 44, 44, 0.6);
    border: 3px solid #555;
    box-shadow:
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 4px 0 #000;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--minecraft-gold);
}

.section-header h4 {
    color: var(--minecraft-gold);
    font-size: 0.9rem;
    text-shadow: 1px 1px 0 #000;
}

.pixel-corner {
    width: 10px;
    height: 10px;
    background: var(--minecraft-gold);
    box-shadow: 2px 2px 0 #000;
}

.modal-description,
.modal-goal {
    font-size: 0.75rem;
    line-height: 1.8;
    color: #E0E0E0;
    text-align: justify;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--minecraft-diamond);
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirement-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--minecraft-green);
    transition: all 0.3s;
}

.requirement-item:hover {
    background: rgba(85, 255, 85, 0.1);
    transform: translateX(10px);
}

.req-bullet {
    color: var(--minecraft-green);
    font-size: 1rem;
    flex-shrink: 0;
}

.req-text {
    font-size: 0.7rem;
    line-height: 1.6;
    color: #E0E0E0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem;
}

.modal-tech-tag {
    background: linear-gradient(135deg, #4a90e2, #2ecc71);
    color: #FFF;
    padding: 0.6rem 1rem;
    font-size: 0.6rem;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.modal-tech-tag:hover {
    transform: translateY(-3px);
    box-shadow: 5px 5px 0 #000;
}

.modal-impact,
.modal-note {
    background: rgba(85, 255, 85, 0.05);
    border-left: 5px solid var(--minecraft-green);
}

.modal-impact-text,
.modal-note-text {
    font-size: 0.75rem;
    line-height: 1.9;
    color: #B8E6B8;
    text-align: justify;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--minecraft-green);
    font-style: italic;
}

.modal-note {
    background: rgba(255, 215, 0, 0.05);
    border-left: 5px solid var(--minecraft-gold);
}

.modal-note-text {
    color: #FFE680;
    border-left: 4px solid var(--minecraft-gold);
}

.modal-theme-indicator {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 255, 255, 0.1));
    border: 3px solid var(--minecraft-gold);
}

.theme-icon {
    font-size: 3rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

.quest-number {
    font-size: 0.7rem;
    color: var(--minecraft-gold);
    margin-top: 0.5rem;
    text-shadow: 1px 1px 0 #000;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.modal-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--minecraft-gold);
    box-shadow: 0 0 10px var(--minecraft-gold);
    animation: particleFloat 3s ease-out forwards;
    pointer-events: none;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

/* Quest Badges */
.quest-badge {
    background: linear-gradient(135deg, #4a90e2, #2ecc71);
    color: #FFF;
    padding: 0.5rem 1rem;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
    font-family: 'Press Start 2P', cursive;
    transition: all 0.3s;
}

.quest-badge.civic {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.quest-badge.learning {
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.quest-badge.collab {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.quest-badge.blockchain {
    background: linear-gradient(135deg, #f39c12, #d68910);
}

.quest-badge.innovation {
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

/* Scrollbar Styling */
.modal-container::-webkit-scrollbar {
    width: 12px;
}

.modal-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-left: 3px solid #000;
}

.modal-container::-webkit-scrollbar-thumb {
    background: var(--minecraft-gold);
    border: 2px solid #000;
}

.modal-container::-webkit-scrollbar-thumb:hover {
    background: #FFA500;
}

/* Responsive Modal */
@media screen and (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
    }

    .modal-title {
        font-size: 0.8rem;
    }

    .modal-problem-title {
        font-size: 0.8rem;
    }

    .section-header h4 {
        font-size: 0.7rem;
    }

    .modal-description,
    .modal-goal,
    .req-text {
        font-size: 0.6rem;
    }

    .modal-tech-tag {
        font-size: 0.5rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Rainbow animation for Easter egg */
@keyframes rainbow {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* Card sparkles on hover */
.card-sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--minecraft-gold);
    box-shadow:
        0 0 10px var(--minecraft-gold),
        0 0 20px var(--minecraft-diamond);
    animation: sparkleAnimation 1s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes sparkleAnimation {
    0% {
        opacity: 1;
        transform: scale(0) rotate(0deg);
    }

    50% {
        transform: scale(1.5) rotate(180deg);
    }

    100% {
        opacity: 0;
        transform: scale(0) rotate(360deg);
    }
}

/* Floating background particles */
.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--minecraft-gold);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite ease-in-out;
    pointer-events: none;
    box-shadow: 0 0 8px var(--minecraft-gold);
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    50% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0.5;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) translateX(0);
        opacity: 0;
    }
}

/* Pixel art decorative elements */
.pixel-line {
    height: 4px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--minecraft-gold) 25%,
            var(--minecraft-diamond) 50%,
            var(--minecraft-gold) 75%,
            transparent 100%);
    margin: 1.5rem auto;
    max-width: 400px;
    animation: pixelPulse 2s infinite;
}

@keyframes pixelPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: scaleX(1);
    }

    50% {
        opacity: 1;
        transform: scaleX(1.1);
    }
}

/* Smooth fade-in for whole page */
body {
    animation: pageFadeIn 0.8s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}