:root {
    --first-background-color: #DDDFDE;
    --second-background-color: #FEEDE6;
    --main-color: #414042;
    --link-color: #4a395a;
    --accent-color: #423aad;
  }

@font-face {
    font-family: 'Merriweather';
    src: url('./fonts/Merriweather-Regular.ttf');
}

@font-face {
    font-family: 'Merriweather-Bold';
    src: url('./fonts/Merriweather-Bold.ttf');
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

a {
    color: var(--link-color)
}

a:hover {
    color: var(--accent-color);
}

header li,
section.contact li {
    list-style-type: none;
}

html {
    font-family: 'Merriweather', Times, serif;
    color: var(--main-color);
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    font-size: 1.8rem;
    background: linear-gradient(var(--first-background-color), var(--second-background-color));
}

#home, #contact, #education, #skills, #experience {   
    scroll-margin-top: 50px;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 950px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 5rem;
    background-color: white;
}

.header .wrapper {
    position: fixed;
    height: 50px;
    width: 950px;
    margin: 0 auto;
    padding: 0 5rem;
    line-height: 5rem;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: white;
}

.header__navigation-mobile.hidden {
    display: none;
}

nav {
    border-bottom: var(--link-color) solid 1px;
}

nav ul.navigation,
footer {
    display: flex;
    align-content: center;
    justify-content: space-between;
    align-items: center;
    font-family: 'Merriweather-Bold';
    font-size: 2.5rem;
    border-top: solid 1px var(--main-color);
}

nav a {
    text-transform: uppercase;
    text-decoration: none;
}

nav a i {
    font-size: 2.5rem;
}

main {
    display: grid;
    grid-template-columns: 100%;
    padding-top: 50px;
}

main > div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

h1, h2, h3, h4 {
    font-family: 'Merriweather-Bold';
}

h1 {
    font-size: 3.5rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2.2rem;
}

h4 {
    font-size: 2rem;
    padding-bottom: 1rem;
}

section {
    margin-bottom: 1rem;
}

section p {
    line-height: 3rem;
}

.section-header {
    height: 4rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-top: solid 1px var(--main-color);
    border-bottom: solid 1px var(--main-color);
    margin-bottom: 2rem;
    padding: 2.5rem 0;
}

.section-header h2 {
    font-family: 'Merriweather-Bold';
    color: var(--accent-color);
    letter-spacing: 3px;
    margin-left: 15px;
}

section:not(.contact) ul {
    padding-left: 14px;
}

section:not(.contact) ul > li {
    margin-bottom: 1rem;
}

.about__title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin-top: 2rem;
}

.about__title-photo img {
    border-radius: 50%;
}

.about__title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about__list {
    list-style: none;
}

.about__list i {
    padding: 0.5rem;
}

.about__list span {
    font-family: 'Merriweather-Bold';
    padding-right: 1rem;
}

section.contact .contact__list-item > div {
    display: flex;
    align-items: center;
}

section.contact ul > li {
    margin-bottom: 2rem;
}

.contact__list i {
    font-size: 2.5rem;
    margin-right: 1rem;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.skills__content {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}

.skills__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.skills__hard {
    margin-right: 5rem;
}

.skills__english h4 {
    padding-top: 2rem;
}

.experience__content > div {
    margin-bottom: 2rem;
}

li.education__list-item > p:first-child {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between; 
}

/* .experience b {
    font-family: 'Garamond-Bold';
    font-size: 2.2rem;
    margin-right: 0.5rem;
} */

.experience__work .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer .copyright {
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-family: 'Merriweather';
    font-size: 1.8rem;
}

@media (max-width: 1023px) {
    .container,
    .header .wrapper {
        width: 100vw;
    }
}

@media (max-width: 767px) {
    .header__navigation.hidden {
        display: none;
    }

    .header__navigation-mobile.hidden {
        display: block;
    }

    h1 {
        font-size: 3rem;
    }

    .about__title {
        flex-direction: column;
    }

    .about__title-text h3 {
        margin-bottom: 2rem;
    }
    
    .skills__content,
    .contact__content {
        grid-template-columns: 1fr;
    }

    .skills__content h4 {
        padding-top: 2rem;
    }
}

@media (max-width: 424px) {
    .header .wrapper,
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 374px) {
    html {
        font-size: 8px;
    }

    section:not(.contact) ul {
        padding-left: 13px;
    }
}
