html {
    scroll-behavior:smooth
}

body {
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    background-image: url("bg.jpg");
    background-size: cover;
    display: flex;

    font-size: 16px;
}

main {
    background-color: rgb(245, 245, 245);
    flex-basis: 90%;
    flex-grow: 0;
    flex-shrink: 0;
    margin: 70px auto;
    border-radius: 15px;
    box-shadow: 0px 0px 5px grey;
}

/* Navigation */

nav {
    display: flex;
    flex-direction: row;
    height: 90px;
    width: 100%;
    align-items: center;
    font-size: 17px;
    font-weight: 500;
}

.logo {
    background-repeat: no-repeat;
    flex-basis: 40px;
    padding: 30px 15px 20px 40px;
    flex-shrink: 1;
    flex-grow: 0;
}

img[alt="logo"] {
    width: auto;
    height: 40px;
}

.brand {
    flex-basis: auto;
    flex-shrink: 0;
}

.links {
    flex-basis: 80%;
    flex-grow: 1;
    flex-shrink: 1;
    justify-content: flex-end;
    
    display: flex;
}

.links a {
    text-decoration: none;
    color: inherit;
}

.about, .contact {
    flex-basis: auto;
    flex-shrink: 0;
    margin: auto 20px;
}

.work {
    flex-basis: auto;
    flex-shrink: 0;
    margin: auto 40px auto 20px;
    color: white;
    background-color: black;
    padding: 10px 20px;
    border-radius: 7px;

    transition: background-color 500ms ease;
}

.work:hover {
    background-color: rgb(41, 41, 41);
}

/* Hiding Responsive Menus */

.mobile-menu {
    display: none;
}

#myLinks {
    display: none;
}

/* Introduction */

.intro {
    display: flex;
    width: 75%;
    margin: 80px auto;
    align-items: center;
}

.picture {
    flex-basis: 40%;
    height: auto;
}

img[alt="pic"] {
    width: 100%;
}

.hi-there {
    flex-basis: 60%;
    margin-left: 30px;
}

.hi-there h2 {
    font-weight: 500;
    font-size: 60px;
    margin: 0;
}

.hi-there p {
    font-size: 20px;
}

/* My Career */

.career h3 {
    text-align: left;
    font-weight: 500;
    font-size: 40px;

    width: 75%;
    margin: 140px auto 0px auto;
}

.career-container {
    display: flex;
    width: 75%;
    margin: 0 auto;
}

.about-career {
    flex-basis: 55%;
    margin: 20px 0px;
    line-height: 25px;
}

.skills {
    display: flex;
    flex-basis: 45%;
    flex-wrap: wrap;
    padding: 0px 0px 0px 40px;

    box-sizing: border-box;
    justify-content: flex-start;
    align-items: flex-start;
    align-content: flex-start;
}

.skill {
    border: 1px solid rgb(206, 206, 206);
    padding: 7px 10px;
    border-radius: 7px;
    margin: 5px 7px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Working With Me */

.person-container {
    display: flex;
    flex-direction: column;
    flex-basis: 200px;
    align-items: center;

    margin-top: 30px;
}

.image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    flex-grow: 0;

    background-image: url("ivan2.jpg");
    background-position: center center;
    background-size: 150px;
    border-radius: 50%;

}

.quote {
    flex-basis: 70%;
    margin: 20px 0px;
    line-height: 25px;
    font-size: 16px;
    align-self: center;
    padding-left: 100px;
}

.name, .title {
    text-align: center;
}

.name {
    font-size: 17px;
    font-weight: 600;
}

.title {
    font-size: 14px;
}

/* About Ukraine */

.ukraine-container {
    display: flex;
    width: 75%;
    margin: 30px auto;
}   

.ukraine h3 {
    text-align: left;
    font-weight: 500;
    font-size: 40px;

    width: 75%;
    margin: 140px auto 0px auto;
}

iframe {
    flex-basis: 40%;
}

.description {
    display: flex;
    flex-basis: 60%;
    padding-left: 60px;
    align-items: center;
}

/* Contact Me */

.contactme {
    display: flex;
    border: 1px solid black;
    border-radius: 12px;
    padding: 40px;

    width: 75%;
    margin: 140px auto;  
    box-sizing: border-box;
}

.contact-label {
    font-weight: 500;
    font-size: 50px;

    flex-basis: 50%;
}

.contact-form {
    flex-basis: 50%;
}

label {
    display: block;
    color: grey;
    font-size: 12px;
    letter-spacing: 0px;
    font-weight: 500;
    padding: 5px 0;
}

.contact-container {
    display: flex;
    justify-content: space-between;
}

.name-container {
    flex-basis: 46%;
}

.email-container {
    flex-basis: 46%;
}

input[type="submit"] {
    display: block;

    color: white;
    background-color: black;
    padding: 10px 20px;
    border-radius: 7px;
    border: 0px;
    margin: 10px 0;

    font-size: 16px;

    transition: background-color 500ms ease;
}

input[type="submit"]:hover {
    background-color: rgb(41, 41, 41);
    cursor: pointer;
}

input[type="text"] {
    background-color: white;
    height: 50px;
    border: 0px;
    border-radius: 7px;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    
}

input[type="text"]::placeholder {
    font-weight: 500;
    font-size: 16px;
    color: grey;
}

textarea {
    background-color: white;
    border: 0px;
    border-radius: 7px;
    width: 100%;
    padding: 6px 12px;
    box-sizing: border-box;

    font-family: inherit;
}

textarea::placeholder {
    font-weight: 400;
    font-size: 16px;
    color: grey;

    font-family: 'Poppins', sans-serif;
}

/* Footer */

.footer-links {
    display: flex;
    font-weight: 400;
    font-size: 16px;
    color: rgb(46, 46, 46);
    justify-content: space-between;
    width: 30%;
    margin: 0 auto;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
}

.copyright {
    font-weight: 400;
    font-size: 16px;
    color: rgb(160, 160, 160);
    text-align: center;
    margin-top: 30px;
}

.required {
    font-weight: 400;
    font-size: 10px;
    
    text-align: center;
    padding-bottom: 40px;
}

.required a {
    text-decoration: none;
    color: rgb(160, 160, 160);
}

.fa-linkedin {
    position: fixed;
    font-size: 30px;
    color: black;
    
    top: calc(95vh - 30px);
    left: calc(94% - 30px);
}

/* Responsive */

@media (max-width: 700px) {
    /* Nav */
    .about, .contact, .work {
        display: none;
    }

    .mobile-menu {
        display: inline-block;
        box-sizing: border-box;
    }
    .fa-bars {
        font-size: 30px;
        margin: 0 25px 0 0;
    }
    
    #myLinks {
        flex-direction: column;
        align-items: center;
        background-color: rgba(231, 231, 231, 0.856);
    }

    #myLinks a {
        text-decoration: none;
        color: black;
        padding: 10px 0;
        width: 100%;
        text-align: center;
    }

    #myLinks a:hover {
        background-color: rgb(245, 245, 245);
    }
    
    /* Intro */

    .intro {
        margin-top: 10px;
        margin-bottom: 10px;
        flex-direction: column;
    }
    
    .picture {
        width: 70%;
        margin-bottom: 10px;
    }

    .hi-there {
        margin-left: 0;
    }

    .hi-there p {
        font-size: 16px;
    }   

    /* Career */

    .career h3 {
        margin-top: 10px;
    }

    .career-container {
        flex-direction: column;
    }

    .skills {
        padding-left: 0;
        margin-bottom: 10px;
    }

    /* Working With Me */
    .quote {
        padding-left: 0;
    }

    /* Ukraine */
    .ukraine h3 {
        margin-top: 10px;
    }

    .ukraine-container {
        flex-direction: column;
    }

    .description {
        padding-left: 0;
    }

    /* Contact Me */

    .contactme {
        margin-top: 10px;
        margin-bottom: 30px;

        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-label {
        font-size: 30px;
    }

    input[type="text"]::placeholder {
        font-size: 12px;
    }

    /* Footer */

    .footer-links {
        flex-direction: column;
    }

    .footer-links div {
        padding: 5px 0;
    }
}

