@charset "UTF-8";

/* 기본 스타일 */
body {
  font-family: 'Noto Sans KR', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #F5F5F7;
  text-align: center;
  transition: background 0.3s, color 0.3s;
  /* user-select: none; */
}

/*
img {
  pointer-events: none;
}
*/

ul {
  padding:0;
  margin: 0;
  list-style: none;
}

/* 헤더 스타일 */
header {
  background: #181818;
  color: #fff;
  text-align: center;
  padding: 0;
  font-size: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

/* 헤더 상단 */
.header-top {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  background-color: #2A2A2A;
}

.header-tbox {
  padding: 30px 0;
  display: block;
  margin: 0 auto;
}

.header-tbox img {
  padding: 0;
  margin: 0;
}

header h3 {
  font-size: 16px;
  font-weight: normal;
  margin: 0;
  padding: 0;
  color: #ccc;
}

.blue-color {
  color: #0078D4;
}

/* 다크 모드 버튼 스타일 */
#theme-toggle {
  background: #222;
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
}

/* 컨테이너 스타일 */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 15px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 카드 스타일 */
.card {
  width: 100%;
  min-width: 186px;
  max-width: 220px;
  height: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.card h2 {
  font-size: 18px;
  text-align: center;
  color: #333;
  font-weight: bold;
  margin-bottom: 20px;
}

.card ul {
  text-align: left;
  padding: 10px 20px;
}

.card li {
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card li a {
  display: block; 
  max-width: 100%;
  color: #555;
  text-decoration: none;
  font-size: 16px;
  font-weight: normal;
  overflow: hidden; 
  text-overflow: ellipsis;
  white-space: nowrap;

}

.card li a:hover {
  color: #181818;
  text-decoration: none;
}

.card:hover {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
  border-top:1px solid #181818;
}

footer {
  margin-top: 20px;
  background: #242424;
}

.footer-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  
}

.footer-custom p {
  font-size: 15px;
  line-height: 1.4;
  color: #cccccc;
}

/* 다크 모드 스타일 */
.dark-mode {
  background-color: #181818;
  color: #fff;
}

.dark-mode .card {
  background: #242424;
  color: #fff;
  box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
}

.dark-mode .card:hover {
  border-top:1px solid #0078D4;
}

.dark-mode .card h2 {
  color: #fff;
}

.dark-mode .card li a {
  color: #cccccc;
}

.dark-mode .card li a:hover {
  color: #0078D4;
}

.dark-mode .card:hover {
  box-shadow: 0 6px 10px rgba(255, 255, 255, 0.2);
}

.dark-mode #theme-toggle {
  background: #222;
  color: #fff;
}

/* 반응형 */
@media (max-width: 600px) {
  header img {
    width: 80%;
  }

  .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: center;
  }
  
  .card {
    min-width: 150px;
    max-width: 100%;
    margin-bottom: 10px;
  }

  .footer-custom {
    text-align: left;
  }

  .footer-custom br {
    display: none;
  }
}
