* {
    margin: 0;
    padding: 0;
}

body {
    background-color: black;
    background-repeat:no-repeat;
    background-image: url("../image/rennes.jpg");

}

a
{
    color: white;
    transition: .5s ease all;
    text-decoration: none;
}


a:hover {
    color: orange;
    transition: .5s ease all;
    opacity:0.8;
   -moz-transition: opacity= 0.7s ease-in-out;
   -webkit-transition: opacity=50 0.7s ease-in-out;
   -o-transition: opacity 0.7s ease-in-out;
}

.card-container {
    width: 85%;
    max-width: 35rem;
    background-color: #000000;
    margin: 2.5rem auto;
    border-radius: 8px

}

.name-container {
    background-color: white;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition-property: white;
    transition-duration: 5s;
    text-align: center;
    padding: 50px 25px;
}
.name-container:hover {
  background-color: white;
  border: 2px solid black;
  color: orange;
}

#img-container {
  width: 7rem;
  height: 7rem;
  overflow: hidden;
  border-radius: 50%;
  margin: auto;
  display: block;

  -webkit-transition: all 0.5s;
   -moz-transition: all 0.5s ease;
   -ms-transition: all 0.5s;
   -o-transition: all 0.5s;
   transition: all s;
   transform:rotate(5deg) scale(1.1);
   transition: opacity .5s ease-in-out;




}
#portrait {
    max-height: 100%;
    margin-left: -1.9rem;
    transition: 0.5s all ease-in-out;

}


h2 {
    margin: 20px;
    font-size: 2rem;
    font-family: sans-serif;
    font-weight: normal;
    color: #383838;
}

.name-container > p {
    font-family: sans-serif;
    font-size: 1.2rem;
    color: #00000085;
    font-weight: normal;
}


.section {
    padding: 35px 30px;
}

.about-section {
    background-color: #000000;

}

.work-section {
    background-color: #181818;
}

.contact-section {
    background-color: #303030;
}

.section-title {
    border-bottom: 1px solid black;
    padding-bottom: 25px;
    color: white;
    font-family: sans-serif;
    font-weight: normal;
    font-size: 1rem
}

.body-text {
    color: #ffffffD4;
    font-family: sans-serif;
    font-size: 1rem;
    font-weight: lighter;
    padding-top: 20px;
    line-height: 2;
}

/* Work UL */

.work-section ul {
    list-style-type: none;
}

.work-section ul > li::before {
    content: "⚫" ;
}

.work-section li > p {
    display: inline-block;
    padding-left: 10px;
}

.work-section ul > li {
    margin-top: 10px;
}

.work-section ul > li:first-child {
    margin-top: 0;
}

/* Contact UL */

.contact-section ul {
    display: flex;
    flex-wrap: wrap;
    list-style-type: none;
    margin-left: -10px;
}

.contact-section li {
    display: inline-block;
    margin: 8px;
}

.contact-section a {

    border-radius: 4px;
    padding: 10px 18px;
    text-decoration: none;
}

.contact-section a:hover {
    border: 1px solid orange;
}

.contact-section svg {
    width: 1rem;
    height: auto;
    fill: white;
    margin-right: 10px;
    margin-bottom: -2px;
    transition: .5s ease all;
}

 a:hover svg {
    fill:orange;
    transition: .5s ease all;
}

/* End Contact UL */

.contact-section {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Media Queries */

@media screen and ( min-width: 735px ) {
    html {
        font-size: .9rem;
    }

    .card-container {
        margin: 4rem auto;
    }

    .name-container {
        padding: 1rem 2rem;
    }

    .section {
        display: flex;
        justify-content: flex-end;
        padding: 3.75rem 2rem;
    }

    .section-title {
        border-bottom: none;
        border-right: 1px solid black;
        padding-right: 3rem;
    }

    .body-text {
        width: 18rem;
        padding-top: 0;
        padding-left: 3rem;
    }

    .contact-section li {
        margin: 10px 5px;
    }
}

@media screen and ( min-width: 980px ) {
    html {
        font-size: 0.8rem;
    }
}

@media screen and ( min-width: 1680px ) {
    html {
        font-size: 1.5rem;
    }
}
