.wrap {
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  margin: 0 ;
  padding: 0;
  
}

:root {
  --bg-main: #ffffff;
  --bg-card: linear-gradient(to bottom, #ffffff, #ddddf4);
  --text-main: #111827;
  --text-sub: #4b5563;
  --card-text: #374151;
  --accent: rgb(0, 2, 132);
  --table-header: #dbddea;
  --table-hover: #e7e7ee;
}

.icon-checkbox:checked ~ .wrap {
  --bg-main: #05080e;
  --bg-card: linear-gradient(to bottom, #05070a, #24314d);
  --text-main: #e5e7eb;
  --text-sub: #9ca3af;
  --card-text: #d1d5db;
  --accent: #60a5fa;
  --table-header: #1e293b;
  --table-hover: #334155;
}

.flex-container {
  display: flex;
  flex-direction: column;
  padding: 10px;
  
}

.flex-container div {
  padding: 70px;
  font-size: 35px;
  text-align: center;
  flex: 300px;
  align-items: center;
}

.jaymoc {
  margin-top: 80px;
}

.jaymoc h1 {
  margin: 0;
  justify-content: center;
  font-size: 50px;
  display: flex;
  font-family: 'Bungee', sans-serif;
  transition: color 0.5s ease;
  transition: 1.5s;
  
}

.jaymoc p {
  text-align: center;
  font-size: 20px;
  margin-top: 20px;
  color: var(--text-sub);
}


.jaymoc h1:hover {
  
  color: rgb(157, 157, 157);
  transition: 1.5s;
  transform: scale(1.1);
  color: var(--accent);
}
/* 동글동글하게 */
.flex-container div {
  box-shadow: 5px 5px 15px 0px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
}
/* 중요한 친구 */
.move-box {
  background: var(--bg-card);
  
  display: flex;
  text-align: center;
  
  justify-content: center;
  align-items: center;
  transition: transform 0.5s, box-shadow 0.7s ease; /* 상태 변화 시 부드럽게 */
  
}
.icon-checkbox:checked ~ .wrap .move-box  {
  background: var(--bg-card); /* 체크 시 어두운 그라데이션으로 변경 */
}

.move-box:hover {
  transform: scale(1.02); /* hover 시 확대 */
  box-shadow: #473cab93 0px 4px 18px 1px;
}

.text42 {
  box-shadow: 5px 5px 15px 0px rgba(0, 0, 0, 0.2);
  background: var(--bg-card);
  
  text-align: center;

  margin: 20px auto;
  border-radius: 5px;
  transition: box-shadow 0.5s ease;
}
.text42:hover {
  box-shadow: #473cab93 0px 2px 18px 1px; 
  
}

.move-box h2 {
  font-style: bold ;
  
}
.move-box p {
  font-size: 18px;
  line-height: 1.6; /* 줄 간격 */
  margin: 0;
}

img {
  display: block;
  margin: 40px auto;
  width: 1100px;
  height: 350px;
  object-fit: cover;
  border-radius: 15px;
}

/* 메뉴 스타일 by asw*/
table {
  border-collapse: collapse;
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  border: 2px solid rgb(176, 176, 189);
}

th,
td {
  padding: 10px;
  text-align: center;
  border: 2px solid var(--table-header);
}

th {
  background-color: var(--table-header);
  color: var(--card-text);
}

td a {
  text-decoration: none;
  color: var(--text-main);
}

td a:hover {
  color: var(--accent);
}

tbody tr:hover {
  background-color: var(--table-hover);
}

footer {
  text-align: center;
  padding: 40px;
  margin-top: 100px;
  color: #4b5563;
}


/* @media (max-width: 768px) {
  .move-box {
    display: flex;
    flex-direction: column;
  }
  .move-box h1 {
    order: 1;
  }
  .move-box p {
    order: 2;
  }
} */
/* 혹시 모르니 grid 사용 */

 @media (max-width: 768px) {
  .move-box {
    display: grid;
    grid-template-areas:
      "title"
      "text"; 
    justify-items: center; 
    text-align: center;
  }

  .move-box h1 {
    grid-area: title;
  }

  .move-box p {
    grid-area: text;
  }
}

