/****styling modal on smaller screen******/


@media (max-width: 1200px) {
  .category-container {
    width: 100%;
    flex-wrap: wrap;
  }

  .category-box img{
    width: 150px;
    height: 150px;
  }



@media(max-width:1024px){
  .navigation{
    width: 100%;
    justify-content: space-between;
    height: 65px;
    padding: 35px 25px;
  }
  .navigation .menu{
    position: absolute;
    top: 6px;
    left: 0px;
    background-color: #000000;
    border-bottom: 1px solid #24242410;
    width: 100%;
    padding: 0px;
    margin: 0px;
    z-index: 100;
    display: none;
  }
  .menu-icon{
    display: block;
  }
  .navigation .menu li{
    width: 100%;
    margin: 0px;
    color: #000000;
    padding: 0px;
  }
  .navigation .menu li a{
    width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    margin: 0px;
    color: #000000;
    padding: 25px 20px;
    border: 1px solid rgba(211,211,2110.08);
  }
  .navigation .menu li a:hover{
    color: #000000;
    background-color: #a2a2a2;
    transition: all ease 0.2s;
  }
  .nav-icon{
    font-size: 1.2rem;
    cursor: pointer;
  }
  .navigation .menu-btn.menu-btn:checked ~ .menu{
    display: block !important;
  }
  .main-img{
    display: none;
  }
  #main{
    min-height: auto;
    margin-top: 50px;
  }
  .main-text{
    width: 80%;
    max-width: 80%;
    justify-content: center;
    align-items: center;
    display: inline;
    flex-direction: column;
    text-align: center;
  }

  .main-text a {
    display: inline-flex;
  }

  #categories{
    margin-top: 50px;
  }
  .category-container{
    width: 60%;
  }

  .footer-container{
    flex-direction: column;
  }
  .footer-menu{
    display: inline;
    margin-top: 50px;
  }
}

@media(max-width:724px){
  .logo{
    font-size: 1rem;
  }
  .media-text h1{
    font-size: 1.6rem;
    line-height: 35px;
  }
  #categories h2,
  .banner-text strong{
    font-size: 1.5rem;
  }
  .footer-menu-box{
    /*display: grid;
    grid-template-columns: 1fr 1fr;*/
    width: 100%;
    margin-bottom: 20px;
  }
}

@media(max-width:500px){
  .category-container{
    flex-direction: column;
  }
  .category-box,
  .category-box img{
    width: 100%;
    height: 90%;
  }



/* Three image containers (use 25% for four, and 50% for two, etc) */
.column {
    float: left;
    width: 50%;
    padding: 30px;
}

/* Category Section */
.section-category {
  padding: 5rem 0;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap; /* Allow children to wrap to the next line */
  justify-content: center;
  text-align: center;
  margin: 0 -1rem; /* Negative margin to remove extra space on the sides */
  background-image: url('../images/category/category_background.svg');
  background-size: cover;
}

.cat-center {
  background-color: #CDE0FF;
  display: flex;
  justify-content: space-between; /* Distribute items evenly with space between them */
  max-width: 114rem;
  margin: auto;
  padding: 0 1rem; /* Reduced padding to avoid extra space */
  flex-wrap: wrap; /* Allow children to wrap to the next line */
}

.cat-center .cat {
  flex-basis: calc(33.33% - 2rem); /* Set the width of each category, accounting for margins */
  height: 30rem; /* Increase the height to make categories larger */
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-align: center;
  margin-bottom: 2rem; /* Add margin between categories */
}

.cat-center .cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 2s ease;
}

.cat-center .cat:hover img {
  transform: scale(1.1);
}

.cat-center .cat div {
  position: absolute;
  bottom: 1%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2); /* Increase transparency by reducing the alpha value */
  border: 2px solid #000;
  width: 18rem;
  height: 5rem;
  line-height: 5rem;
  text-align: center;
  font-size: 2rem;
  font-weight: 500;
  backdrop-filter: blur(1px);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Three image containers (use 25% for four, and 50% for two, etc) */
.column {
  float: left;
  width: 50%;
  padding: 30px;
}

/* Clear floats after image containers */
.row::after {
  content: "";
  clear: both;
  display: table;
}

