body {
    margin: 0;
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
    font-family: 'JetBrains Mono', monospace !important;
    line-height: 2 !important;
    font-size: 18px !important;
}

#logo {
    gap: 1rem;
    font-size: 0.9rem;
}

nav li {
    border-right: solid black 0.15rem;
    padding: 1rem;
}

#linkedin {
    border-right: none;
}

span {
    font-size: large;
}

#logo-round {
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    animation: bounce 3s ease-in-out infinite;
}

@keyframes bounce {

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

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

main {
    margin: 4rem 1rem;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

main section {
    border: 4px double transparent;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.5s ease;
    border-radius: 15px;
    width: 40%;
    background-color: #e0f2fe;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

section figure {

    padding: 2rem;
}

.flex-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
}

.flex-item {
    width: 80%;
}

button {
    width: 100%;
}

.figImage {
    text-align: center;
}

figure img {
    width: 80%;
    perspective: 1000px;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
    text-align: center;
}

section a {
    text-decoration: none;
    color: black;
}

.modal-body {
    background-color: #e0f2fe;
}


.tech {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tech span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

section h3 {
    transition: color 0.3s ease;
}

section:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: #007bff;
    border-width: 0.3rem;
    animation: borderMove 1s infinite linear;
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);

    figure h3 {
        color: #3498db;
    }

    figure img {
        transform: rotateY(45deg) rotateX(20deg) rotateZ(360deg) scale(1.15);
    }
}

footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.footer-item p {
    font-size: 1.5rem;
}

.footer-item a {
    font-size: 1.5rem;
}

.modal-body img {
    width: 50%;
    height: 25vh;
}

.modal-header {
    margin: 0;
}

.modal-footer {
    margin: 0;
}

.anorexie {
    background-color: #41b7d8;
}

.maigreur {
    background-color: #41b7d8;
}

.normal {
    background-color: #109618;
}

.surpoids {
    background-color: #f90;
}

.classi {
    background-color: #dc3912;
}

.classii {
    background-color: #dc3912;
}

.classiii {
    background-color: #dc3912;
}


@keyframes borderMove {
    0% {
        border-color: #007bff;
    }

    25% {
        border-color: #28a745;
    }

    50% {
        border-color: #ffc107;
    }

    75% {
        border-color: #dc3545;
    }

    100% {
        border-color: #007bff;
    }
}


@media screen and (max-width: 768px) {
    main {
        gap: 3rem;
    }

    main section {
        width: 85%;
    }

    nav li {
        border-right: none;
        border-bottom: solid black 0.15rem;
    }

    figure img {
        width: 100%;
    }
}

@media screen and (min-width: 768px) and (max-width: 992px) {
    main {
        justify-content: space-around;
        gap: 2rem;
    }

    figure img {
        width: 100%;
    }
}