
/* --------------------- 스타일 리셋 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike,  sub, sup, tt, var, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video, button { margin: 0; padding: 0; border: 0; vertical-align: baseline; font-size: 100%; font: inherit; } 

table, caption, tbody, tfoot, thead, tr, th, td{vertical-align: middle;}
/* HTML5 display-role reset for older browsers */

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section { display: block; } 
body { line-height: 1; position: relative;} 
ol, ul { list-style: none; } 
blockquote, q { quotes: none; } 
blockquote:before, blockquote:after,
q:before, q:after { content: ''; content: none; } 
table { border-collapse: collapse; border-spacing: 0; } 
html,body { font-family: 'Pretendard', '맑은 고딕', sans-serif; font-size:16px;  color:#000;} 
*,
*::before,
*::after { box-sizing: border-box; } 
a { color:inherit; text-decoration: none; } 
button { border:0 none; color:inherit; cursor: pointer;/* 부드럽게 전환 */
  transition: color 0.3s ease, background-color 0.3s ease; } 
input,label, button,textarea,select {font-family:'Pretendard', '맑은 고딕', sans-serif;; font-size:1.25rem; border-radius: 0; } 

.hide { display: block; border: 0; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); position: absolute; width: 1px; height: 1px; } 




*{box-sizing:border-box}
body{margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", Apple SD Gothic Neo, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background-color:#161616; background-image:url(../static/img/style/bg_main.png) ; background-repeat: no-repeat; background-position: 50% 0;}
.wrap{width:1300px; margin:0 auto; padding: 0 10px; }
header .hd_tit { text-align: center; margin-top: 4rem; width: 100%;}
header .hd_tit img { width: 640px;}
header .sub_tit { text-align: center; margin-top: 4rem; margin-bottom: 2rem;}
header .sub_tit img { width: 418px;}
header .md_tit { font-size: 20px; font-weight: 500;text-align: center; color: rgba(255, 255, 255, 0.7); line-height: 140%; letter-spacing: -0.04em; margin-top: 1rem;}
footer { font-size: 12px;color: rgba(255, 255, 255, 0.4); text-align: center; margin: 100px 0 60px;}
button {/* 배경색 전환만 부드럽게 */
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #000000; /* hover 시 배경색 */
  color: #fff; /* 필요 시 글자색 변경 */
}

  .card_choice {
    display:flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 6rem;
  }

  .card-bx{
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    flex-shrink: 0;
    
  }
  .card-bx a {
    width: 360px;
    height: 404px;
    position: relative;
    padding-top: 7rem;
  }
  


  .card-bx p { color: #ffffff;
    text-align: center;
    font-size: 24px;
    letter-spacing: -0.04em;
    font-weight: 600;}
  .card-bx.today { background-image: url(../static/img/style/card_today.png);transition: transform 0.3s ease, box-shadow 0.3s ease;}
  .card-bx.custom { background-image: url(../static/img/style/card_custom.png);transition: transform 0.3s ease, box-shadow 0.3s ease;}
  .card-bx.today:hover {transform: translateY(-20px);}
  .card-bx.custom:hover {transform: translateY(-20px);}

  /* @media (max-width: 640px) {
    header .hd_tit { margin-top: 0;}
    header .hd_tit img { width: 260px; margin-top: 2rem;}
    header .md_tit { font-size: 18px;}
    .card_choice {
      flex-direction: column;
      margin-top: 2rem;
      gap: 10px;
    }
    .card-bx.today { background-size: 260px auto; background-repeat: no-repeat;}
    .card-bx.custom { background-size: 260px auto; background-repeat: no-repeat;}
    .card-bx a {
      width: 260px;
      height: 300px;
      position: relative;
      padding-top: 5rem;
    }
    .card-bx p { font-size: 20px;}
  } */

  .comment_bx {
    background: #0c0c0c;
    border-radius: 10px;
    border-style: solid;
    border-color: transparent;
    border-color: var(--goldsolid, rgba(234, 196, 126, 0.39));
    border-width: 2px;
    padding: 20px 30px 20px 30px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 10px;
  }
  .comment{
    color: #ffffff;
    font-family: "Pretendard-Medium", sans-serif;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: -0.04em;
    font-weight: 500;
  }

  .comment span { font-size: 16px; letter-spacing: -2%; font-weight: 400; color:rgba(255, 255, 255, 0.4) ; }

  .question {
    background: #0c0c0c;
    border-radius: 10px;
    border-style: solid;
    border-color: transparent;
    border-color: var(--goldsolid, rgba(234, 196, 126, 0.39));
    border-width: 2px;
    padding: 20px 30px 20px 30px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
  }

  .ques_tit p{color: rgba(255, 255, 255, 0.7);
    text-align: left;
    font-size: 24px;
    line-height: 140%;
    letter-spacing: -0.04em;
    font-weight: 500;
    margin-bottom: 2rem;}

  .question textarea {width: 100%; height: 80px; background-color: transparent; border: none; color: #ffffff;}
  .question textarea::placeholder { color: #6F6F6F;}
  .card_board{
    background: #101116;
    border-radius: 10px;
    border-style: solid;
    border-color: var(--goldsolid, rgba(234, 196, 126, 0.39));
    border-width: 2px;
    padding: 20px 30px 20px 30px;
    min-height: 500px;
  }

  .btn_bx { display: flex; flex-direction: row-reverse; padding: 2rem 0 0 0;}
  .btn_bx button{background: #473006;
    border-radius: 10px;
    padding: 18px 40px;
    font-size: 18px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
    position: relative;
    color:#ffffff;
    transition: background-color 0.3s ease;}

    .btn_bx button:hover { background-color: #715521;      }



    .card_list {
      display: flex;
      flex-direction: row;
      gap: 20px;
      align-items: flex-start;
      justify-content: flex-start;
      flex-wrap: wrap;
      align-content: flex-start;
      position: relative;
    }
    .card_thumb {
      background: #10081e;
      border-radius: 20px;
      padding: 20px 30px 20px 30px;
      display: flex;
      flex-direction: row;
      gap: 30px;
      align-items: flex-start;
      justify-content: center;
      flex-shrink: 0;
      width: 400px;
      position: relative;
    }

    .card_wrap {
      display: grid;
      grid-template-columns: repeat(3, 1fr); /* 기본 3열 */
      gap: 20px;
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px 0;
    }
    
    .card {
      background: #10081e;
      color: #ffffff;
      border-radius: 12px;
      padding: 24px;
      text-align: left;
      box-shadow: 0 4px 8px rgba(0,0,0,0.05);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      display: flex;
      flex-direction: row;
      gap: 20px;
      align-items: flex-start;
      justify-content: center;
      flex-shrink: 0;
    }
    
    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }

    .card p { font-size: 18px; line-height: 130%; margin-bottom: 1rem; font-weight: 600; margin-top: 10px;color: #999999;}
    .card span { font-size: 15px;
      line-height: 140%;
      letter-spacing: -0.03em;
      font-weight: 400;}

/* 해석페이지 */
.imgbox { display: flex; justify-content: center; margin-bottom: 10px; color: #95A7D4; flex-direction: column;
  align-items: center; margin-top: 5rem;}
  .imgbox img { margin-bottom: 30px; width: 360px;}
.text_box { background: rgba(25, 25, 25, 0.7);
  border-radius: 10px;
  border-style: solid;
  border-color: var(--goldsolid, rgba(234, 196, 126, 0.39));
  border-width: 1px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-self: stretch;
  flex-shrink: 0;
  position: relative; padding: 40px; color: #ffffff; font-size:17px;  line-height: 160% ;}
.text_box p { font-size: 16px; font-weight: 600; color: #878787; letter-spacing: -0.04em;}

.line { height: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); margin: 30px 0; display: block;}

/* 모달 배경 */
.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

/* 모달 콘텐츠 (중앙 정렬) */
.modal-content {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;      /* 세로 방향 정렬 */
  justify-content: center;     /* 위아래(세로) 가운데 */
  align-items: center;         /* 좌우(가로) 가운데 */
  height: 100vh;               /* 화면 전체 높이 기준 */
}

/* 로딩 스피너 */
.spinner {
  width: 90px;
  height: 90px;
}

.spinner svg {
  width: 100%;
  height: 100%;
  color: #1a7c5d;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.spinner .rot {
  transform-origin: 50% 50%;
  animation: spin 1s linear infinite;
}

/* 텍스트 */
.loading-text {
  margin-top: 12px;
  color: #fff;
  font-size: 16px;
}


/* ===== 오늘 페이지 전용 보강 ===== */

.layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 10px;
  margin-top: 10px;
}
.panel {
  background: #101116;
  border: 1px solid rgba(234, 196, 126, 0.39);
  border-radius: 10px;
  padding: 14px;
}

.fan {
  position: relative;
  height: 390px;
  margin: 60px auto 0px;
  user-select: none;
  overflow: visible;
}
.cardmini {
  position: absolute;
  width: 120px;
  height: 200px;
  transform-origin: 50% 90%;
  transition: transform 0.25s ease, filter 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}
.cardmini.disabled {
  pointer-events: none;
  filter: grayscale(0.6) opacity(0.8);
}
.inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.45s ease;
}
.cardmini.flip .inner {
  transform: rotateY(180deg);
}
.face,
.back {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  backface-visibility: hidden;
}
.face {
  transform: rotateY(180deg);
  background: #0b0f1b;
}
.back {
  background: #0b0f1b;
}
.face img,
.back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.face img.rev {
  transform: rotate(180deg);
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 10px 0 4px;
}
.button-go {
  background-color: #715521;
  color: #ffffff;
  border: 0;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.125rem;
}

.button-go[disabled] {
  background-color: #333333;
  color: #a9a9a9;
  pointer-events: none;
}

.button-reset {
  background-color: #444444;
  color: #ffffff;
  border: 0;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-size: 1.125rem;
}

.button-big { font-size: 22px; background-color: #715521;
  color: #ffffff;
  padding: 30px 0px;
  border-radius: 10px;
  margin-top: 40px;
  width: 330px;}


.btn-prev {
  background-color: #333333;
  color: #a9a9a9;
  font-size: 14px; 
  border-radius: 30px;
  padding: 10px 14px;}

.btn-next {
    background-color: #333333;
    color: #a9a9a9;
    font-size: 14px; 
    border-radius: 30px;
    padding: 10px 14px;}

.hint {
  color: #fff;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* 카드 오버레이 라벨 (충돌 방지: pos-overlay / badge-overlay) */
.face {
  position: relative;
}
.pos-overlay,
.badge-overlay {
  position: absolute;
  z-index: 5;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.badge-overlay {
  left: 8px;
  top: 8px;
  background: rgba(20, 24, 38, 0.85);
}
.pos-overlay {
  right: 8px;
  top: 8px;
  background: linear-gradient(135deg, #7b5d2b, #b2843b);
}

/* 오른쪽 선택 로그 */
.loglist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  max-height: 470px;
  overflow: auto;
}
.logitem {
  display: flex;
  gap: 10px;
}
.thumb {
  width: 80px;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 auto;
}
.thumb img {
  width: 80px;
}
.thumb.rev {
  transform: rotate(180deg);
}
.meta .title {
  font-weight: 600;
  color: #fff;
  font-size: 0.92rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.meta .small {
  color: #fff;
  opacity: 0.8;
  font-size: 0.92rem;
  line-height: 1.4;
}

/* 토스트 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #1b2136;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.toast.show {
  opacity: 1;
}


/* 스크롤바 전체 영역 */
::-webkit-scrollbar {
  width: 10px;   /* 세로 스크롤바 두께 */
  height: 10px;  /* 가로 스크롤바 두께 */
}

/* 스크롤바 트랙 (배경) */
::-webkit-scrollbar-track {
  background: #767676;
  border-radius: 10px;
}

/* 스크롤바 핸들(움직이는 막대) */
::-webkit-scrollbar-thumb {
  background: #b8b8b8;
  border-radius: 10px;
}

/* hover 시 색상 */
::-webkit-scrollbar-thumb:hover {
  background: #715521;
}



/* @media (max-width: 1280px) {
  body { padding: 0 20px;}
  .layout {
    grid-template-columns: 1fr;
  }
  .panel { overflow-x: scroll;}
  .fan { width: 1000px;}

} */

/* @media (max-width: 640px) {
  .fan { overflow-x: scroll;}
  .panel {
    background: transparent;
    border: none;
    padding: 0px;
  }
} */
