body {
    margin: 0px;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 4px;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    box-sizing: border-box;
}

.banner {
    min-height: unset;
    position: sticky;
    top: 0px;
    background: rgba(255, 255, 255);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 999;
}

.hello {
    font-size: calc(6.25rem - 20px);
    font-weight: bold;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    padding: 0;
    width: 0;
    animation: typewriter 0s steps(30, end) forwards;
    flex-shrink: 1;
    transition: none;
    text-align: left;
    line-height: 1;
    box-sizing: border-box;
    padding-left: 0;
    letter-spacing: 0;
    text-indent: 0px;
    z-index: 1000;
}

.hello svg {
    padding-top: 8px;
    padding-bottom: 8px;
    display: block;
    max-height: 100%; /* Ensures it shrinks */
}

.hello.shrunk {
    font-size: calc(4rem - 11.6px);
    text-indent: 0px;
}

.hello.shrunk:hover svg {
    fill: grey; /* Change the fill color of the SVG to grey */
    transition: fill 0s ease; /* Smooth transition for the color change */
}

@keyframes typewriter {
    to {
        width: 15ch;
    }
}

.profile-photo {
    margin-top: 8px;
    width: calc(6.25rem - 22px);
    height: calc(6.25rem - 22px);
    background-color: #ccc;
    border-radius: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0s ease-in, visibility 0s linear, width 0s ease, height 0s ease;
    flex-shrink: 0;
    z-index: 998;
}

.profile-photo.shrunk {
    margin-top: 10px;
    width: 0px;
    height: 0px;
}

.visible {
    opacity: 1;
    visibility: visible;
}

.accordion {
    margin: 5px 0 0 0;
    padding: 0;
    font-size: 1rem;
    font-weight: normal;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease-in, visibility 0s linear 0s;
    box-sizing: border-box;
    padding-left: 0;
}

.accordion.visible {
    opacity: 1;
    visibility: visible;
}

.accordion-header {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
    padding-bottom: 15px;
    text-align: left;
    line-height: 1;
    box-sizing: border-box;
    padding-left: 0;
    cursor: pointer;
    letter-spacing: 0;
    transform: translateX(-2px);
    transition: color 0s ease;
}

.accordion-header:hover {
    color: grey; /* Change the text color to grey on hover */
    transition: color 0s ease; /* Smooth transition for the color change */
}

.accordion-header.hidden {
    height: 0;
    margin: 0;
    padding: 0;
    visibility: hidden;
    overflow: hidden;
}

.accordion-content {
    display: none;
    margin: 0;
    padding: 0px;
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: left;
    box-sizing: border-box;
}

.accordion-content.open {
    display: block;
}

.project-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* For Firefox */
    flex-wrap: nowrap; /* Prevents rearranging */
}

.project-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    margin-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.project-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
    scroll-snap-align: start;
}

.project-box {
    padding: 0;
    box-sizing: border-box;
    border: 0px solid #ddd;
    background-color: #fff;
}

.project-box.photos {
    flex: 0 0 auto;
    margin-right: 0px;
}

.project-box.photos img {
    width: 600px;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
}

.scrollable-images {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-left: 0px;
    scrollbar-width: none; /* For Firefox */
}

.scrollable-images::-webkit-scrollbar {
    display: none; /* For Webkit Browsers */
}

.scrollable-images img {
    width: 600px;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
}

.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.fullscreen-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: zoom-out;
}

.project-box.title {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    text-align: left;
    justify-content: flex-start;
    font-size: 1rem;
    font-weight: bold;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    padding-right: 20px;
    margin-top: -3px;
    line-height: 1.4;
    align-self: flex-start;
    width: 175px;
}

.project-box.stats {
    font-size: 0.875rem;
    color: #555;
    margin: 0;
    line-height: 1.4;
    max-width: 175px;
}

.extra-text-box {
    font-family: Arial, sans-serif; /* Ensure consistency */
    color: #555; /* Match the existing text color */
    font-size: 0.875rem; /* Match the existing text size */
    line-height: 1.4; /* Match the existing line height */
    text-align: left;
    box-sizing: border-box;
    margin: 0;
    max-width: 175px;
    padding-top: 244px;
}

.project-box.text-box {
    display: block; /* Use flexbox to align text inline */
    flex-direction: row; /* Ensure content flows inline */
    align-items: baseline; /* Align inline content to text baseline */
    padding: 0px; /* Keep padding */
    text-align: left; /* Align text properly */
    width: 300px; /* Dynamic width */
    height: 400px; /* Dynamic height */
    box-sizing: border-box;
    white-space: normal; /* Allow wrapping */
    border: 0;
    overflow-wrap: break-word;
    margin-top: -3px;
}

.project-box.text-box i {
    display: inline;
    font-style: italic;
    margin: 0;
    padding: 0;
    line-height: inherit;
}

img {
    -webkit-user-drag: none; /* WebKit-based browsers */
    user-select: none; /* Prevent text/image selection in modern browsers */
}


.hello.clickable {
    cursor: pointer; /* Change the cursor to a pointer when clickable */
}

.project-container {
    flex-wrap: nowrap; /* Prevents unintended line breaks */
}

@media (max-width: 475px) {
    .profile-photo {
        display: none;
    }

    body {
        padding-bottom: 23px; /* Adjust the padding as needed */
    }
}

@media (max-width: 475px) {
    .blurry {
        min-height: 39px;
    }

    footer {
        text-align: center;
    }
}

@media (max-width: 407px) {
    footer {
        text-align: center;
    }
}

@media (max-width: 800px) {
    .hello {
        font-size: calc(4rem - 20px);
        text-indent: 0px;
    }

    .profile-photo {
        width: calc(4rem - 20px);
        height: calc(4rem - 20px);
        margin-top: 9px;
    }

    .project-row {
        flex-direction: row; /* Keeps items in a row */
    }

    .project-container {
        flex-direction: row; /* Prevents column arrangement */
    }

    .project-box {
        width: auto;
        height: auto;
    }

    .project-box.photos {
        margin-right: 0;
        margin-bottom: 0;
    }

    .project-box.text-box {
        margin-left: 0;
        margin-top: 0;
        width: 300px;
    }

    .scrollable-images {
        padding-left: 0;
    }
}

.blurry {
    position: fixed;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 22px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    pointer-events: none;
}