* 
{box-sizing: border-box;
margin: 0;
padding: 0;}

html
{background-color: white}

body 
{color: black;
background-color: white;
width: 100%;
min-height: 100%; 
overflow-x: hidden;}

/* Images */

img 
{max-width: 100%;
height: auto;
object-fit: contain;
display: block;}

.center-image
{display: block;
width: 100%;
max-width: 100%;
height: auto;
margin: 0 auto;
transition: transform 0.4s ease, filter 0.4s ease;}

.image-hover {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;}

.image-hover-title {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    color: black;
    font-family: 'Times New Roman', Times, serif;
    font-size: 28px;
    font-weight: normal;
    line-height: 1.1;
    text-align: center;

    width: 90%;

    opacity: 0;
    transition: opacity 0.6s ease;

    pointer-events: none;
    z-index: 2;
}

.image-hover:hover .image-hover-title {
    opacity: 1;
}



/* Typography */

h1,h2,h3,h4,h5,h6,p,footer,
p 
{font-family: "Google Sans Flex";}

h1 
{font-size: 75px;}

h2 
{font-size: 17px;
font-weight: 350;
font-family: "Google Sans Flex";}

h3 
{font-size: 17px;
font-weight: bold;}

h4
{font-size: 17px;
font-weight: 600;
text-decoration: none;
color: inherit;
font-family: "Almarai";}

h5 
{font-size: 25px;}

h6 
{font-size: 10px;
font-weight: lighter;}

p 
{font-size: 12px;
font-weight: 150;}

footer 
{font-size: 12px;
font-weight: normal;
font-family: "Castoro Titling"; }

.Title
{flex-direction: row;
padding: 10.93vw 0 0vw 0;
font-family: 'Almarai', sans-serif;}

.hr-title
{width: 20%;
padding-top: 0vw;
margin-left: 62.5%;}

.hr-title h4
{display: flex;
justify-content: space-between;
width: 60%;}

hr
{width: 100%;
margin: 20px 0 20px 0;}

.title-descrption
{text-align: left;
padding: 0.55vw 0% 0.55vw 0%;}

.description-Link
{text-decoration: none;
color: inherit;
padding: 0px 0;}

.logo-links
{
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.logo-links a
{
    display: block;
}

.logo-links img
{
    width: 60px;
    height: 60px;
    object-fit: contain;}
/* Navigation */

.nav 
{display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
width: 100%;
padding: 0 30px;
margin-top: 30px;}


.nav-right 
{display: flex;
align-items: center;
gap: 20px;}

.Emmanuel-Mason-Link,
.About-Me-Link,
.Work-Link,
.Discourse-Link
{font-weight: bold;
color: black;
text-decoration: none;
transition: opacity 0.7s ease;}

.Emmanuel-Mason-Link:hover,
.About-Me-Link:hover,
.Work-Link:hover,
.Discourse-Link:hover 
{opacity: 0.7;
color: rgba(0, 0, 0, 0.7);}

.Emmanuel-Mason-Link:visited,
.About-Me-Link:visited,
.Work-Link:visited,
.Discourse-Link:visited 
{color: inherit;}


/* Education */

.education
{
    width: 80%;
    max-width: 1100px;
    margin: 23vw 9vw;
}


.education-title
{
    font-family: "Almarai";
    font-size: 40px;
    font-weight:bold;
    margin-bottom: 20px;
}


.education-item
{
    width: 130%;
    margin-bottom: 10px;

    border: 0px solid black;
    border-radius: 4px;

    overflow: hidden;

    background-color: white;
}


.education-header
{
    width: 100%;

    padding: 30px 0px;

    border: none;
    background-color: white;
    color: black;

    display: flex;
    align-items: center;
    justify-content: space-between;

    text-align: left;

    cursor: pointer;

    font-family: "Google Sans Flex";

    transition: background-color 0.3s ease;
}


.education-header:hover
{
    background-color: rgba(0, 0, 0, 0.03);
}


.education-header h3
{
    margin: 0px 0px 0px 0px;

    font-family: "Almarai";
    font-size: 57px;
    font-weight: normal;
}


.education-symbol
{
    font-family: "Google Sans Flex";
    font-size: 75px;
    font-weight: lighter;

    line-height: 1;

    margin-left: 30px;
}


/* Hidden information */

.education-details
{
    max-height: 0;

    overflow: hidden;

    padding: 0 30px;

    opacity: 0;

    transition:
        max-height 0.5s ease,
        padding 0.4s ease,
        opacity 0.3s ease;
}


.education-details p
{
    max-width: 700px;

    margin: 0 0 18px 0;

    font-family: "Google Sans Flex";
    font-size: 14px;
    font-weight: normal;

    line-height: 1.5;
}


/* Open box */

.education-item.open .education-details
{
    max-height: 500px;

    padding: 5px 30px 25px;

    opacity: 1;
}
/* Portfolio Introduction */

.portfolio-intro 
{text-align: center;
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;}

.portfolio-intro h3 
{margin-bottom: 6px;}

/* Projects */

.project 
{text-align: center; 
margin-bottom: 100px;}

.project-title 
{font-family: "Google Sans Flex";
font-size: 100px;
text-align: center;
margin-top: 00px;
margin-bottom: 15px;
animation: titleReveal linear both;
animation-timeline: view();
animation-range: entry 0% cover 53%;}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Project Images */

.project-image 
{display: block;
width: auto;
height: auto;
margin: 0 auto;}

/* Buttons */

.button
{font-family: "Google Sans Flex";
display: block;
display: flex;
cursor: pointer;
justify-content: center;
margin: 0 auto 100px;
width: 150px;
height: 30px;
font-size: 12px;
font-weight: bold;
text-align: center;
align-items: center;
text-decoration: none;
color: black;
border: 2px solid rgba(0, 0, 0, 0.75);
border-radius: 3px;
background-color: transparent;
transition:border-color 0.2s ease,background-color 0.2s ease;}

.button:hover 
{border-color: rgba(0, 0, 0, 1);
background-color: rgba(0, 0, 0, 0.04);}

.button:visited 
{color: inherit;
text-decoration: none;}

/* Other */

.Page-Two 
{display: block;
text-align: center;}

/* Footer */


footer 
{margin-top: 100vh;
margin-right: 0;
margin-bottom: 20px;
margin-left: 10px;}

/* White portfolio section */

main > div {
    color: black;
}

main > div .project-title {
    color: black;
}

main > div .button {
    color: black;
    border-color: rgba(0, 0, 0, 0.75);
}

main > div .button:hover {
    border-color: rgba(0, 0, 0, 1);
    background-color: rgba(0, 0, 0, 0.01);
}

main > div .image-hover-title {
    color: white;}

main > div .project-title {
    animation-name: titleRevealBlack;
}

@keyframes titleRevealBlack {
    from {
        opacity: 0;
        transform: translateY(6px);
        color: black;
    }

    to {
        opacity: 1;
        transform: translateY(0);
        color: black;
    }
}
main > div {
    padding-top: 1px;
    padding-bottom: 1px;
}

.slideshow {
    position: absolute;
    left: 2%;
    top: 17.8%;
    width: 50%;
    height: 700px;
}

.slideshow .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 750px;
    object-fit: contain;
    object-position: center center;
    display: none;
}

.slideshow .slide.active {
    display: block;
}
