:root {
    --white: #F5F5F5;
    --black: #000000;
    --grey: #ececec;
    --dark-grey: #7F7F7F;
    --text-main: #5b5b5b;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    color: var(--text-main);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* LAYOUTS */


.container {
    display: flex;
    flex-wrap: nowrap; 
    align-items: flex-start;
}

.w-30 {
    position: fixed;
    left: 0;
    top: 0;
    width: 25%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.w-70 {
    margin-left: 25%;
    width: 75%;
    padding: 1rem 1rem 1rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.w-100 {
    flex: 1;
    width: 100%;
    height: 100%;
}

/* TEXT */
h1 {
    font-size: 32px;
    font-weight: 500;
    color: var(--text-main);
}

p, button {
    font-size: 1rem;
}

.logo {
    display: flex;
    gap: .50rem;
    padding-bottom: 1rem;
}

.acknowledgement {
    padding: 1rem 1rem 1rem 0.5rem;
    position: fixed;
    bottom: 0;
    right: 0;
    background: var(--white);
    width: 75%;
    text-align: right;
}

/* TAG CANVAS */
.tag-canvas {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    min-height: 300px; /* Ensures visibility */
}

.tag-canvas canvas {
    width: 100%;
    height: 100%;
}

/* LINKS AND BUTTONS */

.stella:hover {
    cursor: url('images/star.svg') 16 16, auto;  
    height: 100%;
}

.socials {
    list-style: none;
    padding-top: 1rem;
}

.socials li {
    padding-bottom: .5rem;
    list-style: none;
}

.socials li:last-child {
    padding-bottom: 0;
}

.socials a {
    cursor: pointer;
    color: var(--text-main);
    text-decoration-line: underline; /* Specifies that an underline should be present */
    text-decoration-style: dashed;
}

.socials li:hover a {
    text-decoration: underline;
}

.copy-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #333;
    color: var(--white);
    padding: 10px 15px;
    border-radius: 5px;
    transition: opacity 0.3s ease;
}

.copy-message.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ACCORDION */

.project-header {
    display: grid;
    grid-template-columns: 2fr 2.5fr 1fr 0.5fr;
    background-color: var(--grey);
    padding: 0.4rem .5rem;
    gap: 1.5rem;
}

.open-icon {
    justify-self: end;
    transition: transform 0.3s ease;
}

#table-header {
    padding-bottom: 0.5rem;
    margin: 4px;
    color: var(--dark-grey);
    background-color: var(--grey);
}

.accordion-item {
    cursor: pointer;
    margin: 4px;
    user-select: none;
    -webkit-user-select: none;
    background: var(--white);
}

.accordion-item:hover {
    color: var(--black);
}

.accordion-header {
    cursor: pointer;
    position: relative;
}

.accordion-content,
.accordion-content * {
    cursor: default;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    will-change: max-height;
}

.project-overview {
    padding: 1rem 0;
    display: flex;
    gap: 2rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}
  
.image-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

  /* PROJECT LAYOUT */
.project-layout {
    display: grid;
    grid-template-columns: 1fr 2.13fr;
    gap: 1.5rem;
    padding: 2rem .5rem;
}

.project-copy {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-copy a {
    color: var(--text-main);
    text-decoration: underline;
    text-decoration-style: dashed;
}

.project-copy a:hover {
    color: var(--black);
}

/* CAROUSEL */

.carousel-container {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    cursor: grab;
}
.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-track {
    display: flex;
    gap: 1rem;
    padding-right: 20%; /* Creates the peek effect */
}

.carousel-slide {
    min-width: 80%; /* Show 80% of slide + 20% peek */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
}

.carousel-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: var(--black);
    padding: 2rem;
}

/* MOBILE STYLES */
@media (max-width: 800px) {
    .container {
        flex-wrap: wrap;
        flex-direction: column;
    }
    
    .flexbox {
        flex-direction: column;
    }
    
    .w-30 {
        position: relative;
        flex: 0 0 100%;
        padding: 1rem 1rem 0 1rem;
        min-height: auto;
        width: 100%;
        height: auto;
    }
    
    .w-70 {
        margin-left: 0;
        flex: 0 0 100%;
        padding: 1rem;
        width: 100%;
        min-height: auto;
    }

    .tag-canvas {
        min-height: 240px;
        height: 240px;
        margin: 1rem 0 0 0;
    }

    .project-image-div {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
        padding: 1rem;
    }

    .acknowledgement {
        position: relative;
        width: 100%;
        padding: 1rem 0;
        text-align: left;
    }

    .project-header {
        margin: 0;
        grid-template-columns: 2fr 2fr 1fr;
        gap: 0.75rem;
    }
    
    .open-icon {
        display: none;
    }
    
    .project-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-copy {
        padding-right: 0;
    }
    
    
     .carousel-slide {
        min-width: 85%;
        width: 85%; /* Make sure width is also set */
        height: 200px;
    }
    
    .carousel-media {
        width: 100%;
        height: 100%; /* Keep these as 100% */
        padding: 1rem; /* Even less padding on mobile */
        object-fit: contain; /* This ensures proper scaling */
    }

}

