@charset "UTF-8";

html {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

p {
    opacity: 0;
    animation: fadeIn 2s forwards; 
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1; 
    }
}

header {
    position: sticky;
    top: 0;
    border-bottom-style: solid;
    border-color: #783AA9;
    background-color: #ffffff;
    margin-bottom: 2rem;
    z-index: 1000;
}

footer {
    border-top-style: solid;
    border-bottom-style: solid;
    border-color: #783AA9;
    background-color: #ffffff;
    padding-top: 1rem;
    margin-top: 2rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

footer p {
    font-size: 1.2rem;
}

body {
    background-color: white;
}

#about_me {
    justify-self: center;
    align-self: center;
    margin: 0;
    padding: 0;
    clear: both;
    text-align: left;
}

.casestudies {
    display: grid;
    justify-content: center;
    align-items: start;
    grid-template-columns: 40% 40%;
    grid-template-rows: auto;
    column-gap: 2rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    margin-left: 0;
    margin-right: 0;
}

.casestudies div {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    text-align: center;
}

.casestudies p {
    text-align: center;
}

.casestudies img {
    display: block;
    border-style: solid;
    border-color: #783AA9;
    border-width: 0.15rem;
    margin-bottom: 1rem;
}

.casestudies a img:hover {
    box-shadow: 0px 0px 15px #0000009b;
}

.container {
    display: grid;
    justify-items: center;
    align-items: center; 
    max-width: 85%;
    margin: 0 auto;
    grid-template-columns: 2fr 1fr;
    column-gap: 5rem;
}

.poster {
    display: grid;
    justify-self: center;
    align-self: center;
    justify-items: center;
    align-items: center; 
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    width: 80%;
    row-gap: 2rem;
    margin: 0 auto;
    margin-bottom: 2rem;
}

.poster img {
    max-width: 100%; 
    height: auto; 
    display: block; 
    max-height: 700px
}

#text {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

#media {
    display: flex;
    justify-self: center;
    align-self: center;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 350px;
    height: auto;
}

.subtitle {
    display: grid;
    justify-content: center;
    align-items: center;
    grid-template-columns: 40% 40%;
}

a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #170b8a;
    padding: 0;
    margin: 0;
}

a:hover {
    text-decoration: none;
    font-size: 1.2rem;
    opacity: 0.5;
    padding: 0;
    margin: 0;
}

a.logo:hover {
    opacity: 1;
}

nav {
    display: grid;
    background-color: #ffffff;
    align-items: center; 
    justify-items: center;
    grid-template-columns: 70% 15% 15%;
    column-gap: 0rem;
    padding: 0rem;
    margin: 0rem;
}

div {
    margin: 1rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    clear: both;
}

p {
    font-size: 1rem;
}

header h1 {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    nav {
        display: grid;
        background-color: #ffffff;
        align-items: center; 
        justify-items: center;
        grid-template-columns: 40% 30% 30%;
        column-gap: 0rem;
        padding: 0rem;
        margin: 0rem;
    }

    .container {
        display: grid;
        justify-items: center;
        align-items: flex-start; 
        grid-template-columns: 100%;
        grid-template-rows: auto auto;
        row-gap: 4rem;
    }

    #text {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        width: auto;
        height: auto;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    #media {
        display: flex;
        justify-self: center;
        align-self: flex-start;
        width: auto;
        height: auto;
        margin-top: 0;
        padding-top: 0;
        max-width: 360px;
    }

    #about_me {
        margin: 0;
        padding: 0;
        clear: both;
        text-align: center;
    }

    .casestudies {
        display: grid;
        justify-content: center;
        align-items: start;
        grid-template-columns: 100%;
        grid-template-rows: auto auto;
        column-gap: 0;
        row-gap: 4rem;
        margin-top: 3rem;
        margin-bottom: 3rem;
        margin-left: 0;
        margin-right: 0;
    }

    .subtitle {
        grid-template-columns: 80%;
        grid-template-rows: 1fr 1fr;
        row-gap: 1rem;
    }

    footer p {
        margin-left: 0.3rem;
        margin-right: 0.3rem;
    }

}