
@import url('https://fonts.googleapis.com/css2?family=Poetsen+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tagesschrift&display=swap');

html {
  scroll-behavior: smooth;
}

.tagesschrift-regular {
  font-family: "Tagesschrift", system-ui;
  font-weight: 400;
  font-style: normal;
}
.poetsen-one-regular {
  font-family: "Poetsen One", sans-serif;
  font-weight: 400;
  font-style: normal;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
  }
  .container {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #797979;
    background-image: 
    radial-gradient(closest-side, rgb(151, 151, 151), rgba(235, 105, 78, 0)),
    radial-gradient(closest-side, rgb(222, 222, 222), rgba(243, 11, 164, 0)),
    radial-gradient(closest-side, rgb(151, 151, 151), rgba(254, 234, 131, 0)),
    radial-gradient(closest-side, rgb(75, 75, 75), rgba(170, 142, 245, 0)),
    radial-gradient(closest-side, rgb(37, 37, 37), rgba(248, 192, 147, 0));
    background-size: 
      130vmax 130vmax,
      80vmax 80vmax,
      90vmax 90vmax,
      110vmax 110vmax,
      90vmax 90vmax;
    background-position:
      -80vmax -80vmax,
      60vmax -30vmax,
      10vmax 10vmax,
      -30vmax -10vmax,
      50vmax 50vmax;
    background-repeat: no-repeat;
    animation: 10s movement linear infinite;
    filter: saturate(0);
    transition: 0.8s;
  }


@keyframes movement {
  0%, 100% {
    background-size: 
      130vmax 130vmax,
      80vmax 80vmax,
      90vmax 90vmax,
      110vmax 110vmax,
      90vmax 90vmax;
    background-position:
      -80vmax -80vmax,
      60vmax -30vmax,
      10vmax 10vmax,
      -30vmax -10vmax,
      50vmax 50vmax;
  }
  25% {
    background-size: 
      100vmax 100vmax,
      90vmax 90vmax,
      100vmax 100vmax,
      90vmax 90vmax,
      60vmax 60vmax;
    background-position:
      -60vmax -90vmax,
      50vmax -40vmax,
      0vmax -20vmax,
      -40vmax -20vmax,
      40vmax 60vmax;
  }
  50% {
    background-size: 
      80vmax 80vmax,
      110vmax 110vmax,
      80vmax 80vmax,
      60vmax 60vmax,
      80vmax 80vmax;
    background-position:
      -50vmax -70vmax,
      40vmax -30vmax,
      10vmax 0vmax,
      20vmax 10vmax,
      30vmax 70vmax;
  }
  75% {
    background-size: 
      90vmax 90vmax,
      90vmax 90vmax,
      100vmax 100vmax,
      90vmax 90vmax,
      70vmax 70vmax;
    background-position:
      -50vmax -40vmax,
      50vmax -30vmax,
      20vmax 0vmax,
      -10vmax 10vmax,
      40vmax 60vmax;
  }
}
  .container nav {
    background: #e4e4e4;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 25px 20px -20px rgba(0, 0, 0, 0.4);
    transition: 1s;
  }
  .container nav:hover {
    box-shadow: 0 25px 20px -20px rgba(0, 0, 0, 0.8);
    scale: 1.2;
  }

  .container nav ul li {
    list-style: none;
    display: inline-block;
    padding: 13px 25px;
    margin: 10px;
    font-size: 18px;
    font-weight: 500;
    color: #787878;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: .5s;
    font-family: "Poetsen One";
  }
  .container nav ul li::after {
    content: '';
    background: #b0b0b0;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
  }
  .container nav ul li:hover{
    color: #ffffff;
    scale: 1.2;
  }
  .container nav ul li:hover::after{
    opacity: 1;
  }

  .intro {
    height: 100vh;
    transition: .8s;
    background-color: #e4e4e4;
    display: flex;
    justify-items: center;
    align-items: center;
  }
  .intro p {
    font-size: 18px;
    transition: .8s;
    font-family: "Poetsen One";
    color: #787878;
    margin-left: 20vh;
    margin-right: 20vh;
  }





  .showcard {
    background-color: #797979;
    background-image: 
    radial-gradient(closest-side, rgb(151, 151, 151), rgba(235, 105, 78, 0)),
    radial-gradient(closest-side, rgb(222, 222, 222), rgba(243, 11, 164, 0)),
    radial-gradient(closest-side, rgb(151, 151, 151), rgba(254, 234, 131, 0)),
    radial-gradient(closest-side, rgb(75, 75, 75), rgba(170, 142, 245, 0)),
    radial-gradient(closest-side, rgb(37, 37, 37), rgba(248, 192, 147, 0));
    background-size: 
      130vmax 130vmax,
      80vmax 80vmax,
      90vmax 90vmax,
      110vmax 110vmax,
      90vmax 90vmax;
    background-position:
      -80vmax -80vmax,
      60vmax -30vmax,
      10vmax 10vmax,
      -30vmax -10vmax,
      50vmax 50vmax;
    background-repeat: no-repeat;
    animation: 10s movement linear infinite;
    padding: 50px;
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    column-count: 4;
    gap: 100px;
    
}

@media (max-width:2800px){
    .showcard{
        column-count:3;
    }
}
@media (max-width:1800px){
    .showcard{
        column-count:2;
    }
}
@media (max-width:1100px){
    .showcard{
        column-count:1;
    }
}


.card{
    position: relative;
    background-color: #e4e4e4;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    width: 450px;
    height: 630px;
    text-align: center;
    transition: 1s;
    margin-bottom: 50px;
    margin-top: 50px;
}
.card .photo img{
    width: 100%;
    object-fit: cover;
}

.card .photo {
    position: absolute;
    top:0;
    width: 100%;
    height: 100%;
    border-radius: 0%;
    overflow: hidden;
    transition: 0.5s;
    z-index: 9;
    filter: saturate(1) blur(0px);
    
}
.card:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
    transition: .5s;

}
.card:hover .photo {
    
    
    overflow: hidden;
    transition: 0.5s;
    box-shadow: 0 25px 20px -20px rgba(0, 0, 0, 0.4);
    filter: saturate(0) blur(15px) contrast(4) brightness(0.6);
    z-index: 0;
    
}

.card h1 {
    position: absolute;
    opacity: 0%;
    top: 25%;
    color: rgb(255, 255, 255);
    font-family: "Poetsen One";
    font-size: 2.3rem;
    z-index: 9;
    transition: 0.3s;
}
.card:hover h1 {
    opacity: 100%;
}
.card p {
    font-size: 18px;
    color: rgb(255, 255, 255);
    margin: 30px;
    top: 50%;
    opacity: 0%;
    font-family: "Tagesschrift";
    position: absolute;
    z-index: 9;
    transition: 0.3s;
}
.card:hover p {
    opacity: 100%;
}
.card p::-webkit-scrollbar {
    display: none;
}

.card a:hover {
    color: #ffffff;
    transition: .3s;
}



@media screen and (max-width: 1500px) {

    .intro p {
    margin-left: 15vh;
    margin-right: 15vh;
  }

}

@media screen and (max-width: 1000px) {
    .container {
      display: none;
    }


}
@media screen and (max-width: 550px) {
    
    .card {
      width: 300px;
      height: 420px;
    }
    .intro p {
    margin-left: 5vh;
    margin-right: 5vh;
    }
    .card:hover h1 {
      font-size: 1.4rem;
    }
    .card:hover p {
      font-size: 12px;
    } 
    
}

