/* please don't judge me for the code. it was made in a rush during some very late nights in 2024 */

html {
    /* Adjust for scroll location */
    /* scroll-padding-top:198px;  */
    scroll-padding-top:168px;
}

body {
    padding-top:193px;
}
.project {
    margin-bottom:100px;
    border-radius:35px;
    background-color: #e16d2a;
    padding:40px;
    filter:drop-shadow(0px 15px 10px #00000080);;
    z-index:-1;
    max-width:800px;
    margin-left:auto;
    margin-right:auto;
}

.project * {
    color:rgb(251, 231, 218);
}

.project h1 {
    background-color: #edb780;
    border-radius:25px;
    padding:30px 20px;
    color:#923f19;
    box-shadow: inset 0px 5px 5px rgba(0, 0, 0, 0.618);
    margin-top:0;
    font-size:40px;
    /* font-weight: bold;s */
}

#controls {
    z-index: 10;
    position:fixed;
    width:100%;
    left:0;
    right:0;
    top:80px;
    background-color: #1d1f2c4f;
    backdrop-filter: blur(30px);
    height:118px;
}

#filters {
    display:block;
    width:min(calc(100% - 140px),800px);
    margin-left:auto;
    margin-right:auto;
}

#filters > * {

    margin:0;
    margin-top:20px;
    margin-bottom:5px;
    padding:0;
    font-size:18px;
}

#filters label {
    display:block;
}

#filters select {
    height:35px;
    border-radius:10px;
    padding:7px;
    width:175px;
}




.project .social-media, .project .banner {
    filter:drop-shadow(0px 5px 2px #0000008c);
}

.project img.icon:hover {
    filter:brightness(120%) drop-shadow(0px 8px 2px #0000008c);
}

.project-body:has(.zoom.active) {
    overflow: visible;
    z-index: 1000;
    padding-top:0.1px;
}

.project:not(.expanding):not(.expanded) > .project-body .asset {
    pointer-events:none;
}

img.zoom { /* https://codepen.io/t_afif/pen/bGYYXvJ */
    --x: 50%;
    --y: 50%;
    transform: scale(100%);
    transition: transform 0.3s;
    transform-origin: var(--x) var(--y);    
    cursor: zoom-in;
    z-index:199;
}

img.zoom:hover:not(.active) {
    transform:scale(1.05)
}

img.zoom.active {
    --zoom:2;
    cursor: zoom-out;
    z-index:200;
    transform: scale(var(--zoom));

}

.asset {
    position:relative;
    display:block;
    margin:10px;
    margin-bottom:0;
}

img.asset:not(.zoom.active) {
    filter:drop-shadow(5px 5px 0 #74340a);
}

.left {
    float:left;
    margin-right:20px;
    margin-left:0px;
    
}
.right {
    float:right;
    margin-left:20px;
    margin-right:0px;
}
  
.left > li, .right > li {
    list-style:none;
}





ul.tags {
    list-style-type:none;
    justify-content:space-between;
    text-align:center;
    padding: 0;
    font-size: 20px;
    overflow-x:hidden;
}

  
ul.tags > li {
    text-align:center;
    display:inline-block;
    padding:8px 15px;
    margin:0px 6px;
    border-radius:14px;
    background-color:#923f19;
    /* color:#edb780; */
    font-weight:bold;
    border:2px  solid;
    justify-self:center;
    white-space:nowrap;
    text-transform:capitalize;
}

.project-body {
    
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease-in-out, opacity 0.3s ease-in-out;
    background-color: #923f19;
    box-shadow: inset 0px 5px 5px rgba(0,0,0,0.5);
    padding:0px 40px 0px;
    margin-top:20px;
    min-height:30px;
    border-radius:20px;
    min-width:50px;
    min-height:70px;
    margin-left:auto;
    text-align: left;
    margin-right:auto;
}

.project-body *:not(.project-dropdown-btn) {
    opacity : 0;
    transition: opacity 0.3s ease;
    font-size:18px;
font-family: Arial, sans-serif;
}

.project-body p {
    margin-top:30px;
    margin-bottom:40px;
}


.project.expanding *,
.project.expanded .project-body * {
    opacity: 1;
    
}

.project-dropdown-btn {
    position:absolute;
    bottom:40px;
    left:0;
    align-items: center;
    justify-content: center;
    width:100%;
    background: none;
    border: none;
    font-size: 24px;
    height:70px;
    cursor: pointer;
    transition: transform 0.2s ease;
    /* margin-bottom:0px; */
    filter: drop-shadow(0px 4px 3px black)
}

.project.expanded .project-dropdown-btn {
    transform: rotate(180deg);
    filter: drop-shadow(0px -4px 3px black)
}

.project-dropdown-btn::before {
    display: inline-block;
    margin:auto;
    
    transform:scaleX(3);
    content: "⮟";

}

