body {
    background-color: #01101c;
    font-family: Georgia, serif;
    /* font-family: monospace; */
}

/* navbar */
.navbar {
    display: flex;
    justify-content:flex-end;
    padding: 15px 5%;
}

.navbar a{
    margin: 0px 0px;
    padding: 20px 0px;
    font-size: 25px;
    width: 200px;
    text-align: center;
    color: white;
    border-radius: 10%;
}

.navbar a:hover{
    background-color: #327ad9;
}

.navbar img{
    height:150px
}

/* personal bio and header */
.personal_container {
    display: flex;
    align-items: center;
    height: fit-content;
}

.headshot_container{
    width: 50%;
    margin-left: 40px;
    justify-content: center;
}

.headshot_image{
    height:350px;
    border-radius: 50%;
    margin: auto;
    display: flex;
}

.links_container{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.links_container i {
    margin: 10px 20px;
    font-size: 50px;
    background-image: linear-gradient(45deg, #ededed, #327ad9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
}

.links_container i:hover {
    background-image: linear-gradient(45deg, #fff9f0, #ffb94f);
    transform: scale(1.3);
}

.personal_bio{
    margin-right: 70px;
    height: fit-content;
    width: 50%;
}

.personal_bio p{
    font-size: 20px;
    color: white;
    text-align: justify;
}

.personal_bio a{
    color: #7bc9c2;
}

/* home page main content toggle functionality and layout */
/* Toggle styling */
.toggle-container {
    position: relative;
    display: inline-flex;
    background: #328ba6;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    margin: 0px 20px;
    height: 80px;
    align-items: center;
}

.toggle-option {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    z-index: 1;
    font-weight: bold;
    transition: color 0.3s;
}

.toggle-option h1{
    font-size: 2rem;
}

.slider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: #2c3369;
    border-radius: 30px;
    transition: transform 0.3s;
    z-index: 0;
}

.toggle-option.active {
    color: white;
}

.toggle-option:not(.active) {
    color: #0b0326;
}

/* Content div styling */
.content {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    position: relative; /* remove absolute */
    width: 100%; /* full width of container */
    height: auto;
    margin: 0 auto;
    box-sizing: border-box;
}

.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    pointer-events: none;
    position: relative;
    transition: opacity 0.4s ease, visibility 0.4s ease, height 0.4s ease;
}

.main_content{
    position: relative;
    width: 100%;      /* full width of its container */
    max-width: 100%;  /* prevent overflow */
    margin: 0;        /* no extra offset */
    padding: 0;       /* no extra padding */
    box-sizing: border-box; /* include padding/border in width */
    display: block;   /* default */
}

/* projects on home page */
.projects_container {
    margin-top: 30px;
    padding: 0px;
}

.projects_container h1{
    font-size: 40px;
}

.project_row{
    width: 100%;
    height: fit-content;
    display: flex;
    justify-content: space-evenly;
}

.project_row h1{
    font-size: 30px;
    justify-content: space-evenly;
    flex-direction: column;
}

.project_column{
    width: 50%;
    padding: 15px;
    height:400px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.project_box{
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.project_image_container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
}

.project_image {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    color: white;
    position: absolute;
    display: block;
}

.project_bio{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #328ba6;
    box-sizing: border-box;
    opacity: 0;
    border-radius: 10px;
    transition: opacity 0.3s ease;
}

.project_bio:hover{
    opacity: 0.95;
}

.project_bio a{
    text-decoration: none;
}

.project_description{
    height: 100%;
    width:100%;
    position: relative;
    z-index: 2;

}

.project_description h1{
    font-size: 25px;
}
.project_description p{
    margin: 30px;
    font-size: 20px;
    text-align: justify;
}

.project_description h1, .project_description p{
    color:white
}

.project_title{
    display: flex;
    justify-content: center;
    text-align: center;
}

.project_title_mobile{
    display: flex;
    justify-content: center;
    text-align: center;
    display: none;
}

.project_title_mobile h1{
    color: white
}

.project_row a{
    top: 0;
    left: 0;
    position: absolute;
    z-index: 1;
    width: 100%;
    height:100%;
}

/* work experience on home page */
.work_container{
    padding: 15px;
    color: white;
    justify-content: center;
}

.work_container a{
    text-decoration: none;
    color: white;
}

.work_row{
    height: 200px;
    width: 100%;
    display: flex;
    align-items: stretch;
    border-radius: 10px;
    background-color: #2c3369;
    margin-bottom: 20px;
    padding: 10px;
    position: relative;
    box-sizing: border-box;
}

.work_row_cover{
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* ensure it sits on top */
    background-color: #328ba6;
    pointer-events: none; /* optional: allows clicks to pass through */
    border-radius: 10px;
    }

.work_row:hover .work_row_cover{
    opacity: 0.95;
}

.company_logo_box{
    height:100%;
    aspect-ratio: 1 / 1; /* keeps box a square wrt the width */
    justify-content: center;
    align-items: center;
    flex: 0 0 auto; /* don't grow or shrink */
}

.company_logo{
    width: 100%;
    height: 100%;
    display: block;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.company_info{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    flex: 1 1 auto;
    width:100%;
    z-index: 30;
}

.company_name{
    text-align: center;
}

.company_name h1{
    font-size: 3rem;
    margin-bottom: 10px;
    margin-top: 10px;
}

.work_sub_info{
    margin-top: auto;
}

.work_sub_info h2{
    font-size: 1.4rem;
}

.role_box{
    background-color: #7d88c9;
    height:100%;
    aspect-ratio: 1 / 1; /* keeps box a square wrt the width */
    justify-content: center;
    align-items: center;
    flex: 0 0 auto; /* don't grow or shrink */
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

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

.role{
    font-size: 1.7rem;
    word-break: break-word; /* allow text to wrap */
}

.login_link_container{
    display: flex;
    justify-content: center;
}

/* login form */
.login_form{
    background-color: #2c3369;
    display: flex;
    justify-content: center;
    flex-direction:column;
    color: white;
    align-items: center;
    border-radius: 10px;
    margin: 10px;
    padding: 10px;
}

.login_form form{
    display: flex;
    flex-direction: column;
    gap: 12px;
}



/* project page */
.project_title_container{
    margin: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.project_title_container h1{
    font-size: 80px;
    color: white;
    margin-top: 0px;
    margin-bottom: 20px
}

.project_main_image_container{
    margin:20px;
    display: flex;
    justify-content: center;
}

.project_main_image_container img{
    border-radius: 10px;
    height: 375px;
}

.icon_container{
    display: flex;
    justify-content: center;
}

.project_github_container{
    margin:20px;
    display: flex;
    justify-content: center;
}

.project_github_container i {
    margin: 10px 20px;
    font-size: 60px;
    background-image: linear-gradient(45deg, #ededed, #327ad9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    width: auto;
    height: auto;
    transition: all 0.3s ease;
}

.project_github_container i:hover {
    background-image: linear-gradient(45deg, #fff9f0, #ffb94f);
    transform: scale(1.3);
}

.project_summary_container{
    margin:0px 20px;
    color: white;
    padding: 0px 30px 30px 30px;
    text-align: justify;
}

.project_summary_container p{
    margin: 10px;
    font-size: 20px;
}

.project_summary_container a{
    color: #7bc9c2;
}

/* manage blog page */
.manage_post_container{
    background-color: #2c3369;
    color: white;
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
}

textarea{
    width: 100%;
    max-width: 100%;
    height: 300px;
    resize: none;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* choose blog post page */
.blog_title_container{
    margin: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.blog_title{
    font-size: 80px;
    color: white;
    margin-top: 0px;
    margin-bottom: 20px;
    font-family: 'VT323', monospace;
}

.blog_post_list_container{
    padding:20px
}
.post_description_container{
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    /* place-items: center; */
    margin: 20px 0px 50px 0px;
    position: relative;  
    overflow: hidden; 
    column-gap: 20px;
}

.post_description_cover_image{
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    justify-self: end;
}

.post_description{
    grid-column: 2;
    width: 80%;
    height:100%;
    background-color: #2c3369;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    color: white;
    position: relative;
    justify-self: start;
}

.post_title h1,
.post_date h2,
.post_blurb p {
  margin: 0;  /* removes the built-in spacing */
}

.post_title{
    text-align: center;
}

.post_title h1{
    font-size: 3rem;
}


.post_date h2{
    font-size: 1.5rem;
}

.post_blurb p{
    font-size: 1.5rem;
}

.post_cover{
    position: absolute;
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #328ba6;
    opacity: 0;              
    transition: opacity 0.3s ease; 
    border-radius: 10px;     
    z-index: 2;              
}

.post_description_container:hover .post_cover {
    opacity: 0.95;
}

/* blog post */
.post_container{
    color: white;
    background-color: #2c3369;
    margin:20px;
    padding:20px;
    text-align: center;
    border-radius: 10px;
}

.post_title_container{
    font-size: 3rem;
}

.post_title_container h1{
    margin: 0px;
}

.post_date_container{
    font-size: 1.5rem;
    margin: 10px 0px 10px 0px;
}

.post_main_image_container{
    /* border-radius: 10px; */
    display: flex;
    justify-content: center;
}


.post_main_image_container img{
    object-fit: cover;
    height: 500px;          
    display: block;
    border-radius: 10px;
}

.post_content{
    text-align: justify;
    font-size: 1.5rem;
}

.post_content img{
    display: block;
    margin: 1em auto;            /* center horizontally */
    width: auto;             
    height: 450px;
}

/* for mobile */
@media screen and (max-width: 1100px) {
    .main_container{
        padding: 0px 10px 10px 10px;
    }

    /* navbar */
    .navbar {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* personal bio */
    .personal_container{
        flex-direction: column;
    }

    .headshot_container{
        margin: 0px;
        width: auto;
    }

    .personal_bio{
        margin: 20px;
        width: 100%
    }

    .personal_bio p{
        text-align: justify;
    }

    /* toggle */
    .toggle-container{
        margin: 0px;
        width: 100%;
    }

    .toggle-option h1{
        font-size: 1rem;
    }

    /* projects on home page */
    .projects_container{
        padding: 0px;
        margin-top: 0px;
    }

    .project_row{
        flex-direction: column;
        align-items: center;
    }

    .project_column{
        width: 100%;
        height: 300px;
    }

    .project_title_mobile{
        display: block;
    }

    .project_description{
        display: none;
    }

    .project_summary_container p{
        text-align: justify;
    }

    /* work experience on home page */
    .work_row{
        vertical-align: middle;
        flex-direction: column;
        align-items: center;
        height: auto
    }

    .company_logo_box{
        width: 200px;
        height:auto
    }

 
    .company_name h1{
        font-size: 2rem;
    }

    .role_box{
        display: none;
    }

    /* projects page */
    .project_title_container{
        text-align: center;
    }

    .project_main_image_container{
        margin: 0px
    }

    .project_main_image_container img{
        width: 100%;
        height:auto;
    }

    .project_title_container h1{
        font-size: 40px
    }

    .project_summary_container{
        padding: 0px;
        margin: 20px 0px 20px 0px;
    }

    /* blog selection page */
    .blog_title{
        font-size: 60px;
    }

    .post_title h1{
        font-size: 2rem;
    }

    .post_date h2{
    font-size: 1rem;
    }

    .post_blurb p{
        font-size: 1rem;
    }

    .post_description_container {
        grid-template-columns: 1fr;   /* single column */
        row-gap: 20px;
    }

    .post_description_cover_image {
        width: 100%;
        height: auto;
        justify-self: center;
    }

    .post_description {
        grid-column: 1;
        width: 100%;
        justify-self: stretch;
    }

    /* blog post */
    .post_main_image_container img{
        height: auto;
        width: 100%          
    }

    .post_title_container{
        font-size: 1.5rem;
    }

    .post_date_container{
        font-size: 1rem
    }

    .post_content{
        font-size: 1rem;
    }

    .post_content img{
        width: 100%;
        height: auto
    }
}