@property --rotate {
  syntax: "<angle>";
  initial-value: 132deg;
  inherits: false;
}

:root {
  --card-height: 10vh;
  --card-width: calc(var(--card-height) / 0.3);
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction:row-reverse;
  padding-top: 2rem;
  padding-bottom: 2rem;
  box-sizing: border-box;
  background-color: black;
  background-image: linear-gradient(
    var(--rotate)
    , #0f2c008b, #002904 43%, #114300b5);
    animation: spin 3s linear infinite;
}
.cafe-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row-reverse;
}
/* 609966 */
/* 40513B */
/* 609966 */
/* 9DC08B */
.card {
  background: #ffffffc4;
  background-position: center;
  background-size: cover;
  width: var(--card-width);
  height: var(--card-height);
  padding: 3px;
  position: relative;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  text-align: center;
  display: flex;
  font-size: 1.5em;
  color: rgb(0, 0, 0);
  cursor: pointer;
  font-family: cursive;
  margin: 10px;
}
.price{
  position: absolute;
  bottom: -7.5px;
  right: 10px;
  display: none;
  text-shadow: -0.1em -0.2em 0.5em rgb(255, 255, 255) ,-0.1em -0.2em 0.5em rgb(255, 255, 255) ,-0.1em -0.2em 0.5em rgb(255, 255, 255) ;
}

.card.active .price{
  display: block;
}

/* 609966 */
/* 40513B */
/* 609966 */
/* 9DC08B */
.card::before {
  content: "";
  width: 104%;
  height: 110%;
  border-radius: 8px;
  background-image: linear-gradient(
    var(--rotate)
    , #00e917, #134f00 43%, #3f7b56);
    position: absolute;
    z-index: -1;
    top: -4%;
    left: -2%;
    animation: spin 2.5s linear infinite;
}

.card::after {
  position: absolute;
  content: "";
  top: calc(var(--card-height) / 6);
  left: 0;
  right: 0;
  z-index: -1;
  height: 100%;
  width: 100%;
  margin: 0 auto;
  transform: scale(0.8);
  filter: blur(calc(var(--card-height) / 6));
  background-image: linear-gradient(
    var(--rotate)
    , #00ff1a, #ffffff 43%, #00ff1a);
    opacity: 1;
  transition: opacity .5s;
  animation: spin 2.5s linear infinite;
}

@keyframes spin {
  0% {
    --rotate: 0deg;
  }
  100% {
    --rotate: 360deg;
  }
}

/* استایل سرچ باکس */

.search-form {
  width:90%;
  height: 50px;
  display: flex;
  justify-content: space-around;
  margin-bottom: 2rem;
  margin-top: 0.2rem;
  top: 0;
}

.search-form input[type="text"] {
  width: 70%;
  height: 100%;
  border: 2px solid #00e917;
  border-radius: 8px;
  font-size: 1.1em;
  background: #181f1a;
  color: #fff;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #00e91722;
  width: 260px;
}

.search-form input[type="text"]:focus {
  border-color: #3f7b56;
  box-shadow: 0 0 0 2px #3f7b5655;
}

.search-form button {
  width:30%;
  height: 100%; 
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #00e917 0%, #3f7b56 100%);
  color: #181f1a;
  font-size: 1.1em;
  font-family: inherit;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
  box-shadow: 0 2px 8px #00e91722;
}

.search-form button:hover {
  background: linear-gradient(90deg, #3f7b56 0%, #00e917 100%);
  color: #fff;
}