@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

:root {
    --black: #D8D8DA;
    --purple: #441D6F;
    --lightpurple: #672da5;
}

body {
    font-family: 'Roboto', 'Segoe UI', 'sans-serif';
    padding: 0px;
    padding-top: 64px;
    margin: 0px;

    width: 100%;
    height: 664px;

    background-color: var(--white);
    background-image: url(img/background.jpg);

    background-position: 0 64px;
    background-repeat: no-repeat;
    background-blend-mode: darken;
    background-size: 100% auto;
    box-sizing: border-box;
}

p, span, a {
    font-weight: lighter;
    margin: 0;
}

h1 {
    text-align: center;
    font-size: 24px;
    margin: 10px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

header p {
    text-align: center;
    color: white;
    text-transform: uppercase;
    font-weight: lighter;
}

main section h2 {
    font-size: 32px;
    margin: 0px;
    font-weight: bold;
}

h3, #h3 {
    font-size: 24px;
    margin: 0;
    margin-top: 25px;
    margin-bottom: 25px;
    font-weight: normal;
}

h4 {
    font-size: 18px;
    margin: 0;
    margin-top: 30px;
}

p {
    font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
    text-transform: uppercase;
}

.purple {
    background-color: var(--purple);
}

.purple h2, .purple h3, .purple h4, .purple p,
    .purple li, .purple ul {
    color: white;
}

.white {
    background-color: white;
}

.white h2, .white h3, .white h4, .white p
.white li {
    color: black;
}

/************************************************/

.titles {
    text-align: left;
    overflow: hidden;
    margin: 0 10%;
}

.titles > span {
    position: relative;
    display: inline-block;
    width: 100%;
    font-weight: bold;
}

.titles > span:after {
    content: '';
    position: absolute;
    bottom: 20%;
    border-top: 3px;
    border-radius: 20px;
    width: 100vw;
    margin: 0 20px;
}

.purple .titles >span:after {
    border-top: solid white;
}

.white .titles > span:after {
    border-top: solid black;
}

/************************************************/

nav {
    position: fixed;
    top: 0;
    background-color: var(--purple);
    height: 64px;
    width: 100%;
    z-index: 99;
}

nav ul {
    list-style-type: none;
    width: 100%;
    height:  100%;
    background-color: var(--purple);
    margin: 0;
    justify-content: space-evenly;
}

nav ul li {
    text-align: center;
    display: inline-block;
    width: calc(100%/5);
    padding: 0;
    margin: 0;
}

nav ul li a {
    font-size: 18px;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 64px;
    color: white;
}

header > img {
    width: 200px;
    height: 200px;

    display: block;
    margin:auto;
    margin-top: 200px;
    border-radius: 50%;

}

.text-margin p {
    margin-bottom: 20px;
}

#skills > div{
    display: flex;
    justify-content: flex-start;
    align-content: flex-end;
}

#skills img {
    width: 50px;
}

#skills > div > ul {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 800px;
}

#skills > ul > li > span.title {
    display: flex;
    margin: 40px 0;
    margin-bottom: 0;
}

#skills li > div {
    width: 400px;
    height: 80px;
}

#skills li > div {
    display: flex;
    align-items: center;
}

#skills h4 {
    margin: 0;
}

#skills > div > div {
    width: 250px;
}

#skills > div > div li {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

ul > li > div#span {
    width: 100%;
    display: flex;
    align-items: center;
}

#skills > ul > li span, #skills > ul > li div {
    margin: 10px 0;
}

#span > div {
    width: 15%;
}

#skills .progress {
    display: flex;
    align-items: center;

    width: 50%;
    height: 10px;
    background-color: black;
    margin: 10px;
}

.bar {
    box-sizing: border-box;
    height: 150%;
    border-right: 3px solid black;
}

.progress > .quarter {
    width: 25%;
}

.progress > .mid {
    width: 50%;
}

.progress > .threequarts {
    width: 75%;
}

.progress > .full {
    width: 90%;
}

#skills > ul li {
    height: auto;
}

#profile, #education, .career {
    padding: 64px 0;
}

section.exclude {
    padding: 20px 0;
}

#freelance {
    padding-bottom: 50px;
}

#skills div > div li {
    margin: 20px 0;
}

#profile {
    margin: 0px;
    margin-top: 25px;
}

#profile div > section, #experiences > section > ul {
    margin: 0 10%;
    margin-top: 40px;
}

.container {  
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-around;
}

ul {
    padding: 0;
}

#experiences li > div > p, 
#experiences li > div > h3 {
    margin: 5px 0;
}

#experiences li > div > p {
    text-transform: uppercase;
}

.career h3,
.exclude h3,
#freelance #h3 {
    display: list-item;
    list-style-type: disc;
    font-weight: bold;
}

#h3 {
    margin-bottom: 10px;
}

.no-margin-top {
    margin-top: 0;
}

.career > ul > li {
    margin: 50px 0;
}

.exclude > ul > li {
    margin: 25px 0;
}

#profile ul, #experiences ul {
    list-style-type: none;
}

.career .jobs, .career .listings,
#freelance .jobs, #freelance .listings,
.exclude .jobs, .exclude .listings {
    margin: 0 0px;
}

.career li span, .exclude li span,
    #freelance > ul > li {
    margin: 0;
}

.jobs li {
    list-style-type: disc;
}

.listings li {
    list-style-type: none;
}

.listings li:before {
    content: "- ";
}

#experiences {
    background-color: var(--white);
    margin: 0px;
}

#projects {
    margin: 0px;
    padding-top: 64px;
}

#images {
    list-style-type: none;
    width: 70%;
    margin: auto;
    padding: 10px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#images img {
    margin: 10px;
    width: 256px;
    height: 170px;
    border-radius: 20px;
    border: 2px solid white;
}

figcaption {
    margin: 20px;
    color: #dddddd00;
    text-align: center;
}

footer {
    color: #dddddd;

    bottom: 0;
    height: 850px;
    background-color: var(--black);
    margin: 0;
    padding: 40px 10px;
    padding-top: 64px;
}

footer h3 {
    text-align: center;
}

#contacts h2 {
    display: none;
}

address {
    display: flex;
    margin-top: 30px;
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

address h3 {
    font-style: normal;
}

a {
    text-decoration: none;
    font-style: normal;
    color: var(--purple);
}

address div {
    min-width: 196px;
    display: inline-block;
    width: calc(100%/4);
    text-align: center;
    color: var(--purple);
}

address h3 {
    display: none;
}


i {
    margin: 20px;
    transform: scale(2);
}

/*contact form*****************************/

/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
    width: 100%; /* Full width */
    border: 1px solid black; /* Gray border */
    border-radius: 4px; /* Rounded borders */
    box-sizing: border-box; /* Make sure that padding and width stays in place */
    margin-top: 6px; /* Add a top margin */
    margin-bottom: 16px; 
    padding: 12px; /* Some padding/* Bottom margin */
    resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
  }
  
  /* Style the submit button with a specific background color etc */
  input[type=submit] {
    background-color: var(--purple);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  /* When moving the mouse over the submit button, add a darker green color */
  input[type=submit]:hover {
    background-color: var(--lightpurple);
  }

  input[type=submit]:active {
    background-color: var(--purple);
  }

  input:focus {
      outline: none;
  }

  textarea:focus {
    outline: none;
  }

  input[type=submit]:focus {
    outline: none;
  }

  footer > div.form-box > h3 {
      margin: 30px 0;
  }
  
  /* Add a background color and some padding around the form */
  .form-box {
    border-radius: 5px;
    background-color: var(--black);
    margin: 0 20%;
    padding: 0 25px;
    color: black;
    text-align: center;
  }

  .form-box > h3 {
      margin: 0 25px;
  }

/*animations******************************/
figure:hover figcaption {
    color: white;
    transition-duration: 0.7s;
}

figure:hover img {
    transform: scale(1.05);
    transition-duration: 0.4s;
}

figure:active img {
    transform: scale(0.95);
    filter: brightness(90%);
    transition-duration: 0.2s;
}

a:hover {
    filter: brightness(150%);
    transition-duration: 0.7s;
}

address section a:active {
    filter: brightness(120%);
}

nav ul li a:hover {
    background-color: var(--lightpurple);
    transform: scale(1.1);
    transition-duration: 0.4s;
}

nav ul a:active {
    background-color: var(--grey);
    transform: scale(1.1);
    transition-duration: 0.4s;
}

@media screen and (max-width: 768px) {
    body {
        background-size: auto 664px;
        background-position: center 64px;
    }

    #skills > div {
        flex-flow: column;
    }

    #skills > div > ul {
        display: flex;
        justify-content: flex-start;
        flex-flow: column;
        width: 100%;
    }
    
    #skills li > span {
        display: flex;
        align-items: center;
        width: 100%;
    }

    #images img {
        margin-left: auto;
        margin-right: auto;
        display: block;

        width: 80vw;
        height: auto;
    }

    .form-box {
        margin: 0 20px;
    }

    nav {
        width: 100vw;
    }

    nav ul li > a {
        font-size: 16px;
    }

    address {
        flex-flow: column;
        align-items: center;
    }

    address section {
        text-align: center;
        margin: auto;
    }

    address section {
        width: 85vw;
    }

    footer {
        height: 170%;
    }

    ul > li > div#span {
        flex-flow: column;
        align-items: center;
    }

    ul > li > div#span {
        width: 100%;
        display: flex;
    }

    #skills > ul li > span {
        display: inline-block;
        line-height: 250%;
    }

    #skills > ul li:nth-child(1) {
        height: 350px;
    }

    #skills > ul > li span, #skills > ul > li div {
        margin: 10px 0;
    }
    
    #span > div {
        width: 75%;
    }
    
}