/* style.css - BlockDrop */

/* ======== GÉNÉRAL ======== */
:root {
    --primary: #00ffe7;
    --secondary: #ff00a2;
    --background: #181825;
    --dark: #222;
    --light: #fff;
    --grid-border: #444;
    --grid-background: rgba(10, 10, 20, 0.8);
    
    /* Couleurs des tétrominos */
    --color-i: #00ffff;
    --color-o: #ffff00;
    --color-t: #ff00ff;
    --color-s: #00ff00;
    --color-z: #ff0000;
    --color-j: #0000ff;
    --color-l: #ff7700;
    --color-p: #9900cc;
    --color-x: #ff66cc;
    --color-u: #66cc00;
}

@keyframes glitch {
    0% { text-shadow: 2px 2px 0 var(--dark), 4px 4px 0 var(--secondary); }
    25% { text-shadow: -2px 2px 0 var(--dark), -4px 4px 0 var(--secondary); }
    50% { text-shadow: 2px -2px 0 var(--dark), 4px -4px 0 var(--secondary); }
    75% { text-shadow: -2px -2px 0 var(--dark), -4px -4px 0 var(--secondary); }
    100% { text-shadow: 2px 2px 0 var(--dark), 4px 4px 0 var(--secondary); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5) inset; }
    50% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.8) inset; }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5) inset; }
}

@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes fallEffect {
    0% { transform: translateY(-5px); opacity: 0.7; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes clearAnimation {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(0); opacity: 0; }
}

@keyframes levelUp {
    0% { transform: scale(1); }
    25% { transform: scale(1.15); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-1px, 0) rotate(-0.5deg); }
    20% { transform: translate(1px, 0) rotate(0.5deg); }
    30% { transform: translate(-1px, 0) rotate(-0.5deg); }
    40% { transform: translate(1px, 0) rotate(0.5deg); }
    50% { transform: translate(-1px, 0) rotate(-0.5deg); }
    60% { transform: translate(1px, 0) rotate(0.5deg); }
    70% { transform: translate(-1px, 0) rotate(-0.5deg); }
    80% { transform: translate(1px, 0) rotate(0.5deg); }
    90% { transform: translate(-1px, 0) rotate(-0.5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

body {
    background: var(--background);
    color: var(--light);
    font-family: 'Press Start 2P', monospace, Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

#app {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

/* Pièces de tetris qui tombent en arrière-plan */
.background-tetrominos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bg-tetromino {
    position: absolute;
    opacity: 0.12;
    animation: fall linear infinite;
    filter: blur(1px);
    z-index: 1;
}

.bg-tetromino:nth-child(odd) {
    animation-duration: 15s;
}

.bg-tetromino:nth-child(even) {
    animation-duration: 25s;
}

.bg-tetromino:nth-child(3n) {
    animation-duration: 20s;
}

.bg-tetromino:nth-child(3n+1) {
    opacity: 0.08;
}

.bg-tetromino:nth-child(5n) {
    filter: blur(2px);
    opacity: 0.06;
}

.bg-tetromino:nth-child(4n) {
    animation-name: fall-rotate;
    animation-duration: 18s;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
    }
}

@keyframes fall-rotate {
    0% {
        transform: translateY(-100px) rotate(0deg) scale(0.8);
    }
    50% {
        transform: translateY(50vh) rotate(180deg) scale(1);
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg) scale(0.8);
    }
}

/* Boutons sociaux */
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
    z-index: 100;
}

.social-button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 0 0 5px rgba(0, 255, 231, 0.3);
    position: relative;
}

.social-button i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 10px var(--primary);
    background: var(--primary);
    color: var(--dark);
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* Styles globaux pour les boutons */
button {
    font-size: 1.1rem;
    font-family: inherit;
    background: var(--dark);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 6px;
    padding: 0.7rem 2rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    margin: 0.5rem 0;
}

button:hover {
    background: var(--primary);
    color: var(--dark);
    animation: pulse 0.5s infinite;
}

/* ======== MENU PRINCIPAL ======== */
.titre-retro {
    font-size: 3.5rem;
    letter-spacing: 0.2em;
    color: var(--primary);
    text-shadow: 2px 2px 0 var(--dark), 4px 4px 0 var(--secondary);
    margin-bottom: 2rem;
    text-align: center;
    animation: glitch 5s infinite alternate;
    z-index: 20;
    position: relative;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    background: rgba(24, 24, 37, 0.95);
    border: 4px solid var(--primary);
    border-radius: 12px;
    padding: 2rem 3rem;
    box-shadow: 0 0 24px #00ffe7aa;
    min-width: 300px;
}

.menu button {
    width: 100%; /* Les boutons de menu prennent toute la largeur */
    margin: 0.2rem 0; /* Espacement vertical des boutons du menu */
    font-size: 1.2rem; /* Légèrement plus grand que les boutons généraux */
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--background);
    border: 4px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    max-width: 500px;
}

.modal-changelog {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.changelog-content {
    text-align: left;
    margin: 1.5rem 0;
    font-size: 0.8rem;
    line-height: 1.6;
}

.changelog-content h3 {
    color: var(--primary);
    margin: 1.5rem 0 0.5rem;
    font-size: 1rem;
}

.changelog-content ul {
    list-style-type: none;
    padding-left: 1rem;
}

.changelog-content li {
    position: relative;
    margin: 0.5rem 0;
    padding-left: 1.2rem;
}

.changelog-content li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--secondary);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ======== JEU BLOCKDROP ======== */
.game-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
}

.game-board {
    width: 300px;
    height: 600px;
    background: var(--grid-background);
    border: 4px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 231, 0.5), 0 0 40px rgba(0, 255, 231, 0.2) inset;
    position: relative;
    overflow: hidden;
    padding: 2px;
    border-radius: 4px;
    background-image: linear-gradient(to bottom, rgba(0, 255, 231, 0.05) 1px, transparent 1px), 
                     linear-gradient(to right, rgba(0, 255, 231, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.shake-board {
    animation: shake 0.3s cubic-bezier(.36,.07,.19,.97) both;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 200px;
}

.next-piece {
    width: 150px;
    height: 150px;
    background: var(--grid-background);
    border: 3px solid var(--primary);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 255, 231, 0.5), 0 0 25px rgba(0, 255, 231, 0.2) inset;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.next-piece::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s linear infinite;
}

.next-piece-title {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    text-shadow: 0 0 5px var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.next-piece-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to bottom, rgba(0, 255, 231, 0.03) 1px, transparent 1px), 
                     linear-gradient(to right, rgba(0, 255, 231, 0.03) 1px, transparent 1px);
    background-size: 15px 15px;
}

.score-panel, .level-panel {
    background: var(--grid-background);
    border: 3px solid var(--primary);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 255, 231, 0.5), 0 0 20px rgba(0, 255, 231, 0.2) inset;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.score-panel::after, .level-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shine 3s linear infinite;
}

.score-title, .level-title {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 5px var(--primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.score-value, .level-value {
    font-size: 1.2rem;
    color: var(--light);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
    font-weight: bold;
}

.controls-hint {
    background: var(--grid-background);
    border: 3px solid var(--primary);
    padding: 1rem;
    font-size: 0.7rem;
    line-height: 1.5;
    box-shadow: 0 0 10px rgba(0, 255, 231, 0.4);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.controls-hint p {
    margin: 0.25rem 0;
    color: #ddd;
}

.controls-hint span {
    color: var(--primary);
    text-shadow: 0 0 3px var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(20, 1fr);
    width: 100%;
    height: 100%;
    gap: 1px;
    padding: 2px;
    background-color: var(--grid-background);    cursor: pointer; /* Indique que la grille est interactive */
    -webkit-user-select: none; /* Pour Safari */
    -moz-user-select: none; /* Pour Firefox */
    -ms-user-select: none; /* Pour IE/Edge */
    user-select: none; /* Empêche la sélection de texte */
    position: relative; /* Pour le positionnement des zones de contrôle */
}

.cell {
    border: 1px solid var(--grid-border);
    position: relative;
    border-radius: 2px;
    transition: all 0.1s ease;
}

.tetromino {
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    animation: glow 1.5s infinite;
}

.tetromino::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% 100%;
    animation: shine 1.5s linear infinite;
}

.tetromino::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.3) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
}

.tetromino-i { 
    background-color: var(--color-i); 
    box-shadow: 0 0 10px var(--color-i);
}
.tetromino-o { 
    background-color: var(--color-o);
    box-shadow: 0 0 10px var(--color-o);
}
.tetromino-t { 
    background-color: var(--color-t);
    box-shadow: 0 0 10px var(--color-t);
}
.tetromino-s { 
    background-color: var(--color-s);
    box-shadow: 0 0 10px var(--color-s);
}
.tetromino-z { 
    background-color: var(--color-z);
    box-shadow: 0 0 10px var(--color-z);
}
.tetromino-j { 
    background-color: var(--color-j);
    box-shadow: 0 0 10px var(--color-j);
}
.tetromino-l { 
    background-color: var(--color-l);
    box-shadow: 0 0 10px var(--color-l);
}
.tetromino-p { 
    background-color: var(--color-p);
    box-shadow: 0 0 10px var(--color-p);
}
.tetromino-x { 
    background-color: var(--color-x);
    box-shadow: 0 0 10px var(--color-x);
}
.tetromino-u { 
    background-color: var(--color-u);
    box-shadow: 0 0 10px var(--color-u);
}

.flash-line {
    animation: flash 0.2s 3, clearAnimation 0.5s forwards 0.6s;
    box-shadow: 0 0 20px var(--secondary) inset, 0 0 30px var(--secondary);
    z-index: 10;
}

.ghost {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.5);
    box-shadow: none;
}

.falling {
    animation: fallEffect 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.level-up {
    animation: levelUp 1s ease;
}

/* ======== CONTRÔLES ======== */
/* Style pour le texte d'information sur les contrôles */
.controls-hint span {
    display: block;
    margin-top: 5px;
    font-size: 0.7em;
    color: var(--primary);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
}

/* Style pour la séparation dans les contrôles */
.controls-hint hr {
    border: none;
    height: 1px;
    background: var(--primary);
    opacity: 0.3;
    margin: 8px 0;
}

/* Effet visuel pour indiquer quand on clique sur la grille */
.grid:active {
    box-shadow: 0 0 15px var(--primary) inset;
}

/* Contrôles de souris désactivés */

/* ======== MENU PAUSE ======== */
.pause-menu {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(24, 24, 37, 0.95);
    border: 4px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    min-width: 300px;
    z-index: 100;
}

.pause-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* ======== MODE DÉFI ======== */
.challenge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.challenge-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 0 var(--dark);
}

.challenge-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    width: 100%;
}

.challenge-card {
    background: var(--dark);
    border: 3px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 255, 231, 0.5);
}

.challenge-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.challenge-name {
    font-size: 1.2rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.challenge-desc {
    font-size: 0.8rem;
    color: #aaa;
}

/* ======== RÉCOMPENSES ======== */
.rewards-container {
    max-width: 900px;
    width: 100%;
    padding: 1rem;
}

.rewards-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 0 var(--dark);
}

.rewards-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.reward-category {
    padding: 0.5rem 1rem;
    background: var(--dark);
    color: var(--primary);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 0.8rem;
}

.reward-category.active {
    background: var(--primary);
    color: var(--dark);
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.reward-item {
    background: var(--dark);
    border: 3px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    position: relative;
    min-height: 220px;
}

.reward-item.locked::after {
    content: "🔒";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    border-radius: 5px;
}

.reward-item.locked:hover::after {
    content: "❓";
    background: rgba(0, 0, 0, 0.8);
    font-size: 1.5rem;
}

.reward-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--grid-background);
    border: 2px solid var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

.reward-item:not(.locked):hover .reward-icon {
    animation: pulse 1s infinite;
}

.reward-item.badge-unlocked .reward-icon {
    background: linear-gradient(45deg, #ffd700, #ffeb3b, #ffd700);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    border-color: #ffd700;
}

.reward-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 0.8rem;
    border-radius: 5px;
    color: var(--light);
    font-size: 0.7rem;
    width: 90%;
    display: none;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary);
}

.apply-reward-btn {
    width: 90%;
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 0.5rem 1rem;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.apply-reward-btn:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 8px var(--primary);
}

.reward-name {
    font-size: 0.9rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.reward-desc {
    font-size: 0.7rem;
    color: #aaa;
}

/* ======== OPTIONS ======== */
.options-container {
    max-width: 600px;
    width: 100%;
    padding: 1rem;
}

.options-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 2px 2px 0 var(--dark);
}

.options-section {
    background: var(--dark);
    border: 3px solid var(--primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.options-section-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-align: center;
}

.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.option-label {
    font-size: 0.9rem;
}

/* Boutons de langue */
.lang-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.lang-button {
    font-size: 0.9rem;
    padding: 8px 15px;
    min-width: 50px;
    text-align: center;
    background: var(--dark);
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-button.active {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 10px var(--primary);
    transform: scale(1.05);
}

.lang-button:hover:not(.active) {
    background: rgba(0, 255, 231, 0.2);
}

.slider-container {
    width: 60%;
    display: flex;
    align-items: center;
}

.slider {
    width: 100%;
    height: 10px;
    background: #444;
    outline: none;
    appearance: none;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--light);
}

.color-themes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.color-theme {
    height: 40px;
    border: 2px solid var(--grid-border);
    cursor: pointer;
    transition: transform 0.2s;
}

.color-theme:hover {
    transform: scale(1.05);
}

.color-theme.selected {
    border: 2px solid var(--light);
    box-shadow: 0 0 10px var(--light);
}

/* ======== GAME OVER ======== */
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.game-over-text {
    font-size: 3rem;
    color: var(--secondary);
    text-shadow: 2px 2px 0 var(--dark);
    margin-bottom: 2rem;
    animation: glitch 1s infinite;
}

.final-score {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
    .titre-retro {
        font-size: 2rem;
    }
    
    .game-container {
        flex-direction: column;
        align-items: center;
    }
    
    .game-board {
        width: 250px;
        height: 500px;
    }
    
    .game-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .challenge-cards {
        grid-template-columns: 1fr;
    }
}
