@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap');




body, html {
    margin: 0;
    padding: 0;
    font-family: 'Libre Franklin', serif; /* Applying the font to the whole page */
    font-size: 12px;
    /*background-color: rgba(220,220,220,.5);*/
    scroll-behavior: smooth;
}

.section-heading{
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 100;
    border-bottom: 1px solid black;
    padding-bottom: 20px;
}

#info {
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto; /* Center the div */
    max-width: 1200px; /* Maximum width */
    margin-bottom: 50px;
}

#info h2{
    font-size: 48px;
    font-weight: 100;
}

#professional-info{
    margin-top: 0px;
}

#portfolio {
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto; /* Center the div */
    max-width: 1200px; /* Maximum width */
}

#portfolio h2{
    margin-top: 0px;    
    font-weight: 600;
}

.project {
    padding-bottom: 20px;
    border-bottom: 1px solid rgb(0,0,0);
    margin-bottom: 20px; /* Space between projects */
}

.project-info,
.project-description,
.carousel {
    margin-bottom: 15px; /* Space between elements for mobile view */
}

.project-info p{
    margin: 5px;
}

.project h2 {
    font-size: 24px; /* Adjust as necessary */
    margin-bottom: 15px;
}

.carousel {
    position: relative;
    overflow: hidden; /* Hide the overflowed parts of the images */
}

.carousel-item {
    width: 100%; /* Full width of the carousel */
    display: none; /* Hide all initially */
    height: auto; /* Maintain aspect ratio */
}

.carousel-item.active {
    display: block; /* Show the active item */
}

.carousel-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}

/* Mobile Styles - Default */
/* Elements stack vertically on mobile */
.project {
    display: flex;
    flex-direction: column;
}

.carousel {
    order: 2;
    height: auto; /* Adjust height as needed */
}

.project-description {
    order: 3;
}

.project-info {
    order: 1;
}

#contextPanel {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    padding: 10px;
    display: none;
}

#ganttChartContainer {
    width: 100%;
    /*height: 400px;*/
    position: relative;
    padding-right: 50px;
}

/* Desktop Styles */
@media (min-width: 768px) {

    .section-heading{
        padding-bottom: 20px;
        margin-left: 25px;
    }


    .project {
        margin-left: 25px;
        display: flex;
        align-items: flex-start; /* Align items to the top of the flex container */
        justify-content: space-between; /* Distribute space between elements */
        flex-wrap: nowrap; /* Prevent wrapping */
        flex-direction: row;
    }

    .project-info {
        width: 20%; /* Adjust percentage as necessary */
        margin-right: 25px;
    }

    .project-description {
        width: 30%; /* Adjust percentage as necessary */
        padding-left: 12px;
        justify-content: flex-end;
    }

    .carousel {
        width: 50%; /* Adjust percentage as necessary */
        position: relative;
        overflow: hidden;
        height: auto; /* Adjust height as needed */
        padding-left: 25px;
    }

    /* Remove the bottom margin in desktop view */
    .project-info,
    .project-description,
    .carousel {
        margin-bottom: 0;
    }

    #info{
        padding-left: 50px;
    }

    .project-info{
        order: 1;
    }

    .project-description{
        order: 2;
    }

    .carousel{
        order: 3;
    }
}
