/* Global */
@font-face { /*instagram*/
  font-family: "insta";
  src: url("/clfd/font/billabong.otf") format("opentype");
}
@font-face { /*bemin*/
  font-family: "bemin";
  src: url("/clfd/font/BMJUA_ttf.ttf") format("truetype");
}
@font-face { /*Disney*/
  font-family: "disney";
  src: url("/clfd/font/WaltDisney+Font.ttf") format("truetype");
}
@font-face { /*Sans*/
  font-family: "sans";
  src: url("/clfd/font/Neo Sans Pro.ttf") format("truetype");
}

:root {
  --text-color: #000;
  --background-color: #fbfbfc;
  --border-color: #dbdbdb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /* font-family: "Source Sans Pro"; */
  font-family: "NanumSquare", sans-serif;
  background-color: var(--background-color);
}

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

/* Nav container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  padding: 8px 12px;
  background-color: #ffffff;
  border-bottom: 1px solid #dbdbdb;
}

/* Logo with text */
.navbar__logo {
  height: 84px;
}

.navbar__logo__m {
  display: none;
  height: 56px;
}

.navbar__logo i {
  color: var(--accent-color);
}

.navbar__text {
  text-align: center;
  display: none;
  position: absolute;
  left: 30%;
  font-size: 20px;
  line-height: 30px;
}

/* Menu */
.navbar__menu {
  margin-top: 10px;
  display: flex;
  padding-left: 0;
  list-style: none;
}

.navbar__menu li {
  padding: 8px 12px;
  font-size: 1.15rem;
  margin-left: 50px;
  justify-content: center;
  text-align: center;
}

.navbar__menu li a:hover,
.navbar__icons li a:hover {
  color: #ffc2d1;
  border-radius: 4px;
}
.navbar__icons {
  list-style: none;
  margin-right: 40px;
  display: flex;
  padding-left: 0;
}

/* Icons */
.navbar__icons li {
  padding: 8px 12px;
  font-size: 1.1rem;
}

/* Toggle button */
.navbar__toggleBtn {
  display: none;
  position: absolute;
  right: 32px;
  font-size: 24px;
  color: var(--black);
}

.dropbox__cs {
  display: none;
  margin-left: -15px;
  flex-direction: column;
  position: absolute;
  background-color: #ffffff;
  min-width: 100px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  text-align: center;
  /* z-index: 1; */
  padding: 0;
}
.dropbox__icon {
  display: none;
  margin-left: -40px;
  flex-direction: column;
  position: absolute;
  background-color: #ffffff;
  min-width: 100px;
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
  text-align: center;
  /* z-index: 1; */
}

.dropbox__cs.active,
.dropbox__icon.active {
  display: flex;
  margin-top: 10px;
}

.dropbox__cs a,
.dropbox__icon a {
  padding: 10px 5px;
}

.dropbox:hover {
  background-color: #fbfbfc;
}

.search__m {
  display: none;
  justify-content: center;
  margin: auto auto;
  width: 40%;
  background-color: #ffc2d1;
}

.headerDiv {
  position: fixed;
  width: 100%;
}
.contentDiv {
  padding-top: 150px;
}

#topButton {
  position: fixed;
  right: 2%;
  bottom: 50px;
  display: none;
  z-index: 999;
}
#topButtonImg {
  width: 50px;
}

/* For small screen */
@media screen and (max-width: 768px) {
  /* Nav container */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px;
  }
  .navbar__text {
    display: flex;
    line-height: 50px;
  }

  .navbar__logo__m {
    display: flex;
  }

  .navbar__logo {
    display: none;
  }

  /* Menu */
  .navbar__menu {
    display: none;
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .navbar__menu a {
    /* Fill in an entire line so that user can click on any space */
    display: block;
  }
  .navbar__menu li {
    margin-right: 0;
    margin-left: 0;
  }
  /* Icons */
  .navbar__icons {
    display: none;
    justify-content: center;
    width: 100%;
    margin-top: 0;
  }

  /* Toggle button */
  .navbar__toggleBtn {
    display: block;
    line-height: 50px;
  }

  .dropbox__cs {
    right: 0%;
  }
  .dropbox__icon {
    right: 0%;
  }

  /* When toggle button is clicked - active state */
  .navbar__menu.active,
  .navbar__icons.active,
  .search__m.active {
    display: flex;
  }
  .dropbox__cs.active,
  .dropbox__icon.active {
    width: 100%;
  }

  .headerDiv {
    z-index: 5;
  }
  .contentDiv {
    padding-top: 73.33px;
  }
}
