/* Global styles */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
}

body {
    background-color: #F5F2E8;
    animation: pageIn 0.5s ease;
}

@keyframes fadeIn {
    from {opacity: 0;} /* Makes page start fully invisible */
    to {opacity: 1;} /* and end fully visible */
}

/* Nav bar */
.mobile-nav {
    display: none;
}

.mobile-nav a {
    text-decoration: none;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 0px 30px 0px 30px;
    align-items: center;
}

nav a {
    color: black;
    font-size: smaller;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: black;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 70px;
    opacity: 80%;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    color: #F5F2E8;
    text-decoration: none;
    font-size: 25px;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #f1f1f1;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

@media screen and (max-width: 1080px) {
    .mobile-nav {
        display: flex;
        justify-content: space-between;
        padding: 0px 30px 0px 30px;
        align-items: center;
    }

    .desktop-nav {
        display: none;
    }

    .fa-bars {
        color: black;
        font-size: 50px;
    }
}

/* Main styles */
p {
    font-family: Georgia, serif;
}

#logo {
    text-decoration: none;
    font-family: "UnifrakturCook", cursive;
    font-weight: 700;
}

#live-datetime {
    text-align: right;
    font-size: smaller;
    margin: 0px 30px 0px 30px;
}

.title {
    font-family: "UnifrakturCook", cursive;
    font-weight: 700;
    font-size: 4em;
    text-align: center;
    margin: 0px 0px 0px 0px;
}

.subtitle {
    font-size: smaller;
    text-align: center;
    margin: 0px 0px 5px 0px;
}

.skills {
    border-top: 1px solid black;
    display: flex;
    justify-content: space-between;
    margin: 0px 30px 0px 30px;
    border-bottom: 1px solid black;
}

.skills p {
    font-size: smaller;
    margin: 5px 0px 5px 0px;
}

.left h1{
    border-bottom: 1px solid black;
    padding-bottom: 20px;
    margin-top: 0px;
}

/* Homepage styles */
.page-content{
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid black;
}

.page-content div{
    margin-left: auto;
    margin-right: auto;
    width: 450px;
    margin: 20px 30px 20px 30px;
}

.page-content h1{
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    margin: 0px 0px 5px 0px;
}

.left p{
    padding-top: 20px;
}

#home-middle{
    border-left: 1px solid black;
    border-right: 1px solid black;
    padding-bottom: 50px;
}

#headshot{
    padding: 0px 40px 0px 40px;
}

#home-right img{
    display: block;
    width: 80px;
    margin-bottom: 30px;
}

#copied{
    display: none;
    margin-left: 5px;
}

h2, h3{
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    margin: 5px 5px 0px 5px;
}

/* Human Skills styles */
#human-skills-content{
    display: flex;
    justify-content: left;
}

#human-skills-content div{
    margin-left: auto;
    margin-right: auto;
    width: 450px;
    margin: 20px 30px 20px 30px;
}

#human-skills-content .left{
    border-right: 1px solid black;
    padding-right: 40px;
    padding-bottom: 200px;
}

#human-skills-content p, figure{
    margin-top: 0px;
}

#human-skills-right{
    display:flex !important;
    justify-content: space-evenly;
}

#human-skills-right img {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

/* AI Skills styles */
#ai-skills-intro{
    margin: 20px 30px 0px 30px;
    text-align: center;
}

#ai-skills-intro h1{
    border-bottom: 1px solid black;
    padding-bottom: 20px
}

#ai-skills-intro p{
    font-size: large;
}

#boxes{
    display: flex;
    justify-content: center;
}

.box{
    border: 1px solid black;
    margin: 20px 30px 0px 30px;
    width: 30%;
}

.box p{
    margin: 5px;
}

/* About page styles */
#about-page-content{
    display: flex;
    justify-content: left;
}

#about-page-content div{
    margin-left: auto;
    margin-right: auto;
    margin: 20px 30px 20px 30px;
}

#about-left{
    width: 500px;
    border-right: 1px solid black;
    padding-right: 40px
}

#about-left h1{
    border-bottom: 1px solid black;
    padding-bottom: 20px;
    margin-top: 0px;
}

#about-left figure{
    margin-left: 0px;
    margin-right: 0px;
}

#about-right{
    width: auto;
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
}

#about-right iframe{
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.substack-wrapper {
    display: flex !important;
    flex-direction: column;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.substack-post-embed{
    height: 450px;
}

.substack-wrapper p{
    margin-top: 0px;
}