/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

html,body {
    margin: 0;
    padding: 0;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Grid Settings */
:root {
    --grid-max-width: 100%;
    --grid-gutter: clamp(0.31rem, calc(-0.14rem + 2.27vw), 1.25rem);
    --grid-columns: 12;
}

.u-container {
    width: 100%;
    max-width: var(--grid-max-width);
    padding-inline: var(--grid-gutter);
    margin-inline: auto;
    box-sizing: border-box;
}

/* Universal Styles */
body {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #0a0a0a;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh; /* Ensure body takes up at least the full height of the viewport */
}

.img-container {
    display: flex;
    justify-content: center; /* Horizontally center the image */
    margin-bottom: 1.5rem;
}

main {
    flex: 1; /* Allow main content area to grow to fill available space */
}

.page-container {
    width: 100%;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack elements vertically */
}

#prevent-scroll {
    overflow: hidden;
}

.center {
    align-self: center;
}

/* Center lines */
.center-lines::before,
.center-lines::after {
    content: '';
    position: absolute;
    background-color: red; /* Change color as needed */
    z-index: 999;
}

/* Horizontal line */
.center-lines::before {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
}

/* Vertical line */
.center-lines::after {
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    padding-top: 9rem;
    width: 75%;
    margin: 0 auto; /* Center horizontally */
    padding-bottom: 3rem; /* Adjusted to prevent extra space between content and footer */
}

.body-wrap {
    display: flex;
    flex-direction: column;
    padding-top: 6.7rem;
    width: 75%;
    margin: 0 auto; /* Center horizontally */
    padding-bottom: 3rem; /* Adjusted to prevent extra space between content and footer */
}


.page-content {
    flex-grow: 1; /* This will make the content area take up all available space */
}

p{
    font-family: 'Raleway', sans-serif;

}

li {
    font-family: 'Raleway', sans-serif;
}

h1 {
    font-family: 'Josefin Sans', bold;
    font-size: 3.25rem;
    font-weight: 600;
    color: #fff;
}

.center {
     display: flex;
    justify-content: center; /* Horizontally center the content */
    align-items: center; /* Vertically center the content */
    margin-bottom: 1rem;
}

h2 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 500;
    font-size: 2.5rem;
    color: #fff;
}

h3 {
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    color: #fff;
}


h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: bold;
    font-style: italic;
    padding-bottom: .5rem;
    font-size: 1rem;
    color: #fff;
}

h5 {
    font-family: 'Raleway', sans-serif;
    padding-top: .5rem;
    padding-bottom: 1rem;
    font-size: 1rem;
    color: #fff;
}

.pdf-container {
    position: relative;
    height: 100%;
    width: 100%;
}


.description {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
}

li {
    display: block;
    font-size: 100%;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
}

ul{
    font-family: 'Raleway', sans-serif;
    color: #fff;   
}

.two-column-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px; /* Adjust the gap between columns */
    justify-content: center;
    align-items: center;
    align-self: center;
    padding-bottom: 1rem;
}

.two-column-list ul {
    list-style: none;
    padding: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
    align-self: center;
    align-content: center;
}

.two-column-list li {
    margin-bottom: 5px; /* Adjust spacing between list items */
}

/* Style for the grid-container */
.grid-container {
    display: grid;
    position: relative; /* Change to relative positioning */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust column width as needed */
    grid-gap: 20px; /* Adjust gap between columns as needed */
    justify-content: center; /* Center the grid horizontally */
}


/* Style for the column */
.column {
    display: flex;
    flex-direction: column;
}


/* Style for the content-wrapper */
.content-wrapper {
    margin-bottom: 20px;
    margin-bottom: 1rem;
}

/* Style for the toggle button */
.toggle-button {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Style for the content */
.content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, border 0.3s ease, padding 0.3s ease , opacity  0.3s ease; /* Add transition for border and padding */
    padding: 0 10px;
    flex-grow: 1;
    border-top: none; /* Remove top border for the content */
}


/* Style for the expanded content */
.expanded .content {
    height: max-content;
    padding: 10px;
    margin-bottom: .5rem ;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    opacity: 1;
    border: 1px solid #ccc;
    border-top: none; /* Remove top border for the content */
    transform-origin: bottom; /* Set the transform origin to the bottom */
    transition: max-height 0.3s ease, border 0.3s ease, padding 0.3s ease, opacity 0.3s ease, transform-origin 0.3s ease; /* Add transition for transform-origin */
}


.grid-container-mobile {
    display: none;
}

/* Media query for responsiveness */
@media screen and (max-width: 768px) {
    .grid-container {
        display: none;
    }
    
    .grid-container-mobile {
        grid-template-columns: 1fr; /* Display one column on smaller screens */
        grid-gap: 0px; /* Adjust gap between columns as needed */
        flex-direction: column;
        margin-top: -1.5rem;
        margin-bottom: 0;
        padding-bottom: 0;
        display: flex;
        flex-grow: 1;
    }
    .expanded .content {
        height: fit-content;
        padding: 10px;
        margin-bottom: .5rem ;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        opacity: 1;
        border: 1px solid #ccc;
        border-top: none; /* Remove top border for the content */
        transform-origin: bottom; /* Set the transform origin to the bottom */
        transition: max-height 0.3s ease, border 0.3s ease, padding 0.3s ease, opacity 0.3s ease, transform-origin 0.3s ease; /* Add transition for transform-origin */
    }
}

.photo-grid-row {
    display: flex;
    flex-wrap: wrap;
    padding: 0 4px;
  }
  
  .photo-grid-column {
    flex: 25%;
    max-width: 25%;
    padding: 0 4px;
  }
  
  .photo-grid-column img {
    margin-top: 8px;
    vertical-align: middle;
    width: 100%;
  }

  @media screen and (max-width: 800px) {
    .photo-grid-column {
      flex: 50%;
      max-width: 50%;
    }
  }
  

  @media screen and (max-width: 600px) {
    .photo-grid-column {
      flex: 100%;
      max-width: 100%;
    }
  }
  


/* Resume CSS */
.intro-section {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    margin-bottom: 4rem;
}

.job-details {
    line-height: 1rem; /* Adjust the value as needed to control the spacing */
    margin-bottom: 1rem; /* Add space after each paragraph */
    margin-top: .5rem; /* Add space after each paragraph */
}

.job-details br {
    content: "";
    display: block;
    margin: 10px 0; /* Adjust this value to control the space between line breaks */
}


.intro-section p {
    width: 45%;
    text-align: center;
    margin: auto; /* Center the paragraph horizontally */
}


.headshot {
    border-radius: 50%; /* Apply border-radius to make the image circular */
    width: 30%; /* Set the width of the image */
    padding: 0; /* Remove padding to prevent extra space around the image */
    display: flex; /* Change display property to block */
    margin: 0 auto; /* Center the image horizontally using auto margins */
    z-index: -1;
}


.rainbow-border {
    position: relative; /* Ensure relative positioning */
    display: flex;
    border-radius: 100%; /* Adjust border-radius as needed */
    margin-bottom: 2rem;
}

.rainbow-border::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the pseudo-element */
    width: 31%;
    height: 102%;
    background: linear-gradient(to right, 
        #E52D31, #F44C3F, #F4A83F, #5469D4, #3E549E, #24A196, #56C479, #E52D31);
    background-size: 20000% 100%;
    animation: rainbowAnimation 15s linear infinite, glowAnimation 15s linear infinite;
    border-radius: 100%; /* Inherit border-radius from .rainbow-border */
    z-index: -1;
}


@keyframes glowAnimation {
    0% {
        box-shadow: 0 0 10px #E52D31; /* Red */
    }
    14.28% {
        box-shadow: 0 0 20px #F44C3F; /* Orange */
    }
    28.57% {
        box-shadow: 0 0 30px #F4A83F; /* Yellow */
    }
    42.85% {
        box-shadow: 0 0 40px #5469D4; /* Blue */
    }
    57.14% {
        box-shadow: 0 0 50px #3E549E; /* Indigo */
    }
    71.42% {
        box-shadow: 0 0 40px #24A196; /* Cyan */
    }
    85.71% {
        box-shadow: 0 0 30px #56C479; /* Green */
    }
    100% {
        box-shadow: 0 0 20px #E52D31; /* Red */
    }
}

.job {
    font-size: 1.7rem;
}

.time-working{
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: .4rem;
    font-style: italic;
}

.p-container {
    display: flex;
    margin: 0 auto; 
    width: 100%;
    text-align: center;
}

.strong {
    font-weight: 800;
    font-size: 1.2rem;
}

.strong-italic {
    font-weight: 600;
    font-style: italic;
}

.italic {
    font-style: italic;
}


.spacer {
    margin: 2rem;
}

/* Page Transition */

.fade-in {
    animation: fadeIn 1s ease-in-out;
  }
  
  .fade-out {
    animation: fadeOut 1s ease-in-out;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

/* Center container vertically and horizontally */
.center-container {
    position: absolute; /* Change to fixed position */
    top: 50%; /* Place the container at the vertical center */
    left: 50%; /* Place the container at the horizontal center */
    transform: translate(-50%, -50%); /* Adjust position to center */
    display: flex;
    width: 90%;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: center; /* Center content vertically */
    z-index: 999;
}


/* Apply centering styles to child elements */
.center-container * {
    align-content: center;
    justify-content: center;
}

/* Adjust large text styles */

.large-centered-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 7.5rem;
    line-height: 8rem;
    text-align: center;
    position: relative;
    color: #fff;
    text-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
    margin: 0;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
     will-change: transform;
}

/* Add styles for the link box */
.link-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.link-box-left {
    display: flex;
    margin-top: 1rem;
}

a.button {
    display: flex;
    margin: 0;
    padding: .75rem;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    align-items: center;
    font-weight: 600;
    color: #0a0a0a;
    background-color: #fff;
    border: 2px solid #0a0a0a;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

a.button-resume {
    display: flex;
    margin-top: 1rem;
    padding: .75rem;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Josefin Sans', sans-serif;
    font-size: .75rem;
    align-items: center;
    justify-content: center;
    justify-self: center;
    font-weight: 600;
    color: #0a0a0a;
    background-color: #fff;
    border: 2px solid #0a0a0a;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    width: auto;
}

a.button-resume:hover {
    background-color: #0a0a0a;
    color: #fff;
    border-color: #fff;
    cursor: pointer;
}

a.button:hover {
    background-color: #0a0a0a;
    color: #fff;
    border-color: #fff;
    cursor: pointer;
}

a.button-home {
    display: flex;
    width: auto;
    height: 3%;
    margin: 2rem;
    align-items: center;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: #0a0a0a;
    background-color: #fff;
    border: 2px solid #0a0a0a;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    cursor: pointer; /* Add cursor pointer to indicate the button is clickable */
}


a.button-home:hover {
    background-color: #0a0a0a;
    color: #fff;
    border-color: #fff;
    cursor: pointer;
}

label {
    font-family: 'raleway', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center form items horizontally */
    justify-content: center; /* Center form vertically */
    border: 2px solid #0a0a0a;
    border-radius: 10px;
    width: 40%;
    text-align: center;
    max-width: 90vw; /* Optional: Add a max width to avoid form being too wide */
    margin: auto; /* Center horizontally */
    position: absolute; /* Position absolutely */
    top: 50%; /* Move to 50% from top */
    left: 50%; /* Move to 50% from left */
    transform: translate(-50%, -50%); /* Center both horizontally and vertically */
}

input[type="submit"] {
    display: flex;
    width: auto;
    align-items: center;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #0a0a0a;
    background-color: #fff;
    border: 2px solid #0a0a0a;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
    cursor: pointer; /* Add cursor pointer to indicate the button is clickable */
}

input[type="submit"]:hover {
    background-color: #0a0a0a;
    color: #fff;
    border-color: #fff;
    cursor: pointer;
}

label[for="message"] {
    font-family: 'raleway', sans-serif;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: -1rem;
}

input, textarea {
    padding: 8px;
    margin-top: .25rem;
    width: 100%; /* Make inputs take up 100% of the container's width */
    height: auto;
    box-sizing: border-box;
}


form h2 {
    padding-bottom: 1rem;
    font-weight: 600;
    text-align: center;
}

/* New Flexbox for Name, Email, and Subject inputs */
.form-row {
    display: flex;
    justify-content: space-between;
    width: 100%; /* Full width to match the message row */
    gap: 10px; /* Space between the input fields */
}

/* Each individual form group (Name, Email, Subject) */
.form-group {
    flex: 1; /* Ensure each input takes equal space */
    gap: 10px;
    max-width: 32%; /* Limit the max width to 32% to avoid overflow */
}

/* Optional: If you want to limit the input fields' width */
input[type="text"], input[type="email"], input[type="subject"] {
    width: 100%;
}

/* Mobile view: Stack form fields vertically */
@media screen and (max-width: 768px) {
    form {
        width: 60%; /* Make the form take up more width on smaller screens */
        padding: 20vw; /* Adjust padding for smaller screens */
    }

    /* Stack the form rows vertically */
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }

    /* Make each form group take full width in mobile view */
    .form-group {
        max-width: 100%;
    }

    /* Optional: Adjust padding and width for inputs and textarea */
    input, textarea {
        width: 100%; /* Ensure inputs take full width */
        margin-bottom: 10px; /* Add margin for spacing between elements */
    }
}

.rainbow {
    background: linear-gradient(to right, 
        #E52D31, #F44C3F, #F4A83F, #5469D4, #3E549E, #24A196, #56C479, #E52D31 );
    background-size: 20000% 100%;
    animation: rainbowAnimation 10s linear infinite;
}


@keyframes rainbowAnimation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Projects Page */
.project-wrapper {
    display: flex;
    flex-direction: column;
    padding-top: 7rem;
    width: 100%;
    margin: 0 auto; /* Center horizontally */
}

.project-button-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    
}

.project-button {
    display: block;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 5vw;
    line-height: 10rem;
    text-align: center;
    justify-content: center;
    align-content: center;
    align-items: center;
    width: 45vw;
    height: auto;
    margin: 0 20px;
    padding: 20px 0;
    color: #fff;
    text-decoration: none;
    border: 2px solid transparent;
    position: relative;
    transition: opacity 0.3s ease; /* Add transition for opacity */
    overflow: none; /* Ensure the overflow is hidden */
    border-radius: 100%;
    text-shadow: 5px 5px 0px rgba(0, 0, 0, 1)
}


.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 100%;
    background: linear-gradient(to right, 
        #E52D31, #F44C3F, #F4A83F, #5469D4, #3E549E, #24A196, #56C479, #E52D31);
    background-size: 3000% 100%;
    animation: rainbowAnimation 15s linear infinite;
    opacity: 0;
    z-index: -2;
    transition: opacity 0.3s ease; /* Add transition for opacity */
}

.project-message {
    display: none;
    font-family: 'raleway', sans-serif;
    font-weight: 400;
    font-size: 7.5rem;
    line-height: 8rem;
    text-align: center;
    position: relative;
    color: #fff;
    text-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
    margin: 0;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
     will-change: transform;
}

.project-button:hover .background {
    opacity: 1; /* Show the background animation on hover */
}


@keyframes rainbowAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Project Grid Styles */


.project-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    z-index: 0;
    padding: 3rem 10rem;
    grid-auto-rows: minmax(100px, auto); /* Adjusts row height based on content */
}

.project-item {
    border: 1px solid #ddd;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.05s ease;
    display: flex;
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

.project-item:hover {
    transform: scale(1.01);
    border: 1px solid #ddd;
}


.project-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 15px;
    text-align: center;
    flex-grow: 1;
}


.project-info h3 {
    margin: 0 0 0px;
    font-size: 1.35rem;
    color: #ffffff;
}

.project-info p {
    margin: 0;
    color: #d7d7d7;
}


    .fade-out {
        animation: fadeOut 0.2s forwards;
    }

    .fade-in {
        animation: fadeIn 0.2s forwards;
    }

    @keyframes fadeOut {
        from { opacity: 1; }
        to { opacity: 0; }
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    /* Hide elements initially during animation */
    .hidden {
        display: none;
    }

    .project-item, .event {
        opacity: 1;
        transform: translateY(0); /* Ensure initial vertical position */
        transition: transform 0.5s ease, opacity 0.5s ease; /* Animation for sliding and fading */
    }

.view-container {
    position:relative;
    display: flex;
    width: 90%;
    gap: 1.5rem; /* Add some space between the elements */
    z-index: 1111;
}



.view-switch-buttons button, .order-switch-buttons button {
    height: min-content;
    font-size: 1rem; /* Unified font size */
    font-family: 'Raleway', sans-serif;
    border: none; /* Removed duplicate border */
    border-radius: 5px; /* Unified border radius */
    background-color: #ffffff; /* Unified background color */
    color: #0a0a0a;
    padding: 9px 15px; /* Combined padding declarations */
    margin: 0 .5rem; /* Margin for spacing */
    cursor: pointer; /* Pointer cursor for buttons */
    box-shadow: 0 2px 4px rgba(17, 17, 17, 0.57);
    transition: background-color 0.3s ease, transform 0.2s ease; /* Simplified transition */
}

.view-switch-buttons button:hover, .order-switch-buttons button:hover {
    background-color: #0056b3; /* Change background color on hover */
    color: white; /* Change text color on hover */
    transform: scale(1.05); /* Optional: add slight scale effect on hover */
}


 /* Specific styles for filter and search */
 .filter-search-container {
    position:fixed;
    display: flex;
    align-items: center;
    width: 90%;
    margin-top: 9rem;
    margin-bottom: -10rem;
    margin-left: 6vw;
    gap: 1.5rem; /* Add some space between the elements */
    z-index: 1111;
}

.view-container-mobile {
    display: none;
}

/* Mobile styles */
.filter-search-container-mobile {
    display: none; /* Hide by default */
}

.filter-spacer{
    margin-top: 11rem;
    display: flex;
    align-items: center;
    margin-left: 6vw;
    gap: 1rem; /* Add some space between the elements */
    z-index: 999;
}

#category-filter, #search-bar, #toggle-button {
    height: min-content;
    font-size: 1em;
    font-family: 'Raleway', sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
    background-color: #fff;
    color: #0a0a0a;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0 2px 4px rgba(17, 17, 17, 0.57);
}

#toggle-button:hover {
    background-color: #0a0a0a;
    color: #fff;
}

#toggle-button.close-all {
    background-color: #0a0a0a;
    color: #ffffff;
}


#category-filter:focus, #search-bar:focus {
    border-color: #666;
    outline: none;
}


#category-filter, #search-bar, #toggle-button {
    padding: 0.5em;
    font-size: 1em;
    font-family: 'Raleway', sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%; /* Full width for small screens */
    max-width: 200px; /* Limit the maximum width */
    background-color: #fff;
    color: #0a0a0a;
    transition: background-color 0.3s, color 0.3s;
}

#toggle-button:hover {
    background-color: #0a0a0a;
    color: #fff;
}

#toggle-button.close-all {
    background-color: #0a0a0a;
    color: #ffffff;
}

#category-filter:focus, #search-bar:focus {
    border-color: #666;
    outline: none;
}

/* Timeline */
.timeline {
    position: relative;
    display: flow-root;
    margin: 4rem auto;
    width: 100%;
    left: 12%;
    border-left: 2px solid #ffffff;
    padding-left: 20px;
    transition: top 0.5s ease, left 0.5s ease;
}

.timeline-view {
    position: relative;
    width: 100%;
    transition: top 0.5s ease, left 0.5s ease;
}

@media only screen and (min-width: 1024px) and (max-width: 1573px) {
    .timeline {
        position: relative;
        margin: 4rem auto;
        width: 80%;
        border-left: 2px solid #ffffff;
        padding-left: 20px;
        left: 25%;
        transition: top 0.5s ease, left 0.5s ease;
    }

    .project-window {
        margin-left: 0;
    }

    .filter-search-container {
    position:fixed;
    display: flex;
    align-items: center;
    top: 0%;
    width: 80%;
    margin-left: 6vw;
    gap: 1.5vw; /* Add some space between the elements */
    z-index: 1111;
    margin-right: 1vw;
    }

    .view-switch-buttons button, .order-switch-buttons button {
    width: 10vw;
    font-size: 1vw;
    padding: .55vw 12px; /* Combined padding declarations */
    margin-left:  .35rem; /* Margin for spacing */
    }

    #category-filter, #search-bar, #toggle-button {
        width: 11vw;
        font-size: 1vw;
    }
}

.event-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    position: relative;
    z-index: 0;
    
}

.event-container.project-opened:hover .event,
.event-container.project-opened .event {
    /* Add your hover styles here */
    box-shadow: 0 0 20px var(--glow-color), 0 0 20px var(--glow-color);
    text-shadow: 0 0 20px var(--glow-color);
}


.event-container:not(:hover) .branch,
.branch-container:not(:hover) .branch,
.event-container:not(:hover) .branch-cont,
.branch-container:not(:hover) .branch-cont {
    z-index: -1;
    box-shadow: 0 0 0 var(--glow-color), 0 0 0 var(--glow-color);
    text-shadow: 0 0 0 var(--glow-color);
}

.branch.hovered, .branch-cont.hovered, .branch.glow, .branch-cont.glow {
    box-shadow: 0 0 10px var(--glow-color);
    transition: box-shadow 0.3s ease;
}


.event-container:hover,
.event-container:hover .branch[data-year], 
.event-container .branch-cont[data-year],
.event-container:hover .branch::after,
.event-container:hover .branch-cont::after,
.event-container:hover .event {
    z-index: 99;
}


.event-container .branch[data-year], 
.event-container .branch-cont[data-year],
.event-container .branch::after,
.event-container .branch-cont::after,
.event-container .event {
    box-shadow: 0 0 0 var(--glow-color), 0 0 0 var(--glow-color);
    text-shadow: 0 0 0 var(--glow-color);
    transition: box-shadow 0.3s ease-in-out, text-shadow 0.3s ease-in-out;
}


.event-container:hover .branch[data-year], 
.event-container:hover .branch-cont[data-year],
.event-container:hover .branch-cont::after,
.event-container:hover .branch::after,
.event-container:hover .event {
    box-shadow: 0 0 20px var(--glow-color), 0 0 20px var(--glow-color);
    text-shadow: 0 0 20px var(--glow-color);
}
.event-container:hover .branch[data-year], 
.event-container:hover .branch-cont[data-year] {
    cursor: pointer;
    transform-origin: right center;
    transition: transform 0.3s ease-in-out, z-index 0s ease-in-out;
}

.event-container:hover .event:hover {
    transform: scale(1.7);
    margin-left: 1rem;
    z-index: 999;
    transition: transform 0.2s ease-in-out, margin 0.3s ease-in-out, z-index 0s ease-in-out;
}

.branch-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.branch {
    position: relative;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    top: 50%;
    left: -24px;
    width: 2px;
    z-index: -1;
}

.branch::before {
    content: attr(data-year);
    position: absolute;
    top: -3.5px;
    left: -70px;
    width: 50px;
    text-align: center;
    color: #ffffff;
}

.branch::after {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: #ffffff;
}

.branch-cont {
    position: relative;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    top: 50%;
    left: -24px;
    width: 2px;
    z-index: -1;
}


.branch-cont::before {
    content: attr(data-year);
    position: absolute;
    top: -3.5px;
    left: -130px;
    width: 50px;
    text-align: center;
    color: #ffffff;
}

.branch-cont::after {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: #ffffff;
}

.event {
    position: relative;
    padding: 20px 40px;
    font-family: 'Raleway', sans-serif;
    color: #fff;
    width: fit-content;
    margin-bottom: 15px;
    background: black;
    border: 2px solid #ffffff;
    border-radius: 5px;
    z-index: 5;
    transition: transform 0.3s ease-in-out, margin 0.3s ease-in-out, z-index 0.1s, opacity 0.3s ease;
    transform-origin: left center;
}


.event::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -13px;
    transform: translateY(-50%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

.event-wrapper {
    height: 0;
    width: 100%;
    opacity: 0; /* Initially hidden */
 transition: height 0.3s ease, padding-top 0.3s ease, opacity 0.3s ease; /* Add transition effect */
}

.event-wrapper.closed {
    z-index: -1;
}


.event-container.expanded .event-wrapper {
    height: 1;
    opacity: 1; /* Make the content visible */
    transition: height 0.3s ease-in-out, opacity 0.3s ease-in-out; /* Transition for height, padding-top, and opacity */
}

.event-spacer {
    margin: 1rem;
    transition: margin 1s ease;
}

.event-container.expanded .event-spacer {
    display: none;
    padding: 0;
    margin: 0; /* Set margin to 0 to remove it */
    transition: margin 1s ease;
}

/*Project Window*/

.project-window {
    display: none; /* Hide project windows by default */
    position: fixed;
    top: 50%;
    left: 65.5%;
    padding: 15px;
    border: 2px solid #ffffff;
    transform: translate(-50%, -50%);
    background: rgb(9, 9, 9);
    padding: 20px;
    border-radius: 10px;
    z-index: 9991!important;
    min-width: 45vw;
    max-height:85vh;
    overflow-y: none;
    overflow-x: hidden;
    justify-content: space-between; /* Distribute images evenly along the row */
    transition: left 0.5s ease; /* Smooth transition for position change */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.project-window img {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-shrink: 1;
    height: auto;
    width: calc(100% - 20px);
    object-fit: contain;
}

iframe {
width: 100%;
height: 39.25rem;
border-radius: 15px;
object-fit: cover;
}

.pdf-iframe {
    width: 100%;
    height: 65rem;
    border-radius: 15px;
}

.project-content h1 {
    margin-top: 1rem;
}

.image-row {
    display: flex;
    flex-wrap: wrap; /* Allow images to wrap into rows */
    justify-content: space-between;
}

.image-row img {
    flex-grow: 1;
    flex-shrink: 1;
    width: calc(25% - 10px);
    margin: .25rem .25rem;
    height: auto;
    object-fit: contain;
}

.image-spacer{
    margin: 0.75rem 0;
}

@media (max-width: 1200px) {
    .image-row img {
        max-width: calc(75% - 10px); /* Each image takes up one-third of the container minus some space for margins */
    }
}


@media (max-width: 600px) {
    .image-row img {
        max-width: calc(100% - 10px); /* Each image takes up full width of the container minus some space for margins */
    }
}

.project-content {
    color: white;
    flex-basis: 100%; /* Full width for project content */
}


.project-window h1 {
    margin-bottom: 0.5rem;
    font-size: 3rem;
}

.close-button {
    position: relative;
    left: 99.5%;
    margin-top: -1rem;
    cursor: pointer;
    font-size: 24px;
    color: white;
}

.close-button:hover {
    color: #E52D31;
    text-shadow: 0 0 10px rgba(229, 45, 49, 0.5); /* Adjust the opacity as needed */
}



/* Image Slide */

.carousel-container {
    width: 100%;
    margin: auto;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel-slide {
    display: inline-flex;
}

.carousel-slide img {
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    margin-right: 10px; /* Add some spacing between images */
}

/* Image Viewer */
#image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent black */
    z-index: 9999;
    display: none; /* Initially hidden */
}

#image-viewer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    z-index: 10000;
    display: none; /* Initially hidden */
}

#image-viewer img {
    max-width: 100%;
    max-height: 80vh;
}

.hidden {
    display: none; /* Utility class to hide elements */
}

.img-close-button {
    position: absolute;
    top: -10px;
    right: -10px;
    cursor: pointer;
    color: #ffffff;
    font-size: 24px;
}

.img-close-button:hover {
    color: #E52D31;
    text-shadow: 0 0 10px rgba(229, 45, 49, 0.5); /* Adjust the opacity as needed */
}

#image-caption {
    font-family: 'Raleway', sans-serif;
    font-style: italic;
    text-align: center;
    padding-top: 1rem;
    font-size: 1rem;
    text-shadow: 0 0 20px black;
    color: #fff;
}


/* DVD */
#dvd {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 5rem;
    width: 9rem;
    mask: url("https://imjustkevin.com/images/DVD_logo.svg");
    -webkit-mask: url("https://imjustkevin.com/images/DVD_logo.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 1999;
  }
  
  #black {
    height: 100vh;
    width: 100vw;
    z-index: -1;
    background-color: #111;
  }

/* Add styles for the new button */
.new-button {
    display: inline-block;
    padding: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    align-items: center;
    align-content: center;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 4.5rem;
    font-weight: 500;
    margin: 1rem;
    color: #fff;
    border-radius: 25px;
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out, text-shadow 0.2s ease-in-out, font-weight 0.2s ease-in-out;
}

.new-button:hover {
    font-weight: bold;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7); /* Adjusted shadow colors */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7); /* Added text-shadow for the glow effect */
}

/* Different text colors and shadows for each button */
.new-button.blue:hover {
    color: #ffffff; 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(62, 84, 158, 0.7); /* Adjusted shadow color */
    text-shadow:0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(62, 84, 158, 0.7); /* Added text-shadow for the glow effect */
}

.new-button.yellow:hover {
    color: #ffffff; 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(244, 168, 63, 0.7); /* Adjusted shadow color */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(244, 168, 63, 0.7); /* Added text-shadow for the glow effect */
}

.new-button.red:hover {
    color: #ffffff; 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(229, 45, 49, 0.7); /* Adjusted shadow color */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(229, 45, 49, 0.7); /* Added text-shadow for the glow effect */
}

.new-button.green:hover {
    color: #ffffff; 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(36, 161, 150, 0.7); /* Adjusted shadow color */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7), 0 0 20px rgba(255, 255, 255, 0.7), 0 0 30px rgba(36, 161, 150, 0.7); /* Added text-shadow for the glow effect */
}


@keyframes rainbowAnimation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Header and Nav */
nav {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a0a0a;
    width: 100vw;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 5px 15px #0a0a0a;
}

.project nav {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0a0a0a;
    width: 100vw;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 15px 45px 35px #0a0a0a;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 40rem;
    margin: 0 auto;
    padding: 10px;
    background-color: #0a0a0a;
    z-index: 1000;
}

.nav-container ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.nav-container ul li {
    display: inline-block;
    margin-right: 10px;
}

.nav-container ul li:last-child {
    margin-right: 0;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin-left: 1.5rem;
}

.logo img {
    max-width: 90%;
    height: auto;
    padding-right: 1rem;
}

nav ul {
    display: flex;
    margin: 0;
    padding: .5rem;
    list-style: none;
    
}

nav ul li {
    padding: .5rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    top: -1rem;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0.25em;
    background: linear-gradient(to right, #E52D31, #F4A83F, #3E549E, #24A196, #E52D31);
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

nav a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: none;
    align-items: center;
    align-self: center;
    background-color: #0a0a0a;
    justify-content: space-between; /* Distribute items along the main axis with space between */
    padding: 1rem; /* Adjust padding as needed */
    z-index: 1001; /* Ensure it's above other content */
}

.mobile-nav-container img {
  display: none;
}

.hamburger-menu {
    display: none; /* Initially hide the hamburger menu */
    cursor: pointer;
    position: absolute;
    top: 25px;
    right: 50px; /* Position the hamburger menu on the right */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.nav-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
}

.nav-screen.show {
    display: flex;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.nav-screen.hide {
    animation: fadeOut 0.5s ease-in-out forwards;
}

.exit-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    z-index: 9909;
}

.mobile-nav {
    position: fixed; /* Ensure it's fixed to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically */
    background-color: #0a0a0a; /* Adjust background color as needed */
    z-index: 1000; /* Ensure it's above other content */
}

.mobile-nav ul {
    padding: 0;
    list-style: none;
    flex-direction: column;
    text-align: center;
}

.mobile-nav li {
    margin-top: 1rem; /* Add some space between each link */
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    padding: .5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.mobile-nav a::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 0.25em;
    background: linear-gradient(to right, #E52D31, #F4A83F, #3E549E, #24A196, #E52D31);
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.mobile-nav a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-grid {
    display: none;
}

.project-p {
    margin-top: .5rem; 
    margin-bottom: 2.5rem; 
    width: 75%; 
    align-self: center; 
    font-weight: 600
}

/* Footer and Scroll */


/* Footer Styles */
footer {
    padding: 1rem; /* Consistent padding */
    background-color: #0a0a0a; /* Dark background */
    position: relative;
    color: #fff; /* White text */
    text-align: center; /* Centered text */
    margin-top: auto; /* Push footer to the bottom */
    z-index: -1;
    display: block; /* Flexbox layout */
}

/* Footer Container Styles */
.footer-container {
    display: block; /* Flexbox layout */
    flex-direction: column; /* Stack elements vertically */
    justify-content: center; /* Center items */
    align-items: center; /* Align items to the center */
    width: 100%; /* Full width */
    opacity: 1; /* Full opacity */
}

.footer-column {
    flex: 1;
    text-align: left;
    line-height: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 .5rem;
}

.footer-column:last-child {
    margin-right: 0;
    padding-right: 0;
}

.footer-bottom p {
    text-align: center;
    line-height: 3rem;
}

.description {
    font-size: 0.8rem;
    line-height: 1.2rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: white;
}

footer a:hover {
    color: yellow;
}

 /* Scroll Bar Styles */
     /* Width */
        .carousel-container::-webkit-scrollbar {
            height: 0.5rem;
        }

        /* Track */
        .carousel-container::-webkit-scrollbar-track {
            background: #0a0a0a;
        }

        /* Handle */
        .carousel-container::-webkit-scrollbar-thumb {
            background: #888888;
            transition: background 0.3s;
        }

        /* Handle on hover */
        .carousel-container::-webkit-scrollbar-thumb:hover {
            background: #313131;
        }

/* Make scrollbar overlap content */
body {
    margin: 0;
    padding: 0;
    overflow-y: scroll;
}

/* Make scrollbar overlap content */
body {
    margin-right: 0;
    overflow-y: scroll;
}

/* Hide scrollbar when not in use */
body::-webkit-scrollbar {
    width: 0.5rem;
}

body:hover::-webkit-scrollbar-thumb {
    background-color: #888888;
}

/* Social Media Icons */
.niftybutton-instagram,
.niftybutton-linkedin,
.niftybutton-youtube,
.niftybutton-email {
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.niftybutton-instagram:hover,
.niftybutton-linkedin:hover,
.niftybutton-youtube:hover,
.niftybutton-email:hover {
    animation: colorRotate 2s infinite;
    transform: scale(1.1);
}

/* Animation for color rotation */
@keyframes colorRotate {
    0% { color: #E52D31; }
    25% { color: #F4A83F; }
    50% { color: #3E549E; }
    75% { color: #24A196; }
    100% { color: #E52D31; }
}

/* Breakpoints */

/* Tablet Size */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  h1, h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.5rem;
  }


  .large-centered-text {
    font-size: 3rem;
    line-height: 2.5rem;
    text-align: center;
  }

  iframe {
    height: 50vw;
    width: 100%;
}

  a.button {
    font-size: 0.9rem;
  }

  .timeline {
    position: relative;
    margin: 2rem 1.5rem;
    margin-top: 14vh;
    width: 90%;
    border-left: 2px solid #ffffff;
    transition: none; /* Disable transition for mobile */
}


.timeline-view {
    width: 90%; /* Make the width 100% on mobile */
    max-width: none; /* Remove max-width to use full width */
    padding: 10px; /* Optional: Adjust padding for mobile */
}



.project-window {
    min-width: 80%;
    max-width: 80%;
    z-index: 9999; /* Ensure project windows appear above other content */
    max-height: 90%;
    justify-content: space-between; /* Distribute images evenly along the row */
}




.project-grid {
    margin-top: 8vh;
}

.filter-search-container {
    display: none;
}

.mobile-interface {
    display: flex;
    flex-direction: column; /* Stack filter-search and view container vertically */
    position: absolute;
    z-index: 1111;
    top: 11vh;
    width: 100%; /* Ensure it takes full width */
}

.filter-search-container-mobile {
    display: flex; /* Use flexbox for layout */
    flex-direction: row; /* Keep elements in a single row */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    padding: 0rem; /* Add padding */
    gap: 1rem;
    

}

.view-container-mobile {
    display: flex; /* Use flexbox for layout */
    position: relative; /* Position relative to parent */
    flex-direction: row; /* Keep elements in a single row */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    width: 100%; /* Set width */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for exact centering */
    border-radius: 8px; /* Rounded corners */
    }

.view-switch-buttons, .order-switch-buttons {
    display: flex; /* Use flexbox for layout */
    flex-direction: row; /* Keep elements in a single row */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
    padding: 1rem; /* Add padding */
    font-size: .75em;
    width: 100%; /* Full width for buttons */
}

#mobile-category-filter, 
#mobile-search-bar, 
#toggle-button {
    height: max-content;
    font-size: 1em;
    font-family: 'Raleway', sans-serif;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%; /* Full width for small screens */
    max-width: 200px; /* Limit the maximum width */
    background-color: #fff;
    color: #0a0a0a;
    transition: background-color 0.3s, color 0.3s;
    box-shadow: 0 2px 4px rgba(17, 17, 17, 0.57);
    padding: 0.5em;
}

.filter-spacer {
    margin-top: 11vh; /* Adjust top margin for mobile */
    margin-left: auto; /* Center the spacer */
    margin-right: auto; /* Center the spacer */
}

}


/* Mobile Size */
@media only screen and (max-width: 769px) {
    .hamburger-menu {
        display: block; /* Show the hamburger menu icon */
    }
    
    .mobile-nav-container {
        display: block; /* Show the mobile nav container */
        width: auto;
    }

    .mobile-nav-container img{
        display: block; /* Show the mobile nav container */
    }
    
    /* Hide the regular navigation */
    nav {
        display: none;
    }

    .project-message {
        display: flex;
        font-size: 1.5rem;
        line-height: 2.5rem;
        text-align: center;
    }

    /* Adjustments for the logo */
    .logo {
        display: flex;
        justify-content: center; /* Center the content horizontally */
        align-items: center; /* Center the content vertically */
        margin: 0;
        margin-right: 1rem;
        height: 100%; /* Ensure the logo takes full height */
    }

    .logo img {
        width: 20%; /* Ensure the image does not exceed its container */
        min-width: 15%;
    }

    h1, h2 {
        font-size: 1.8rem;
    }
  
    h3 {
        font-size: 1.2rem;
    }

    .description {
        font-size: 0.5rem; /* Adjust as needed */
    }

    .large-centered-text {
        font-size: 2rem;
        margin-top: -5rem;
        line-height: 2rem;
        text-align: center;
    }
  
    .center-container {
        width: 85%;
        margin-bottom: -5rem;
    }

    footer {
        height: 20%;
        padding-bottom: 0;
        bottom: 0;
    }

    .footer-container {
        height: 10%;
        padding-bottom: 0;
        bottom: 0;
    }

    .footer-bottom {
        padding: 0;
        margin-top: -1rem;
    }

    .wrapper {
        display: flex;
        flex-direction: column;
        padding-top: 29%;
        width: 90%;
        margin: 0 auto; /* Center horizontally */
        padding-bottom: 3.1rem; /* Adjusted to prevent extra space between content and footer */
    }




    .event-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 70vw;
        font-size: 1rem;
        position: relative;
    }

    .event {
        display: flex;
        width: 55vw;
        justify-content: center;
        align-items: center;
        text-align: center;
        font-size: .7rem;
        pointer-events: auto;
        cursor: pointer;
    }

    .event-wrapper {
        margin-bottom: .7rem;
        justify-content: center;
        align-items: center;
    }

    .project-window {
        justify-self: center;
        width: 85%;
    }

    .branch[data-year], .branch-cont[data-year] {
        pointer-events: none; /* Disable click events for mobile */

    }

    .mobile-grid {
        display: block;
    }

    .branch[data-year], .branch-cont[data-year] {
        pointer-events: none; /* Disable click events for mobile */
    }

    
.branch::before {
    content: attr(data-year);
    position: absolute;
    top: -3.5px;
    left: 35px;
    width: 50px;
    text-align: center;
    color: #ffffff;
}

.branch::after {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: #ffffff;
}

.branch-cont {
    position: relative;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    top: 50%;
    left: -24px;
    width: 2px;
    z-index: -1;
}


.branch-cont::before {
    content: attr(data-year);
    position: absolute;
    top: -3.5px;
    left: 35px;
    width: 50px;
    text-align: center;
    color: #ffffff;
}

.branch-cont::after {
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background-color: #ffffff;
}

    .event {
        transform: none !important;
        transition: none !important; /* Disable any transition effects for mobile */
        margin-left: 0 !important; /* Ensure margin-left is reset for mobile */
    }

    .filter-search-container {
        display: none;
    }

    .mobile-interface {
        display: flex;
        flex-direction: column; /* Stack filter-search and view container vertically */
        position: absolute;
        z-index: 998;
        top: 16vh;
        width: 100%; /* Ensure it takes full width */
    }
    
    .filter-search-container-mobile {
        display: flex; /* Use flexbox for layout */
        flex-direction: row; /* Keep elements in a single row */
        align-items: center; /* Center items vertically */
        justify-content: center; /* Center items horizontally */
        padding: 1rem; /* Add padding */
        gap: 1rem;
        

    }
    
    .view-container-mobile {
        display: flex; /* Use flexbox for layout */
        position: relative; /* Position relative to parent */
        flex-direction: row; /* Keep elements in a single row */
        align-items: center; /* Center items vertically */
        justify-content: center; /* Center items horizontally */
        width: 100%; /* Set width */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Adjust for exact centering */
        border-radius: 8px; /* Rounded corners */
        }
    
    .view-switch-buttons, .order-switch-buttons {
        display: flex; /* Use flexbox for layout */
        flex-direction: row; /* Keep elements in a single row */
        align-items: center; /* Center items vertically */
        justify-content: center; /* Center items horizontally */
        padding: 1rem; /* Add padding */
        font-size: .75em;
        width: 100%; /* Full width for buttons */
    }
    
    #mobile-category-filter, 
    #mobile-search-bar, 
    #toggle-button {
        height: max-content;
        font-size: 1em;
        font-family: 'Raleway', sans-serif;
        border: 1px solid #ccc;
        border-radius: 4px;
        width: 100%; /* Full width for small screens */
        max-width: 200px; /* Limit the maximum width */
        background-color: #fff;
        color: #0a0a0a;
        transition: background-color 0.3s, color 0.3s;
        box-shadow: 0 2px 4px rgba(17, 17, 17, 0.57);
        padding: 0.5em;
    }
    
    .filter-spacer {
        margin-top: 9vh; /* Adjust top margin for mobile */
        margin-left: auto; /* Center the spacer */
        margin-right: auto; /* Center the spacer */
    }
    

    .timeline {
        position: relative;
        margin-top: 37vh;
        width: 90%;
        margin-left: -1rem;
        border-left: 2px solid #ffffff;
        transition: none; /* Disable transition for mobile */
    }

iframe {
    height: 50vw;
    width: 100%;
}


.project-item {
    width: 100%;
}

.project-grid {
    position: relative;
    display: grid;
    margin-top: 14rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 50px;
    z-index: -1;
    padding: 2rem 2rem;
    grid-auto-rows: minmax(100px, auto); /* Adjusts row height based on content */
}

.project-p {
    margin-top: 1rem; 
    margin-bottom: 2.5rem; 
    width: 5%; 
    align-self: center; 
    font-weight: 600
}

#image-viewer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    z-index: 10000;
    display: none; /* Initially hidden */
}

#image-viewer img {
    max-width: 90vw;
    max-height: 90vh;
}

.img-close-button {
    position: absolute;
    top: -10px;
    right: 10px;
    cursor: pointer;
    color: #ffffff;
    font-size: 24px;
}

}

