* {
  box-sizing: border-box; /* 모든 요소에 box-sizing 적용 */
}
  html, body {
    height: 100%; /* HTML과 Body의 높이를 전체 뷰포트 크기로 설정 */
    margin: 0 auto; /* 기본 마진 제거 */
    padding: 0; /* 기본 패딩 제거 */
    width : 1300px;
  }
  body {
    overflow-y: auto;
    font-family: Arial, sans-serif; /* 폰트 스타일 설정 */
    background: #f4f4f9; /* 배경 색상 설정 */
    line-height: 0.9;
	position: relative; /* 상대 위치 지정 */
    min-height: 100%; /* 최소 높이를 뷰포트 높이로 설정 */
    box-sizing: border-box; /* 패딩을 포함한 박스 모델 적용 */
  }
  header {
    background-color: navy; /* 배경색을 navy로 설정 */
	left: 0; /* 왼쪽 가장자리로 */
    color: white; /* 글자색을 흰색으로 설정 */
    width: 100%; /* 너비를 화면 전체로 설정 */
    padding: 3px 10px; /* 패딩 설정 */
    text-align: center; /* 텍스트 중앙 정렬 */
	margin-bottom: 10px;
    height:55px;
  }
  footer {
    position: fixed; /* 푸터를 고정 위치에 배치 */
    left: 0; /* 왼쪽 가장자리로 */
    bottom: 0; /* 하단 가장자리로 */
    width: 100%; /* 너비를 화면 전체로 설정 */
    background-color: navy;
    color: white;
    text-align: center;
    padding: 10px 20px;
  }  
  
.description-container {
  display: grid;
  grid-template-columns: 2.2fr 1.8fr;
  gap: 5px;
  margin: 10px auto;
  width: 96%;
}
  
.service-description {
  background-color: #e8f0fe;
  border-left: 5px solid navy;
  padding: 10px 12px;
  border-radius: 5px;
}

  .service-description h2 {
    color: navy; /* 제목 색상 */
  }

 label, .links a {
  font-size: 13px; /* Reduced by 2px */
}


.links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 8px;
  background-color: #f1f1f1;
  border-radius: 5px;
  border: 1px solid #ccc;
  align-items: stretch;
}

.link-item a {
  display: block;
  padding: 8px;
  background-color: white;
  border-radius: 5px;
  border: 1px solid #bbb;
  color: navy;
  text-decoration: none;
  font-weight: bold;
  height: 20%;
}

.link-item2 a {
  display: block;
  padding: 8px;
  background-color: white;
  border-radius: 5px;
  border: 1px solid #bbb;
  color: navy;
  text-decoration: none;
  font-weight: bold;
  height: 100%;
}

.link-item2 {
  flex: 1; /* 두 링크 아이템이 컨테이너 공간을 동일하게 차지하도록 설정 */
  margin-right: 10px; /* 오른쪽에 마진 추가 */
}

.link-item2:last-child {
  margin-right: 0; /* 마지막 링크 아이템의 마진 제거 */
}

.link-item2:hover {
  background-color: #e8f0fe; /* 호버시 배경색 변경 */
  border-color: navy; /* 호버시 테두리 색 변경 */
}


.link-item {
  flex: 1; /* 두 링크 아이템이 컨테이너 공간을 동일하게 차지하도록 설정 */
  margin-right: 10px; /* 오른쪽에 마진 추가 */
}

.link-item:last-child {
  margin-right: 0; /* 마지막 링크 아이템의 마진 제거 */
}

.link-item:hover {
  background-color: #e8f0fe; /* 호버시 배경색 변경 */
  border-color: navy; /* 호버시 테두리 색 변경 */
}

  .form-section {
    padding: 5px 0; /* 섹션 간격 설정 */
    background: #ffffff; /* 배경 색상 설정 */
    margin: 0; /* 모든 섹션을 하나로 보기 위해 마진 제거 */
    border: none; /* 테두리 제거 */
	padding-left: 20px; /* 왼쪽에 여백 추가 */
  }
  form {
    width: 96%; /* form의 너비를 화면의 96%로 설정 */
    margin: 0 auto; /* form을 화면 중앙에 배치 */
	margin-bottom: 10px;
  }
  label {
    margin-right: 10px; /* 라벨 간격 설정 */
    color: #333; /* 라벨 색상 설정 */
    font-size: 13px; /* 폰트 크기 설정 */
    display: inline-block; /* 라벨을 인라인 블록 요소로 설정 */
	font-weight: bold;
  }

 input[type="radio"], input[type="checkbox"], input[type="date"] {
    margin-right: 3px;
    margin-bottom: -1px;
    vertical-align: bottom;
  }

  h2 {
    color: #333;
    font-size: 14px;
    margin-bottom: 5px;
  }

  #sourceOptions {
    display: flex; /* 체크박스를 가로로 정렬 */
    flex-wrap: wrap; /* 필요시 다음 줄로 넘김 */
  }
  
  /* periodSection을 flex 컨테이너로 설정하여 내부 요소를 나란히 배치 */
  #periodSection {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%; /* 섹션의 너비를 전체로 설정 */
    margin: 0; /* 마진 제거 */
  }

  /* coordinates는 periodSection의 왼쪽에 표시 */
  .coordinates {
    display: grid;
    grid-template-columns: 1fr 100px 1fr;
    grid-template-rows: 50px 50px 50px;
    gap: 5px;
    align-items: center;
    justify-items: left; /* 입력창을 왼쪽 정렬 */
    width: 320px; /* 너비를 고정 */
    margin: 0; /* 여백 제거 */
  }

  .coordinate-input {
    display: flex;
    flex-direction: column;
    align-items: left; /* 입력 필드가 왼쪽에 정렬되도록 설정 */
  }

  input[type="text"] {
    width: 80px; /* 텍스트 입력 박스 폭 설정 */
    margin-top: 5px;
  }
  
  .date-selection {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
  }
  
  .date-selection label {
    margin-right: 20px; /* 라벨 간의 간격 설정 */
  }

  .north {
    grid-column: 2;
    grid-row: 1;
  }

  .east {
    grid-column: 3;
    grid-row: 2;
  }

  .south {
    grid-column: 2;
    grid-row: 3;
  }

  .west {
    grid-column: 1;
    grid-row: 2;
  }
  
  .search-button {
  background-color: navy; /* 버튼 배경색 */
  color: white; /* 버튼 텍스트 색상 */
  padding: 10px 20px; /* 패딩 설정 */
  border: none; /* 테두리 제거 */
  border-radius: 5px; /* 모서리 둥글게 */
  font-size: 13px; /* 폰트 크기 */
  cursor: pointer; /* 마우스 오버 시 커서 변경 */
  width: 99%; /* 버튼의 너비를 전체로 설정 */
  box-sizing: border-box; /* 박스 사이징 보더 박스로 설정 */
  margin-top: 10px; /* 위쪽 여백 추가 */
  margin-right: 10px;
  transition: background-color 0.3s; /* 배경색 변경 애니메이션 */
}
.form-section.search-section {
    display: flex;
    justify-content: space-between;  // ¹öÆ° »çÀÌ¿¡ °ø°£À» ±ÕµîÇÏ°Ô ºÐ¹è
    align-items: center;            // ¹öÆ°µéÀ» ¼¼·Î Áß¾Ó¿¡ Á¤·Ä
    padding: 10px;                  // ³»ºÎ ¿©¹é Ãß°¡
}
.search-button:hover {
  background-color: #003366; /* 호버 시 배경색 변경 */
}
.reset-button {
  background-color: navy; /* ¹öÆ° ¹è°æ»öÀ» ¿¬ÇÑ Ã»»öÀ¸·Î ¼³Á¤ */
  color: white; /* ¹öÆ° ÅØ½ºÆ® »ö»óÀ» Èò»öÀ¸·Î ¼³Á¤ */
  padding: 10px 20px; /* ÆÐµù ¼³Á¤ */
  border: none; /* Å×µÎ¸® Á¦°Å */
  border-radius: 5px; /* ¸ð¼­¸® µÕ±Û°Ô */
  font-size: 13px; /* ÆùÆ® Å©±â */
  cursor: pointer; /* ¸¶¿ì½º ¿À¹ö ½Ã Ä¿¼­ º¯°æ */
  width: 99%; /* ¹öÆ° ³Êºñ ÀüÃ¼ »ç¿ë */
  padding-left: 2.5%; /* 왼쪽에 2.5%의 여백 추가 */
  padding-right: 2.5%; /* 오른쪽에 2.5%의 여백 추가 */
  margin-top: 10px; /* À§ÂÊ ¿©¹é Ãß°¡ */
  margin-right: 10px;
  transition: background-color 0.3s; /* ¹è°æ»ö º¯°æ ¾Ö´Ï¸ÞÀÌ¼Ç */
}
.search-button, .reset-button {
    flex-grow: 1;  // ¸ðµç ¹öÆ°ÀÌ ÄÁÅ×ÀÌ³Ê °ø°£À» ±ÕµîÇÏ°Ô Â÷ÁöÇÏµµ·Ï ¼³Á¤
    margin: 5px;   // ¹öÆ° »çÀÌÀÇ °£°Ý Á¶Á¤
}
.reset-button:hover {
  background-color: #003366; /* È£¹ö ½Ã ¹è°æ»ö º¯°æ */
}
.search-results {
  width: 95%;
  margin-top: 20px;
  padding: 20px;
  background-color: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 5px;
  display: none; /* 초기에는 숨겨짐 */
  margin: 0 auto;
}

.search-results h2 {
  color: #333;
}
a {
  text-decoration: none;
}
table {
  width: 100%; /* Å×ÀÌºí ³Êºñ¸¦ ÀüÃ¼·Î ¼³Á¤ */
  border-collapse: collapse; /* Å×µÎ¸® °ãÄ§ ¹æÁö */
  margin: 20px 0; /* »óÇÏ ¸¶Áø ¼³Á¤ */
  font-size: 12px; /* ÆùÆ® Å©±â ¼³Á¤ */
  border-radius: 5px; /* ¸ð¼­¸® µÕ±Û°Ô */
  overflow: hidden; /* ³»¿ëÀÌ ³ÑÄ¥ °æ¿ì ¼û±è */
  box-shadow: 0 0 20px rgba(0,0,0,0.15); /* ±×¸²ÀÚ È¿°ú */
}

th, td {
  padding: 6px 10px; 
  text-align: left; 
  border-bottom: 1px solid #dddddd; 
}

th {
  background-color: #e6dbda; /
  color: #FFF; 
  font-weight: bold; /* ÆùÆ® µÎ²² */
}

tr:nth-child(even) {
  background-color: #f3f3f3; /* Â¦¼ö Çà ¹è°æ»ö */
}

tr:hover {
  background-color: #f1f1f1; /* È£¹ö½Ã Çà ¹è°æ»ö º¯°æ */
}

tr:first-child th {
  border-top: none; /* Ã¹ ÇàÀÇ »ó´Ü Å×µÎ¸® Á¦°Å */
}

.search-results, table {
  width: 95%; /* °Ë»ö °á°ú ¹× Å×ÀÌºí ³Êºñ¸¦ 95%·Î ¼³Á¤ */
  margin: 0 auto; /* °¡¿îµ¥ Á¤·Ä */
  margin-bottom: 10px; /* ÇÏ´Ü ¸¶Áø Ãß°¡ */
}

.table-title {
  font-size: 1.0em;  /* ±ÛÀÚ Å©±â Áõ°¡ */
  color: #0056b3;  /* ±ÛÀÚ »ö»ó */
  flex-grow: 1;  /* Á¦¸ñÀÌ °¡´ÉÇÑ °ø°£À» Â÷ÁöÇÏµµ·Ï */
}

.table-header {
  width : 95%;
  margin: 0 auto;
  display: flex;
  align-items: center;  /* ¼¼·Î Áß¾Ó Á¤·Ä */
  justify-content: space-between;  /* ³»¿ëÀ» ¾çÂÊ ³¡À¸·Î ºÐ¹è */
  padding: 5px 10px;
  background-color: #f8f8f8;  /* ¹è°æ»ö */
  border-radius: 5px;  /* ¸ð¼­¸® µÕ±Û°Ô */
  border: 1px solid #ccc;  /* Å×µÎ¸® */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* ±×¸²ÀÚ È¿°ú */
  margin-top: 5px;
  margin-bottom: 5px;
}

.download-btn {
  padding: 6px 12px;
  margin-left: 10px;
  background-color: navy;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #003366; /* ¹öÆ° È£¹ö »ö»ó º¯°æ */
}
#myBtn {
  display: none; /* Initially hidden */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* No borders */
  outline: none; /* Remove outline */
  background-color: #d3d3d3; /* Light grey background */
  color: black; /* Black arrow */
  cursor: pointer; /* Pointer/hand icon */
  padding: 10px 15px; /* Padding to make the button round */
  border-radius: 50%; /* Fully rounded corners to make it circular */
  font-size: 24px; /* Text size, larger to make the arrow clearer */
  width: 50px; /* Same width and height to ensure circle shape */
  height: 50px; /* Same width and height to ensure circle shape */
  text-align: center; /* Ensure the text is centered */
  line-height: 30px; /* Adjust line height to center the text vertically */
}
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.4);
            padding-top: 50px;
        }

        .modal-content {
            background-color: #fefefe;
            margin: auto;
            padding: 20px;
            border: 1px solid #888;
            width: 40%;
            height: auto;
        }

        .close {
            color: #aaaaaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

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

.service-explanation {
  background-color: white; /* ¹è°æ»öÀ» ÇÏ¾é°Ô ¼³Á¤ */
  padding: 2px; /* ÆÐµù */
  margin-top: 5px; /* »ó´Ü ¿©¹é */
  border-radius: 5px; /* ¸ð¼­¸® µÕ±Û°Ô Ã³¸® */
  font-size: 14px; /* ÆùÆ® Å©±â */
  border: 1px solid #ccc; /* °æ°è¼± Ãß°¡ */
  height: 95%;
}
.service-explanation2 {
  background-color: white; /* ¹è°æ»öÀ» ÇÏ¾é°Ô ¼³Á¤ */
  padding: 2px; /* ÆÐµù */
  margin-top: 5px; /* »ó´Ü ¿©¹é */
  border-radius: 5px; /* ¸ð¼­¸® µÕ±Û°Ô Ã³¸® */
  font-size: 14px; /* ÆùÆ® Å©±â */
  border: 1px solid #ccc; /* °æ°è¼± Ãß°¡ */
  height: 95%;
}

.link-item {
  flex: 1; /* µÎ ¸µÅ© ¾ÆÀÌÅÛÀÌ ÄÁÅ×ÀÌ³Ê °ø°£À» µ¿ÀÏÇÏ°Ô Â÷ÁöÇÏµµ·Ï ¼³Á¤ */
  margin-right: 5px; /* ¿À¸¥ÂÊ¿¡ ¸¶Áø Ãß°¡ */
  border-right: 2px solid #ccc; /* ¼¼·Î¼± Ãß°¡ */
  padding-right: 5px;
  padding-left : 5px; /* ¼¼·Î¼±°ú ÅØ½ºÆ® »çÀÌ °£°ÝÀ» Á¶Á¤ */
}

.link-item:last-child {
  margin-right: 0; /* ¸¶Áö¸· ¸µÅ© ¾ÆÀÌÅÛÀÇ ¸¶Áø Á¦°Å */
  border-right: none; /* ¸¶Áö¸· ¾ÆÀÌÅÛ¿¡´Â ¼¼·Î¼± Á¦°Å */
}

.links-container {
  display: flex;
  /*justify-content: space-between; */
  gap: 10px; /* ¸µÅ© »çÀÌÀÇ °£°Ý */
}

.links-container2 {
  display: block;
}

.button-box {
  width: 100%;
  margin-bottom: 0px;
}

.custom-btn {
  display: block;
  width: 100%;
  background-color: navy;
  color: white;
  padding: 12px 0;
  text-align: center;
  border-radius: 5px;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.custom-btn:hover {
  background-color: #003366;
  color: white;
  text-decoration: none;
}
.right-column {
  display: flex;
  flex-direction: column;
}

.title-box {
  width: 95%;
  margin: 20px auto;
  background-color: #e8f0fe;
  border-left: 5px solid navy;
  padding: 15px 20px;
  border-radius: 5px;
}

.title-box h2 {
  margin: 0;
  color: navy;
  font-size: 22px;
}

.table-container {
  width: 95%;
  margin: 20px auto;
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
}

.custom-table th, .custom-table td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: center;
}

.custom-table th {
  background-color: navy;
  color: white;
}

.custom-table th,
.custom-table td {
  font-size: 14px;
}

.custom-table th:nth-child(n+2):nth-child(-n+6),
.custom-table td:nth-child(n+2):nth-child(-n+6) {
  width: 120px;
}

.clickable-cell {
  cursor: pointer;
}

.clickable-cell:hover {
  background-color: #e8f0fe;
}

#gifContainer {
  width: 95%;
  margin: 20px auto;
  text-align: center;
  display: none;
  
  display: none; /* ±âº»Àº ¼û±è, JS¿¡¼­ blockÀ¸·Î ¹Ù²Þ */
}


.gif-item {
  display: inline-block;
  margin: 10px;
}


.gif-item img {
  max-width: 550px;   
  max-height: 550px;  
  display: block;
  margin: 0 auto 5px auto;
}

/* Á¦¸ñ(Ä¸¼Ç) ½ºÅ¸ÀÏ */
.gif-caption {
  font-size: 14px;
  margin-top: 10px;
  color: #333;
}

.home-btn {
  position: fixed;
  bottom: 30px;           /* ¾Æ·¡¿¡¼­ ¶ç¿ì´Â °Å¸® */
  right: 30px;            /* ¿À¸¥ÂÊ¿¡¼­ ¶ç¿ì´Â °Å¸® */
  width: 60px;            /* ¹öÆ° Å©±â */
  height: 60px;
  background-color: navy; 
  color: white;
  border-radius: 50%;     
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;       
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
  z-index: 9999;       
  transition: background 0.3s ease;
}


.home-btn:hover {
  background-color: #003366;
}
