
body {
  background: #111;
  color: white;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

header h1 {
  text-align: center;
  margin-bottom: 20px;
}

/* 카드 스타일 복원 */
.card {
  width: 200px;
  height: 300px;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
}

.card-inner {
  text-align: center;
}

.card-front {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.card-back {
  font-size: 0.9rem;
  opacity: 0.7;
}

.card-row {
  display: flex;
  gap: 30px;
  padding: 20px 200px 20px 100px;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.card-scroll-container {
  width: 100%;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: auto;
}

.card-scroll-container::-webkit-scrollbar {
  height: 14px;
}

.card-scroll-container::-webkit-scrollbar-thumb {
  background-color: #777; border-radius: 6px; border: 3px solid #111;
  border-radius: 4px;
}


.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}
.nav-btn:hover {
  background: rgba(255,255,255,0.9);
  color: #111;
}

/* 스크롤바 두껍게 */
.card-scroll-container::-webkit-scrollbar {
  height: 14px;
}
.card-scroll-container::-webkit-scrollbar-thumb {
  background-color: #777;
  border-radius: 6px;
  border: 3px solid #111;
}

.nav-btn:hover {
  background: #fff;
  color: #000;
}

#leftBtn {
  left: 5px;
}
#rightBtn {
  right: 5px;
}

.card-spacer {
  min-width: 60px;
  height: 1px;
  flex-shrink: 0;
}
