@import url('https://fonts.googleapis.com/css2?family=Playwrite+DE+Grund:wght@100..400&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Playwrite DE Grund", cursive;
}

html{
    background-image: url('proj/back.webp');
    background-size: cover;
    height: 100vh;
}

h1{
    display: block;
    background-color: #e3e9e950;
    backdrop-filter: blur(5px);
    padding-top: 4rem;
    text-align: center;
}

.box{
    width: 80%;
    height: 80vh;
    margin: 8rem auto;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    border: 2px solid black;
    background-color: #e3e9e950;  
    backdrop-filter: blur(3px); 
    border-radius: 20px;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 2vmax;
    padding-bottom: 2vmax;
    overflow-y: scroll;
}

.box:hover{
    backdrop-filter: blur(5px);
}

.proj{
    width: 22vmax;
    border: 4px dotted;
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.proj img{
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.proj:hover img{
    transform: scale(1.4);
}

.footer h1{
    display: block;
    background-color: #e3e9e950;
    backdrop-filter: blur(8px);
    text-align: center;
    padding: 0;
}

.proj .text{
    width: 100%;
    height: 100%;
    opacity: 0;
    position: absolute;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: clamp(2vh, 2rem, 2vw);
    font-weight: 900;
}

.proj:hover .text{
    opacity: 1;
    background-color: #f1dede6c;
    backdrop-filter: blur(3px);
}

a{
    color: black;
}
/* General scrollbar styling */
::-webkit-scrollbar {
    width: 17px;
    border-radius: 20px;
}

::-webkit-scrollbar-track {
    /* border-radius: 20px; */
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
    border: 3px solid;
    border-radius: 20px;
}


/* Thumb */
thumb {
    background-color: #888;
    border: 3px solid;
    border-radius: 20px;
}


@media (max-width: 728px){
.proj{
    width: 80%;
    height: 20%;
}
}