body{
    background-color: #E66878;   
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: monospace;
    margin: 0px;
    overflow-x: hidden;
}

p{
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.4;
}

a{
    color: white;
}

b{
    color: #f1ffca;
}

#hobby{
    animation: changeColor 20s ease-in infinite;
}

header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

header h4{
    font-size: 2rem;
}

nav{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem 0 0 0;
}
h4, h3, p{
    color: white;
}

.link{
    padding: 0 2rem;
}

.link a{
    color: white;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.2rem;
    text-decoration: none;
}

.link a:hover{
    text-decoration: underline;
}

footer{
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    border-top: 1px solid #000;
    background-color: #343a40;
    height: 100px;
  /*  position: fixed;
    bottom: 0;*/
}
footer p{
    font-size: 0.9rem;
}

/*css pagina home*/
#content_home{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0px 0px 0px;
    margin-top: 20px;
    width: 85%;
}

#content_home #img_about{
    width: 35%;
}

#content_home #text_about{
    width: 75%;
}

#text_about{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0px;
}

#text_about h3{ 
    display: flex;
    justify-content: center;
    width: 100%;
}

#text_about p{
    padding: 10px 50px;
}

#content_home img{
        padding: 10px;
       /* border: 1px solid;*/
        border-radius: 2rem;
}

/*css pagina mappe*/
section#hobbies{
    width: 100%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 100px;
}

#content_hobbies{
    display: flex;
    justify-content: space-between;
    width: 85%;
}

#content_hobbies div{
    width: 500px;
    height: 500px;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    margin: 50px 20px;
}
#content_hobbies div p{ 
    font-size: 1.5rem;
    background-color: hwb(0 0% 100% / 0.521);
    padding: 10px 20px;
}

@keyframes changeColor{
    0%{
        background-color: #E66878;
    }
    25%{
        background-color: hsla(352, 72%, 57%, 0.925);
    }
    50%{
        background-color: hsl(34, 77%, 47%);
    }
    75%{
        background-color: hsla(352, 72%, 57%, 0.925);
    }
    100%{
        background-color: #E66878;
    }

}

/*css pagina lavori*/
#content_lavori{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 85%;
    margin: 50px 20px;
}

#content_lavori div {
    color: white;
    width: 50%;
    font-size: 1rem;
}

/*css pagina project*/
#content_formazione{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 85%;
    margin: 50px 20px;
}

#content_formazione div {
    color: white;
    width: 50%;
    font-size: 1rem;
}

/*Media query generale*/
@media only screen and (max-width: 600px) {
    /*Menù*/
    .link{
        padding: 6px 2rem;
    }

    .link a {
        font-size: 1.1rem !important;
    }

    nav {
        flex-direction: column;
    }

    /*home*/
    #content_home {
        display: block;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    #content_home #text_about {
        width: 100%;
    }

    /*formazione*/
    #content_formazione div{
        width: 100%;
    }

    /*lavori*/
      #content_lavori div{
        width: 100%;
    }

    /*hobby*/
    #content_hobbies{
        flex-direction: column;
    }

    #content_hobbies div {
        width: 100%;
        height: 332px;
        margin: 40px 0px;
      }

    /*footer*/
    footer{
        flex-direction: column;
        height: 208px;
    }

    footer p{
        font-size: 0.8rem;
    }
   }

   @media only screen and (min-width: 600px) {
    .back{
        display: none;
    }
   }

