body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #ff6f61, #de83f5);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: white;
    flex-direction: column;
    overflow-y: auto;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2em;
    margin-bottom: 2em;
}

.header {
    text-align: center;
    margin-bottom: 2em;
    padding: 1em;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 0.2em;
}

.header p {
    font-size: 1.2em;
    margin-bottom: 2em;
}

.section {
    flex: 1;
    text-align: center;
}

.section h2 {
    font-size: 1.5em;
    margin-bottom: 1em;
}

.quote {
    font-size: 1.2em;
    margin-bottom: 1em;
}

/* Ajuster les titres pour qu'ils soient uniformes */
.resources-section h2,
.section h2 {
    font-size: 1.5em;
    font-weight: bold;
}

.resources-quote {
    font-size: 1.5em;
    margin-bottom: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resources-quote span {
    margin-left: 10px;
    font-weight: bold;
}

#fruits {
    color: white; /* Couleur de base */
}

#money {
    color: white; /* Couleur de base */
}

.btn {
    font-size: 1.2em;
    padding: 10px 20px;
    margin: 10px 0;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    width: 80%;
}

.btn:active {
    transform: scale(0.95);
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

.animation-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.circle {
    width: 50px;
    height: 50px;
    margin: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    animation: bounce 1.5s infinite;
}

.circle:nth-child(2) {
    animation-delay: 0.3s;
}

.circle:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.progress-bar-container {
    width: 60%; /* Ajustez cette largeur en fonction de vos besoins */
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    margin: 20px auto; /* Centrer la barre de progression */
}

#progress-bar {
    width: 0;
    height: 20px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.footer {
    margin-top: 2em;
    text-align: center;
    width: 100%;
}

/* Particle Effect */
.particle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: particle-animation 0.5s ease-out forwards;
    transform: translate(-50%, -50%); /* Centrer la particule sur le point de clic */
}

@keyframes particle-animation {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

/* Styles pour la popup */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    margin: 10% auto; /* Réduit la marge pour augmenter l'espace vertical */
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    width: 80%;
    max-width: 800px; /* Augmenter la largeur maximale */
    color: white;
    text-align: center;
}

.upgrades-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.upgrade-section {
    flex: 1;
    min-width: 200px;
    margin: 10px;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
    cursor: pointer;
}

/* Styles pour l'emoji de pomme */
.emoji {
    font-size: 4em;
    cursor: pointer;
    user-select: none;
}

.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

.feedback {
    position: fixed; /* Utilisation de position: fixed pour éviter le décalage lors du scroll */
    font-size: 1.5em;
    color: yellow;
    animation: fadeout 1s forwards;
    pointer-events: none;
}

@keyframes fadeout {
    to {
        opacity: 0;
        transform: translateY(-50px);
    }
}

/* Ajoutez cette règle pour les petits boutons */
.btn.small {
    font-size: 0.8em;
    padding: 5px 10px;
    margin: 5px 0;
}

/* Styles supplémentaires pour l'animation du compteur d'argent */
#money {
    position: relative;
}

.feedback.money-feedback {
    color: green;
    font-size: 1.2em;
    animation: fadeout-money 1.5s forwards;
}

@keyframes fadeout-money {
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}
