/* General Page Styling */
body {
  font-family: Arial, sans-serif;
  padding: 40px;
  max-width: 1000px;
  margin: auto;
  background-color: #f9f9f9;
}

h1, h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* Two Columns Layout */
.columns {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: flex-start;
}

.column {
  flex: 1;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 16px;
  box-sizing: border-box;
  background-color: #ffffff;
  min-height: 100px;
}

/* Shared Container for Items */
.field-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Wheel Container Overrides */
#wheel-container {
  display: flex;
  flex-direction: column !important;
  overflow-y: auto;
  max-height: 400px;
  scroll-snap-type: y mandatory;
  gap: 12px;
  padding: 12px;
  border: 2px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
}

#wheel-container::-webkit-scrollbar {
  height: 8px;
}

#wheel-container::-webkit-scrollbar-thumb {
  background-color: #aaa;
  border-radius: 4px;
}

#wheel-container > .text-field-box {
  flex: 0 0 auto;
  scroll-snap-align: center;
  min-width: 180px;
}

/* Individual Item Box */
.text-field-box {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background-color: #fff;
  border: 2px solid #ccc;
  border-radius: 6px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.05);
}

/* 👇 NEW: Drag handle content */
.drag-handle {
  cursor: grab;
  display: flex;
  flex-grow: 1;
  align-items: center;
}

/* 👇 NEW: Remove button on the left */
.switch-button {
  background: none;
  border: none;
  font-size: 20px;
  color: red;
  cursor: pointer;
  margin-right: 10px;
  padding: 0 6px;
}

.switch-button:hover {
  color: darkred;
}

/* Item Number (e.g. 1., 2., NR) */
.item-number {
  font-weight: bold;
  margin-right: 12px;
  width: 24px;
  text-align: right;
}

/* Label Text */
.item-label {
  flex-grow: 1;
}

/* Drop to Bottom / Move to Top */
.drop-button,
.top-button {
  margin-left: 8px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
  border: 1.5px solid #007BFF;
  border-radius: 4px;
  background-color: white;
  color: #007BFF;
  transition: background-color 0.2s ease;
}

.drop-button:hover,
.top-button:hover {
  background-color: #007BFF;
  color: white;
}

/* Submit Button */
#export-csv-btn {
  margin: 30px auto 10px auto;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  background-color: #007BFF;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: block;
  width: 100%;
}

#export-csv-btn:hover {
  background-color: #0056b3;
}

/* Submission Status Message */
#status {
  margin-top: 15px;
  font-style: italic;
  color: green;
  text-align: center;
}

/* Thank You Message */
#thank-you {
  text-align: center;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
	
  #top25-column {
    min-height: 400px;
  }
  #notranked-column {
    min-height: 400px;
  }
  .columns {
    flex-direction: column;
  }

  .column {
    display: none;
  }

  .column.active {
    display: block;
  }

  .mobile-only {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
  }

  .mobile-only button {
    flex: 1;
    padding: 8px 12px;
    font-size: 16px;
    border: 1.5px solid #007BFF;
    background-color: white;
    color: #007BFF;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .mobile-only button.active {
    background-color: #007BFF;
    color: white;
  }
}

/* DESKTOP VIEW */
@media (min-width: 769px) {
  .mobile-only {
    display: none;
  }

  .column {
    display: block;
  }
}