/* reset */
* {
  margin: 0;
  padding: 0;
  font-family: "NexonLv1Gothic";
}
body {
  background-color: #222;
  color: #fff;
  font-weight: 300;
}
img {
  width: 100%;
  vertical-align: top;
}
a {
  color: #fff;
  text-decoration: none;
}
li {
  list-style: none;
}

/* layout */
#header {
  z-index: 2000;
}
#main {
  z-index: 1000;
  position: relative;
  width: 100%;
  height: 100vh;
}
#footer {
  z-index: 3000;
  position: relative;
}
/* header */
#header {
  color: #fff;
  padding: 20px;
  position: absolute;
  left: 0;
  top: 0;
}
#header h1 {
  display: inline-block;
  font-weight: 300;
  margin-bottom: 10px;
  border-bottom: 1px dashed #fff;
}
#header p {
  margin-bottom: 10px;
}
#header li {
  display: inline-block;
}
#header li a {
  border: 1px dashed #fff;
  border-radius: 30%;
  display: inline-block;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  font-size: 14px;
}
#header li.active a {
  background-color: #fff;
  color: #1f224a;
}
/* footer */

#footer .source {
  position: absolute;
  right: 20px;
  bottom: 20px;
  border: 1px solid #fff;
  border-radius: 40px;
  padding: 10px 30px;
  font-size: 14px;
}
/* modal__wrap */
.modal__wrap {
}
.modal__cont {
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.3);
  position: fixed;
  left: 0;
  top: 0;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
}
.modal__btn {
  color: #fff;
  border: 1px solid #fff;
  border-radius: 50px;
  display: inline-block;
  padding: 10px 20px;
  position: absolute;
  right: 20px;
  bottom: 20px;
  cursor: pointer;
  transition: all 0.3s;
}
.modal__btn:hover {
  background-color: #fff;
  color: #3b3d63;
}
.modal__box {
  width: 70%;
  height: 70vh;
  margin: 0 auto;
  background-color: #fff;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 10px 20px -5px hsl(180deg 2% 10%);
  transform: scale(0);
}
.modal__box .title {
  padding-inline: 1rem;
  background-color: #000007;
  display: flex;
  align-items: center;
  color: #fff;
  height: 50px;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}
.modal__box .title .dot {
  width: 15px;
  height: 15px;
  background-color: #fbff00;
  display: inline-block;
  border-radius: 50%;
  position: relative;
  margin-left: 2rem;
}
.modal__box .title .dot::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 0;
  width: 15px;
  height: 15px;
  background-color: #22ff00;
  border-radius: 50%;
}
.modal__box .title .dot::after {
  content: "";
  position: absolute;
  right: 25px;
  top: 0;
  width: 15px;
  height: 15px;
  background-color: rgb(255, 0, 0);
  border-radius: 50%;
}
.modal__box .title .plus {
  background: #282936;
  padding: 0.5rem 0.5rem 0.3rem 0.5rem;
  border-radius: 0.5rem;
  color: #7a7d9d;
}
.modal__box .title .tabs {
  display: flex;
  margin-left: 50px;
}
.modal__box .title .tabs > div {
  color: #7a7d9d;
  background-color: #1f224a;
  padding: 0.35rem 0.8rem 0.25rem 0.8rem;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  border-radius: 0.4rem;
  text-transform: uppercase;
  cursor: grab;
}
.modal__box .title .tabs > div.active {
  background-color: #fff;
}
.modal__box .title .tabs > div em {
  font-style: normal;
}
.modal__box .title .tabs > div .favicon {
  margin-right: 0.4rem;
  margin-top: 0.2rem;
}
.modal__box .title .tabs > div .close {
  margin-left: 4rem;
}
.title .plus {
  border: 1px solid #000;
  padding: 0.4rem;
  border-radius: 10px;
  background-color: #1f224a;
  color: #fff;
}
.modal__box .cont {
  background-color: #282936;
  height: 100%;
  box-sizing: border-box;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  overflow-y: auto;
}
.modal__box .cont > div {
  display: none;
}

.modal__box .cont > div.active {
  display: block;
  height: 100%;
}
/* scroll */
.modal__box ::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #f5f5f5;
}

.modal__box ::-webkit-scrollbar {
  width: 10px;
  background-color: #f5f5f5;
  height: 10px;
}

.modal__box ::-webkit-scrollbar-thumb {
  border-radius: 10px;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 1);
  background-color: #282936;
}
.modal__box ::-webkit-scrollbar-thumb:hover {
  background-color: #0f1891a7;
}
.modal__close {
  position: absolute;
  right: 20px;
  top: 20px;
  background-color: #1f224a;
  padding: 1rem 1rem 0.8rem 1rem;
  border-radius: 5px;
  box-shadow: 0 3px 5px -5px hsl(180deg 2% 10%);
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
}
.modal__close:hover {
  background-color: #13142d7d;
}
.modal__close svg {
  color: #fff;
}

/* 모달 애니메이션 */
.modal__cont.show {
  /*전체 배경*/
  animation: foldOut 1s ease forwards;
}

.modal__cont.show .modal__box {
  /*스크립트 배경*/
  animation: zoomOut 0.5s 1s ease forwards; /*초를 두개써서딜레이를 줄 수 있다*/
}

.modal__cont.show .modal__close {
  /* 닫기버튼*/
  animation: closeOut 0.6s 1.5s ease forwards;
}

.modal__cont.show.hide {
  animation: foldIn 0.3s 0.3s ease backwards;
}
.modal__cont.show.hide .modal__box {
  animation: zoomIn 0.5s 1s ease backwards;
}
.modal__cont.show.hide .modal__close {
  /* 닫기버튼*/
  animation: closeIn 0.3s 0.6s ease backwards;
  opacity: 1;
}

@keyframes foldOut {
  0% {
    transform: scaleX(0) scaleY(0.001);
  }
  50% {
    transform: scaleX(1) scaleY(0.001);
  }
  100% {
    transform: scaleX(1) scaleY(1);
  }
}
@keyframes closeOut {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes foldIn {
  0% {
    transform: scaleX(1) scaleY(1);
  }
  50% {
    transform: scaleX(1) scaleY(0.001);
  }
  100% {
    transform: scaleX(0) scaleY(0.001);
  }
}
@keyframes zoomOut {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes zoomIn {
  100% {
    transform: scale(1);
  }
  0% {
    transform: scale(0);
  }
}

@media (max-width: 1100px) {
  #header {
    width: 100%;
  }
  .modal__box {
    width: 96%;
  }
  .modal__box .title {
    overflow: hidden;
  }
  .modal__box .title .dot {
    display: none;
  }
  .modal__box .title .tabs {
    margin-left: 0;
  }
  .modal__box .title .tabs > div .close {
    display: none;
  }
}
@media (max-width: 600px) {
  #header {
    text-align: center;
  }
  #header h1 {
    line-height: 1.4;
  }
  .modal__box {
    width: 96%;
  }
}
