body {
    font-family: 'Poppins', sans-serif;
    background-color: #e9f5e1;
    text-align: center;
    padding: 0;
    margin: 0;
}

h1.exercise-title {
    color: #2a9d8f;
    font-size: 32px;
    font-weight: bold;
    text-align: center;
    text-shadow: none;
    margin: 20px 0;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 100px;
}

.mindmap-container {
    position: relative;
    width: 900px;
    height: 700px;
    background-image: url('images/MinecraftMindmap.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.node {
    position: absolute;
    width: 170px;
    height: 170px;
    background-color: rgba(244, 162, 97, 0.9);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.node a {
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    font-weight: bold;
}

.node img {
    width: 70px;
    height: 70px;
    margin-bottom: 5px;
}

.node:hover {
    background-color: rgba(231, 111, 81, 1);
    transform: scale(1.1);
}

/* Positions exactes des boutons */
#sciences { top: 33.2%; left: 90%; }
#echecs { top: 119%; left: 13.5%; }
#philosophie { top: 93%; left: 90.2%; }
#francais { top: 119%; left: 81%; }
#programmation { top: 93%; left: 4.8%; }
#ressources { top: 2.5%; left: 47.2%; }
#mathematiques { top: 7.5%; left: 80.8%; }
#histoire { top: 33%; left: 4.5%; }
#infos { top: 120%; left: 47.4%; }
#english { top: 7.4%; left: 13.8%; }

/* Correction de la position de Curio et de sa pancarte */
#curio-section {
    position: absolute;
    bottom: -20%;
    left: 60%;
    transform: translateX(-50%);
    z-index: 10;
}

#curio-image {
    width: 160px;
    height: auto;
    animation: float 3s infinite ease-in-out;
    display: block;
    margin-bottom: 20px;
}

.curio-container {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
}

#speech-bubble {
    position: absolute;
    top: -130px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    color: #333;
    max-width: 250px;
    text-align: center;
    z-index: 12;
}



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

@media screen and (max-width: 768px) {
    .mindmap-container {
        width: 100%;
        height: auto;
    }
    .node {
        width: 130px;
        height: 130px;
        font-size: 14px;
    }
    .node img {
        width: 60px;
        height: 60px;
    }
    #curio-image {
        width: 120px;
    }
}