@import url(https://fonts.googleapis.com/earlyaccess/nanumgothic.css);
@font-face {
	font-family: ng;
	src: url(NanumGothic.eot);
}
html {
	margin: 0; 
	padding: 0; 
	width: 100%; 
	height: 100%; 
	font-family: "Nanum Gothic", ng, sans-serif;
}
body {
	margin: 0; 
	padding: 0; 
	width: 100%; 
	height: 100%; 
	font-family: "Nanum Gothic", ng, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow-x: hidden;
	position: relative;
}
img {
	border: 0; 
	display: block;
	max-width: 100%;
	height: auto;
}
#main {
	margin: 0 auto;
	padding: 2rem;
	width: 100%;
	max-width: 800px;
	color: rgb(33, 33, 33); 
	line-height: 1.6;
	font-family: "Nanum Gothic", sans-serif; 
	font-size: 18px; 
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	text-align: center;
	background-color: rgba(255, 255, 255, 0.85);
	border-radius: 10px;
}
#footer {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	padding: 1rem;
	font-family: "Nanum Gothic", sans-serif; 
	font-size: 12px; 
	position: relative; 
	z-index: 2;
	box-sizing: border-box;
	text-align: center;
}
#footer a {
	color: rgb(136, 136, 136);
	margin: 0 5px;
	display: inline-block;
}
h1 {
	margin: 0; 
	padding: 0 0 2rem; 
	color: rgb(44, 62, 80); 
	font-family: "Nanum Gothic", sans-serif; 
	font-size: 2.5rem; 
	text-shadow: 1px 1px 2px #527495;
}
h2 {
	margin: 0; 
	padding: 2rem 0 1rem; 
	color: rgb(52, 73, 94); 
	font-family: "Nanum Gothic", sans-serif; 
	font-size: 1.5rem; 
	text-shadow: 1px 1px 2px #537597;
}
#footer a:link, a:active, a:visited {
	color: rgb(136, 136, 136); 
	font-family: "Nanum Gothic", sans-serif; 
	font-size: 14px; 
	text-decoration: none;
}
#footer a:hover {
	color: rgb(170, 170, 170);
}
span {
	margin: 0 5px;
	display: inline-block;
}
.button-container {
	display: flex;
	flex-direction: row; /* PC에서는 가로 배열 */
	flex-wrap: wrap; /* 필요시 줄바꿈 */
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin: 20px 0;
	width: 100%;
}

/* 모든 버튼이 동일한 크기를 갖도록 하는 컨테이너 */
.button-container > a {
	display: flex;
	justify-content: center;
	align-items: center;
}
.button {
	background: rgba(44, 62, 80, 1); 
	font: bold 12px/25px Arial, sans-serif; 
	padding: 10px 15px; /* 패딩 조정 */
	border-radius: 5px; 
	transition: all 0.3s ease; /* 애니메이션 시간 증가 */
	height: auto;
	text-align: center; 
	text-decoration: none; 
	display: inline-block; 
	position: relative; 
	box-sizing: border-box;
	width: auto; /* 자동 너비 */
	max-width: 180px; /* 최대 너비 제한 */
	min-width: 120px; /* 최소 너비 추가 */
	overflow: hidden; /* 애니메이션 효과를 위한 설정 */
}
.button:link, .button:visited {
	color: rgb(255, 255, 255);
}
.button:active {
	color: rgb(255, 255, 255); 
	transform: scale(0.98); /* 클릭 시 약간 축소 효과 */
}
.button:hover {
	color: rgb(44, 62, 80); 
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* 버튼 애니메이션 효과 추가 */
.button::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	transition: all 0.3s ease;
}
.button:hover::before {
	left: 100%;
}
.button::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 100%;
	background-color: white;
	z-index: -1;
	transition: all 0.3s ease;
}
.button:hover::after {
	width: 100%;
}
.big {
	font: bold 25px/25px Arial, sans-serif; 
	padding: 1.5rem;
	border: 1px solid rgb(170, 170, 170); 
	text-transform: uppercase;
}
.medium {
	font: bold 18px/18px Arial, sans-serif;
	padding: 1rem;
	border: 1px solid rgb(170, 170, 170);
}
.small {
	font: bold 16px/16px Arial, sans-serif;
	padding: 1rem;
	border: 1px solid rgb(170, 170, 170);
}
.big span, .medium span {
	text-transform: none; 
	display: block; 
	text-shadow: 1px 1px 1px rgba(255,255,255,0.12);
}
.blue {
	color: rgb(0, 0, 0);
}
a.no-uline {
	text-decoration: none;
}
#background-image {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background-image: url('/call.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* 모바일 대응 미디어 쿼리 */
@media screen and (max-width: 768px) {
	body {
		padding: 20px 0;
		justify-content: flex-start;
	}
	h1 {
		font-size: 2rem;
		padding: 0 0 1.5rem;
	}
	h2 {
		font-size: 1.2rem;
	}
	#main {
		padding: 1rem;
		font-size: 16px;
		line-height: 1.4;
		width: 90%;
		margin: 10px auto;
	}
	.big {
		font-size: 18px;
		padding: 1rem;
	}
	.medium {
		font-size: 16px;
		padding: 0.8rem;
	}
	#footer span {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	#footer a {
		margin: 5px 0;
	}
	.button-container {
		gap: 10px;
	}
}

/* 중요: 모바일에서 버튼을 세로로 배치하는 미디어 쿼리 */
@media screen and (max-width: 600px) {
	.button-container {
		flex-direction: column; /* 모바일에서는 세로 배열 */
		gap: 10px;
	}
	.button {
		width: 90%; /* 모바일에서 너비 지정 */
		max-width: 280px;
		margin: 5px 0;
	}
	.download-button {
		width: 180px; /* 모바일에서도 너비 유지 */
		margin: 8px auto; /* 가운데 정렬 */
		display: block; /* 블록 요소로 변경하여 너비 적용 */
	}
	.card-container {
		flex-direction: column; /* 모바일에서는 세로 배열 */
		align-items: center;
	}
	.download-card {
		width: 90%; /* 모바일에서 너비 조정 */
		max-width: 320px;
	}
}

@media screen and (max-width: 480px) {
	body {
		justify-content: flex-start;
		padding-top: 20px;
	}
	h1 {
		font-size: 1.8rem;
	}
	h2 {
		font-size: 1rem;
	}
	#main {
		font-size: 14px;
		padding: 15px;
		width: 95%;
	}
	.medium {
		font-size: 14px;
		padding: 0.7rem;
	}
	.big {
		font-size: 16px;
		padding: 0.9rem;
	}
	#background-image {
		background-position: 60% center;
	}
	.download-button {
		width: 160px; /* 더 작은 화면에서 너비 조정 */
		font-size: 13px; /* 더 작은 화면에서 폰트 사이즈 조정 */
		padding: 10px 15px; /* 패딩 조정 */
	}
	.small-btn {
		width: 130px;
		padding: 7px 10px;
		font-size: 12px;
	}
	.card-title {
		font-size: 16px;
	}
	.card-description {
		font-size: 13px;
		margin-bottom: 12px;
	}
	.card-icon {
		height: 70px;
	}
	.card-content {
		padding: 15px;
	}
}
/* 기존 스타일은 유지하고 아래 내용을 추가합니다 */

/* 카드 컨테이너 스타일 */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

/* 다운로드 카드 스타일 */
.download-card {
  width: 280px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.download-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
}

.seetrol-icon {
  background-color: #3b77db;
}

.rustdesk-icon {
  background-color: #7ecc2d;
}

.icon-text {
  color: white;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #333;
}

.card-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.card-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

/* 다운로드 버튼 스타일 - 위에서 아래로 연두색이 채워지는 효과 */
.download-button {
  display: inline-block;
  padding: 12px 20px;
  background: linear-gradient(to bottom, #7ecc2d 50%, #3b77db 50%);
  background-size: 100% 200%;
  background-position: bottom;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  width: 180px; /* 카드 내부에서 더 넓은 버튼 */
  height: auto; /* 자동 높이 설정 */
  line-height: 1.3; /* 텍스트 라인 높이 설정 */
  white-space: nowrap; /* 텍스트가 줄바꿈되지 않도록 설정 */
  overflow: hidden; /* 넘치는 텍스트 숨김 */
  text-overflow: ellipsis; /* 넘치는 텍스트에 ... 표시 */
  margin: 5px 0;
}

.download-button:hover {
  background-position: top;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.seetrol-button {
  background: linear-gradient(to bottom, #4a90e2 50%, #3b77db 50%);
  background-size: 100% 200%;
  background-position: bottom;
}

.small-btn {
  width: 140px;
  padding: 8px 12px;
  font-size: 0.9em;
  margin-top: 3px;
  background: linear-gradient(to bottom, #6ba3e5 50%, #4a7cc8 50%);
}

.rustdesk-button {
  background: linear-gradient(to bottom, #7ecc2d 50%, #5da01e 50%);
  background-size: 100% 200%;
  background-position: bottom;
}

/* 푸터 스타일 */
.footer-title {
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  margin: 30px 0 15px;
  color: #444;
}

.footer-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-card {
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  border-radius: 6px;
  padding: 15px;
  width: 200px;
  text-align: center;
  transition: all 0.3s ease;
}

.footer-card:hover {
  background-color: #e8e8e8;
  transform: translateY(-3px);
}

.footer-card-title {
  font-size: 14px;
  font-weight: bold;
  color: #444;
  margin-bottom: 12px;
}

/* 푸터 다운로드 버튼 - 위에서 아래로 연두색이 채워지는 효과 */
.footer-download-button {
  display: inline-block;
  padding: 8px 15px;
  background: linear-gradient(to bottom, #7ecc2d 50%, #3b77db 50%);
  background-size: 100% 200%;
  background-position: bottom;
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.footer-download-button:hover {
  background-position: top;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}