@import url("https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Poppins:wght@300;400;500;600;700;900&family=Source+Serif+Pro:wght@400;600;700&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
li {
  list-style: none;
}

a {
  text-decoration: none;
  color: black;
}

.header {
  padding: 10px;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9)),
    url(img/header.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

h1 {
  font-family: "Kaushan Script", sans-serif;
  font-size: 75px;
  color: #fff;
}

.container {
  padding: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin: 40px auto;
}
.container ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.container ul li {
  letter-spacing: 1px;
  padding: 5px 15px;
  cursor: pointer;
  margin: 5px;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  font-weight: 500;
  font-size: 15px;
}
.container ul li.active {
  border-color: #c70039;
  color: #e84545;
}

.product {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.product .itembox {
  position: relative;
  width: 400px;
  height: 300px;
  margin: 5px;
  display: block;
}
.product .itembox img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 0;
  top: 0;
  cursor: pointer;
}

.container .product .itembox.show {
  animation: show 0.5s ease 0s 1 forwards;
  transform-origin: center;
}
.container .product .itembox.hide {
  animation: hide 0.5s ease 0s 1 forwards;
  transform-origin: center;
}

@keyframes hide {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
    width: 0;
    height: 0;
    margin: 0;
  }
}
@keyframes show {
  0% {
    transform: scale(0);
    width: 0;
    height: 0;
    margin: 0;
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 468px) {
  .product .itembox {
    width: 320px;
    height: 250px;
  }
}
