@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
*
{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
}

body
{
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: yellow;
    font-family: "Oswald", sans-serif;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1; 
  }
  ::-webkit-scrollbar-thumb {
    background: #888; 
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #555; 
  }

  svg
  {
    position: absolute;
    z-index: -1000;
    width: 100vw;
    height: 100vh;
  }
      
.Project-container
{
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    display: flex;
    flex-shrink: 0;
    gap: 10px;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 10px;
}

.card
{
    position: relative;
    width: 450px;
    height: 350px;
    border-radius: 20px;
    background-color: white;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: 1s ease;
}

.card:hover
{
    cursor: pointer;
}

.card .cross
{
    position: absolute;
    top: 30px;
    right: 50px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color:white;
    display: none;
}

.card .cross .fa-close
{
    color: red;
}


.card .card-image
{
    position: absolute;
    top: 15px;
    width: 420px;
    height: 250px;
    overflow: hidden;
    border-radius: 15px;
    transition: 1s ease;
}

.card:nth-child(1) .card-image
{
    background-image: linear-gradient(45deg, #ff9a9e 0%, #fad0c4 99%, #fad0c4 100%);
}
.card:nth-child(2) .card-image
{
    background-image: linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%);
}
.card:nth-child(3) .card-image
{
    background-image: linear-gradient(to top, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
}
.card:nth-child(4) .card-image
{
    background-image: linear-gradient(to top, #fbc2eb 0%, #a6c1ee 100%);
}
.card:nth-child(5) .card-image
{
    background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}
.card:nth-child(6) .card-image
{
    background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
}
.card:nth-child(7) .card-image
{
    background-image: linear-gradient(120deg, #f6d365 0%, #fda085 100%);
}
.card:nth-child(8) .card-image
{
    background-image: linear-gradient(to right, #b8cbb8 0%, #b8cbb8 0%, #b465da 0%, #cf6cc9 33%, #ee609c 66%, #ee609c 100%);
}


.card .card-image img
{
    display: none;
}

.card .card-image h1
{
    position: relative;
    top: 10px;
    left: 10px;
    color: rgb(255, 255, 255);
    transition: 1s ease;
}

.card .card-content
{
    position: absolute;
    width: 420px;
    bottom: 25px;
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 1s ease;
}

.card .card-content h1
{
    text-transform: capitalize;
}

.card .card-content .socialicons
{   
    width: 50px;
    font-size: 20px;
}

.card .card-content .socialicons a
{
    color: black;
}


.card.active
{
    position: absolute;
    width: 90vw;
    height: 95vh;
    z-index: 1000;
}

.card.active .card-image
{
    width: 98%;
    height: 50vh;
}

.card.active .card-content
{
    width: 95%;
    bottom: 25px;
    top: 5vh;
}

.card.active .cross
{
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1100;
}

.card.active .cross:hover
{
    transform: scale(1.2);
}

.card .card-details
{
    display: none;
}

.card.active .card-details
{
    display: block;
    width: 95%;
    height: 30vh;
    padding: 10px;
    overflow: hidden;
    overflow-y: scroll;
    position: relative;
    top: 25vh;
    left: 0;
}


ul
{
    position: relative;
    left: 20px;
}


.card.active .card-image h1
{
    font-size: 80px;
}

@media (max-width:500px) 
{
    .card
{
    width: 90%;   
}

.card .card-image
{
    width: 90%;
}
.card .card-content
{
    width: 90%;
}

    .card .card-content h1
    {
        font-size: 20px;
    }
}

@media (max-width:350px) 
{
    .card .card-content h1
    {
        font-size: 15px;
    }
}

