/* 공용 */
@font-face {
  font-family: 'Freesentation-9Black';
  src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-9Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
}
* { margin:0; padding:0; box-sizing: border-box; }
a { text-decoration: none; color:#111; display: block; white-space: nowrap; font-family: 'Freesentation-9Black';}
li { list-style:none; }
img { width:100%; height:100%; object-fit: cover; }

body {
  font-family: 'Freesentation-9Black';
}

h1{ font-size: 30px; }
h2{ font-size: 24px; }
h3{ font-size: 20px; }
p { font-size: 16px; }
span { font-size:16px; }
i { font-style:normal; font-size: 14px; }
b { font-size: 14px; }
.fs12 {font-size:12px;}
.center { width:1200px; margin:0 auto; }
.flex { display: flex; flex-flow: row nowrap; justify-content:space-between; align-items: center; }
.flex2 { display: flex; flex-flow: column nowrap; justify-content: center; align-content: flex-start; }
.swiper-slide { cursor: pointer; }

html { overflow-x: hidden;}

.flex {
  display:flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
}
.wrap { width:100%;}
section {
  width: 100%;
}
/* View more버튼 */
/* rem단위 - root em이라는 뜻, 브라우저 가로길이가 기준이며 1rem은 16px정도임 > 상대크기 */
.more-btn {
  width: 10rem;
  height: 3rem;
  border: 1px solid #fff;
  margin-top: 48rem;
}
.more-btn a{
  display:flex;
}
.more-btn a .more {
  width: 70%;
  height: 3rem;
  /* text-align: center; */
  border-right: 1px solid #fff;
  position: relative;
}
.more-btn a .more span{
  position: absolute;
  background-color: #fff;
  width: 0;
  height: 100%;
  transition:width 0.4s ease-out;
}
.more-btn a .more p{
  position:absolute;
  width: 100%;
  height: 100%;
  /* 글자를 가운데로 정렬 */
  display:flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: color 0.4s ease-out;
}
.more-btn:hover a .more span {
  width: 100%;
}
.more-btn:hover a .more p{
  color:#222;
}
.more-btn a .arrow {
  padding: 0.6rem 0.8rem;
  width:30%;
}
/* 로그인 */
.login {
    width: 100%;
    display:flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
}
.login .login-area {
    width: 100%;
    margin-top: 90px;
    background-color: #fff;
    display:flex;
    justify-content: center;
}
.login .login-area .login-sec h3 {
    font-size: 12px;
    margin: 200px 0 10px 0;
}
.login .login-area .login-sec .input-btn {
    margin-top: 5px;
    width: 100%;
    height: 3rem;
    background-color: #222;
}
.login .login-area .login-sec .input-btn b {
    width: 100%;
    height: 100%;
    display:flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: color 0.4s ease-out;
}
.login .login-area .login-sec .input-btn:hover {
    background-color: #999;
    border: 1px solid #999;
}
.login .login-area .login-sec .input-btn:hover a p {
    color: #fff;
    z-index: 200;
    font-weight: bold;
}
.login-area .login-sec .inter-btn .search-btn {
    display: flex;
    flex-flow: row nowrap;
    height: 16px;
    font-size: 14px;
    font-weight: bold;
}
.login-area .login-sec .inter-btn .search-btn .search-pass {
    margin-left: 10px;
    padding: 0 0 0 8px;
    border-left: 1px solid #666;
}
.login-area .login-sec .inter-btn .join-btn {
    font-size: 14px;
    font-weight: bold;
}

/* 모달창 */
.modal-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.modal-box {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 2.5rem 1.5rem 2rem; /* 상단 패딩을 더 줘서 닫기 버튼 공간 확보 */
    border-radius: 10px;
    z-index: 1000;
    width: 320px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease-in-out;
    overflow: visible; /* 버튼 겹침 방지 */
}
.modal-box h3 {
    margin-top: 30px;
}
.modal-box input {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
    font-size: 16px;
}

.modal-box button {
    width: 100%;
    padding: 10px;
    font-weight: bold;
    background-color: #222;
    color: white;
    border: none;
    cursor: pointer;
}
.modal-close {
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    z-index: 1001;
    width: 24px;
    height: 40px;
    line-height: 22px;
    text-align: center;
    border-radius: 4px;
    transition: background 0.2s ease-in-out, color 0.2s ease-in-out;
}

.modal-close:hover {
    background: #eee;
    color: #000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -60%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.text-danger.shake {
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}
