*, ::before, ::after {
    /* border: 1px solid black; */
    
    box-sizing: border-box;
    padding: 0;
    margin: 0;

    
}

:root {
    /* --color-bg-1: rgb(44, 38, 70); */
    --color-bg-1: rgb(96, 88, 104);

    --color-bg-2: rgb(96, 88, 104);
    --color-bg-2-dark: rgb(116, 106, 126);
    --color-bg-margins: rgb(110, 109, 127);
    --color-bg-margins-faded: rgb(77, 76, 100);
    /* --color-4: rgb(209, 220, 235); */
    
    --color-text-header1: rgb(255, 113, 165);
    --color-text-header1-faded: rgb(167, 87, 116);
    --color-text-header2: rgb(206, 234, 233);
    --color-small: rgb(144, 158, 191);
    --placeholder-value: 1rem;

    --name-font: Garamond, serif;
}

html {
    font-size: 62.5%;

}

html, #contact {
    max-width: 1250px;
    margin: auto;
    background-color: var(--color-bg-margins);
}

/* HEADER */
header {
    display: flex;
    flex-direction: row;
    background-color: var(--color-bg-1);
    padding: 50px;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: solid var(--color-bg-margins);
}
#header1 {
    font-size: 6rem;
    color: var(--color-text-header1);
    font-family: var(--name-font);
}

#header2 {
    color: var(--color-text-header2);
    font-size: 3rem;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* NAV */
#nav-list {
    list-style-type: none;
    display: flex;
}

.nav-item > a {
    background-color: var(--color-bg-1);
    display: block;
    padding: 2rem;
    color: var(--color-small);
    font-size: 2rem;
    transition: background-color 0.3s ease-out;
    border-radius: 25px;
}

.nav-item > a:hover {
    background-color: var(--color-bg-margins-faded);
    color: var(--color-text-header2);
    /* font-size: 2.2rem; */
}

a {
    text-decoration: none;
    outline: none;
}


/* ================================= ABOUT ================================= */
#about {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: left;
    background-color: var(--color-bg-1);
    border-bottom: solid var(--color-bg-margins);
    font-size: 2rem;
    color: var(--color-text-header2);
    padding: 50px;
}

.sub-about {
    padding-bottom: 30px;
}

.sub-about > h1 {
    padding: 10px 0px;
    color: var(--color-small);
}

.sub-about > h2 {
    font-size: 2rem;
    padding-left: 40px;
}
.sub-about > p {
    max-width: 800px;
}

.sub-about > img {
    width: 30vw;
}

@keyframes about-animation {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

#about > h1, #about > h2 {
    animation: about-animation ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#flex-about {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

#flex-about > div > img {
    width: 550px;
    height: auto;
}


#projects {
    border-bottom: solid var(--color-bg-margins);
}

/* ================================= PROJECTS ================================= */
#projects > h2 {
    font-size: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-2);
    color: var(--color-text-header2);
    padding: 9rem 0 5rem 0;
}

.project-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-2);

}

.project-tile {
    padding: 3rem 0 3rem 0;
    color: var(--color-bg-1);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;   
}

.project-tile > img {
    width: auto;
    height: 400px;
    padding: 20px;
}

.project-tile > iframe, .project-tile > video { 
    padding: 20px;
    width: 400px;
    height: 300px;
}

.project-tile > div > p {
    padding: 20px 10px 20px;
    color: var(--color-text-header2);
    font-size: 1.75rem;
}


.project-description {
    padding: 2rem;
    color: var(--color-text-header2);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--color-bg-2-dark);
}

.project-description:hover {
    background-color: var(--color-bg-margins);
    transition: background-color 0.3s ease-out;
}

.project-description > h3 {
    font-size: 4rem;
    text-align: center;
}

.project-description > h4 {
    font-size: 2.5rem;
    text-align: center;
}

.project-description > p {
    font-size: 3rem;
    color: var(--color-small);
    text-align: center;
}

/* ================================= PROJECT CARDS ================================= */
#project-list {
    background-color: var(--color-bg-1);
    border-bottom: solid var(--color-bg-margins);
}
.project-list {
    background-color: var(--color-bg-1);


    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    
    padding: 10px;
}

@keyframes project-card-description-animation {

}

.project-card {
    font-size: 3rem;

    width: 350px;
    height: 200px;
    position: relative;
    text-align: center;
    margin: 20px;

}

.project-card > a:hover > div > .card-image {
    
    transition:
        opacity 0.3s,
        background-image 0.3s,
        background-color 0.3s,
        /* width 0.3s,
        height 0.3s; */
        /* border 0.3s; */
        ;

    opacity: 0.1;    
    background-image: none;
    background-color: rgba(255, 113, 165, 1);
    /* width: 98%;
    height: 98%;     */
    /* border: solid var(--color-text-header1); */
}

.project-card > a:hover > .card-image-support {
    border: solid var(--color-text-header1);
    border-radius: 30px;
    width: 98%;
    height: 98%;
    background-color: rgba(255, 113, 165, .4);
}

.project-card > a:hover > .card-description {
    opacity: 1;
}

.centered {
    user-select: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.card-description {
    color: var(--color-text-header2);
    opacity: 0;
    width: 100%;
}

.card-image-support {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    border: solid var(--color-small);
}

.card-image {
    transition:
        opacity 0.3s,
        background-image 0.3s,
        background-color 0.3s,
        width 0.3s,
        height 0.3s;
        
    opacity: 1;
    height: 100%;
    width: 100%;
    
    border-radius: 30px;
    /* border: solid var(--color-small); */
}

/* ================================= PROJECT PAGE =================================*/
.project-page {
    background-color: var(--color-bg-1);
    border-bottom: solid var(--color-bg-margins);
    font-size: 3rem;
    color: var(--color-text-header2);
}

.title-visual > iframe {
    height: 500px;
    width: 800px;
    border-radius: 30px;
    border: solid var(--color-small);

}

.title-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.title-summary {
    display: flex;
    flex-direction: row;
    justify-content: center;    
    flex-wrap: wrap;
    font-size: 1.8rem;
    padding: 20px;
}

.p1, .p2, .p3 {
    padding: 8px 15px 8px 15px;
    margin-left: 3px;
}

.p1 {
    background-color: purple;
}

.p2 {
    background-color: blueviolet;
}

.p3 {
    background-color: rebeccapurple;
}

.title-block {
    max-width: 500px;
    margin: 20px;
}

.mini-break {
    border-top: solid var(--color-bg-2-dark);
    margin: 20px;
}

.header3-1 {
    opacity: 60%;
    font-size: 3rem;
    color: var(--color-text-header2);
}

.header3-2 {
    opacity: 60%;
    font-size: 3rem;
    color: var(--color-text-header2);
    text-align: center;
    width: 100%;
    padding: 20px;
}

.project-details {
    display: flex;
    flex-direction: column;
    /* flex-wrap: wrap; */
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.column {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-detail, .text-block {
    /* padding: 10px;
    max-width: 500px; */
    height: 252px;
    max-width: 448px;
    margin: 10px 20px;
}

.text {
    font-size: 1.8rem;
    padding: 10px;
}

.text > a { 
    color: var(--color-text-header2);
    text-align: center;
    text-decoration: underline;
}

.text>a:hover{ 
    color: var(--color-text-header1);
}

.text1 {
    padding: 10px 100px 10px 100px;
    font-size: 1.8rem;
    text-align: center;
}



/* ================================= CONTACT ================================= */
#contact {
    background-color: var(--color-bg-1);
    font-size: 4rem;
    /* padding: 3rem; */
    display:  flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100vw;
    /* height: 15vh; */
    flex-wrap: nowrap;
    padding: 10px 50px 10px 50px;
}

#contact > #header4 {
    font-size: 1.75rem;
    padding: 20px;
    color: var(--color-small);
}

#contact > #header4 > a {
    color: var(--color-small);
}
#contact > #header4 > a:hover {
    color: var(--color-text-header2);
}

#contact > #header4 > :first-of-type{
    color: var(--color-text-header1);
    font-family: var(--name-font);
}

#contact > #header4 > :first-of-type:hover {
    color: var(--color-text-header1-faded);
}

.contact-info {
    flex: 1;
    display: flex;
    /* justify-content: center; */
}

#contact>a, .contact-tile>a {
    color: var(--color-small);
    transition: color 0.2s ease-out;
}

#contact>a:hover, .contact-tile>a:hover {
    color: var(--color-text-header2);
    border-radius: 25px;
}

#contact > a {
    font-size: 2rem;
}

.contact-tile:first {
    padding-left: 0;
}

.icons {
    display: flex;
    flex-wrap: nowrap;
    justify-content: right;
    align-items: flex-end;
}

.contact-tile > a {
    padding: 0 1rem;
    margin: 0 1rem;
}

i {
    font-size: 5rem;
}