@import url("theme.css");

main {
  /* margin-top: 80px; */
}


/* ================================================================= Header ================================================================= */

header+.gap {
  margin-top: 80px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 10px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 15px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

/* ---- Title and menu --- */

header .menu {
  display: flex;
  height: 40px;
  width: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.055);
  border-radius: 10px;
}

header .menu i {
  font-size: 26px;
}

header .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .left .tool_title {
  font-weight: bold;
  font-size: 16px;
}

header .wallet {
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 50%;
  max-width: 200px;
  border-radius: 50vh;
  height: 40px;
  cursor: pointer;
}

header .wallet * {
  color: var(--color-white);
  font-size: 16px;
}

header .help {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  gap: 7px;
  cursor: pointer;
  margin-right: 5px;
}

header .help * {
  color: var(--color-text-dark);
}


header .help i {
  font-size: 18px;
}

header .help span {
  font-weight: bold;
  font-size: 15px;
}

/* ------ with BG --- */

header.bg {
  background-color: var(--color-primary);
}

header.bg .wallet {
  background-color: var(--color-primary-dark);
}

header.bg .menu i {
  color: var(--color-white);
}

header.bg .left .tool_title {
  color: var(--color-white);
}

header.bg .help * {
  color: var(--color-white);
}

header.bg .help {
  display: none;
}


/* ================================================================= ASIDE ================================================================= */

aside {
  position: fixed;
  z-index: 99999;
  width: 280px;
  top: 0;
  bottom: 0;
  background-color: var(--color-white);
  box-shadow: 10px 0 15px 5px rgba(0, 0, 0, 0.11);
  left: -280px;
  transition: all 0.2s;
  overflow-y: auto;
}

aside.active {
  left: 0;
}


/* ---header-- */

aside .header {
  background-color: var(--color-blue);
  display: flex;
  justify-content: space-between;
  height: 70px;
  align-items: center;
  padding: 0 10px;
}

aside .header .logo img {
  height: 45px;
  width: 45px;
  border-radius: 50%;
}

aside .header .user_details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}


aside .header .user_details * {
  color: var(--color-white);
  font-size: 14px;
}

aside .header .close {
  width: 30px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

aside .header .close * {
  color: var(--color-white);
  font-size: 25px;
}

/* --menu-- */

aside menu {
  display: flex;
  flex-direction: column;
}

aside menu a {
  display: flex;
  height: 50px;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  padding: 0 10px;
}

aside menu a .title {
  display: flex;
  justify-content: flex-start;
  gap: 7px;
  width: 100%;
}

aside menu a .title i {
  font-size: 18px;
}

aside menu a * {
  color: var(--color-text);
}

aside menu a:hover * {
  color: var(--color-blue);
}

aside menu a i.bx-chevron-right {
  font-size: 20px;
}

aside menu a:hover i.bx-chevron-right {
  animation: anim_bounce_right 1s ease-in-out infinite;
}


/* --- refer---- */

aside .refer_code {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 10px;
  cursor: pointer;
  margin-top: 10px;
}

aside .refer_code .head {
  display: flex;
  gap: 5px;
}

aside .refer_code .code {
  border: 3px dotted var(--color-primary-dark);
  width: 100%;
  margin: 10px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-text-dark);
  font-weight: bold;
}

/* ---logout-- */

aside .logout {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid var(--color-border);
  height: 50px;
  gap: 7px;
  cursor: pointer;
}

aside .logout * {
  font-weight: bold;
  color: var(--color-red);
}


/* ================================================================= Footer ================================================================= */
footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  background: var(--color-white);
  ;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  align-items: center;
  height: 60px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 999;
}

footer a {
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

footer .item {
  text-align: center;
  font-size: 12px;
}

footer .item * {
  color: #333;
}

footer .item.active *,
footer .item:hover * {
  color: #0f5132;
  font-weight: bold;
}

footer .item i {
  font-size: 20px;
  display: block;
  margin-bottom: 5px;
}

footer .footer_play {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  border-radius: 50%;
}

footer .play_button {
  height: 50px;
  width: 50px;
  position: relative;
  top: -20px;
  background: #0f5132;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

footer .play_button i {
  color: white;
  font-size: 28px;
}


/* ================================================================= Results ================================================================= */