/* Reset */
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

/* Base */
html {
	overflow-x: hidden;
	background-color: #040b25;
	scroll-behavior: smooth;
	font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	position: relative;
}

.container {
	width: 820px;
	margin: 0 auto;
	position: relative;
}

img {
	width: 100%;
	display: block;
}

#invest1 .linkBtn {
	width: 90%;
	background: #040b25;
	display: block;
	margin: 0px auto 40px;
	position: static;
	transform: none;
	border-radius: 0;
	overflow: visible;
}

.linkBtn {
	position: absolute;
	width: 90%;
	left: 50%;
	bottom: 0%;
	transform: translate(-50%, -50%);
	border-radius: 20px;
	overflow: hidden;
}

.graphLineWrap {
	background-color: #fff;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0);
	border-radius: 50px;
	height: 60px;
	width: 90%;
	position: absolute;
	left: 50%;
	bottom: 14.5%;
	transform: translate(-50%, -50%);
	overflow: hidden;
}

.line {
	width: 0%; /* 초기값 0% */
	height: 100%;
	background: #68e8ff;
	background: linear-gradient(
		90deg,
		rgba(104, 232, 255, 1) 0%,
		rgba(73, 116, 234, 1) 100%
	);
	border-radius: 50px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 10px;
	box-sizing: border-box;
	border-radius: 50px;
	transition: width 2s ease;
}

.countNum {
	font-weight: bold;
	color: #fff;
	font-size: 25px;
	font-family: "Gmarket Sans";
	padding: 5px 10px 0 0;
}

footer {
	width: 100%;
	max-width: 820px;
	margin: 0 auto;
	text-align: center;
	color: #fff;
	padding: 20px;
	font-size: 15px;
	background: #001855;
}

.form_section {
	background-color: #001568;
	color: #fff;
	font-weight: bold;
	padding: 30px;
}
.form_section .inputForm-wrapper {
	display: flex;
	flex-direction: column;
	gap: 15px;
}
.form_section .inputForm-wrapper > div {
	display: flex;
	gap: 10px;
	align-items: center;
}
.form_section label {
	word-break: keep-all;
}
.form_section input[type="text"] {
	height: 50px;
	border-radius: 10px;
	width: 100%;
	border: none;
	padding: 10px;
}

/* Modal 스타일링 */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(5px);
	animation: modalFadeIn 0.3s ease-out;
}

.modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
	border-radius: 20px;
	padding: 0;
	width: 90%;
	max-width: 500px;
	max-height: 80vh;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: modalSlideIn 0.4s ease-out;
}

.close {
	position: absolute;
	top: 15px;
	right: 20px;
	color: #000;
	font-size: 20px;
	padding: 10px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #fff;
}

.close:hover {
	color: #333;
	background: rgba(0, 0, 0, 0.15);
	transform: scale(1.1);
}

.modal-content-inner {
	padding: 10px 20px;
}

.modal-content h3 {
	margin: 0;
	padding: 15px 30px;
	font-size: 22px;
	font-weight: 700;
	color: #333;
	text-align: center;
}

.modal-content p {
	margin: 15px 0;
	font-size: 14px;
	line-height: 1.6;
	color: #555;
	word-break: keep-all;
	overflow-y: auto;
	max-height: 60vh;
}

/* Modal 애니메이션 */
@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes modalSlideIn {
	from {
		opacity: 0;
		transform: translate(-50%, -60%);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

/* Media Queries */
@media screen and (max-width: 768px) {
	.form_section input[type="text"] {
		height: 40px;
	}
	.form_section .inputForm-wrapper {
		font-size: 14px;
	}
	.form_section {
		padding: 15px;
	}

	.container {
		width: 100%;
	}

	.graphLineWrap {
		height: 35px;
		bottom: 13.2%;
		width: 85%;
	}

	.graphLineWrap .line .countNum {
		font-size: 20px;
	}
}
