@charset "utf-8";

#formBox {
  display: flex;
  width: 700px;
  height: auto;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: "Medium";
  flex-direction: column;
  gap: 50px;
  margin: 0 auto;
  padding: 45px;
}
#formBox .logo img {
  width: 200px;
  height: auto;
}
#mainForm {
  width: 100%;
}

.form-group {
  margin-bottom: 15px;
  display: flex;
  height: 60px;
}

.form-group.privacy {
  align-items: center;

}
.form-group input.textInput {
  width: 100%;
  padding-left: 10px;
  border: 1px solid #ddd;
}
#formBox label {
  display: inline-block;
  width: 150px;
  text-align: left;
  line-height: 60px;
  font-size: 1.25em;
}


/* 성별 라디오버튼 */
/* 라디오 버튼 숨기기 */
.sexRadio input[type="radio"] {
  appearance: none; /* 기본 스타일 제거 (브라우저별 접두사 필요할 수 있음) */
  -webkit-appearance: none; /* Safari, Chrome */
  -moz-appearance: none; /* Firefox */
  width: 0; /* 크기를 0으로 설정 */
  height: 0;
}
.sexRadio {
  display: flex;
  width: 100%;

}
/* 라벨 스타일 */
#formBox .sexRadio label {
  display: inline-block; /* 라벨을 인라인 블록 요소로 설정 */
  width: 50%; /* 50% 너비 */
  text-align: center; /* 텍스트 가운데 정렬 */
  box-sizing: border-box; /* padding, border가 width에 포함되도록 설정 */
  border: 1px solid #333; /* 테두리 추가 (선택 사항) */
  cursor: pointer; /* 마우스 커서 변경 */
}
/* 선택된 라디오 버튼의 라벨 스타일 */
.sexRadio input[type="radio"]:checked + label {
  background-color: #333; /* 배경색 지정 */
  font-weight: bold; /* 폰트 굵게 (선택 사항) */
  text-align: center;
  color: #fff;
}


#privacy {
  margin-right: 5px;
  width: 20px;
  height: 15px;
  margin-top: 2px;
  
}
#formBox .form-group.privacy label {
  font-size: 1em;
  width: 120px;
}
.form-group.privacy a {
  display: block;
  opacity: .5;
  font-size: 12px;
}
.submit {
  width: 100%;
  height: auto;
  border: 0;
  padding: 15px 20px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  font-family: "SemiBold";
}

.popup {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border: 1px solid #ccc;
  padding: 20px;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}


/* 모달 스타일 */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

/* 모달 내용 스타일 */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  border: 1px solid #888;
  width: 350px;
  border-radius: 10px;
  overflow: hidden;

  animation-duration: 0.2s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
}

/* 나타날 때 애니메이션 */
.modal-content.show {
  animation-name: slideIn;
}

/* 사라질 때 애니메이션 */
.modal-content.hide {
  animation-name: slideOut;
}

/* 아래에서 올라오는 애니메이션 */
@keyframes slideIn {
  from {
    transform: translateY(15%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 위로 사라지는 애니메이션 */
@keyframes slideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }

  to {
    transform: translateY(5%);
    opacity: 0;
  }
}

.modalTitle {
  display: flex;
  justify-content: space-between;
  background-color: #333;
  color: #fff;
  padding: 15px 20px;
  align-items: center;
  font-size: 17px;
}
.modalTitle .text {
  color: red;
}
/* 닫기 버튼 스타일 */
.close {
  color: #fff;
  float: right;
  font-size: 15px;
  font-weight: bold;
}
.closeBtn {
  display: block;
  cursor: pointer;
  text-align: center;
  width: 100px;
  padding: 10px 15px;
  background-color: #333;
  color: #fff;
  margin: 5px auto;
  border-radius: 5px;
  margin-bottom: 15px;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#modalMessage {
  display: block;
  padding: 15px 20px;
  text-align: center;
  font-weight: bold;
}


.sample {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}
.sample span {
  font-size: 12px;
}
.sample span em {
  color: #a52236;
}



@media only screen and (min-width:100px) and (max-width:700px) {
  #formBox {
  width: 100%;
}
}

