

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&display=swap');

body {
  font-family: "Cairo", sans-serif;
  background-color: #f0f8ff; 
  color: #333;
  margin: 0;
  padding: 0;
  direction: rtl;
  overflow-x: hidden;
}

header {
  background: linear-gradient(90deg, #74b9ff, #81ecec, #a29bfe);
  color: white;
  padding: 30px 20px; 
  text-align: center;
  font-size: 1em; 
  font-weight: bold;
  border-bottom: 5px solid #00cec9;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 50px 50px;
  position: relative;
}

header .emoji {
  font-size: 1m;
  display: inline-block;
  margin-left: 10px;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {
  0%, 100% {
      transform: translateY(0);
  }
  50% {
      transform: translateY(-10px);
  }
}

footer {
  background: linear-gradient(90deg, #55efc4, #81ecec);
  color: #2d3436;
  padding: 20px;
  text-align: center;
  font-size: 1em;
  border-top: 6px solid #00b894;
  box-shadow: 0 -8px 15px rgba(0, 0, 0, 0.1);
  border-radius: 50px 50px 0 0;
  width: 100%;
  padding: 6px;
   position: fixed; 
  bottom: 0;
  
}
/*footer{*/
/*    bottom:0px ;*/
/*    position: fixed;*/

/*  }*/
footer .emoji {
  font-size: 1.5em;
  margin-left: 5px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

main {
  padding: 30px 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.category-card,
.item-card {
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  width: 160px;
  padding: 20px 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s;
  cursor: pointer;
  position: relative;
  border: 3px solid #ffeaa7;
  overflow: hidden;
}

.category-card:hover,
.item-card:hover {
  transform: scale(1.1) rotate(-2deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-color: #fab1a0;
  background: #f8f8f8;
}

.category-card img,
.item-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 50%;
  border: 2px solid #fab1a0;
  background: #ffeaa7;
  padding: 5px;
}

.category-card h3,
.item-card h4 {
  font-size: 1.4em;
  margin: 5px 0;
  color: #2d3436;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.back-button {
  display: inline-block;
  background-color: #ffcc00; 
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-button:hover {
  background-color: #ffa500; 
  transform: scale(1.1);
}

.items-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 20px;
}

h1, h2, h3, h4, h5, h6 {
  color: #ff6347; 
  text-align: center;
}

p {
  font-size: 18px; 
  line-height: 1.6;
  margin: 10px 0;
}

button {
  background-color: #ffcc00; 
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #ffa500; 
}

.container {
  padding: 20px;
}

/* إضافة بعض الرسوميات الخلفية */
body::before {
  content: '';
  background-image: url('../images/15494004.png'); 
  background-size: cover;
  opacity: 0.1;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* تصميم متجاوب للشاشات المتوسطة */
@media (max-width: 768px) {
  header {
      padding: 20px 15px;
      font-size: 1em;
  }
  @media (max-width: 768px) {
    h1{
        font-size:18px
    }
  }


  .category-card,
  .item-card {
      width: 45%;
  }
}

/* تصميم متجاوب للشاشات الصغيرة */
@media (max-width: 480px) {
  header {
      padding: 15px 10px;
      font-size: 1em;
  }

}



@media (max-width: 480px) {
    .category-card, .item-card {
        width: 84%;
    }
}
