

@keyframes fadeIn {
	from {opacity : 0; }
	to {opacity: 1; }
}

body{
	font-family: "Noto Serif KR", serif;
	text-align: left;
	word-break: keep-all;
	line-height: 1.7;
	font-size: 20px;
	padding: 20px;
}
h1{
	font-size: 100px;
	text-align: center;
	letter-spacing: 1px;
	margin:0 0 40px 0;
	animation: fadeIn 1s ease-in-out;
}

.enter-btn{
	display: inline-block;
	padding: 12px 32px;
	border: 2px solid black;
	border-radius: 30px;
	text-decoration: none;
	font-size: 16px;
	font-weight: bold;
	animation: fadeIn 1.5s ease-in-out;

}

.enter-btn:visited {
	color: black;
}

.hero{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100vh;
}


.nav{
	position: fixed;
	top: 20px;
	left: 30px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.nav a{
	text-decoration: none;
	font-size: 20px;
	font-weight: bold;
	color:inherit;
}

.intro{
	max-width: 800px;
	margin: 40px auto ;
	padding: 40px;
	border-style: dotted;
	display: flex;
	flex-direction: column;
	align-items: center;

}

.move-btn{
	display: block;
	width: fit-content;
	margin-top: 30px;
	padding: 12px 32px;
	border: 2px solid black;
	border-radius: 30px;
	text-decoration: none;
	font-size: 16px;
	font-weight: bold;
}

.move-btn:visited {
	color: black;
}

h2{
	font-size: 25px;
	padding: 5px;
}

p{
	padding-left: 5px;
}

h1, h2, .enter-btn, .move-btn, .nav{
	font-family: "Noto Sans; KR", sans-serif;
}

#move {
  max-width: 800px;
  margin: 80px auto;
  padding: 40px;
}
.q { margin-bottom: 50px;}
.q-text { font-size: 22px; margin-bottom: 50px; }
.hidden { display: none; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-group button {
  padding: 10px 28px;
  border: 2px solid black;
  border-radius: 30px;
  background: white;
  font-size: 16px;
  font-family: "Noto Serif KR", serif;
  cursor: pointer;
}
.btn-group button.active {
  background: black;
  color: white;
}

.result-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 100px;
  max-width: 900px;
}

.result-grid img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border: 1px solid black;
}

.img-card.hidden { display: none; }


.img-card {
  position: relative;
  width: 180px;
  height: 180px;
  display: block;
  text-decoration: none;
}
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.img-card:hover .overlay {
  opacity: 1;
}

.diary{
	max-width: 800px;
	margin:0 auto ;
	padding: 40px;
}

.moving-img{
	width: 200px;
	float: right;
	margin-left: 20px;
}

.moving-img img, .moving-img video{
	width: 100%;
}