:root {
  --primaryTextColor: #ff6900;
  --marginEl: 16px;
  --defaultBg: rgba(0, 0, 0, 0.03);
  --footerBg: #191919;
  --footerBorderBtm: 1px solid rgba(255, 255, 255, 0.15);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  list-style: none;
}
body {
  background-color: rgba(0, 0, 0, 0.03);
}
/* Start of header */
header {
  min-height: 50px;
}
.main-header {
  display: flex;
  align-items: center;
  width: 100%;
}
header nav {
  display: flex;
  background-color: #ffffff;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.5);
  filter: blur(1.2);
  justify-content: space-between;
}
.Xiami-icon {
  margin: 0 16px;
}
nav ul {
  display: flex;
  padding: 8px;
}

/* Also the drop down */
.main-header ul li {
  padding: 8px 16px;
  position: relative;
}
/* .main-header > ul >li:hover .drop-down{
  transform: translateY(-100%);
} */
/* .drop-down{
  position: absolute;
  top: 100%;
  z-index: 1;
  width: fit-content;
  display: flex;
  justify-content: space-between;
  background-color: white;  
  align-items: flex-start;
  width: 100%;
  padding: 16px;
}
.drop-down li{
  margin: 12px 0;
}
.drop-down li div{
  padding: 16px 0;
  padding-top: 0;
}
.drop-down li div p a{ 
  opacity: .7;
}
.drop-down li div p,.drop-down li div strong{
  padding: 8px 0;
}
.drop-down li div p a:hover{
  color: var(--primaryTextColor);
  opacity: 1;
}
.drop-down li div strong a:hover{
  color: var(--primaryTextColor);
} */
a {
  color: black;
}

/* hover effect */

.hover-after {
  position: relative;
}
.hover-after::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: tomato;
  bottom: -8px;
  left: 0;
  transition: all 0.5s;
}
.hover-after:hover {
  color: tomato;
}
.hover-after:hover::after {
  width: 100%;
}

/* Shared content div */

.shared-details {
  display: flex;
  padding: 8px;
}
.shared-details div {
  padding: 8px 16px;
}
.shared {
  display: flex;
  align-items: center;
  margin: 0 48px;
}
.shared .search-icon {
  padding-left: 24px;
  cursor: pointer;
}
.shared .member-icon {
  padding-left: 24px;
  cursor: pointer;
  position: relative;
}
.member-icon div {
  position: absolute;
  border-radius: 8px;
  left: 0;
  z-index: 1;
  background-color: white;
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.2);
  width: max-content;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transition: all .2s;
}
.member-icon > div > .sign-in {
  border-bottom: var(--footerBorderBtm);
  padding: 2px 0;
}
.member-icon:hover > div{
  visibility: visible;
  opacity: 1;
}
.shared .menu-icon {
  padding-left: 24px;
  cursor: pointer;
  display: none;
}

/* Responsive header */

@media only screen and (max-width: 1024px) {
  header > nav > div > ul > li {
    display: none;
  }
  .shared > div > div,
  .shared > .member-icon {
    display: none;
  }
  .shared > .search-icon,
  .shared > .menu-icon {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .shared > .menu-icon {
    display: inline;
  }
}
/* Resposive header */

/* Login modal */

.login-container {
  width: 100%;
  background-color: rgba(0, 0, 0, 0.35);
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  transition: all .5s;
}
.login-container .login-modal {
  background-color: white;
  border-radius: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px 5px rgba(0, 0,0, 0.2);
  width: 450px;
  height: max-content;
  padding: 2% 2%;
  text-align: center;
}
.login-modal i{
  display: inline;
  font-size: 24px;
  float: right;
  cursor: pointer;
}
.login-modal h2 {
  text-align: center;
}
.login-modal input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--primaryTextColor);
  border-radius: 8px;
  margin: 16px 0;
  text-align: center;
  display: block;
}
.login-modal button , .logout-modal button{
  background-color: var(--primaryTextColor);
  padding: 8px;
  border: none;
  border-radius: 8px;
  color: white;
  width: 20%;
  cursor: pointer;
}
.show-login-modal{
  display: inline;
}
.login-container .logout-modal {
  background-color: white;
  border-radius: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px 5px rgba(237, 110, 14, 0.2);
  width: 450px;
  height: max-content;
  padding: 2% 2%;
  text-align: center;
  /* display: flex;
  flex-direction: column;
  align-items: center; */
}
.logout-modal i{
  display: inline;
  float: right;
  font-size: 24px;
  cursor: pointer;
}
.logout-modal button{
  text-align: center;
  margin-top: 16px;
}
.hide{
  display: none;
}


/* Login modal */

/* Hambergut Menu aside Start */
.modal-container {
  background-color: white;
  width: 100%;
  height: 100%;
  overflow-y: hidden;
  position: fixed;
  top: 0;
  left: 100%;
  z-index: 2;
  transition: ease-in-out 0.2s;
}
.modal-container > .modal-close-icon {
  float: right;
  font-size: 24px;
}
.modal-container i:not(.modal-categories > div i, .modal-close-icon i) {
  padding: 0 2%;
  font-size: 24px;
  font-weight: lighter;
}
.modal-container > .modal-login {
  padding: 4% 0 2% 3%;
  font-size: 14px;
  font-weight: normal;
  opacity: 0.9;
  border-bottom: 2px solid var(--defaultBg);
  display: flex;
  justify-content: space-between;
}
.modal-container > .modal-categories {
  padding: 2% 3%;
  border-bottom: 2px solid var(--defaultBg);
}
.modal-container > .modal-categories > div {
  padding: 8px 0;
  font-size: 17px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}
.modal-categories > div i {
  font-size: 24px;
}
.modal-container > .modal-support {
  padding: 2% 3%;
}
.modal-support > div {
  font-size: 12px;
  font-weight: 200;
  padding: 6px 0;
  text-transform: uppercase;
}
.show-modal {
  transform: translateX(-100%);
}
/* Hambergut Menu aside End */

.primary-slider {
  width: 100%;
  height: 80vh;
  position: relative;
  display: flex;
}
.primary-slider > .image {
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all ease-in-out 0.5s;
}
.primary-slider i {
  position: absolute;
  font-size: 32px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 35%;
  backdrop-filter: blur(1.2);
  color: white;
  cursor: pointer;
  opacity: 0.7;
  padding: 4px;
  z-index: 1;
}
.primary-slider i:hover {
  opacity: 1;
}
.next {
  right: 2%;
}
.prev {
  left: 2%;
}
.primary-slider > div > img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
  object-position: center;
}
.primary-slider > div > .image-description {
  position: absolute;
  margin: auto 10%;
}
.primary-slider > div > .image-description p {
  margin-top: 10px;
}
.primary-slider > div > .image-description span {
  font-size: 24px;
  font-weight: 500;
  display: block;
}
.primary-slider > div > .image-description strong{
  font-size: 20px;
  margin-top: 8px;
}
.primary-slider > div > .image-description button {
  background-color: black;
  color: white;
  margin: 24px 0;
  padding: 8px 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  cursor: pointer;
}
.image-description button a {
  color: white;
}
.image-description button:hover {
  opacity: 0.7;
}
.active {
  opacity: 1 !important;
  visibility: visible !important;
}
@media only screen and (max-width: 1024px) {
  .primary-slider {
    height: 360px;
  }
}
@media only screen and (max-width: 720px) {
  .primary-slider {
    height: 480px;
    position: relative;
  }
  .primary-slider > div > img {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }
  .primary-slider > div > .image-description {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    text-align: center;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Category tabs */

.tabs-container {
  width: 100%;
  text-align: center;
  margin: 48px auto;
  position: relative;
}
.tabs {
  padding-top: 36px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.tabs li {
  padding-bottom: 8px;
  font-weight: bold;
  color: black;
  font-size: 18px;
  padding-bottom: 8px;
  cursor: pointer;
}
.wrapper-tabs {
  background-color: white;
  margin: 0 24px;
  border-radius: 12px;
  display: none;
  position: absolute;
  padding: 1.75em 0;
  visibility: hidden;
  height: 0;
}
.wrapper-tabs-content {
  padding: 24px;
  display: flex;
}
.tabs-image {
  width: 100%;
  overflow: hidden;
  flex: 1;
}
.tabs-image img {
  border-radius: 6px 0 0 6px;
  object-fit: cover;
  object-position: center;
  width: 100%;
  transition: all 0.5s;
}
.tabs-image img:hover {
  transform: scale(1.02);
}
.tabs-content {
  text-align: center;
  padding: 12px 66px;
  background-color: rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  flex: 1;
}
.tabs-content button {
  background-color: black;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
}
.tabs-content button a {
  color: white;
  font-weight: 520;
}
.wrapper-tabs-cards {
  padding: 24px;
  padding-top: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.wrapper-tabs-cards .tabs-cards {
  border-radius: 12px;
  display: flex;
  text-align: center;
  justify-content: flex-start;
  align-items: center;
  flex-direction: column;
  background-color: rgba(0, 0, 0, 0.02);
  padding: 24px 30px 40px;
}
.tabs-cards div:nth-child(1) {
  width: 100%;
}
.tabs-cards div:nth-child(1) img {
  width: 136px;
    transition: all .5s;
}
.tabs-cards:hover div > img{
  transform: scale(1.1);
}
.active-item {
  color: tomato !important;
  border-bottom: 2px solid tomato;
}
.content-visible {
  display: block;
  position: static;
  visibility: inherit;
  height: auto;
}
@media only screen and (max-width: 1024px) {
  .tabs-content {
    padding: 12px 24px;
  }
  .tabs-container > .wrapper-tabs > .wrapper-tabs-content{
    display: flex;
    flex-direction: column;
  }
  .tabs-container > .wrapper-tabs > .wrapper-tabs-cards{
    display: grid;
    grid-template-columns: repeat(2,1fr);
  }
}

.Xiaomi-support {
  width: 100%;
  height: max-content;
  margin: 100px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.Xiaomi-support-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.Xiaomi-support h1 {
  text-align: center;
}
.support-cards {
  width: 100%;
  text-align: center;
  max-width: 220px;
  cursor: pointer;
}
.support-cards .support-icon {
  font-size: 48px;
  display: block;
  opacity: 0.5;
  margin: 16px auto;
  transition: all 0.5s;
}
.support-cards .support-title {
  margin: 16px 0;
}
.support-cards .support-title a {
  font-size: 22px;
  font-weight: 550;
}
.support-cards:hover > .support-icon {
  opacity: 1;
}
@media only screen and (max-width: 720px) {
  .Xiaomi-support {
    background-color: white;
    padding: 5% 2%;
    align-items: center;
    justify-self: center;
  }
  .Xiaomi-support h1 {
    font-size: 18px;
    padding-bottom: 16px;
  }
  .Xiaomi-support > .Xiaomi-support-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .Xiaomi-support > .Xiaomi-support-container > .support-cards {
    background-color: rgba(0, 0, 0, 0.01);
    border-radius: 8px;
    padding: 14px;
    width: 100%;
  }
  .support-cards > .support-title a {
    font-size: 14px;
  }
  .support-cards div:not(.support-title) {
    font-size: 12px;
  }
}

/* Footer Start */
/* Footer parent */
footer {
  width: 100%;
  background-color: var(--footerBg);
}
footer > .footer-container {
  width: 100%;
  height: max-content;
  display: flex;
  justify-content: space-between;
  border-bottom: var(--footerBorderBtm);
}
footer > .footer-container > .footer-compiler {
  padding: 48px 3%;
  display: flex;
  justify-content: space-between;
  opacity: 0.8;
}
footer > .footer-container > .footer-contact {
  padding: 48px 3%;
}

.footer-compiler > div > ul h3 {
  text-transform: uppercase;
  color: white;
  font-weight: bold;
}
.footer-compiler > div > ul > li {
  padding: 12px 0;
}
.footer-compiler > div > ul > li > a {
  color: white;
  opacity: 0.4;
}
.footer-contact > .footer-title-icons {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}
.footer-contact > .footer-title-icons h3 {
  margin: 0 0 1em;
  font-size: 16px;
  line-height: 20px;
  display: block;
  color: white;
}
.footer-contact > .footer-title-icons > ul {
  display: flex;
  color: white;
  opacity: 0.4;
}

.footer-contact > .footer-email p {
  color: white;
  font-weight: bold;
  font-size: 18px;
}
.footer-contact > .footer-email > .footer-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.footer-contact > .footer-email > .footer-input > input {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 12px;
  width: 100%;
  margin: 12px 0;
}
.footer-contact > .footer-email > .footer-input > i {
  color: white;
  font-size: 24px;
  position: absolute;
  right: 2%;
}
.footer-contact > input:placeholder-shown {
  font-size: 16px;
  color: white;
}

/*  start of footer's last */

.footer-last {
  display: flex;
  padding: 48px 3%;
}
.footer-last .footer-end-title p {
  color: white;
}
.footer-last .footer-end-content {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
  gap: 8px;
  padding-left: 24px;
}
.footer-end-content > div > a {
  color: white;
}
.footer-end-content > div:not(.language) > a:not(:nth-child(3)) {
  border-right: 1px solid white;
  padding: 0 8px;
}
.footer-end-content > .language a {
  padding: 0 8px;
}
.footer-end-content > .language i {
  color: white;
}

/* Media Query 1024 for Footer */

@media only screen and (max-width: 1024px) {
  footer > .footer-container {
    display: flex;
    flex-direction: column-reverse;
  }
  footer > .footer-container > .footer-contact {
    display: flex;
    flex-direction: row;
    gap: 40px;
    border-bottom: var(--footerBorderBtm);
    width: 100%;
  }
  .footer-contact > .footer-email > .footer-input {
    width: 230px;
  }
  .footer-contact > .footer-email > p {
    font-size: 16px;
  }
  .footer-last {
    display: flex;
    flex-direction: column;
  }
  .footer-last > .footer-end-title {
    color: #898989;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    padding-bottom: 24px;
  }
  .footer-last > .footer-end-title p {
    opacity: 0.4;
  }
  .footer-last > .footer-end-content {
    padding-top: 24px;
  }
}

/* Media Query 720 for footer */

@media only screen and (max-width: 720px) {
  .footer-container {
    border-bottom: none !important;
  }
  .footer-container .footer-compiler {
    display: none !important;
  }
  footer > .footer-container > .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  .footer-contact > .footer-title-icons h3,
  .footer-contact > .footer-title-icons ul {
    font-size: 12px;
    line-height: 2px;
  }
  .footer-contact > .footer-email p {
    font-size: 12px;
  }
  .footer-contact > .footer-email > .footer-input {
    width: 100%;
  }
  .footer-input input {
    padding: 8px !important;
    border-radius: 8px !important;
  }
  .footer-input input:placeholder-shown {
    font-size: 12px;
    color: white;
  }
  .footer-last {
    display: flex;
    flex-direction: column-reverse;
    padding: 0 3%;
  }
  .footer-last > .footer-end-title {
    color: #898989;
    border-top: var(--footerBorderBtm);
    width: 100%;
    padding-top: 24px;
    border-bottom: none;
  }
  .footer-last > .footer-end-content {
    display: flex;
    flex-direction: column;
    align-items: start;
    padding: 24px 0;
  }
}
