@import url(/SRC/font/font.css);
@import url(/SRC/CSS/common_css/custom.css);

/* 헤더 공통 속성 */
* {
  box-sizing: border-box;
  font-family: "Pretendard";
}

body {
  margin: 0;
}

a {
  text-decoration: none;
  color: black;
}

ul,
li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrapper {
  max-width: 1280px;
  margin: 0 auto;
}

/* 메인 메뉴 기본 설정 */
header {
  width: 100%;
  height: 100px;

  display: flex;
  position: relative;
  z-index: 100;
}

.submenu {
  display: none;
  border: 1px solid #20a2ff;
  /* border-left: 1px solid #20a2ff; */
  /* border-right: 1px solid #20a2ff; */
  /* border-bottom: 1px solid #20a2ff; */
}

.logo {
  width: 15%;
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.logo>a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  width: 100%;
}

.menu-box {
  width: 55%;
}

.icon {
  width: 25%;
}

.icon>ul>li {
  min-width: 50px;
}

/* 네비 메뉴 */
.menu-box {
  margin: 0 auto;
}

.menu-box>ul {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

.menu-box>ul>li {
  font-weight: 600;
  text-align: center;
  width: 25%;
  font-size: 1.3rem;
}

.menu-box>ul>li>a {
  display: block;
  padding: 45px 0 20px;
}

.icon>ul>li>a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  font-size: .8rem;
}


/* 메인 네비 드롭메뉴 설정 */
.menu-box>ul>li>.submenu {
  width: 120px;
  margin: 0 auto;
  text-align: center;
  background-color: rgba(255,255,255,0.95);
  border-radius: 3px;
}

.menu-box>ul>li>.submenu>li {
  height: 48px;
  line-height: 48px;
  font-weight: 400;
  font-size: 1rem;
}

.menu-box>ul>li>.submenu>li>a {
  display: block;
  width: 100%;
  height: 100%;
}

.menu-box>ul>.mainmenu {
  min-width: 75px;
}

.menu-box>ul>.mainmenu:hover>ul {
  display: block;
}

.menu-box>ul>li>.submenu>li:hover a {
  color: #20a2ff;
}

/* 아이콘들들 */
.icon>ul {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.icon>ul>li {
  width: 20%;
}

.icon>ul>li>a>img {
  width: 28px;
}


.icon>ul>li:last-child {
  position: relative;
}

/* 아이콘 드롭메뉴 설정 */
.icon>ul>li>.submenu {
  position: absolute;
  width: 120px;
  text-align: center;
  background-color: #fff;
  border-radius: 3px;

  right: 0;
}

.icon>ul>li>.submenu>li {
  height: 48px;
  line-height: 48px;
  font-weight: 400;
  font-size: 1rem;
}

.icon>ul>li:last-child:hover>ul {
  display: block;
}

.icon>ul>li:last-child>ul>li>a {
  display: block;
  width: 100%;
  height: 100%;
}

.icon>ul>li:last-child>ul>li:hover a {
  color: #20a2ff;
}

/* 라인 */
.submenu-line {
  margin: 0 auto;
  width: 80%;
  height: 1px;
  background-color: #20a2ff;
}

/* .line {
  position: absolute;
  width: 100%;
  height: 2px;
  top: 98px;
  background-color: #6ec3ff;
  z-index: -2;
} */

@media (width <=800px) {
  .icon>ul {
    height: 180px;
    border: 2px solid #20a2ff;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

    position: fixed;
    top: 30vh;
    right: 1vh;
    background-color: var(--menubar-color);
    border-radius: 8px;
  }

  .icon>ul>li {
    width: 100%;
    margin: 0 5px;
  }

  .icon>ul>li>a {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .icon>ul>li>a>span {
    color: #fff;
  }

  .submenu {
    right: 5px;
    top: 0px;
  }

}