@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');


:root {
    --base-colour: #f1dca7;
    --text-colour: #b58463;
    --text2-colour: #b58463;
    --primary-colour: #b58463;
    --secondary-colour: #997b66;
    --tertiary-colour: #5d6344;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: Cormorant, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-colour);
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    padding: none;
    background-color: var(--base-colour);
}

h1, h2, h3 {
    font-family: Merriweather, Cormorant, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    position: fixed;
    margin: 0em auto;
    width: 100%;
    background-color: var(--tertiary-colour);
    padding: min(25px, 100%);
    padding-bottom: min(18px, 100%);
    border-radius: 0em;
    border-bottom: 0px solid var(--secondary-colour);
}

nav {
    margin: -1em auto -1em auto;
    width: auto;;
}

nav ul {
    display: flex;
    align-items: center;
    list-style-type: none;
    gap: 3em;
}

nav li:first-child {
    margin-right: auto;
    font-family: Merriweather, Cormorant;
    font-weight: bold;
    font-size: large;
}
nav a {
    text-decoration: none;
    color: var(--text2-colour);
    font-size: large;
}

nav a:hover {
    text-decoration: underline;
}

.flex-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 100px;
    padding-bottom: 40px;
    gap: 100px;
}


.text-container {
    flex: 0 1 500px;
}

h1 {
    font-size: 3rem;
}

.text-container p {
    margin: .75em 0 1em 0;
    font-size: 20px;
}


.img-with-text img {
    border-radius: .5em;
    max-width: min(100, 100%);
    border-radius: 10px;
    object-fit: cover;
    object-position: bottom;
    align-content: center;
    justify-content: center;
    transition: 250ms ease;
}

.img-with-text img:hover {
    transform: scale(1.01);
}

.img-with-text p {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: wrap;
    width: 450px;
    color: var(--text-colour);
    font-weight: 600;
}

.img-with-text a {
    color: var(--text-colour);
    text-decoration: none;
}

.img-with-text a:hover {
    text-decoration: underline;
    font-weight: bold;
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: var(--text-colour);
    background-color: var(--tertiary-colour);
    padding: 0.75em 1.25em;
    border-radius: 0.5em;
    font-weight: 600;
    transition: 250ms ease;
}

.cta-button:hover {
    color: var(--text-colour);
    background-color: var(--secondary-colour);
    padding: 0.75em 1.25em;
    border-radius: 0em;
    font-weight: 600;
    transform: scale(1.01);
}

hr {
    margin-left: 23%;
    margin-right: 23%;
    display: flex;
    align-items: center;
    border-color: var(--tertiary-colour);
    border-bottom: var(--tertiary-colour);
}

.text-container2 {
    display: flex;
    flex: 0 1 35em;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 20px;
}

.flex-container2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    align-content: center;
    padding: 10px;
    gap: 35px;
;
}

.project {
    width: 200px;
    height: 330px;
    font-size: medium;
    transition: 250ms ease;
}

.project img {
    max-width: min(100, 100%);
    border-radius: 5px;
    object-fit: cover;
    object-position: bottom;
}

.project h3 {
    text-decoration: underline;
    padding-bottom: 3px;
}

.project a {
    text-decoration: none;
    color: var(--text-colour);
}

.project a:hover {
    text-decoration: underline;
}

.project p {
    padding-top: 5px;
}

.credits {
    display: inline-block;
    text-decoration: underline;
}
.project:hover {
    transform: scale(1.01)
}

.contact-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:180px;
}

.contact-left {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
}

.contact-left textarea {
    height: 140px;
    padding-top: 15px;
    padding-left: 10px;
}

.contact-inputs {
    border: 1px solid;
    width: 400px;
    height: 50px;
    border-radius: 5px;
    padding-left: 10px;
}

.contact-inputs:focus {
    border: 2px solid var(--primary-colour);
}
.contact-inputs::placeholder {
    color: var(--text-colour);
}

.contact-left button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: var(--text-colour);
    cursor: pointer;

}

footer {
    padding-bottom: 1.5em;
    padding-top: 2em;
    text-align: center;
}

footer a {
    margin: 0 1em;
    text-decoration: none;
    color: var(--text-colour);
}

footer a:hover {
    text-decoration: underline;
}

@media(max-width: 988px) {
    header {
        text-align: center;
    }

    .text-container {
        padding-top: 0em;
    }

    .contact-inputs {
        width: 80vw;
    }
}

@media(max-width: 640px) {
    nav li {
        display: none;
    }

    nav li:first-child,
    nav li:last-child {
        display: block;
    }

    header {
        margin-top: 0em;
    }

    .cta-button {
        margin-top: .5em;
        width: 100%;
    }

    .flex-container2 {
        width: 100%;
        gap: 5px;
        justify-content: center;
        align-content: center;
        align-items: center;
        flex-shrink: 1;
    }
}
