/* General reset and box-sizing */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

/* Body and background styling */
body {
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: url('/static/aqar/images/svg/backgrounds/pattern-randomized (2).svg');
}


.main-content {
   flex-grow: 1;
}

/* for company admin in aqar and all aqar financial ar templates */
.main-content-2 {
   flex-grow: 1;
   text-align: center;
}

/* -------------------------------------------------------------------------------------------- */
/* design header */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  overflow-wrap: anywhere;
}

.header {
  height: 10%;
  /background: #70db70;
  background: url('/static/aqar/images/svg/backgrounds/subtle-prism.svg');
  color: white;
  display: flex;
}

.header a {      /* design links like cart and language */
  text-decoration: none;
  /color: #001a00;
  color: white;
}

.header-brand a img {
  height: 100%;
  width: auto;
  max-width:100%;
  max-height: 100%;

}

.header-brand {

  flex: 15%;
  /* background: yellow; */
  max-width: 15%;
  text-align: center;
  padding: 10px;
}

.header .log_cart_language{
  flex: 35%;
  /* background: lightgreen; */
  width: 100%;
  text-align: center;
  display: -webkit-box;  /* for old browsers */
  display: -ms-flexbox;  /* for old browsers */
  display: flex;
}

.log_cart_language .log_link{
  -webkit-box-flex: 45%;  /* for old browsers */
  -ms-flex: 45%;  /* for old browsers */
  width: 45%;  /* for old browsers */
  flex: 45%;
  /* background: lightblue; */
  text-align: center;
  color: black;
  /*  for center content vertically */
  display: flex;
  justify-content: center;
  align-items: center;
}

.log_cart_language .cart_link{
  -webkit-box-flex: 40%;  /* for old browsers */
  -ms-flex: 40%;  /* for old browsers */
  width: 40%;  /* for old browsers */
  flex: 40%;
  /* background: lightyellow; */
  text-align: center;
  color: black;
  /*  for center content vertically */
  display: flex;
  justify-content: center;
  align-items: center;
}

.log_cart_language .language_link{
  -webkit-box-flex: 15%;  /* for old browsers */
  -ms-flex: 15%;  /* for old browsers */
  width: 15%;  /* for old browsers */
  flex: 15%;
  /* background: darkred; */
  text-align: center;
  color: black;
  /*  for center content vertically */
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-search-bar{

  flex: 50%;
  /* background: pink; */
  max-width: 50%;
  text-align: center;
  padding: 15px 20px;
  max-height: 100%;  /* modified */
}


.header-search-bar form {
  margin: 0px;
  padding: 0px;
}

.header-search-bar input[type=text] {
  padding: 6px;
  font-size: 100%;
  border: none;
  width: 90%;
  height: 100%
}

.header-search-bar button {
  padding: 0px;
  background: #ddd;
  border: none;
  cursor: pointer;
  width: 10%;
  height: 100%;
  float: right;
}

@media screen and (max-width: 600px) {
  .header-brand {
    max-width: 100%;
    flex: auto;
    padding: 0px;
    margin: 0;
  }

  .header .logandcart{
    max-width: 100%;
    flex: auto;
    padding: 7px;
    margin: 0;
  }

  .header-search-bar button {
  height: 32;
  max-height: 100%;  /* modified */
}


  .header-brand a img {
    width: 50%;
    height: auto;
    padding-top: 1em; padding-bottom: 1em;
  }

  .header {
    float: none;
    display: block;
    text-align: center;
    width: 100%;
    height: auto;
    margin: 0;
  }

    .header-search-bar {   /* modified */
    display: block;    /* modified */
    width: 100%;
    max-width: 100%;
    padding: 0px;
    margin: 0;
    max-height: 2em;     /* modified */
  }

  .header-search-bar form {   /* modified */
   width: 100%;          /* modified */
   height: fit-content;   /* modified */
   max-height: 100%;
  }

  .header-search-bar input[type=text] {
    border: 1px solid #ccc;
    height: 32;  /* modified */
    max-height: 32;
  }
}

/* ----------------------------------------------------------------------------------------------------------- */
/* design sort button and its div */
/* and also userlogbtn in product.html which shows log in and out ....... */
.sortbtn{
  /background-color: lightgreen;
  padding: 10px;
  border: solid 1px lightgrey;
  font-size: 17px;
  margin-left: 2em;
  margin-top: 1em;
}

.userlogbtn {
  background-color: transparent;
  padding: 10px;
  border: none;
  font-size: 17px;
  color: white;
  cursor: pointer;
}
.userlogbtn:hover { color: yellow;}

.sort_div_content, .usermainbtn_div_content, .sort_div_content_pd {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  max-height: 70%;
  overflow-y: auto;
}

.sort_div_content a, .usermainbtn_div_content a, .sort_div_content_pd a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: center;
}

.sort_div_content a:hover, .usermainbtn_div_content a:hover, .sort_div_content_pd a:hover {
  background-color: #ddd;
  color: black;
}

/* --------------------------------------------------------------------------------------------------------- */
/* design footer */
.footer-container {
  background: url('/static/aqar/images/svg/backgrounds/subtle-prism.svg');
}
.footer {
  padding: 0.3em;
  text-align: center;
  /background: #70db70;
  /* margin-top: 1em; */
}
.footer_1 {
  padding: 0.3em;
  text-align: center;
  /background: #70db70;
  padding-top: 1em;
}
.footer_1 a { text-decoration: none; color: black; font-size: 17px; }
.footer_1 a:hover { color: blue; }

.footer_social {
  text-align: center;
  /background: #70db70;
}
.footer_social img {height: 2em;}
/*-------------------------------------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------------------- */

/* design top navigation bar   */

.topnav {
  overflow: hidden;
  background-color: #e6ff99; /*#333;*/
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.active {
  background-color: green; /*#4CAF50;*/
  color: white;
  font-weight: bold;
}

.topnav .icon {
  display: none;
  font-size: 20px;
  color: #1a3300;
  font-weight: bold;
}

.dropdown {
  float: right;  /* ar */
  overflow: hidden;
}

.dropdown .dropbtn {
  font-size: 17px;
  border: none;
  outline: none;
  color: #1a3300;
  font-weight: bold;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  max-height: 70%;
  overflow-y: auto;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: center;
}

.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  color: white;
  cursor: hand;

}

.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

.dropdown:hover .dropdown-content {
  display: block;
}


 @media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    /display: none;
  }
  .topnav a.icon {
    float: left;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* ---------------------------------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------------------------------------- */
/* design all products button in top navigation */

.allproductsbtn {
  font-size: 17px;
  border: none;
  outline: none;
  color: #1a3300;
  font-weight: bold;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}
.allproductsbtn:hover { background-color: #555; color: white; cursor: hand; }

.allproducts-content, .secondproducts-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  max-height: 70%;
  overflow-y: auto;
}

.allproducts-content a, .secondproducts-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: center;
}

@media screen and (max-width: 600px) {
  .dropdown .allproductsbtn {
    /display: none;
  }

  .topnav.responsive .allproducts-content {position: relative;}
  .topnav.responsive .secondproducts-content {position: relative;}
  .topnav.responsive .dropdown .allproductsbtn {
    display: block;
    width: 100%;
    text-align: left;
  }
}

/* ----------------------------------------------------------------------------------------------- */

