/*Matias Serrano Grilo
  Le 09 janvier 2025
  Projet du module 293 page des style css de ce qui est en commun dans toutes les pages
  */

body {
    font-family: Arial;
    margin: 0;
}

p {
    font-size: 1.3em;
}

#menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    text-align: center;
    background-color: #333;
}

.nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    align-items: stretch;
    text-align: center;
}

.nav-item a {
    text-decoration: none;
    color: white;
    transition: background-color 0.3s, color 0.3s;
    padding: 15px;
    width: 100%;
}


#menu .nav-item:hover,
#menu .nav-item.active:hover {
    background-color: #555;
}

#menu .nav-item.active {
    background-color: #444;
}

@media screen and (max-width: 600px) {
    #menu {
        flex-direction: column;
    }

    .nav-item a {
        padding: 10px;
    }
}