:root {
    /* fonts */
    --codeFont: 'Menlo', 'Verdana';

    /* colors */
    --bgMain: #fff;
    --main: #0071BC;
    --secondary: #2AAAE2;
    --boxShadow: rgba(0, 0, 0, 0.2);
}

body {
    margin: 0;
}

a {
    color: black;
    text-decoration: none;
}

h1, h2, h3, h4, p, a {
    font-family: 'InaiMathi', 'Open Sans', 'Arial';
    margin: 0;
}

h2 {
    color: var(--main);
    font-size: 2em;
    text-transform: uppercase;
    font-family: var(--codeFont);
}

h3 {
    color: var(--secondary);
    font-size: 1.75em;
    text-transform: uppercase;
    font-family: var(--codeFont);
}

h4 {
    color: var(--main);
    font-size: 1.5;
    font-weight: 400;
    text-transform: uppercase;
    font-family: var(--codeFont);
}

.button {
    background-color: #2AAAE2;
    border: 2px solid var(--main);
    color: #fff;
    padding: .5em 1em;
    font-family: var(--codeFont);
    text-transform: uppercase;
    display: inline-block;
    font-size: 1.5em;  
    background-size: 250%;
    background-image: 
    linear-gradient(
    45deg,
    var(--secondary) 0%,
    var(--secondary) 49%,
    white 49%,
    white 50%,
    var(--secondary) 50%,
    var(--secondary) 100% );
    transition: all .2s;
    background-position: 100%;
}

.button:hover {
    background-position: 0%;
    transform: scale(1.1);
}

/* ---------------- */
/* -----HEADER----- */
/* ---------------- */
header {
    background-color: var(--bgMain);
    box-shadow: 0 0 10px var(--boxShadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    position: sticky;
    top: 0;
    z-index: 1;
}

header a img {
    width: 1.5em;
    height: 1.5em;
}

#logo {
    width: 4em;
    height: 4em;
    display: block;
}

#left {
    display: flex;
    gap: 1em;
    align-items: center;
}

#hamburgerImg {
    display: none;
}

#hamburger {
    display: none;
}

#lorenzoHorden {
    color: #333;
    font-size: 1.5em;
      display: inline-block;
      transition: all .25s;
}

#lorenzoHorden:hover {
    background-position: 0%;
    color: var(--main);
    transform: scale(1.1);
}

header nav ul {
    display: flex;
    margin: 0;
}

header nav ul li {
    list-style-type: none;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    transition: all .2s ease-in;
    outline-offset: -2px;
}

header nav ul li:hover {
    background-position: 0 0;
    background-color: var(--secondary);
    outline: 2px solid var(--main);
}

header nav ul li:hover a p {
    color: #fff;
}

header nav ul li a {
    padding: 1em;
    display: flex;
    gap: .5em;
    align-items: flex-end;
}

header nav ul li a p {
    transition: all .1s ease-in;
}

/* ------------- */
/* MOBILE HEADER */
/* ------------- */

@media (max-width: 841px) {
    header nav ul {
        position: absolute;
        flex-direction: column;
        top: 6em;
        right: 100%;
        background-color: #eee;
        width: 100%;
        height: 100vh;
        transition: all .2s ease-in-out;
        outline-offset: 2px;
    }

    header nav ul li a:hover {
        background-color: var(--secondary);
        outline: 2px solid var(--main);
    }

    header nav ul li a {
        padding: 1em 2em;
        flex-direction: row-reverse;
        gap: 1em;
    }

    header nav ul li a img {
        width: 2em;
        height: 2em;
    }

    header nav ul li a p {
        font-weight: 700;
    }

    #hamburgerImg {
        display: block;
        width: 2em;
        height: 2em;
        cursor: pointer;
    }

    #hamburger:checked ~ ul:first-of-type {
        right: 0;
    }
}

/* -------------- */
/* -----MAIN----- */
/* -------------- */
main {
    background-image: url("img/background.png");
    background-size: 35em;
    overflow: auto;
}

.floatContainer {
    margin: 5em auto;
    padding: 4em 5% 4em 5%;
    box-shadow: 0 0 10px var(--boxShadow);
    background-color: var(--bgMain);
    max-width: 54em;
}

@media (max-width: 60em) {
    .floatContainer{
        box-shadow: none;
        background-color: #ddd;
        margin: 0;
        box-shadow: 0 0 10px var(--boxShadow);
    }

    .widthContainer {
    }

    .contact form input[type=text] {background-color: white;}
    .link {background-color: white;}
}

.widthContainer {
    padding: 5em;
    background-color: var(--bgMain);
}



/* ----------------- */
/* -----WELCOME----- */
/* ----------------- */
.welcomeContainer {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    row-gap: 2em;
}

#illustration_1 {
    width: 20em;
    height: 20em;
}

.welcomeContainerRight {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-end;
    gap: 2em;
}

#welcomeText {
    display: inline-flex;
    align-items: start;
    gap: 1em;
    justify-content: flex-end;
}

#welcomeText > h2 {
    display: inline-block;
}

#welcomeText ul {
    display: inline-block;
    margin: 0;
    padding: 0;
    height: 2em;
    overflow: hidden;
}

#welcomeText ul li {
    text-align: right;
    list-style-type: none;
    animation-name: change;
    animation-duration: 20s;
    animation-iteration-count: infinite;
}

@keyframes change {
    0%,  14.29%, 100% {transform:translate3d(0,0,0);}
    14.29%, 28.57% {transform:translate3d(0,-100%,0);}
    28.57%, 42.86% {transform:translate3d(0,-200%,0);}
    42.86%, 57.14% {transform:translate3d(0,-300%,0);}
    57.14%, 71.43% {transform:translate3d(0,-200%,0);}
    71.43%, 85.71%{transform:translate3d(0,-100%,0);}
    85.71%, 100% {transform:translate3d(0,0,0);}
}

#typeWriteDiv {
    display: flex;
    align-items: flex-end;
}

.typeWrite {
    color: var(--secondary);
    font-weight: 500;
    text-align: right;
    width: 11em;
}

#writer {
    width: .25em;
    height: 2em;
    background-color: var(--secondary);
    display: inline-block;
    animation: blink 500ms linear infinite alternate;
}

@keyframes blink {
    0%{opacity: 0;}
    100%{opacity: 1;}
}



/* ----------------- */
/* -----MY WORK----- */
/* ----------------- */

.myWork {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4em;
}

.floatContainer h2 {
    text-align: center;
}

#projectContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 4em;
}

.project {
    width: 20em;
    height: 100%;
    background-color: var(--bgMain);
    box-shadow: 0 0 5px var(--boxShadow);
    transition: all .25s;
    background-color: #ddd;
}

.project:hover {
    transform: scale(1.05);
}

.project img {
    width: 100%;
    height: 12em;

}

.project h4 {
    text-align: center;
    font-size: 1.5em;
    margin: .5em 0;
}

.project p {
    text-align: center;
    margin-bottom: 2em;
}



/* ------------------- */
/* -----MY SKILLS----- */
/* ------------------- */

.skillContainer {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2em;
}

.skills {
    list-style-type: none;
    width: 20em;
    display: inline-block;
}

.skill {
    position: relative;
    left: -16em;
    display: flex;
    gap: 2em;
    transition: all .4s;
    margin-bottom: 2em;
}

.skill > img {
    width: 10em;
    height: fit-content;
}

.skill:hover {
    transform: translateX(2em);
}

.skillContent > p {
    margin-top: 1em;
    color: #808080;
    font-size: .75em;
    width: 20em;
}

.floatRight {
    display: inline-block;
    height: 20em;
}

.floatRight img {
    height: 100%;
}



/* ------------------ */
/* -----ABOUT ME----- */
/* ------------------ */
.aboutMe {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    row-gap: 2em;
}

.aboutMe .left {
    width: 24em;
}

.aboutMe h2 {
    text-align: left;
    display: inline-block;
}

.aboutMe p {
    padding: .5em 0;
}

.aboutMe .right {
    width: 20em;
}

.aboutMe img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}


/* -------------- */
/* -----SORT----- */
/* -------------- */
input[type=radio] {
    display: none;
}

.controls {
    display: flex;
    gap: 1em;
}

.controls > label {
    background-color: var(--bgMain);
    border: 2px solid #DDD;
    color: var(--main);
    font-family: var(--codeFont);
    font-size: 1em;
    font-weight: bold;
    padding: .25em 1em;
    transition: all .4s;
}

.controls > label:hover {
    transform: scale(1.1);
    background-color: var(--secondary);
    border: 2px solid var(--main);
    color: white;
}

.controls .checked {
    background-color: var(--secondary);
    border: 2px solid var(--main);
    color: white;
}

.inv {
    display: none;
}


/* --------------- */
/* -----TOOLS----- */
/* --------------- */
.tools {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 4em 10%;
}

.toolsCenter {
    width: 60%;
    margin: 1em;
}

.toolset {
    box-shadow: 0 0 10px var(--boxShadow);
    background-color: var(--bgMain);
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2em;
    padding: 2em 10%;
}

.toolset h3 {
    margin-bottom: 1em;
}

.tool {
    display: grid;
    grid-template-columns: 3em auto;
    grid-template-rows: auto auto;
    column-gap: .5em;
    margin-bottom: 1em;
    width: 100%;
}

.tool img {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    width: 3em;
    height: 3em;
}

.tool p {
    color: #808080;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.barContainer {
    display: flex;
    align-items: center;
    position: relative;
    height: .5em;
    background-color: #bbb;
    border-radius: .25em;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}
  
.bar {
    background-color: var(--main);
    height: .5em;
    display: inline-block;
    border-radius: .25em;
}

.b80 {width: 80%;}
.b70 {width: 70%;}
.b60 {width: 60%;}
.b50 {width: 50%;}
.b40 {width: 40%;}
.b30 {width: 30%;}
  
.head {
    display: inline-block;
    background-color: var(--secondary);
    width: .5em;
    height: .5em;
    border-radius: .5em;
    outline: 2px solid var(--main);
    outline-offset: -2px;
    transform: translateX(-1em);
    transform: scale(2);
}



/* ----------------- */
/* -----CONTACT----- */
/* ----------------- */
.contact {
    display: flex;
    flex-direction: column;
}

.contactSub {
    display: flex;
    justify-content: space-around;
    margin-top: 2em;
}

.contactSub .subtext {
    font-size: 1.5em;
    color: var(--main);
    font-family: var(--codeFont);
    text-transform: uppercase;
}

.contactSub img {
    width: 20em;
    height: 20em;
}

.contact h3 {
    text-align: center;
    margin-top: 2em;
}

.social {
    display: flex;
    align-items: center;
    gap: 1em;
    margin: .5em 0;
}

.social > img {
    width: 2em;
    height: 2em;
}

.link {
    background-color: #ddd;
    display: inline-flex;
    align-items: center;
    height: 2em;
    padding: 0 .5em;
    width: 100%;
    justify-content: space-between;
}

.link a {
    color: var(--main);
    font-family: var(--codeFont);
}

.copy {
    width: 1.5em;
    height: 1.5em;
    cursor: pointer;
}

.contact form label {
    color: var(--main);
    font-family: var(--codeFont);
    display: block;
    margin-top: 1em;
}

.contact form input[type=text] {
    background-color: #ddd;
    color: #777;
    display: block;
    border: none;
    padding: 1em;
    font-family: var(--codeFont);
}

#mail {
    min-width: 60%;
}

#message {
    width: 100%;
}

input[type=submit] {
    margin-top: 1em;
}

@media (max-width: 60em) {
    .contact form input[type=text] {background-color: white;}
    .link {background-color: white;}
}



/* ----------------- */
/* -----PROJECT----- */
/* ----------------- */
.projectFull {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 2em;
}

.projectSide {
    width: 45%;
    display: inline-flex;
    flex-direction: column;
}

.projectSide h1 {
    color: var(--main);
    font-family: var(--codeFont);
    text-transform: uppercase;
}

.projectSide h3 {
    font-weight: 400;
    color: var(--main);
    margin-top: 1em;
    margin-bottom: 2em;
    font-size: 1.5em;
}

.projectSide h4 {
    font-weight: bold;
    color: var(--secondary);
    font-size: 1.25em;
}

.projectSide img {
    width: 100%;
}

.projectImageFull {
    display: flex;
    justify-content: center;
}

.projectImageFull img {
    width: 80%;
}

@media (max-width: 60em) {
    .projectFull {
        display: flex;
    }

    .projectSide {
        width: auto;
    }
}



/* ---------------- */
/* -----FOOTER----- */
/* ---------------- */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    margin: 2em 0 .5em 0;
}

footer h2 {
    text-align: center;
}

#footerSocials {
    display: flex;
    justify-content: space-evenly;
    width: 20em;
}

#footerSocials a img {
    width: 2em;
    height: 2em;
    transition: all .2s;
}

#footerSocials img:hover {
    transform: scale(1.1);
}

footer p:last-of-type {
    color: var(--secondary);
    font-family: var(--codeFont);
    font-size: .75em;
}

footer .button {
    background-color: #2AAAE2;
    border: 2px solid var(--main);
    color: #fff;
    padding: .5em 1em;
    font-family: var(--codeFont);
    text-transform: uppercase;
    display: inline-block;
    font-size: 1em;
}