
@media screen and (max-width: 780px) {

/* HEADER */

header {
    display: flex;
    flex-direction: column;
    background-color: black;
    z-index: 2;
}


ul {
    list-style-type: none;
    display: flex;
    justify-content: right;
    padding: 2% 10%;
}

li {
    margin-left: 5em;
    cursor: pointer;
    color: white;
    text-decoration: none;
}

li:hover {
    color: rgb(212, 158, 88);
}

.link-home-btn, 
.link-projects-btn, 
.link-contact-btn {
    text-decoration: none;
    color: white;
}

.link-home-btn:hover,
.link-projects-btn:hover, 
.link-contact-btn:hover {
    color:rgb(212, 158, 88); ;
} 



/* PRESENTATION */

.mission-div {
    margin: 0 auto;
    text-align: center;
    padding: 4em 4em 0 4em;
    background-color: black;
}

.logo {
    background-color: white;
    text-align: center;
    margin-top: 7.6%;
    width: 100%;
}

.presentation-text {
    font-size: 1.6rem;
    padding: 0 2em;
    line-height: 2;
}

.moving-img1 {
    width: 100%;
    background-image: url(./img/main-img.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 10em;
    margin-top: 15%;
    opacity: 0.5;
}

.moving-img2 {
        width: 100%;
        background-image: url(./img/back-img.jpeg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
        height: 10em;
        margin-top: 13%;
        opacity: 0.3;
}

/* This is the paragraph that will be displayed fromprojectsPage.js file 
   for being a back button to Home Page */
.link {
    display: none;
}




/* MAIN SECTION */

main {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    justify-content: center;
    height: 40em;
}

.main-img {
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: right;
    padding: 12% 0 12% 0;
    background-color: black;
}

.main-img h2 {
    text-align: center;
    width: 70%;
    margin: 0 auto;
    font-size: 2.9em;
}

#imgChange {
    width: 40%;
    background-size: cover;
    margin-right: 7em;
    margin-bottom: 7%;
    display: none;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

#imgChange.fade {
    opacity: 0;
}

.html-description {
    display: none;
    opacity: 1;
    -webkit-transition: opacity 0.3s ease-in-out;
    -moz-transition: opacity 0.3s ease-in-out;
    -ms-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.html-description.fade {
    opacity: 0;
}

.div-btn {
    text-align: center;
    position: absolute;
    text-align: center;
    width: 100%;
    margin-top: 45%;
    padding-top: 6em;
}

.div-btn button {
    margin-left: 2em;
    margin-right: 2em;
    z-index: 2;
  background:rgba(189, 189, 189, 0.479);
  color:#fff;
  border:none;
  position:relative;
  height: 2.4em;
  font-size:1.6em;
  cursor:pointer;
  transition:800ms ease all;
  outline:none;
  border-radius: .6em;
  font-size: .9rem;
  width: 8em;
  
}
.div-btn button:hover{
  background:rgb(59, 59, 59);
}
.div-btn button:before,.div-btn button:after{
  content:'';
  position:absolute;
  top:0;
  right:0;
  height:2px;
  width:0;
  background: #dfc11a;
  transition:400ms ease all;
}
.div-btn button:after{
  right:inherit;
  top:inherit;
  left:0;
  bottom:0;
}
.div-btn button:hover:before,.div-btn button:hover:after{
  width:100%;
  transition:800ms ease all;
}


/* SKILLS section */

section {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 5% auto;
    padding: 0;
    justify-content: space-around;
}

.skills-img {
    width: 100%;
    text-align: center;
    margin: 7% 0;
}

.skills-img img {
    width: 7%;
    margin: 0 2em;
    cursor: pointer;
    transition: transform 1s;
}
.skills-img img:hover {
        transform: scale(2);
    }


.skills-text {
    text-align: center;
    margin: 5% auto;
    font-size: 4em;
}

span {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.skills-description {
    text-align: center;
    margin: 5% auto;
    width: 70%;
    font-size: 1.5em;
}

footer {
    display: flex;
    flex-direction: column;
}

.contact-img {
    width: 100%;
    text-align: center;
    margin: 0 auto 2% auto;
}

.contact-img img {
    width: 100%;
    margin: 0 auto;
    opacity: .5;
}

footer h4 {
    text-align: center;
    margin: 3em auto;
    font-size: 2em;
    letter-spacing: 3px;
    line-height: 1.3;
}

.forms-div{
    display: inline-flex;
    /* flex-direction: column; */
    width: 100%;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

.contact-us {
    margin: 6em 0 0 15%;
}

.form {
    width: 40%;
    margin-right: 0;
}

form {
    margin: 6em 0;
}

.text-message {
    margin: 0;
}

.text-message h4 {
    margin: 0 auto;
    font-size: 1.5em;
    text-align: left;
}

#fname {
    width: 15em;
    padding: 0.5em 0;
    color: white;
    border-style: none;
    background-color: black;
    border: none;
    border-bottom: 1px solid #3a3a3a;
    text-transform: uppercase;
    outline: none;
    transition: border-color .2s;
}


#lname {
    width: 15em;
    padding: 0.5em 0;
    color: white;
    border-style: none;
    background-color: black;
    border: none;
    border-bottom: 1px solid #3a3a3a;
    text-transform: uppercase;
    outline: none;
    transition: border-color .2s;
}

#message {
    width: 15em;
    padding: 0.5em 0;
    color: white;
    border-style: none;
    background-color: black;
    border: none;
    border-bottom: 1px solid #3a3a3a;
    text-transform: uppercase;
    outline: none;
    transition: border-color .2s;
}

#email {
    width: 15em;
    padding: 0.5em 0;
    color: white;
    border-style: none;
    background-color: black;
    border: none;
    border-bottom: 1px solid #3a3a3a;
    text-transform: uppercase;
    outline: none;
    transition: border-color .2s;
    margin-bottom: 2em;
}

#email:focus {
    border-bottom: 1px solid #c0c0c0;
}
#message:focus {
    border-bottom: 1px solid #c0c0c0;
}
#lname:focus {
    border-bottom: 1px solid #c0c0c0;
}
#fname:focus {
    border-bottom: 1px solid #c0c0c0;
}

.send-btn {
    margin: 0 0 0 9.5em;
    border-style: none;
    outline: none;
    background-color: black;
    color: burlywood;
    font-size: 1em;
    cursor: pointer;
}

.send-btn:hover {
    color: rgb(212, 158, 88);
}

.contact-info {
    font-size: .4em;
    margin-top: 25em;
    width: 22em;
    letter-spacing: 1px;
    color: #a3a3a3;
}

}

