body {
    background: #F4F3F8;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}


@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

@media (max-width: 768px) {
    #navbar {
        padding: 4px 24px;
        display: block;
    }
}

h1.logo {
    float: left;
    display: block;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}

h1.logo a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
}

ul.nav {
    float: right;
    display: block;
    font-size: 18px;
    line-height: 1.6;
    list-style: none;
    margin: 0;
}

ul.nav li {
    display: inline;
}

a#work {
    margin-right: 40px;
}

@media (max-width: 768px) {
    a#work {
        margin-right: 24px;
    }
}

ul.nav li a {
    text-decoration: none;
    color: #EFF2FF;
    font-weight: 300;
}

ul.nav li a:hover {
    text-decoration: none;
    color: #fff;
    font-weight: 300;
}

#title {
    max-width: 820px;
    margin:auto;
    padding: 40px 24px 8px 24px;
}

@media (min-width: 768px) {
    #title {
        padding: 80px 40px 0px 40px;
    }
}

/*MESSAGE*/

#message {
    width: 100%;
    margin: 0 auto 48px auto;
    background: #ffffff;
    /*padding: 80px 40px 40px 40px;*/
}

#message-content {
    max-width: 800px;
    overflow: hidden;
    margin: auto;
    display: flex;
    align-items: top;
    padding: 80px 0 40px 0;
}

#image img {
    display: block;
    margin-left: 0;
    margin-right: 40px;
    margin-top: 16px;
    width: 120px;
    overflow: hidden;
    object-fit: cover;
    border-radius: 100%;
}

#text {
    width: 100%;
}

#message h2 {
    color: #121212;
    text-align: left;
    font-weight: 500;
    font-size: 28px;
    margin: auto;
}

#message h3 {
    color: #121212;
    text-align: left;
    font-weight: 500;
    font-size: 18px;
    margin: auto;
}

#message p {
    text-align: left;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.8 em;
    margin: 8px 0 16px 0;
    color: #121212;
}

#message a {
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    color: #41329c;
} 

#message a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

@media (max-width: 880px) {
    #message-content {
        margin: 0 40px;
    }
}

@media (max-width: 770px) {
    #message-content {
        margin: 0 24px;
    }
}

@media (max-width: 670px) {
    #message {
        padding: 40px 0px 16px 0px;
        display: block;
        width: 100%;
        justify-content: center;
        margin: 0 auto 24px auto;
    }

    #message-content {
        display: block;
        padding: 24px 0;
    }

    #text {
        width: auto;
        padding: 0;
    }

    #image img {
        width: 80px;
        margin-bottom: 8px;
    }

    #message h2 {
        font-size: 24px;
    }

    #message h3 {
        font-size: 16px;
    }

    #message p {
        font-size: 16px;
    }

    #message a {
        font-size: 16px;
    } 
    #ext-link {
        display: none;
    }
}


/*CASE STUDIES*/

#work-samples {
    max-width: 900px;
    margin: auto;
    padding: 24px 24px;
}

#case-study {
    max-width: 1088px;
    max-height: 480px;
    margin: 0 auto 16px auto;
    background-color: #fff;
    border-radius: 12px;
    /*box-shadow: 6px 6px 57px rgba(0, 0, 0, 0.07);*/
    overflow: hidden;
    display: flex;
    align-items: center;
} 

#case-study-image {
    width: 100%;
    height: 600px;
    background: #EBEAF5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#case-study img {
    width: 85%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 6px 6px 57px rgba(0, 0, 0, 0.07);
}

#case-study-text {
    padding: 0 64px;
    width: 70%;
}

#case-study-text h2 {
    font-size: 24px;
    margin: 0 0 8px 0;
    font-weight: 400;
}

#case-study-text p {
    text-align: left;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    letter-spacing: 0.8 em;
    color: #121212;
    margin: 0 0 24px 0;
}

#case-study-text button {
    background-color: #41329c;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 24px;
    color: #fff;
    border-style: none;
    transition: background-color ease 0.15s;
}

#case-study-text button:hover {
    background-color: #5741e1;
    cursor: pointer;
}

@media (max-width: 1140px) {
    #case-study {
        margin: 0 40px 16px 40px;
    }
}

@media (max-width: 770px) {
    #case-study {
        margin: 0 24px 16px 24px;
        display: block;
        max-height: 880px;
    } 
    #case-study-text {
        padding: 32px;
        width: auto;
    }
    #case-study-image {
        width: 100%;
        height: auto;
        background: linear-gradient(-45deg, #EF7E4655, #6B53FD55);
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #case-study img {
        width: 80%;
        margin: 24px;
    }
}

@media (max-width: 570px) {
    #case-study img {
        width: 90%;
    }
}


/*@media (max-width: 670px) {
    #case-study {
        margin: 0 24px 32px 24px;
    }
    #case-study-image {
        display: none;
    }
    #case-study img {
        display: none;
    }
    #case-study-text {
        width: 100%;
        padding: 24px;
    }
    #case-study-text h2 {
        font-size: 20px;
    }
    #case-study-text p {
        font-size: 16px;
    }
    #case-study-text button {
        padding: 8px 16px;
        font-size: 16px;
        border-radius: 24px;
    }
}*/

/*INFO*/

#info {
    width: 100%;
    margin: 48px auto 0 auto;
    background: #ffffff99;
    display: flex;
    align-items: center;
    justify-content: center;
}

#info-text {
    max-width: 800px;
    margin: 80px auto;
}

#info h1 {
    color: #121212;
    text-align: left;
    font-weight: 400;
    font-size: 56px;
    padding-top: 40px;
    line-height: 1.6;
    margin: auto;
}

@media (max-width: 540px) {
    #info h1 {
        font-size: 28px;
    }
}

#info h2 {
    color: #121212;
    text-align: left;
    font-weight: 500;
    font-size: 32px;
    margin: auto;
    padding-bottom: 24px;;
}

#info h3 {
    color: #121212;
    text-align: left;
    font-weight: 500;
    font-size: 18px;
    margin: auto;
}

#info p {
    text-align: left;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.8 em;
    margin: 8px 0 16px 0;
    color: #121212;
    padding-bottom: 24px;
}

#info a {
    font-weight: 300;
    font-size: 18px;
    text-decoration: none;
    color: #41329c;
} 

#info a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

@media (max-width: 670px) {
    #info {
        padding: 40px 0px 16px 0px;
        display: block;
        width: 100%;
        justify-content: center;
    }
    #info-text {
        width: auto;
        padding: 0 24px;
        margin: 24px auto;
    }

    #info h2 {
        font-size: 24px;
    }

    #info h3 {
        font-size: 16px;
    }

    #info p {
        font-size: 16px;
    }
}

/*FOOTER*/

footer {
    padding: 40px;
    border-top: 1px solid #eee;
    background-color: #fff;
}

@media (max-width: 768px) {
    footer {
        padding: 40px 24px;
    }
}


#footer-row {
    display: flex;
    max-width: 1600px;
    margin: auto;
}

#copyright {
    display: block;
    margin: 0;
    width: 50%;
}

@media (max-width: 482px) {
    #copyright {
        width: 60%;
    }
}

footer p {
    color: #121212;
    opacity: 0.8;
    margin: 0;
    line-height: 24px;
    font-size: 18px;
    cursor: default;
    font-weight: 300;
}

@media (max-width: 482px) {
    footer p {
        font-size: 16px;
    }
}

#links {
    width: 50%;
}

@media (max-width: 482px) {
    #links {
        width: 40%;
    }
}

footer ul {
    float: right;
    display: block;
    list-style: none;
    margin: 0;
}

footer li {
    display: inline;
}

footer a {
    display: inline;
    color: white;
    text-align: right;
    padding-left: 24px;
    text-decoration: none;
}

@media (max-width: 482px) {
    footer a {
        padding-left: 8px;
    }
}

footer a svg {
    fill:#42289c;
    fill-opacity: 0.8;
    height: 24px;
    width: auto;
}

@media (max-width: 482px) {
    footer a svg {
        height: 18px;
        width: auto;
    }
}