@import url(../css/fonts.css);

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* color: var(--text-color); */
}

:root {
  /* theme colors */
  --white: white;
  --black: black;
  --hover: #1d3557;
  --text-color: #333;
  --red: #e63946;

  /* gradient color */
  --young: linear-gradient(to right,
      #ff8177 0%,
      #ff867a 0%,
      #ff8c7f 21%,
      #f99185 52%,
      #cf556c 78%,
      #b12a5b 100%);

  /* theme font */
  --Abel: Abel, cursive;
  --Anton: Anton, cursive;
  --Josefin: Josefin, cursive;
  --Lexend: Lexend, cursive;
  --Livvic: Livvic, cursive;
}

html {
  font-size: 62.5%;
}

/*dark mode*/
.day {
  background: #eee;
  color: black;
}

.night {
  background: #333;
  color: white;
}

@media (prefers-color-scheme: dark) {
  .day.dark-scheme {
    background: #333;
    color: white;
  }

  .night.dark-scheme~* {
    background: black;
    color: #ddd;
  }
}

@media (prefers-color-scheme: light) {
  .day.light-scheme {
    /* background: white;
    color: #555; */
    filter: invert(1);
  }

  .night.light-scheme {
    background: #eee;
    color: black;
  }
}

.day,
.night {
  display: block;
  /* padding: 1em;
  width: 7em;
  height: 2em;
  vertical-align: middle; */
}

/*------------------------Global classes-----------------------------*/
.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

a {
  text-decoration: none;
  color: var(--text-color);
}

ul {
  list-style-type: none;
}

/*----------x-------------Global classes-------------x---------------*/

/*-------------------------------------------------------------*/
/*-------------------------------------------------------------*/
/*-------------------------------------------------------------*/
/*-------------------------------------------------------------*/
/*THÊM THÔNG BÁO, USER, BÁO LỖI*/
.header__navbar-list {
  display: flex;
  justify-content: flex-end;
  list-style-type: none;
  padding-left: 0;
  margin: 6px 0 0 0;
  align-items: center;
}

.header__navbar-user {
  display: flex;
  justify-content: center;
  position: relative;
}

.header__navbar-user:hover .header__navbar-user-menu {
  display: block;
}

.header__navbar-user-img {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  align-items: center;
  margin-right: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.header__navbar-user-name {
  font-family: var(--Lexend);
  color: var(--text-color);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3rem;
  vertical-align: baseline;
  letter-spacing: 0.1rem;
  border: transparent;
  transition: 0.5s;
}

.nav.sticky .header__navbar-user-name {
  color: white;
}

.header__navbar-user-menu {
  position: absolute;
  z-index: 1;
  padding-left: 0;
  font-family: Arial, Helvetica, sans-serif;
  top: calc(100% + 6px);
  right: 0;
  width: 174px;
  border-radius: 2px;
  list-style: none;
  background-color: var(--white);
  box-shadow: 0 1px 4px #ccc;
  display: none;
}

.header__navbar-user-menu::before {
  content: "";
  border-width: 20px 30px;
  border-style: solid;
  border-color: transparent transparent var(--white) transparent;
  position: absolute;
  right: 4px;
  top: -28px;
  z-index: -1;
}

.header__navbar-user-menu::after {
  content: "";
  display: block;
  position: absolute;
  top: -8px;
  right: 0;
  width: 60%;
  height: 8px;
}

.header__navbar-user-icon {
  margin-right: 4px;
  color: var(--text-color);
}

.header__navbar-user-item--separate {
  border-top: 1px solid rgba(0, 0, 0, 0.09);
}

.header__navbar-user-item a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 400;
  display: block;
  padding: 8px 16px;
}

.header__navbar-user-item a:first-child {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.header__navbar-user-item a:last-child {
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.header__navbar-user-item a:hover {
  background-color: #eeeeee;
}

.header__navbar-item {
  display: inline-block;
  min-height: 26px;
  margin-left: 14px;
  position: relative;
  padding-bottom: 6px;
}

.header__navbar-item--has-qr:hover .header__qr {
  display: block;
}

.header__navbar-item--strong {
  font-weight: 400;
}

.header__navbar-item--separate::after {
  content: "";
  display: block;
  position: absolute;
  border-left: 1px solid #fb9086;
  height: 16px;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
}

.header__navbar-item,
.header__navbar-item-link {
  display: inline-block;
  font-size: 1.4rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 300;
  transition: all o.5s;
}

.header__navbar-item-link {
  font-family: var(--Lexend);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.3rem;
  vertical-align: baseline;
  letter-spacing: 0.1rem;
  border: transparent;
  transition: 0.5s;
}

.header__navbar-item:hover,
.header__navbar-item-link:hover,
.header__navbar-icon-link:hover {
  cursor: pointer;
}

.header__navbar-item,
.header__navbar-item-link,
.header__navbar-icon-link {
  display: flex;
  align-items: center;
}

.header__navbar-icon-link {
  text-decoration: none;
}

.header__navbar-icon-link:nth-child(2) {
  margin-left: 8px;
}

.fa-instagram {
  margin-left: 4px;
}

.header__navbar-icon {
  color: var(--text-color);
  font-size: 1.8rem;
  margin-right: 4px;
  transition: all 0.5s;
}

.nav.sticky .header__navbar-icon {
  color: var(--white);
}

.header__navbar-tittle--no-pointer {
  cursor: text;
  color: var(--white);
}

/*HEADER NOTIFICATION*/
@keyframes spreadFromTop {
  from {
    opacity: 0;
    transform: scale(0);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.header__notify {
  position: absolute;
  background-color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid #d3d3d3;
  top: 118%;
  right: -20px;
  width: 404px;
  cursor: default;
  transform-origin: calc(100% - 32px) top;
  /*vị trí trọng tâm của hiệu ứng*/
  animation: spreadFromTop ease-in 0.2s;
  will-change: opacity, transform;
  display: none;
  z-index: 2;
}

.header__notify::before {
  content: "";
  border-width: 20px 30px;
  border-style: solid;
  border-color: transparent transparent var(--white) transparent;
  position: absolute;
  right: 4px;
  top: -28px;
  z-index: -1;
}

.header__notify::after {
  content: "";
  position: absolute;
  display: block;
  width: 90px;
  height: 12px;
  top: -12px;
  right: 0px;
}

.header__navbar-item--has-notify:hover .header__notify {
  display: block;
}

.header__notify-header {
  height: 40px;
  background-color: rgb(243, 243, 243);
  background-image: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header__notify-header h3 {
  color: #999999;
  margin: 0 0 0 12px;
  font-weight: 600;
  font-family: arial;
  font-size: 1.6rem;
  line-height: 40px;
}

.header__notify-list {
  padding: 0;
}

.header__notify-item {
  display: flex;
}

.header__notify-link {
  display: flex;
  padding: 12px;
  width: 100%;
  text-decoration: none;
}

.header__notify-link:link {
  background-color: rgb(243, 243, 243);
}

.header__notify-link:visited {
  background-color: var(--white);
}

.header__notify-link:hover {
  background-color: rgba(243, 243, 243, 0.5);
}

.header__notify-img {
  width: 48px;
  object-fit: contain;
  /*cách khác: đặt thẻ img vào trong 1 thẻ <span/>*/
}

.header__notify-info {
  margin: 0 0 0 12px;
}

.header__notify-name {
  display: block;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-color);
}

.header__notify-description {
  display: block;
  font-size: 1.1rem;
  color: #756f6e;
  line-height: 1.8rem;
  margin-top: 4px;
}

.header__notify-footer {
  display: flex;
}

.header__notify-footer-btn {
  text-decoration: none;
  color: #737373;
  font-size: 1.4rem;
  font-weight: 400;
  padding: 14px 48px;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.header__notify-footer-btn:hover {
  color: var(--text-color);
  background-color: rgb(243, 243, 243);
}