#header {
  /* 8vh 높이 */
  /* height: calc(var(--vh, 1vh) * 8) !important;  */
  width: 100vw !important;
  background-color: #ffffff;
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1000;
}

#header.dark {
  background-color: #1D1E22;
  color: #fff;
}

.header-container {
  min-width: 1200px;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* 피그마 기준 */
@media (max-width: 768px) {
  .header-container  {
    min-width: 768px !important;
  }

  .header-menu {
    display: none !important;
  }

  .header-user-info .header-menu-item,  .header-user-info button{
    display: none !important;
  }

  .header-icon {
    position: fixed;
    left: 20px;
    top: 27px;
  }

  .header-icon-dark {
    position: fixed;
    left: 20px;
    top: 27px;
  }

  .mobile-menu {
    position: fixed;
    top: 80px;
    width: 100% !important;
    max-width: 768px !important;
    min-width: 300px !important;
  }

  .mobile-header-menu-items {
    display: block !important;
    position: fixed;
    right: 20px;
    top: 30px;
  }

  .mobile-header-menu-item {
    display: flex;
    flex-flow: column;
  }

  .mobile-header-main-menu, .mobile-header-btn-item {
    width: 100% !important;
    display: flex !important;
    padding: 16px 20px;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    border-bottom: 1px solid #EEE;
    background: #FFF;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 16px */
    letter-spacing: -0.32px;
    color: #242424;
  }

  .mobile-header-main-menu.dark, .mobile-header-btn-item.dark {
    width: 100% !important;
    display: flex !important;
    padding: 16px 20px;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    border-bottom: 1px solid #2E313D;
    background: #1D1E22;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 100%; /* 16px */
    letter-spacing: -0.32px;
    color: #fff;
  }

  .mobile-header-submenu {
    display: flex !important;
    flex-flow: column;
    align-items: center;
  }
  
  .mobile-header-submenu > a {
    display: block;
    text-align: left;
    width: 100%;
    padding: 16px 20px;
    box-sizing: border-box;
    background-color: #FAFAFC;
  }

  .mobile-header-btn-box {
    display: block !important;
  }

  .mobile-btn-box {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .mobile-btn-box.dark {
    background-color: #1D1E22;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #2E313D;
  }

  .mobile-header-logout-btn, .mobile-header-login-btn {
    display: block;
    width: 100%;
    margin: 20px;
    box-sizing: border-box;
  }

  .mobile-header-logout-btn.dark {
    color: #242424;
    background-color: #fff;
  }

}


.mobile-menu {
  display: none;
  background-color: #eee;
}

.mobile-header-menu-items {
  display: none;
}

.mobile-header-main-menu {
  display: none;
}

.mobile-header-submenu {
  display: none;
}

.mobile-header-submenu.dark > a {
  background-color: #16171a;
  color: #fff;
}

.mobile-header-btn-box {
  display: none;
}

#mobile-header-cancel-icon {
  display: none;
}

/* Mobile layout */
@media screen and (max-width: 844px) {
  .header-container  {
    min-width: 768px  !important;
  }
  
  .header-user-info .header-menu-item, .header-main-menu, .header-submenu a {
    font-size: 12px;
  }
}

/* iPad Mini layout */
@media screen and (min-width:845px) and (max-width: 1024px) {
  .header-container  {
    min-width: 968px !important;
  }
  
  .header-user-info .header-menu-item, .header-main-menu, .header-submenu a {
    font-size: 12px;
  }
}

/* iPad Air layout */
@media screen and (min-width:1025px) and (max-width: 1200px) {
  .header-container  {
    min-width: 1024px !important;
  }
  
  .header-user-info .header-menu-item, .header-main-menu, .header-submenu a {
    font-size: 13px;
  }
}

/* iPad Pro layout */
@media screen and (min-width:1201px) and (max-width: 1300px) {
  .header-container  {
    min-width: 1100px !important;
  }
  
  .header-user-info .header-menu-item, .header-main-menu, .header-submenu a {
    font-size: 14px;
  }
}

/* iPad Pro layout */
@media screen and (min-width:1301px) and (max-width: 1366px) {
  .header-container  {
    min-width: 1200px !important;
  }
  
  .header-user-info .header-menu-item, .header-main-menu, .header-submenu a {
    font-size: 14px;
  }
}

.header-icon-container {
  width: 148px;
  height: auto;
  padding-left: 32px;
}

.header-navi {
  display: flex;
  padding-left: 32px;
  width: 70%;
}

.header-icon {
  width: 139px;
  height: auto;
  object-fit: contain;
}

.header-icon-dark {
  width: 139px;
  height: auto;
  object-fit: contain;
}

.header-user-info {
  display: flex;
}

.header-login-btn, .header-logout-btn {
  width: 73px;
  height: 48px;
}

.header-logout-btn.dark {
  color: #242424;
  background-color: #fff;
}

.header-menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-menu > :first-child {
  margin-left: 72px;
}

.header-menu > :nth-child(2) {
  margin-left: 16px;
}

.header-menu-item {
  position: relative;
  padding: 14px 16px 15px;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  gap: 4px;
  cursor: pointer;
}

.header-user-info .header-menu-item  {
  position: relative;
  padding: 14px 12px 15px;
  font-size: 15px;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  gap: 4px;
  cursor: pointer;
  word-break: keep-all;
}

.header-menu-item:hover {
  background: #F3F3F8;
}

.header-menu-item.dark {
  background-color: #1D1E22;
  color: #fff;
}

.header-main-menu {
  all: unset; 
  color: #242424;
  text-decoration: none;
  text-align: center;
  font-family: Pretendard;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.32px;
  width: 124px;
  word-break: keep-all;
}

.header-main-menu.dark {
  background-color: #1D1E22;
  color: #fff;
} 

svg {
  margin: 0;
  padding: 0;
}


.header-submenu {
  display: none;
  position: absolute;
  top: 100%;
  /* left: -10px; */
  width: 123px;
  padding: 12px;
  border-radius: 20px;
  background-color: white;
  /*box-shadow: 0px 0px 34px 0px #EEE;*/
  z-index: 100;
  left: 50%; /* 부모 요소의 너비의 50% */
  transform: translate(-50%, 0%); /* 자신의 크기의 50%만큼 이동 */
}

.header-submenu.dark {
  display: none;
  position: absolute;
  top: 100%;
  /* left: -10px; */
  width: 123px;
  padding: 12px;
  border-radius: 20px;
  background-color: #1D1E22;
  /*box-shadow: 0px 0px 34px 0px #16171a;*/
  z-index: 100;
  left: 50%; /* 부모 요소의 너비의 50% */
  transform: translate(-50%, 0%); /* 자신의 크기의 50%만큼 이동 */
}

.header-menu-item:hover .header-submenu {
  display: block;
}

.header-menu-item.dark:hover .header-submenu {
  display: block;
  background-color: #1D1E22;
}

.header-submenu a {
  padding: 14px 16px 15px;
  margin-bottom: 4px;
  border-radius: 12px;
  text-decoration: none;
  color: #242424;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  align-self: stretch;
  cursor: pointer;
  word-break: keep-all;
}

.header-submenu.dark a {
  padding: 14px 16px 15px;
  margin-bottom: 4px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  align-self: stretch;
  cursor: pointer;
  word-break: keep-all;
}

.header-submenu a:hover {
  background-color: #F3F3F8;
}

.header-submenu.dark a:hover {
  background-color: #28292e;
}


