@font-face {
  font-family: "Allerta";
  src: url("fonts/Allerta-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  background-color: black;
  background: url("images/stage.jpg") fixed;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: white;
  text-align: center;
  font-family: "Allerta", sans-serif;
  margin: 0;
  height: 100%;
}

#title {
  background-color: rgba(42, 53, 152, 0.7);
  border-radius: 2rem;
  border: 0.5rem solid #ffc730;
  padding: 4rem 1.5rem;
  margin: 5vw;
  height: auto; /* Change from 10rem to auto */
  min-height: 20rem; /* Add minimum height */
  overflow: hidden; /* Contain child elements */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#title,
h4 {
  background-color: rgba(42, 53, 152, 0.7);
  border-radius: 2rem;
  border: 0.5rem solid #ffc730;
  padding: 4rem 1.5rem;
  margin: 5vw;
  height: 10rem; /* Match .drop-zone height */
}

#title input,
h4 {
  background-color: #ffc730;
  color: black;
  border-radius: 0.6rem;
  border: 0.2rem solid white;
  margin: 0;
  display: inline-block;
  padding: 1rem 2rem;
  box-shadow: #111 0.2rem 0.2rem 0.4rem;
  font-family: "Allerta";
  src: url("fonts/Allerta-Regular.ttf") format("truetype");
  font-weight: bolder;
  font-style: normal;
  text-transform: uppercase;
}

h1 {
  font-size: 1em;
  color: rgba(0, 0, 0, 0);
  border-width: 0.1em;
}

#logo {
  width: 70vw;
}

#csvFile {
  font-size: 1em;
}

/* Below are styles for game board */

table {
  background: #2a3598;
  width: 100%;
  height: 84vh;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: 14vh;
}

th,
td {
  border: 2px solid #0074d9;
}

th {
  background: #161c4a;
  font-size: 1.4rem;
  padding: 0.3rem;
}

td {
  background: #2a3598;
  cursor: pointer;
  font-size: 6vw;
  letter-spacing: 2px;
}

td.used {
  background: #111;
  color: #555;
  pointer-events: none;
}

td[data-val] {
  color: #ffc730;
}

td:hover {
  background: #161c4a;
  color: #ffc730;
}

/* Below are styles for modals */

#modal {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
}

#modal-header {
  width: 100vw;
  height: 5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2vw;
  /* font-size: 1em; */
}

#modal-content {
  width: 100vw;
  height: 80vh;
  background: #2a3598;
  position: relative;
  color: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 6vw;
}

#clue {
  padding: 0 1em;
}

#close-btn {
  top: 1rem;
  right: 1.5rem;
}

#show-answer {
  bottom: 1rem;
  right: 1.5rem;
}

#close-btn,
#show-answer {
  font-size: 4.5rem;
  position: absolute;
  padding: 0.5rem 1rem;
  background: none;
  border: none;
  color: #71a3c1;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

#answer {
  color: #ffc730;
}

#close-btn:hover,
#show-answer:hover {
  color: #fff;
}

/* Below are styles for team podiums (bottom) */

.team-box-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  height: 12vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* individual Team box styles */

.team-box {
  background: #ae5d2c;
  height: 11vh;
  width: 11vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 1em;
  border-top-right-radius: 1em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  padding: 0.3em;
  margin: 0.3em;
  border: dashed 3px #ffc730;
}

.team-box input {
  font-size: 1.25em;
  font-weight: bold;
  text-align: center;
  width: 90%;
  background: white;
  color: #222;
  margin: 0 0 0.25em 0;
}
.team-box input:focus {
  background: #fff;
}

.team-box .team-score {
  font-size: 1.7em;
  font-weight: bold;
  color: #fff;
  margin: 0;
}

.team-score,
td {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bolder;
}

.team-box div,
.team-box input {
  position: relative;
  top: -0.7em;
  margin-top: 0.3em;
}
.team-arrow-btn {
  font-family: monospace;
  font-size: 2em;
  line-height: 0.5em;
  color: black;
  border: none;
  border: 2px solid black;
  border-radius: 1em;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  position: relative;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  padding: 0.25em;
  margin: 0 0.2em;
}

.team-arrow-btn:hover {
  color: white;
  border-color: white;
}

/* add/remove Team plus/minus buttons */
.team-btn {
  font-size: 5em;
  border: none;
  background: none;
  color: none;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  margin: 0 0.2em;
  padding: 0;
  text-shadow: -1px -1px 0 white, 1px -1px 0 white, -1px 1px 0 white, 1px 1px 0 white, -2px 0 0 white, 2px 0 0 white;
}
.team-btn:hover {
  color: #ffc730;
}

/* PapaParse */

.drop-zone {
  display: inline-block;
  border: 3px dashed #ffc730;
  border-radius: 10px;
  background-color: #0074d9bb;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-align: center;
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #ffc730;
}

.drop-icon {
  font-size: 5rem;
  margin-bottom: 0.5rem;
}
.drop-zone:hover {
  background: rgba(30, 144, 255, 0.15);
  transform: scale(1.02);
}

/* Highlight when dragging a file over */
.drop-zone.dragover {
  background: rgba(40, 167, 69, 0.8); /* greenish */
  border-color: #28a745;
  color: #28a745;
}

/* distributing options on start screen*/

.title-content {
  display: flex;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.drop-zone,
#game {
  flex: 1;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title-section title-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
