/* Link in animations.css */  
/* ================================================================================================ */
@import url("animations.css");

* {
    /* Asterisk is a UNIVERSAL selector targetting every single element on the page */
    box-sizing: border-box;
    /* border-box ensures padding and border are included in sizing of element NOT MARGIN  */
}

body {
    
    background-color: rgb(214, 214, 214);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#home {
    position: absolute;
    top: calc(2.5vw - 8px);
    left: 2.5vw;
    padding: 10px;
    color: rgb(154, 167, 13);
    font-size: 30px;
    border-radius: 5px;
    z-index: 1000;
}

/* #top {
    } */

#filterSelect {
    
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    position: fixed;
    margin: 2.5vw;
    min-width: 15px;
    z-index: 999;
    animation: slideD 0.3s ease-in-out;
    

}

/*FILTER SELECT FOR SMALLER SCREENS */
/* ===================================================================== */

/* Dropdown for mobile */
#filterDropdown {
    display: none;
    position: fixed;
    top: 20px;
    right: 10px;
    z-index: 999;
}

#filterDropdown select {
    padding: 2px 10px;
    background-color: #f1f1f1;
    border: none;
    position: fixed;
    right: 2.5vw;
    top: 3.75vw;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

#filterDropdown select:focus {
    outline: none;
    background-color: #ddd;
}
/* ===================================================================== */






/* FILTER */
/* ================================================================================================ */
.container {
  display: flex;
  width: 95%;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1vw;
  margin: 2.5vw 2.5vw 0 2.5vw; 
  /* Top margin calculated to be 2.5vw below home button by default */
  padding: 0;
  position: relative;
}

.project {
  flex: 1 1 21.25%;
  min-width: 250px;
  max-width: 400px; /* Set a maximum width for larger screens */
  padding: 0;
  background-color: #d1d1d1;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
  line-height: 1;
  justify-content: center;
  text-align: center;
  display: none; /* Hidden by default */
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 1); /*Card effect*/
  margin-top: 5px;
  border-radius: 15px;
  position: relative; /* For overlay positioning */
  text-decoration: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.project .title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
    padding: 10px 10px 5px 10px;
    border-radius: 15px 15px 0 0; /* Rounded corners on top */
    line-height: 0.9;
    vertical-align: center;
    /* background-size: cover;
    background-position: top center;
    background-repeat: no-repeat; */
    height: 200px;
}

.blurb {
    width: 100%;
    padding: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.blurb .skills {
  flex: 1 1 20%;
  background: linear-gradient(to right, rgb(183, 198, 19), rgb(70, 77, 39));
  border-radius: 30px;
  padding: 5px;
  max-width: fit-content;
  max-height: fit-content;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  
}

.overlay {
    z-index: 500;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(104, 104, 104, 0.35);
    border-radius: 15px;
    color: #00000000;
}


/* The "show" class is added to the filtered elements */
.show {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  animation: blurToFocus 1s ease-out forwards;
}





/* Style the buttons */
.btn {
  border: none;
  outline: none;
  padding: 12px 16px;
  background-color: #f1f1f1;
  cursor: pointer;
}

/* Add a light grey background on mouse-over */
.btn:hover {
  background-color: #ddd;
}

/* Add a dark background to the active button */
.btn.active {
  background-color: #666;
  color: white;
}

.project:hover {
    transform: scale(1.025);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.project:hover .overlay {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    color: white;
}

.webdes:hover .overlay {
    opacity: 1;
    background-color: black
}

/* Media Queries for Responsive Design */
/* ================================================================================================ */

/* Mobile devices (768px and below) */
@media (max-width: 930px) {
    #filterSelect {
        display: none;
    }
    
    #filterDropdown {
        display: block;
    }
    
    .container {
        width: 95%;
        margin: 2.5vw 2.5vw 0 2.5vw;
    }
    
    .project {
        flex: 1 1 100%;
        max-width: none;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

