.dropdown-content {
    display: none;
    position: absolute;
    background-color: cornflowerblue;
    backdrop-filter: blur(2px); 
    width: 100%;
    border-radius: 10px;
    transform: translateY(3px);
    z-index: 2;
}


.dropdown:hover .dropdown-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.dropdownbtn {
    display: flex;
    padding: 5px;
}

.dropdownbtn label{
    display: block;
    width: 100%;
    border-radius: 10px;
    text-align: center;
    color: white;
}

.dropdownbtn label:has(input[type="checkbox"]:checked) {
    background-color: white;
    color: cornflowerblue;
    border-color: rgb(243, 243, 243);
}





.dropdownbtn :hover{
    background-color: white;
    color: cornflowerblue;
}

#dropdownwrapper {
    height: fit-content;
    width: fit-content;
}

.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown{
    width: 200px;
    position: relative;
    margin: 1%;
    border-bottom: 3px solid transparent;
}

.dropdown-content input[type="checkbox"] {
    display: none;
}

input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
}

input[type="radio"]:checked + label {
    background-color: white;
    color: cornflowerblue;
}

#filter-container {
    padding: 2%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    position: relative;
}

.filter-buttons {
    background-color: white;
    border-radius: 0;
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    transition: none;
    width: 100%;
}

.filter-buttons:hover {
    transition: none;
    border-radius: 0;
}

#searchbar {
    width: clamp(5rem, 60vw, 100rem);
  }


#searchwrapper {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}


#projectwrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    row-gap: 5rem;
    margin-top: clamp(5rem, 20vw, 10rem);
    padding: 15px;
    justify-content: center;
}

#projectwrapper a {
    text-decoration: none;
}

#project {
    display: block;
    position: relative;
    width: clamp(14rem, 18vw, 20rem);
    height: clamp(14rem, 18vw, 20rem);
    padding: 1rem;
    border: 2px solid black;
    margin-left: auto;
    margin-right: auto;
    border-radius: 25px;
    background-size: cover;         
    background-position: center;    
    background-repeat: no-repeat;   

    overflow: hidden
}   

#project::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: black;
    opacity: 0;
    text-decoration: none;
    transition: 0.5s ease-out;
}

#project:hover::before {
    opacity: 0.5;
    transition: 0.1s ease-in;
}

#title {
    text-align: center;
    z-index: 1;
    position: relative;
    color: cornflowerblue;
}

#description {
    text-align: center;
    z-index: 1;
    position: relative;
    margin-top: 30%;
    color: cornflowerblue;
}