@import "reset.css";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/static/pretendard-dynamic-subset.css");
@import url("https://fonts.googleapis.com/icon?family=Material+Icons+Sharp");

:root {
  --color-mofin: #a21c20;
  --color-mofin-bg: rgba(162, 28, 32, 0.5);
  --color-white: #ffffff;
  --color-black: #333333;
}

* {
  font-family: "Pretendard", sans-serif;
  margin: 0;
  padding: 0;
  outline: 0;
  appearance: 0;
  border: 0;
  text-decoration: none;
  box-sizing: border-box;
}

body {
  font-family: "Pretendard", sans-serif;
  width: 100vw;
  /* height: 100vh; */
  overflow-x: hidden;
  user-select: none;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

/* 헤더 -모바일 사이즈 용 start*/
.dropdown_phone,
.fake_box,
.dropdown_phone,
.dropdown_phone_toggle {
  display: none;
}

.dropdown_phone_toggle--btn-open {
  display: none;
}
/* 헤더 -모바일 사이즈 용 end*/

.navigation {
  margin: auto;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 999;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0fr 0fr;
  align-items: center;
  background-color: var(--color-white);
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.activeLang {
  display: none;
}

.mofinHome svg path {
  fill: #a21c20;
  transition: fill 0.3s;
}

.mofinHome {
  padding-left: 20%;
  
}

.mofinHomeButton {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  width: 88px;
  height: 40px;
}

/*list*/
.dropdown {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  text-align: center;
  float: right;
  padding-right: 10%;
  align-items: center;
}

.solution button {
  color: var(--color-black);
}

.btn.show {
  background-color: var(--color-white);
  border: transparent;
  color: var(--color-mofin);
  font-weight: bold;
}

.loginbuttons button {
  color: var(--color-black);
}

.dropdown-toggle::after {
  display: none;
}

.dropdown button {
  border: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-black);
}

.btn.dropdown-toggle.btn-solution,
.btn.dropdown-toggle.btn-blog,
.btn.dropdown-toggle.btn-faq,
.btn.dropdown-toggle.btn-news,
.btn.dropdown-toggle.btn-login,
.btn.dropdown-toggle.btn-signup,
.btn.dropdown-toggle.btn-mypage,
.btn.dropdown-toggle.btn-logout {
  background-color: transparent;
}


.btn.dropdown-toggle.btn-solution:hover,
.btn.dropdown-toggle.btn-blog:hover,
.btn.dropdown-toggle.btn-faq:hover {
  color: var(--color-mofin);
  font-weight: 700;
}

.btn.dropdown-toggle.btn-login:hover,
.btn.dropdown-toggle.btn-signup:hover,
.btn.dropdown-toggle.btn-mypage:hover,
.btn.dropdown-toggle.btn-logout:hover {
  color: var(--color-black);
  font-weight: 700;
}

.btn.dropdown-toggle.btn-solution.active:hover,
.btn.dropdown-toggle.btn-blog.active:hover,
.btn.dropdown-toggle.btn-faq.active:hover {
  color: var(--color-mofin);
  font-weight: 700;
}

.btn.dropdown-toggle.btn-login.active:hover,
.btn.dropdown-toggle.btn-signup.active:hover,
.btn.dropdown-toggle.btn-mypage.active:hover,
.btn.dropdown-toggle.btn-logout.active:hover {
  color: var(--color-black);
}

.dropdown-menu {
  left: -80px !important;
  /* transform: none !important; */
}

.dropdown ul {
  border: transparent;
  text-align: center;
}

.dropdown-item {
  text-align: center;
  font-size: 15px;
  margin: 10px 30px 10px 0;
  cursor: pointer;
}

.dropdown-menu li:hover {
  margin: 10px 0 10px 0;
}

/* .dropdown-menu.show {
  left: -100px;
  position: relative;
} */

.activeLang {
  display: none;
}

.language{
  width:  80px;
}
.language button {
  background-color: inherit;
  width: 100%;
}

.language button.active {
  background-color: inherit;
  color: black
}

#ko,
#en {
  display: flex;
  text-align: center;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  gap: 4px;
}

#ko2,#en2{
  display: flex;
    gap: 4px;
    font-size: 0.7rem;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}



/** LEACACY : 언어변경 버튼 (select 태그 사용시)
.language select {
  -webkit-appearance: none; 크롬 화살표 없애기
  -moz-appearance: none; 파이어폭스 화살표 없애기
  appearance: none;  화살표 없애기 
  text-align-last: center;
  cursor: pointer;
} 
**/ 

/* .language p {
  font-size: 18px;
} */

#lang {
  border: 1px solid var(--color-black);
  border-radius: 20px;
  font-size: 14px;
  background-color: transparent;
  color: var(--color-black);
  width: 48px;
  height: 25px;
}

#lang.active {
  border: 1px solid var(--color-black);
  border-radius: 20px;
  font-size: 14px;
  background-color: transparent;
  color: var(--color-black);
  width: 48px;
  height: 25px;
}

#lang option {
  color: var(--color-black);
  margin: auto;
  text-align: center;
}

#lang option::after {
  color: white;
}

/*================================================================ 미디어 쿼리 시작 ================================================================*/

@media (max-width: 1650px) {
  .navigation,
  .navigation.active {
    height: 100px;
  }

  .mofinTop {
    margin: 100px auto 0 auto;
    height: 960px;
  }
}

@media (max-width: 1350px) {
  .mofinTop {
    margin: 90px auto 0 auto;
    height: 670px;
  }
  .dropdown {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    text-align: center;
    float: right;
    padding-right: 10%;
    margin-left: -10%;
  }

  .dropdown button {
    font-size: 15px;
  }

  .navigation,
  .navigation.active {
    height: 90px;
  }
}

@media (max-width: 1000px) {
  .mofinTop {
    margin: 60px auto 0 auto;
    height: 450px;
  }

  .navigation,
  .navigation.active {
    height: 60px;
  }

  .dropdown button {
    font-size: 15px;
  }
  #lang {
    font-size: 15px;
  }
}

@media screen and (min-width: 325px) and (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none;
  }
  /* 모바일 헤더 start*/
  .navigation {
    margin: auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 40px;
    z-index: 999;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    background-color: white;
    background: #fff;
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1);
  }

  .navigation.active {
    width: 100vw;
    height: 40px;
    z-index: 999;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    background-color: white;
    background: #fff;
    box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1);
  }
  .mofinHome {
    margin: auto;
  }
  .mofinHomeButton {
    /* background-color: red; */
    width: 88px;
    height: 40px;
  }
  
  .logos {
    background-size: cover;
    background-position: center;
    width: 88px;
    height: 40px;
  }
  
  .dropdown {
    display: none;
  }
  .fake_box {
    display: block;
  }
  .dropdown_phone {
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 150px;
    justify-items: center;
    background-color: white;
    align-items: center;
  }
  .dropdown_phone .nav #menu-btn {
    border: transparent;
    font-size: 20px;
    font-weight: 600;
    background-color: transparent;
    color: #a21c20;
    display: flex;
  }

  .dropdown_phone .nav #close-btn {
    display: none;
    border: transparent;
    font-size: 20px;
    font-weight: 600;
    background-color: transparent;
    color: black;
  }

  .dropdown_phone_toggle-Wrap.active {
    background-color: rgba(131, 131, 131, 0.86);
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 1;
    top: 40px;
  }

  .dropdown_phone_toggle {
    background-color: white;
    margin: auto;
    position: fixed;
    top: 40px;
    right: -60vw;
    width: 60vw;
    height: 100vh;
    z-index: 9;
    flex-direction: column;
    align-items: center;
    color: #333;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
    animation: showMenu1 0.5s ease forwards;
  }

  @keyframes showMenu1 {
    to {
      right: 0;
    }
  }

  .dropdown_phone_toggle.open {
    right: -60vw;
  }

  .dropdown_phone_toggle-menu {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
  }

  .dropdown_phone_toggle-solution,
  .dropdown_phone_toggle-blog,
  .dropdown_phone_toggle-faq {
    border: none;
    border-bottom: 1px solid #d9d9d9;
    width: 180px;
    height: 40px;
    justify-content: center;
    text-align: center;
    margin-top: 20px;
  }

  .dropdown_phone_toggle-solution {
    /* height: 180px; */
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .unvisible {
    color: white;
  }
  .dropdown_phone_toggle--btn {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
  }
  .dropdown_phone_toggle--btn-open {
    display: none;
    flex-direction: column;
    justify-content: space-evenly;
    height: 150px;
    border-bottom: 1px solid #d9d9d9;
  }
  .dropdown_phone_toggle--btn-open button {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    width: 180px;
    height: 40px;
    color: #333;
    font-family: Pretendard;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
  }

  .dropdown_phone_toggle--btn-open button:last-child {
    color: #999;
  }

  .dropdown_phone_toggle--btn-open button .active {
  }

  .dropdown_phone_toggle-user {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .dropdown_phone_toggle-user button {
    border: 1px solid black;
    border-radius: 4px;
    width: 150px;
  }
  .dropdown_phone_toggle-user_login,
  .dropdown_phone_toggle-user_signup {
    background: none;
    color: inherit;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
    width: 74px;
    height: 32px;
    border-radius: 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px;
  }

  .dropdown_phone_toggle-user_login {
    background-color: white;
    color: black;
    box-shadow: 1px 1px 1px rgb(180, 153, 153);
  }

  .dropdown_phone_toggle-user_signup {
    background-color: var(--color-mofin);
    color: white;
    box-shadow: 1px 1px 1px rgb(180, 153, 153);
  }
/* 
  .language {
    margin: auto auto auto 30px;
    pointer-events: none;
    border: none;
    background-color: transparent;
  }

  .language select {
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: transparent;
    background-color: white;
  }

  .language p {
    font-size: 18px;
  } */

  #lang2 {
    font-size: 10px;
    background-color: transparent;
    color: white;
    height: 20px;
    font-size: 10px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  #lang2.active {
    border: transparent;
    border-radius: 20px;
    width: 40px;
    height: 20px;
    font-size: 10px;
    background-color: transparent;
    color: white;
  }

  #lang2 option {
    color: white;
  }

  #lang2 option::after {
    color: white;
  }

  .mofinTop {
    margin: 40px auto 0 auto;
  }

  .moblie_languageBtn-Wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 400px;
  }

  .moblie_languageBtn {
    display: flex;
    margin-top: 50px;
  }

  .moblie_languageBtn-kor {
    background: none;
    color: black;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    border-right: 1px solid gray;
    padding: 0 20px 0 20px;
  }

  .moblie_languageBtn-kor.active,
  .moblie_languageBtn-eng.active {
    /* border-right: 1px solid gray; */
    padding: 0 20px 0 20px;
    color: var(--color-mofin);
  }
  .moblie_languageBtn-eng {
    background: none;
    color: black;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    padding: 0 20px 0 20px;
  }
  /* 모바일 헤더 end*/
}
