@import "../../../styles/varibale.scss";

.megamenu {
  background-color: #f2f2f2;
  display: flex;
  flex-direction: row;
  height: 85vh;
  border-radius: 10px;
  padding: 1.5em;

  &__list {
    display: flex;
    align-items: flex-start;
    background: #FFFFFF;
    
    &__main {
      background: #FFFFFF;
      box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
      // 
      padding: 0.5em;
      font-style: normal;
      font-weight: 400;
      font-size: 0.9em;
      line-height: 1em;
      color: rgba(71, 70, 73, 1);
      width: 47%;
      overflow: auto;
    }

    &__sublist {
      background: #FFFFFF;
      box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
      padding: 0.5em;
      // 
      font-style: normal;
      font-weight: 400;
      font-size: 1em;
      line-height: 1em;
      color: rgba(71, 70, 73, 1);
      width: 53%;
      overflow: auto;
    }
  }

  &__bgColor {
    background: #E6E0FF;
    border-radius: 5px;
    // 
    font-style: normal;
    font-weight: 400;
    font-size: 1.1em;
    line-height: 1em;
    color: #291C61;
  }

  &__bgColorSublist {
    background: #FDDADF;
    border-radius: 5px;
    // 
    font-style: normal;
    font-weight: 400;
    font-size: 1em;
    line-height: 1em;
    color: #291C61;
  }
}



.megamenu__list {
  min-width: 28%;
}


.megamenu__details {
  overflow-y: scroll;
  background: #FFFFFF;
  box-shadow: 0px 3px 20px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 2em 2em;
  width: 68%;
}


.categoryImgCard {
  overflow: scroll;
  background: #FFFFFF;
  box-shadow: 0px 3px 20px rgba(0, 0, 0, 0.1);
  border-radius: 5px 0px 0px 5px;
  width: max-content
}

.categoryCard {
  height: 4em;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  margin: 1em 1em;
  background: #F1F1F1;
  border-radius: 5px;
}

.imageDisplay {
  width: 100%;
  border-radius: 50%;
}

.imgDiv {
  padding: 1em;
}

.categoryText {
  // 
  font-style: normal;
  font-weight: 500;
  font-size: 0.9em;
  line-height: 0.9em;
  color: #767676;
}


.menuList {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 3.5em;
}

.menuSublist {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  height: 3.2em;
}

.subMenuCardStyles {
  background: linear-gradient(180deg, #B0A1EF 0%, #291C61 100%);
  border-width: 1px;
  border-style: solid;
  border-color: transparent;
  border-radius: 10px;
}

.headerDetails {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin: 1em 0em;
}

.headerText {
  // 
  font-style: normal;
  font-weight: 500;
  font-size: 1.5em;
  line-height: 1.2em;
  color: #3B3B3B;
}


.buttonStyle {
  width: 10em;
  height: 2.5em;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.searchStyle {
  max-width: 18em;
  height: 2.5em;
}

.cardText {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  color: #3E2E84;
  width: 50%;

  &Name {
    // 
    font-style: normal;
    font-weight: 700;
    font-size: 1.5em;
    line-height: 1.2em;
    color: $primaryColor;
  }
}


.cardStyle {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 16em;
  height: 12em;
  padding: 1em;
  background: linear-gradient(white, white) padding-box, linear-gradient(180deg, #B0A1EF 0%, #291C61 100%) border-box;
  border-width: 1px;
  border-style: solid;
  border-color: transparent;
  border-radius: 10px;
  cursor: pointer;
}


@media (max-width: 1400px) {
  .megamenu {
    &__details {
      width: 60%;
    }

    .categoryText {
      font-size: 1em;
      line-height: 1em;
    }

    .cardStyle {
      width: 14em;
      height: 10em;
      padding: 1em;
    }
  }

  .headerDetails {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-evenly;
  }

  .headerText {
    margin-bottom: 1em;
  }
  .categoryImgCard {
    width: max-content;
  }
}

@media (max-width: 1100px) {
  .cardStyle {
    width: 15em;
    height: 10em;
    padding: 1em;
  }

  .megamenu {
    &__details {
      width: 50%;
    }
  }

  .cardText {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    color: #3E2E84;
    width: 50%;
  
    &Name {
      // 
      font-style: normal;
      font-weight: 700;
      font-size: 1.2em;
      line-height: 1.2em;
      color: $primaryColor;
    }
  }

  .categoryImgCard {
    width: max-content;
  }

}

@media (max-width: 1400px) {
  .cardText {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    color: #3E2E84;
    width: 50%;
  
    &Name {
      // 
      font-style: normal;
      font-weight: 700;
      font-size: 1.2em;
      line-height: 1.2em;
      color: $primaryColor;
    }
  }
}