/* GENERAL PAGE */
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  transition: background 0.3s, color 0.3s;
}

/* LIGHT MODE */
body.light {
  background: #f6f1ea;
  color: #2b2b2b;
}

/* DARK MODE */
body.dark {
  background: #1c1b22;
  color: #e6e1dc;
}

/* MAIN LAYOUT */
.container {
  display: flex;
  height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 25%;
  padding: 20px;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
}

/* SIDEBAR COLORS */
body.light .sidebar {
  background: #ffffff;
}

body.dark .sidebar {
  background: #2a2a40;
}

/* THEME BUTTON (TOP) */
.theme-btn {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

/* INPUT FIELDS */
.sidebar input {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #eef1f5;
  transition: background 0.3s;
}

body.dark .sidebar input {
  background: #3a3a55;
  color: white;
}

/* LABELS */
.sidebar label {
  font-size: 13px;
  margin-bottom: 3px;
}

/* BUTTONS (GENERAL) */
button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #dfe6ed;
  transition: background 0.2s, transform 0.1s;
}

/* BUTTON HOVER */
button:hover {
  background: #cfd8e3;
  transform: scale(1.03);
}

/* DARK MODE BUTTONS */
body.dark button {
  background: #3a3a55;
  color: white;
}

body.dark button:hover {
  background: #505070;
}

/* RESULTS SIDE */
.results {
  width: 75%;
  padding: 20px;
  overflow-y: auto;
}

/* TOP BUTTON AREA (RIGHT SIDE) */
.top-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

/* RESULTS TITLE */
.results h2 {
  margin-top: 0;
}

/* MOVIE CARDS */
.movie {
  border-radius: 16px;
  transition: all 0.2s ease;
}

/* LIGHT MODE CARDS */
body.light .movie {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* DARK MODE CARDS */
body.dark .movie {
  background: #2f2f4a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* HOVER EFFECT */
.movie:hover {
  transform: translateY(-3px);
}

/* SCROLLBAR (OPTIONAL NICE TOUCH) */
.results::-webkit-scrollbar {
  width: 8px;
}

.results::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

body.dark .results::-webkit-scrollbar-thumb {
  background: #555;
}

.section {
  display: none;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

#wheelCanvas {
  margin: 20px 0;
  border-radius: 50%;
  border: 4px solid #888;
  display: block;
}

.wheel-container {
  position: relative;
  width: 300px;
  margin: 20px auto;
}

.arrow {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 22px solid red;
  z-index: 10;
}


/* Dropdown styling (matches inputs/buttons) */
select {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: #eef1f5;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}
/* Hover effect */
select:hover {
  transform: scale(1.02);
}

/* DARK MODE dropdown */
body.dark select {
  background: #3a3a55;
  color: white;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);

  /* center everything */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #3a3a55;
  width: 70%;
  max-width: 600px;

  padding: 20px;
  border-radius: 15px;

  margin: auto;
  max-height: 80vh;
  overflow-y: auto;

  animation: fadeIn 0.3s ease;
}

body.modal-open {
  overflow: hidden;
}


body.dark .modal-content {
  background: #2a2633;
  color: white;
}

.close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.modal-content a {
  color: #4da3ff;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}