html {
    box-sizing: border-box;
}

*, ::before, ::after {
    box-sizing: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #4bcffa;
    color: #fff;
    text-shadow: none;
}

body {
    font-family: "Muli", sans-serif;
    color: #2E3A3E;
    background-color: #FAFDFF;
    margin: 0;
}

.headerBackground {
    position: absolute;
    z-index: -99;
}

header {
    position: relative;
}

.logo {
    width: 221px;
    height: 21px;
}

.logo path {
    fill: #1a1939;
}

main {
    overflow: hidden;
}

section, footer {
    display: flex;
    flex-flow: row wrap;
}

.first {
    align-items: center;
    position: relative;
}

.intro {

}

.segue {
    justify-content: space-between;
    margin-bottom: 0;
    padding-bottom: 125px;
}

.flexCell {
    display: flex;
    flex-flow: column;
}

.flexCell.text {
    display: flex;
    flex-flow: column;
    justify-content: center;
}

h1 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    line-height: 1.15em;
    letter-spacing: -0.02em;
    color: #1A1939;
    margin: 0;
}

h1.subHeader {

}

h2 {
    color: #1A1939;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    line-height: 1.5em;
    margin: 0;
}

p.copyright {
    width: 100%;
    font-size: 12px;
    font-weight: 400;
    margin-top: 20px;
    -webkit-font-smoothing: auto;
}

a {
    text-decoration: none;
    text-shadow: 0 0 30px rgba(0,0,0,0.2);
}

a:hover {
    text-decoration: underline;
}

.right a {
    color: rgba(82,204,252,1);
}

.left a {
    color: rgba(82,238,234,1);
}

.offer strong {
    color: #1A1939;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.myPhoto {

}

.backgroundWrapper {
    background-color: #F5F7FA;
    background-image: url(../img/wave.svg);
    background-repeat: no-repeat;
    background-size: contain;
}

.offer {
    width: 300px;
    height: 380px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(54,61,102,0.08);
    overflow: hidden;
}

.shapeGradient {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrade .shapeGradient {
    background: linear-gradient(117deg, rgba(130,166,249,1) 0%, rgba(19,250,254,1) 100%);
}

.refresh .shapeGradient {
    background: linear-gradient(117deg, rgba(82,204,252,1) 0%, rgba(0,255,229,1) 100%);
}

.create .shapeGradient {
    background: linear-gradient(117deg, rgba(82,238,234,1) 0%, rgba(128,255,87,1) 100%);
}

.offerShape {
    width: 70px;
    height: 70px;
    position: relative;
    bottom: 0;
    transition: 0.1s bottom ease-in-out;
    fill: #fff;
}

.upgrade .offerShape {
    width: 80px;
}

.offerTextWrap {
    height: 230px;
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    text-align: center;
    padding: 15px 20px;
}

.fullWidth {
    width: 100%;
    display: flex;
    flex-flow: row wrap;
}

.workImage {
    position: relative;
}

.footerWrapper {
    background-color: #F5F7FA;
    background-image: url(../img/footer.svg);
    background-repeat: no-repeat;
}

.contactForm {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(54,61,102,0.08);
    position: relative;
    overflow: hidden;
}

form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row wrap;
    align-content: center;
    justify-content: flex-end;
}

input[type=text], input[type=email], textarea {
    height: auto;
    font-family: "Muli", sans-serif;
    background: #fff;
    border-radius: 8px;
    border: 2px solid #ADC5C8;
}

textarea {
    resize: none;
    line-height: 1.5em;
    padding-top: 0.3em;
}

#username {
    display: none !important;
}

form button {
    display: block;
    font-family: "Muli", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background: linear-gradient(117deg, rgba(82,204,252,1) 0%, rgba(0,255,229,1) 100%);
    border-radius: 8px;
    border: none;
    cursor: pointer;
    position: relative;
    bottom: 0;
    transition: 0.1s all ease-in-out;
}

.successContainer, .failureContainer {
    width: 100%;
    height: 100%;
    background: #fff;
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    opacity: 0;
    display: flex;
    flex-flow: column;
    justify-content: center;
    transition: opacity 0.3s ease-in-out;
}

.successContainer.visible, .failureContainer.visible {
    visibility: visible;
    opacity: 1;
}

#info {
    display: block;
    text-align: center;
}

.preloader {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    background: rgba(255,255,255,.8);
}

.spinner {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(117deg, rgba(82,204,252,1) 0%, rgba(0,255,229,1) 100%);
    margin: auto;
    border-radius: 100%;
    -webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
    animation: sk-scaleout 1.0s infinite ease-in-out;
}

@-webkit-keyframes sk-scaleout {
    0% { -webkit-transform: scale(0) }
    100% {
        -webkit-transform: scale(1.0);
        opacity: 0;
    }
}

@keyframes sk-scaleout {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    } 100% {
        -webkit-transform: scale(1.0);
        transform: scale(1.0);
        opacity: 0;
    }
}

@media (prefers-color-scheme: dark) {

    body {
        color: #FAFDFF;
        /* background-color: #050200; */
        background-color: #16232C;
        /* background-color: #1A1939; */
    }

    .logo path {
        fill: #fff;
    }

    h1, h2, .offer strong {
        color : #FAFDFF;
    }

    h1 {
        text-shadow: 0 0 50px #16232C;
    }

    .offer {
        background: #191F29;
    }

    .offerShape {
        fill: #16232C;
    }

    .contactForm, .successContainer, .failureContainer {
        background: #191F29;
    }

    input[type=text], input[type=email], textarea {
        background: #191F29;
        color: #FAFDFF;
        border: 2px solid #3C405B;
    }

    ::placeholder {
        color: rgba(250, 253, 255, 0.6);
    }

    form button {
        color: #191F29;
    }

    .preloader {
        background: rgba(25, 31, 41, 0.8);
    }

    .backgroundWrapper {
        /* background-color: #F5F7FA; */
        background-color: #1F313D;
        background-image: url(../img/wave-dark.svg);
    }

    .footerWrapper {
        background-color: #1F313D;
        background-image: url(../img/footer.svg);
    }

}

/* @media screen and (min-width: 321px) {
    h1 {
        font-size: 48px;
    }
} */

@media screen and (max-width: 896px) {
    main {
        margin-top: -45px;
    }

    section, footer {
        padding: 0 15px;
        padding-left: calc(15px + env(safe-area-inset-left));
        padding-right: calc(15px + env(safe-area-inset-right));
        text-align: center;
    }

    .logo {
        width: 150px;
        height: auto;
        display: block;
        position: relative;
        margin: 15px auto;
    }

    section.first {
        height: 550px;
        max-height: 100vh;
        justify-content: center;
    }
/*
    .headerBackground {
        width: 330px;
        height: 463px;
        right: -196px;
        top: -5px;
    } */

    .headerBackground {
        width: 386px;
        height: 418px;
        right: -255px;
        top: 0;
    }

    h1 {
        font-size: 50px;
        text-align: center;
        line-height: 1.2em;
    }

    h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    p {
        font-size: 18px;
        line-height: 1.5em;
    }

    .intro {
        margin-bottom: 25px;
    }

    h1.subHeader {
        font-size: 36px;
        margin-bottom: 18px;
        line-height: 1.5em;
    }

    .fullWidth {
        justify-content: center;
    }

    .flexCell {
        flex: 1;
        margin-bottom: 25px;
    }

    .text {
        /* margin-top: 25px; */
    }

    .myPhoto {
        display: block;
        width: 280px;
        height: auto;
        margin: 0 auto;
    }

    .segue {
        justify-content: space-around;
        padding-bottom: 25px;
    }

    .portfolio {
        padding-bottom: 0;
    }

    .offer {
        width: 250px;
        height: auto;
        margin: 0 10px;
        margin-bottom: 25px;
        flex-grow: 1 1 auto;
    }

    .shapeGradient {
        height: 75px;
    }

    .offerShape {
        width: 35px;
        height: 35px;
    }

    .upgrade .offerShape {
        width: 40px;
    }

    .offer strong {
        font-size: 18px;
        line-height: 1.5em;
        margin-bottom: 16px;
    }

    .offer p {
        font-size: 16px;
        line-height: 1.5em;
    }

    .offerTextWrap {
        height: auto;
        display: flex;
        flex-flow: column;
        padding: 15px;
    }

    .workImage {
        width: 100%;
        height: auto;
    }

    .workWrap {
        margin-bottom: 40px;
    }

    .flexCell.text.left {
        padding-right: 15px;
    }

    .flexCell.text.right {
        padding-left: 15px;
    }

    .contactForm {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .footerWrapper {
        background-size: 435px 271px;
        background-position: bottom 0px right -30px;
        padding-bottom: 30px;
    }

    #email {
        margin-left: 14px;
    }

    input[type=text], input[type=email] {
        display: block;
        width: calc(50% - 7px);
        height: 40px;
    }

    input[type=text], input[type=email], textarea {
        font-size: 16px;
        padding-left: 16px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }

    textarea {
        width: 100%;
        height: 120px;
        margin: 16px 0;
    }

    form button {
        width: 140px;
        height: 60px;
        font-size: 16px;
    }
}

@media screen and (max-width: 320px){

   h1 {
       font-size: 36px;
   }
}
@media screen and (max-width: 667px) {

   .flexCell {
       width: 100%;
       flex: none;
   }

   .flexCell.image {
       margin: 10px 0;
   }

   .backgroundWrapper {
       background-image: url(../img/waveSmall.svg);
   }

   section .flexCell.text {
       order: 2;
   }

   .flexCell.text.left {
       padding-right: 0;
   }

   .flexCell.text.right {
       padding-left: 0;
   }

   #email {
       margin-left: 0;
       margin-top: 16px;
   }

   input[type=text], input[type=email] {
       display: block;
       width: 100%;
       height: 40px;
   }

   input[type=text], input[type=email], textarea {
       font-size: 16px;
       padding-left: 16px;
       -webkit-appearance: none;
       -moz-appearance: none;
       appearance: none;
   }

   textarea {
       width: 100%;
       height: 120px;
       margin: 16px 0;
   }

   form button {
       width: 100%;
       height: 60px;
       font-size: 16px;
   }

   p.copyright {
       color: #fff;
       margin-top: 0;
   }
}

@media (max-width: 667px) and (prefers-color-scheme: dark) {
    .backgroundWrapper {
        background-image: url(../img/waveSmall-dark.svg);
    }

    p.copyright {
        color: #000;
    }
}

@media screen and (min-width: 897px) {
    header, section, footer {
        width: auto;
    }

    section {
        padding: 0 30px;
        margin-bottom: 125px;
    }

    .footerWrapper {
        background-size: 435px 271px;
        background-position: bottom 0px right -80px;
        padding: 0 30px;
        padding-bottom: 60px;
    }

    .portfolio {
        margin-bottom: 0;
    }

    .first {
        min-height: 100vh;
    }

    .headerBackground {
        width: 772px;
        height: 836px;
        right: -510px;
        top: 0;
    }

    .flexCell {
        width: 50%;
    }

    .logo {
        position: absolute;
        top: 50px;
        left: 30px;
    }

    .myPhoto {
        width: 450px;
        height: auto;
    }

    section.intro .flexCell.text {
        padding-left: 40px;
    }

    h1 {
        font-size: 84px;
    }

    h1.subHeader {
        font-size: 54px;
        margin-bottom: 40px;
    }

    h2 {
        font-size: 30px;
        margin-bottom: 60px;
    }

    p {
        font-size: 20px;
    }

    .offer:hover .offerShape {
        bottom: 4px;
    }

    .offer p {
        font-size: 18px;
    }

    .offer strong {
        font-size: 20px;
    }

    .portfolio .flexCell {
        margin-bottom: 100px;
    }

    .flexCell.text.left {
        padding-right: 40px;
    }

    .flexCell.text.right {
        padding-left: 40px;
    }

    .workImage {
        width: 100%;
        height: auto;
    }

    .contactForm {
        width: 100%;
        height: auto;
        padding: 20px;
    }

    #email {
        margin-left: 18px;
    }

    input[type=text], input[type=email] {
        display: block;
        width: calc(50% - 9px);
        height: 40px;
    }

    input[type=text], input[type=email], textarea {
        font-size: 18px;
        padding-left: 18px;
    }

    textarea {
        width: 100%;
        height: 120px;
        margin: 18px 0;
    }

    form button {
        width: 140px;
        height: 50px;
        font-size: 18px;
    }

    form button:hover {
        bottom: 4px;
        box-shadow: 0 4px 12px rgba(54,61,102,0.08);
    }
}
@media screen and (min-width: 1100px) {
    header, section, footer {
        max-width: 1080px;
        margin: 0 auto;
    }

    section {
        padding: 0;
    }

    .logo {
        left: 0;
    }

    .intro {
        padding-bottom: 125px;
    }

    .headerBackground {
        width: 772px;
        height: 836px;
        right: -610px;
        top: 0;
    }

    h1 {
        font-size: 96px;
    }

    .workImage {
        width: 515px;
        height: 330px;
    }

    .flexCell.image.right {
        flex-flow: row;
        justify-content: flex-end;
    }

    .footerWrapper {
        background-size: 725px 452px;
        background-position: bottom -3px right -160px;
        padding-bottom: 60px;
    }

    .contactForm {
        width: 100%;
        height: auto;
        padding: 25px;
    }

    #email {
        margin-left: 20px;
    }

    input[type=text], input[type=email] {
        display: block;
        width: calc(50% - 10px);
        height: 50px;
    }

    input[type=text], input[type=email], textarea {
        font-size: 20px;
        padding-left: 20px;
    }

    textarea {
        width: 100%;
        height: 150px;
        margin: 20px 0;
    }

    form button {
        width: 170px;
        height: 60px;
        font-size: 20px;
    }
}
