
@charset "UTF-8";
/* CSS Document */


body {
  font-family: Arial, sans-serif;
  
  margin: 0px;
  padding: 0px;
  text-align: center;
  
  background-image: url(assets/imgs/mbti_bg.jpg);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  background-color:darkcyan;
}

h1 {text-align: center;}
	
	.headtitle {
		background-color: #00c8dd;
		margin-top:0px;
		color:#FFFFFF;
		border-radius:12px 12px 0px 0px;
		font-size:28px;

		padding:20px 0px 15px 0px;
		
	
	}


#quizContainer {
  text-align: left;
  margin-top:20px;
  padding-top:0px;
  padding-bottom:20px;
  margin-left:auto;
  margin-right:auto;
  max-width: 600px;
  min-width: 360px;	
  background-color:#FFFFFF;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  margin-bottom:30px;
  
  border:1px solid #006382;
}

.container {padding:0px 0px 20px 0px;margin: 0px 20px;}

label {
  display: block;
  margin-bottom: 10px;
}

#choices {text-align:left;margin-top:40px;}

input[type="radio"] {
  margin-right: 5px;
}

#nextButton {
  background-color: #007BFF;
  color: white;
  border: none;
  padding: 10px 0px;
  font-size: 14px;
  cursor: pointer;
  margin-top:50px;
  width:100%;
  border-radius: 20px
}

.restart {
	
  background-color: grey;
  color: white;
  border: none;
  padding: 10px 10px;
  font-size: 14px;
  cursor: pointer;
  margin-top:50px;
  border-radius: 20px
	
}

#result-page {
  display: none;
  width:600px;
  max-width:600px;
  
  text-align: center;
	
  opacity: 0; /* 초기에는 투명도를 0으로 설정하여 화면에서 숨김 */
  animation: fade-in 1s ease-in-out 0.5s forwards; /* 애니메이션 설정 */
	
	
} 


.ContentContainer {
  text-align: left;
  margin-top:20px;
  padding-top:0px;
  padding-bottom:20px;
  margin-left:auto;
  margin-right:auto;
  max-width: 600px;
  min-width: 360px;	
  background-color:#FFFFFF;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  margin-bottom:30px;
  
  border:1px solid #006382;
}

@keyframes fade-in {
  from { opacity: 0; } /* 애니메이션 시작 시점 */
  to { opacity: 1; } /* 애니메이션 종료 시점 */
}

/* 모달 배경 */
.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; /* 모달을 중앙에 위치시킵니다 */
  padding: 20px;
  border: 1px solid #888;
  width: 80%; /* 모달의 너비를 설정합니다 */
}

/* 모달 닫기 버튼 */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* 결과 이미지 */
#resultImage {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
}




@media (max-width: 899px) { 
	
	#result-page {
  display: none;
  width:100%;
  max-width:600px;
  
  text-align: center;
} 
	
}

@media (max-width: 600px) { 
	
	#result-page {
  display: none;
  width:100%;
  max-width:370px;
  
  text-align: center;
} 
	
}
