@font-face {
    font-family: Quicksand;
    src: url("../assets/fonts/Quicksand-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: Quicksand;
    src: url("../assets/fonts/Quicksand-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: Quicksand Light;
    src: url("../assets/fonts/Quicksand-Light.ttf") format("truetype");
}

@font-face {
    font-family: Lato Light;
    src: url("../assets/fonts/Lato-Light.ttf") format("truetype");
}

* {
    color: white;
    font-family: 'Lato Light', sans-serif;
    font-weight: 300;
}

body {
    background: #f6f9fc;
    margin: 0;
    min-height: 100%;
    padding: 0;
}

header {
    z-index: 2;
}

#logoWrapper {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
}

.logoWhite {
    height: 32px;
}

.navRoot li {
    background: white;
    border: 1px solid white;
    border-radius: 4px;
    color: black;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .025em;
    line-height: 32px;
    list-style: none;
    mix-blend-mode: lighten;
    padding: 0 7px;
    position: absolute;
    text-decoration: none;
    text-transform: uppercase;
    top: 20px;
    z-index: 3;
}

#navServices:hover, #navServicesSmall:hover, #navContact:hover {
    cursor: pointer;
}

#navServicesSmall {
    right: 120px;
}

#navServices {
    display: none;
}

#navContact {
    right: 20px;
}

.textWrapper {
    padding: 0 40px;
}

#firstSection {
    min-height: 500px;
    max-height: 100vh;
}


#firstSection .background {
    width: 100%;
    min-height: 520px;
    max-height: 110vh;
    background: linear-gradient(150deg, #53f 15%, #05d5ff 70%, #a6ffcb 94%);
    position: absolute;
    top: 0;
    transform: skewY(-12deg);
    transform-origin: 0;
    z-index: 1;
}

#firstSection .textWrapper {
    color: #fff;
    height: auto;
    margin: 120px 0 0 0;
    max-width: 100%;
    position: relative;
    text-align: center;
    z-index: 2;
}

#firstSection .textWrapper h1 {
    animation: fadein 1s;
    animation-delay: 0.2s;
    animation-fill-mode: forwards;
    font-size: 32px;
    font-weight: bold;
    opacity: 0;
}

#firstSection .textWrapper p {
    animation: fadein 1s;
    animation-delay: 0.8s;
    animation-fill-mode: forwards;
    font-size: 22px;
    line-height: 45px;
    opacity: 0;
}

#firstSection .imgWrapper {
    display: none;
}

.contentSection {
    height: 90vh;
    position: relative;
    top: 100px;
}

.grid2c {
    display: none;
}

.card {
    border-radius: 8px;
    box-shadow: 0 13px 27px -5px rgba(50,50,93,.25),
                0 8px 16px -8px rgba(0,0,0,.3),
                0 -6px 16px -6px rgba(0,0,0,.025);
    color: dimgray;
    display: flex;
    font-family: 'Quicksand', sans-serif;
    margin: 20px;
    padding: 10px;
    text-align: center;
}

.card div {
    width: 100%;
}

.imageCard {
    width: 100px;
}

.card h2 {
    color: dimgray;
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
    font-weight: bold;
}

.cardText {
    color: dimgray;
    font-family: 'Quicksand', sans-serif;
    font-size: 16px;
}

#contactFirstSection {
    align-self: baseline
}

.contactTitle {
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.contactElement {
    text-align: center;
    padding: 0 20px;
}

.contactText {
    font-size: 22px;
}

.mailIcon {
    height: 22px;
    vertical-align: text-bottom;
}

.contactEmail {
    font-size: 22px;
    font-weight: bold;
    line-height: 30px;
}

form {
    background-color: #3352ff;
    border-radius: 4px;
    padding: 9vw;
}

.formField {
    border: none;
    border-radius: 4px;
    color: #4a4848;
    font-size: 16px;
    font-weight: bold;
    height: 40px;
    margin: 10px 0;
    outline: none;
    padding: 10px 5px;
    width: 80vw;
}

button.formField {
    background-color: #FFEB3B;
    color: #3352fe;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    height: 60px;
    padding: 0;
    text-transform: uppercase;
    width: calc(80vw + 10px);
}

@media (min-width: 600px) {

}

@media (min-width: 800px) {
    #firstSection .textWrapper {
        height: auto;
        margin: 196px 0 0 54px;
        max-width: 100%;
        text-align: left;
    }

    #firstSection .imgWrapper {
        animation: up 1s;
        animation-delay: 0.6s;
        animation-fill-mode: forwards;
        display: inline;
        opacity: 0;
        padding: 8px 38px;
        position: absolute;
        right: 100px;
        top: 350px;
        transform: translateY(100px) rotate(-12deg);
        z-index: 2;
    }

    #firstSection .imgWrapper img {
        width: 450px;
        height: auto;
    }
}

@media (min-width: 1024px) {

    #logoWrapper {
        top: 40px;
        left: 40px;
    }

    .logoWhite {
        height: 40px;
    }

    .navRoot li {
        font-size: 16px;
        line-height: 40px;
        padding: 0 14px;
        top: 40px;
    }

    #navServices {
        display: list-item;
        right: 170px;
    }

    #navServicesSmall {
        display: none;
    }

    #navContact {
        right: 40px;
    }

    #firstSection {
        height: 700px;
    }

    #firstSection .background {
        height: 750px;
    }

    #firstSection .textWrapper h1 {
        font-size: 40px;
    }

    #firstSection .textWrapper p {
        font-size: 29px;
        max-width: 50%;
    }

    #firstSection .imgWrapper img {
        width: 500px; /* FIXME: change to 50% maybe*/
    }

    .contentSection {
        height: 500px;
        top: 0;
    }

    .card {
        display: none;
    }

    .grid2c {
        align-items: center;
        display: grid;
        justify-items: center;
        grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    }

    .textWrapper {
        padding: 0 60px;
    }

    #contact .contactSection {
        align-items: center;
        display: grid;
        justify-items: center;
        grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
        margin-top: 50px;
    }

    .contactTitle {
        font-size: 42px;
    }

    .contactElement {
        padding-left: 100px;
        text-align: start;
    }

    .contactText {
        font-size: 30px;
    }

    .mailIcon {
        height: 30px;
    }

    .contactEmail {
        font-size: 30px;
    }

    form {
        padding: 40px;
    }

    .formField {
        padding: 10px;
        width: 300px;
    }

    button.formField {
        width: 320px;
    }
}

@keyframes up {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(-100px);
    }
}

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

.imageSection {
    height: 300px;
}

#secondSection .imgWrapper .imgBackground {
    background: #d7eae8;
    border: 1px solid transparent;
    border-radius: 2%;
    max-height: 300px;
    padding: 10px;
}

#secondSection .imgWrapper img {
    transform: rotate(-349deg);
}

.textContent {
    color: dimgray;
    font-family: 'Quicksand', sans-serif;
    font-size: 20px;
}

h2.textContent {
    font-size: 40px;
    font-weight: bold;
}

#contact {
    background: linear-gradient(150deg, #3252ff 15%, #53d9f5 70%, #a6fff5 94%);
    height: 510px;
    padding: 50px 0;
    position: relative;
}

#contact .textWrapper {
    color: white;
    text-align: center;
}

#contact .textWrapper h2 {
    color: white;
}

#contact .textWrapper p {
    font-size: 24px;
    font-weight: bold;
}

#contact .textWrapper p::selection {
    color: yellow;
}

textarea.formField {
    height: 120px;
    resize: none;
}

button:disabled {
    background-color: #fff381;
    cursor: auto;
}

.notification {
    border-radius: 5px;
    font-size: 20px;
}