@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap');
* { 
    margin: 0;
    padding: 0;
    border: none;
}

body {
    font-family: Source Sans Pro, sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 1.5;
    color: white;
    background-color: rgb(32, 32, 35);
}

h2 {
    font-size: 200%;
}

.container {
    margin: 10px 20%;
    padding: 10px 20px;
}

section a:hover, footer .social-footer a:hover {
    font-size: 105%;
}

/* footer .contacts-footer a:hover {
    font-size: 160%;
} */

/* heading and logo */
header {
    background-color: rgb(32, 32, 35);
    height: 120px;
}

.logo {
    float: left;
    font-size: 300%;
    margin: 16px 20%;
    color: white;
}

#nav-bar {
    background-color: #fafafa;
    float: right;
    font-size: 110%;
    letter-spacing: 3px;
    color: #000;
    border: solid #000 2px;
    border-radius: 4px;
    padding: 10px;
    position: relative;
    top: 95px;
    right: 20%;
}

#nav-bar li {
    float: right;
    list-style-type: none;
    margin-right: 40px;
}

#nav-bar li:first-child {
    margin-right: 0;
}

#nav-bar a {
    text-decoration: none;
    text-transform: uppercase;
    color: inherit;
}

#nav-bar a:hover {
    border-bottom: 1px solid #3a3a3a;
}

.active {
    border-bottom: 1px solid #3a3a3a;
}

/* introduction me section: img and text */
#introduction {
    height: 600px;
    width: 100%;
    z-index: -1;
    position: relative;
}

#introduction-image {
    height: 500px;
    width: 100%;
    background: url('../images/image-introduction.jpg') no-repeat center center;
    background-size: 2400px 600px;
    /* animates zoom effect on loading page */
    animation-name: hero-zoom;
    animation-duration: 3s;
    position: relative;
    animation-timing-function: ease;
    top: 40px;
    z-index: -1;
}

 /* creates the level of zoom fo hero image */
@keyframes hero-zoom {
    from {top: 120px;}
    to {top: 40;}
}

#cover-text, #cover-text-mobile {
    font-size: 80%;
    font-weight: 900;
    font-family: Lato, sans-serif;
    letter-spacing: 2px;
    line-height: 1.5;
    color: #fafafa;
    background-color: rgba(32, 32, 35, 0.7);
    width: 300;
    height: auto;
    text-align: center;
    padding: 10px;
    position: absolute;
    bottom: 220px;
    right: 20%;
}

#cover-text-mobile {
    visibility: hidden;
}

/* about me section */
#about-me-section {
    height: 600px;
    overflow: hidden;
}

#left-about-me {
    float: left;
    width: 50%;
    box-sizing: border-box;
    text-align: justify;
    margin-top: 40px;
}

#right-studies {
    float: right;
    width: 50%;
    box-sizing: border-box;
    padding: 0 20px 0 100px;
    margin-top: 40px;
}

#left-about-me > h2, #right-studies > h2 {
    display: inline-block;
    border-bottom: 2px solid white;
}

#left-about-me p {
    margin-top: 40px;
}

.primary-list {
    list-style-type: none;
    margin-top: 40px;
}

.primary-list > li {
    margin-bottom: 20px;
}

.primary-list > li a {
    color: #a8a8a8;
}

.secondary-list {
    margin-top: 10px;
}

.secondary-list > li {
    margin-left: 20px;
}

.small {
    color: rgb(48, 47, 47);
}

.primary-list > li:first-child:before {    
    font-family: 'FontAwesome';
    content: '\f19d';
    /* margin:0 5px 0 -15px; */
}

.primary-list > li:last-child:before {    
    font-family: 'FontAwesome';
    content: '\f121';
    /* margin:0 5px 0 -15px; */
}

hr {
    border-top: 1px solid white;
    width: 70%;
    margin: 50px auto;
}

/* work experience section */
#work-experience-section {
    height: 600px;
    background-color: rgb(32, 32, 35);
    color: #c7c7c7;
    line-height: 1.6;
    overflow: hidden;
}

#work-experience-image {
    height: 100%;
    width: 40%;
    background: url('../images/work-experience.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    box-sizing: border-box;
    float: left;
} 

#work-experience-title {
    display: inline-block;
    border-bottom: 2px solid;
    position: absolute;
    top: 100px;
    left: 20%;
    color: #fafafa;
} 

#work-experience-title-mobile {
    display: none;
}

#right-work-experience {
    width: 60%;
    float: right;
    height: 600px;
}

#work-experience-text {
    padding: 20px 20px;
    overflow: auto;
    height: calc(100% - 40px);
    text-align: justify;
}

#work-experience-text li > p:nth-child(2), #work-experience-text li > p:nth-child(3) {
    text-align: justify;
}

#work-experience-text ul {
    list-style-type: none;
    margin-top: 10px;
}

#work-experience-text li {
    margin-bottom: 30px;
}

#work-experience-text li p u {
    color: #a8a8a8;
}
#work-experience-text li p a {
    color: #a8a8a8;
}

#work-experience-text li p:first-child b {
    font-size: 120%;
}

#work-experience-text li a {
    font-style: italic;
}

#work-experience-text li p:first-child {
    margin-bottom: 10px;
}

/* abilities section */
#abilities-section {
    height: auto;
    overflow: hidden;
    color: black;
}

#abilities-section h2 {
    display: inline-block;
    border-bottom: 2px solid;
    color: white;
}

#ability-box {
    margin: 40px auto;
}

#left-ability-section {
    float: left;
    width: calc(50% - 40px);
    box-sizing: border-box;
    margin-right: 20px;
}

#right-ability-section {
    float: right;
    width: calc(50% - 40px);
    box-sizing: border-box;
}

.ability-card {
    width: calc(100% - 32px);
    display: inline-block;
    border: 2px solid #000;
    border-radius: 25px;
    margin: 10px;
    padding: 15px;
}

.ability-card ul {
    list-style-type: circle;
    margin-left: 30px;
    font-size: 120%;
}

.ability-card li {
    line-height: 1.5;
}

.ability-card h3 {
    text-align: center;
    margin: 15px;
    font-size: 140%;
}
.ability-card p {
    font-size: 90%;
    font-weight: bold;
    letter-spacing: 0;
}

/* footer */
footer {
    height: 200px;
    /* width: 100%; */
    margin: 0 20%;
    background-color: rgb(32, 32, 35);
}

.social-footer {
    float: left;
    width: 50%;
    box-sizing: border-box;
    text-align: center;
}

footer a {
    text-decoration: none;
}

.social-footer > ul > li {
    display: inline;
    padding: 0 5%;
}
.social-footer > ul > li > a {
    color: white;
}

.social-footer > ul > li > a > i {
    font-size: 200%;
    margin: 1%;
    padding: 10% 0;
}

.contacts-footer {
    float: right;
    width: 50%;
    box-sizing: border-box;
    list-style-type: none;
    text-align: center;
}

.contacts-footer ul {
    margin: 5%;
}

.contacts-footer li {
    list-style-type: none;
    margin: 1%;
    padding: 2% 5%;
}

.contacts-footer a, .contacts-footer span {
    color: white;
    font-size: 100%;
}

/* form section from contac.html */
.form-confirmation-section {
    height: 700px;
    width: 100%;
    background: url("../images/image-contact.jpg") no-repeat center center;
    background-position: center;
    background-size: cover;
}

.signup-form {
    margin: 130px 10% 0 0;
    color: #fff;
    background-color: rgba(60, 60, 60, 0.8);
    max-width: 400px;
    position: absolute;
    left: 10%;
    padding: 30px;
}

.signup-form > h2 {
    color: #fafafa;
    margin-bottom: 25px;
}

.input-form {
    background: transparent;
    color: #fff;
    width: 100%;
    height: 25px;
    margin: 5px 0 20px 0;
    border: 1px solid #fafafa;
    border-radius: 2px;
}

.input-form:hover, .message-textarea:hover {
    border-color: #f16c6b;
}

.message-textarea {
    background: transparent;
    color: #fff;
    width: 100%;
    height: 100px;
    margin: 5px 0 20px 0;
    border: 1px solid #fafafa;
    border-radius: 2px;
}

.button-submit {
    margin-top: 20px;
    border-radius: 2px;
    padding: 15px 30px;
    text-align: center;
    font-size: 100%;
    background-color: #fafafa;
    color: #000;
    display: block;
    cursor: pointer;
}

.button-submit:hover {
    background-color: #f16c6b;
    color: #fafafa;
}

#form-section a {
    font-size: 100%;
    text-decoration: none;
}

/* confirmation section */

.cover-text-confirmation {
    color: #fff;
    background-color: rgba(60, 60, 60, 0.7);
    position: absolute;
    left: 50%;
    top: 50%; 
    padding: 30px;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 120%;
}

.cover-text-confirmation p:first-child {
    font-size: 150%;
    margin-bottom: 40px;
}

@media screen and (max-width: 1575) {
    .social-footer > ul > li {
        display: inline;
    }
    #nav-bar {
        top: 0;
    }
 }
@media screen and (max-width: 1200px) { }
@media screen and (max-width: 950px) { 

    .container {
        margin: 10px 0;
    }

    #introduction-image {
        background-size: cover;
    }
    
    #introduction, #about-me-section, #work-experience-section, #abilities-section {
        height: auto;
    }

    #cover-text, #cover-text-mobile {
        position: absolute;
        bottom: 5px;
        right: 0;
    }


    #left-about-me, #right-studies, #left-ability-section, #right-ability-section {
        width: 100%;
        float: left;
        padding: 0;
    }

    #left-about-me > h2, #right-studies > h2 {
        display: inline-block;
        width: 100%;
        text-align: center;
        border-bottom: 2px solid white;
    }

    #work-experience-image {
        display: none;
    } 

    #work-experience-text {
        text-align: left;
    }

    #work-experience-text li > p:nth-child(1) > u {
        display: block;
        text-align: center;
        padding-bottom: 10px;
        font-weight: bold;
    }
    
    #work-experience-title-mobile {
        width: calc(100% - 20%);
        margin: 20px 10%;
        border-bottom: 2px solid #000;
        box-sizing: border-box;
        display: inline-block;
        text-align: center;
    }
    
    #right-work-experience {
        width: 100%;
        float: left;
        height: auto;
        background-color: rgb(32, 32, 35);
    }

    #abilities-section h2 {
        text-align: center;
        width: 100%;
        display: inline-block;
        border-bottom: 2px solid;
    }

    .ability-card {
        margin: 5px 0;
    }
    
    #left-ability-section, #right-ability-section {
        float: left;
        width: 100%;
        margin-right: 0;
    }

    footer {
        padding-top: 40px;
        margin: 0;
    }

    .social-footer, .contacts-footer {
        float: left;
        width: 100%;
    }
    
    .social-footer > ul > li > a > i {
        font-size: 100%;
        margin: 1%;
        padding: 0;
    }
    
    .contacts-footer ul {
        margin: 1%;
    }
    .contacts-footer li {
        margin: 1%;
        padding: 0;
    }
}
@media screen and (max-width: 900px) { 
    .logo {
        clear: both;
        font-size: 200%;
        margin: 20px auto;
        width: 100%;
        text-align: center;
    }
    #nav-bar {
        position: relative;
        top: 15px;
        right: 0;
    }
    #nav-bar li {
        float: none;
        margin-right: 0;
    }

    #nav-bar { display: flex; flex-direction: column; }
    #nav-bar li:nth-child(1) { order: 4; }
    #nav-bar li:nth-child(2) { order: 3; }
    #nav-bar li:nth-child(3) { order: 2; }
    #nav-bar li:nth-child(4) { order: 1; }

    .cover-text-confirmation {
        width: calc(100% - 100px);
        transform: translate(-50%, -30%);
        font-size: 100%;
    }
}
@media screen and (max-width: 485px) { 
    #cover-text {
        display: none;
    }

    #cover-text-mobile {
        visibility: visible;
        width: calc(100% - 20px);
        text-align: center;
    }

    #abilities-section {
        margin: 10px 10px;
    }

    .social-footer > ul > li {
        padding: 0 2%;
    }

    .contacts-footer {
        margin-top: 20px;
    }
}