body {
 background-color: #f0d0a0;/*#a0f0f0*/
 font-family: sans-serif;
 text-align: center;
 margin-top: 5vh;
 margin-bottom: 150px; /* footer 공간 확보 */
}
a{
      text-decoration: none; /* 링크에 밑줄 없애기*/
}
.container{ /*2개씩 묶기*/
     display: grid;
     grid-template-columns: repeat(2, 1fr); /* 한 줄에 2개 */
     gap: 80px; /* 카드 사이 간격 */
     max-width: 800px; /* 전체 너비 제한 */
     margin: 0 auto; /* 가운데 정렬 */
}
.card { /*홈화면에서 넘어가는 부분*/
 border: 5px solid rgba(30, 30, 30, 0.868);
 font-size: 30px;
 padding: 40px;
 background-color: rgb(145, 231, 152);/*rgb(145, 231, 152)*/
 border-radius: 12px;
}
.card a{
  color: blue;
  text-decoration: none;
}
.card a:hover{
  text-decoration: underline;
  translate: transformY(-2px);
  font-weight: bold;
}
.개큰제목 {
        font-size: 60px; /*원하는 크기로 키울 수 있음*/
        font-weight: bold;
}
.footer { /*오늘의 명언*/
  z-index: 1;
  /*position: fixed;*/
  bottom: 80px;
  width: 100%;
  background-color: #f0f0f0; /* 배경색  */
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #ccc;
}

.사이트 { /*학급사이트로 이어지는 부분*/
  z-index: 2;
  /*position: fixed;*/
  bottom: 40px;
  text-align: center;
  
}
.오류제보 {/*카톡으로 이어지는 부분*/
  z-index: 3;
  /*position: fixed;*/
  bottom: 0px; /* 화면 맨 아래 */
  width: 100%;
  text-align: center;
  font-family: 'Pretendard-Regular';
}
.안내바 {
  display:flex;           /* Flexbox 활성화 */
  justify-content: right;   /* 오른쪽 정렬 */
  align-items: center;       /* 수직 가운데 정렬 (높이 제한이 있으면 의미 있음) */
  height: 5vh;             /* 화면 전체 높이 차지 */
  gap: 20px;                 /* 아이템 사이 간격 */
  width: 90% ;
  position: fixed;
  top : 0;
  font-size: 24px;
}
.안내바 a{
  color: black;
  text-decoration: none;
}
.안내바 a:hover{
  color: blue;
  text-decoration: underline;
  transform: translateY(-2px);
}
.운세실행버튼{
 border: 2px solid black;
  font-size: 15px;
  padding: 5px;
  width: 150px;
  margin: 50px auto;
  font-weight: bold;
 background-color: rgb(229, 221, 221);
 border-radius:8px
}
.확률실행버튼{
 border: 2px solid black;
  font-size: 15px;
  padding: 5px;
  width: 80px;
  margin: 50px auto;
  font-weight: bold;
  background-color: rgb(236, 228, 228);
  border-radius: 8px;
}
    .퀴즈상자{
      border: 2px solid #000;
      padding: 20px;
      display: inline-block;
      background-color: #f9f9f9;
      border-radius: 12px;
    }
    .참거짓단추{
      font-size: 24px;
      padding: 10px 20px;
      margin: 20px;
      cursor: pointer;
    }
/*여기서부터 다른거*/
   /* 모달 전체 배경 */
#modal {
  display: none; /* 기본은 숨김 */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  
  display: flex; /* 중앙 정렬용 */
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
/* 모달 내용 박스 */
#modal > div {
  background: #ffffffd4;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(30,30,30,0.3);
  text-align: center;
  max-width: 90%;
  width: 320px;
}
/* 점수 텍스트 */
#modalScore {
  font-size: 24px;
  color: #333;
  margin: 15px 0;
}
/* 닫기 버튼 */
#modal button {
  padding: 8px 20px;
  background-color: #0077cc;
  color: rgba(250, 250, 250, 0.902);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}
#modal button:hover {
  background-color: #005fa3;
} 
#scoreArea {
  font-size: 30px;
  color: #0077cc;
  margin-top: 20px;
  font-weight: bold;
  text-align: center;
  user-select: none; /* 드래그 방지 */
}
#quiz-container {
  position: relative; /* 안쪽 absolute 위치의 기준 */
}

  #scoreboard { /*점수판- 현재점수 표시*/
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  font-weight: bold;
  background-color: rgba(240, 240, 240, 0.854);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(10,10,10,0.2);
}
.story-text{ /*그냥 해봤음*/
 position: absolute;
  top: 10px;
  right: 10px;
  font-size: 18px;
  font-weight: bold;
  background-color: rgba(240, 240, 240, 0.854);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(10,10,10,0.2);

}

pre {/*프로그래밍 시간 하는 거임.*/
  background: #272822;   /* 어두운 배경 */
  color: #f8f8f2;       /* 밝은 글씨 */
  padding: 15px;
  border-radius: 8px;   /* 둥근 모서리 */
  overflow-x: auto;     /* 긴 코드 옆으로 스크롤 */
  text-align : left;
  font-size: 15pt;
}
code { 
  font-family: "Courier New", monospace; /* 코딩용 폰트 */
}
    .status {
      margin: 10px;
      font-size: 18px;
    }
    button {
      font-size: 16px;
      padding: 10px 20px;
      margin: 5px;
      cursor: pointer;
    }
    #log {
      margin-top: 20px;
      border: 5px solid #ccc; /*상자와 바깥 사이 공간 간격*/
      padding: 10px;
      width: 400px;
      height: 150px;
      overflow-y: auto;
      background-color: #ffe3e3;
      margin-left: auto;
      margin-right: auto;
      text-align: left;
    }

.공격버튼 {/*해물파전 전투에서 공격, 치유*/
      font-size: 20px;
      padding: 10px 20px;
      margin: 5px;
      border-radius: 10px;
      background-color: rgb(243, 113, 113);
}
.치유버튼 {/*해물파전 전투에서 공격, 치유*/
      font-size: 20px;
      padding: 10px 20px;
      margin: 5px;
      border-radius: 10px;
      background-color: gold;
}




/*여기부턴 완전 연습 삼아 한 것*/
/*여기부턴 완전 연습 삼아 한 것*/
/*여기부턴 완전 연습 삼아 한 것*/
/*여기부턴 완전 연습 삼아 한 것*/


.popup-overlay {
    display: none; /* 처음엔 숨김 */
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* 어두운 배경 */
    z-index: 9999;
}
.popup-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: white; padding: 20px; border-radius: 10px;
    text-align: center; width: 300px;
}