:root {
  --main-size: 16px;
  --main-weight: 500;
  --weight-regular: 400;
  --weight-semi: 600;
  --font-family: "Kanit", sans-serif;
  --main-color: #ef363b;
  --box-shadow: 0 0 10px #b2b2b2;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body {
  font-family: var(--font-family);
}
a {
  text-decoration: none;
  color: inherit;
}
body {
  margin: 0;
}
header {
  width: 98%;
  height: 80px;
   background: #fff;
   border-radius: 40px;
  padding: 0 30px;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  left: 1%;
  top: 0;
  z-index: 99;
}
header .logo {
  width: 105px;
  height: 45px;
}
nav {
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
header a {
  width: fit-content;
  height: fit-content;
  text-transform: capitalize;
  font-size: var(--main-size);
  font-weight: var(--main-weight);
  color: #000;
}
.lang,
.aside-lang {
  height: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}
.lang a{
  font-weight: 900;
}
header span {
  font-size: var(--main-size);
  font-weight: 600;
    color: #fff;

}
.globe-icon {
  color: #000;
  margin-left: 5px;
}
.active,
header a:hover {
  color: #D62130;
  transition: all 400ms;
}
header a:not(.cont-btn):hover::after,
header a.active::after {
  content: "";
  display: block;
  width: 0%;
  height: 3px;
  transition: all 400ms;
  background-color: #D62130;
  animation: navUnderLine 400ms forwards linear;
}

#menu-bar {
  display: none;
  font-size: 30px;
  height: 35px;
  color: #fff;
}
header aside {
  width: 200px;
  height: 100vh;
  position: fixed;
  right: 0;
  transform: translateX(350%);
  top: 0;
  transition: transform 300ms linear;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  z-index: 9;
    background: #000;
    color: #fff;}
#close-bar {
  font-size: 30px;
}
.aside-nav {
  width: 100%;
  height: 60%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
header aside a , .aside-lang>span{
    color: #fff;

}
.aside-lang {
  width: 50%;
  height: 10%;
}
.aside-toggle {
  transform: translateX(0);
}
#aside-blur {
  width: 100%;
  height: 100vh;
  background-color: #000;
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#aside-blur.visible {
  opacity: 0.3;
  pointer-events: all;
}

header button{
  width: 150px;
  height: 40px;
  background-color: #D62130;
  border: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
}
@keyframes navUnderLine {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
@media (max-width: 850px) {
  nav,
  .lang ,.cont-btn{
    display: none;
  }
  #menu-bar {
    display: inline;
  }
  header .logo{
        margin: 0 auto;
  }
  header{
    background-color: #000;
  }
}
