* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
* {
  font-family: "Dongle", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #ffffff;
  font-size: 1.2em;
}

.container {
  width: 550px;
  height: 750px;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  overflow: hidden;
  background-color: #ffffff;
  border: 1px solid #000000; /*테두리 추가*/
}

.header {
  background-color: rgb(35, 17, 117);
  color: white;
  padding: 35px;
  text-align: center;
  height: 180px;
}

.main {
  flex: 1;
  padding: 10px;
}

#main11 {
  flex: 1;
  padding: 10px;
  border: none;
  font-size: 1em;
}
.link-card {
  background-color: #cbccda;
  border: 1px solid #ffffff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  text-align: center;
  cursor: pointer; /* 마우스 포인터 변경 */
  transition: background-color 0.3s;
}

.link-card a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #333333;
  font-size: 1.2em;
}

.link-card:hover {
  background-color: #040404;
}
.link-card:hover a {
  color: #ffffff;
  font-size: 1.2em;
}
.sec1,
.sec2,
.sec3 {
  border: 2px solid #07012e;
  border-radius: 5px;
  padding: 5px;
  margin-bottom: 8px;
  background-color: #fafafa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.sec1 .link-card:last-child,
.sec2 .link-card:last-child,
.sec3 .link-card:last-child {
  margin-bottom: 0;
}
.main {
  flex: 1;
  padding: 10px;
  overflow-y: auto; /* ← 콘텐츠가 많아지면 넘쳐버리는 것을 방지.*/
}
fieldset {
  border: 2px solid #000000;
  border-radius: 5px;
  padding: 10px 15px 15px 15px;
  margin-bottom: 15px;
  background-color: #fafafa;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

legend {
  font-weight: bold;
  padding: 0 10px;
  font-size: 1.2em;
  color: #333;
}
.page-wrapper {
  display: flex;
  height: 100vh;
  gap: 20px; /* 좌우 사이 공간 */
  padding: 20px;
  box-sizing: border-box;
  justify-content: flex-left; /* 필요 시 조정 */
  align-items: center; /* 가운데 정렬 */
}

.sidebar {
  width: 250px;
  border: 1px solid #ffffff;
  border-radius: 10px;
  padding: 15px;
  background-color: white;
  overflow-y: auto; /* 스크롤 필요 시 */
}

.sidebar h2 {
  margin-bottom: 15px;
}

.sidebar table {
  width: 100%;
  border-collapse: collapse;
}

.sidebar th,
.sidebar td {
  border: 1px solid #ffffff;
  padding: 8px;
  text-align: center;
}

.sidebar a {
  color: #333;
  text-decoration: none;
  font-size: 20px;
}

.sidebar a:hover {
  text-decoration: underline;
  font-weight: 400;
}

.member {
  text-align: center;
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  background-color:  rgb(35, 17, 117);
  color: white;
  padding: 10px;
}
.study {
  text-align: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 1px;
}
/* 모바일 대응: 화면 너비 768px 이하일 때 */
@media (max-width: 768px) {
  body {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .page-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    height: auto;
  }

  .sidebar {
    width: 100%;
  }

  .container {
    width: 100%;
    height: auto;
  }

  .header {
    height: auto;         /* 고정 높이 제거 */
    padding: 20px;        /* 패딩은 적절히 조정 */
    text-align: center;
  }
}
