body {
  background-color: black;
  color: white;
  font-family: "Courier New", monospace;
  margin: 0;
}

.container {
  max-width: 960px;
  text-align: center;
  margin: 0 auto;
  padding: 2rem;
}

header {
  text-align: center;
  padding: 1rem 0;
}

header img {
  max-height: 250px;
  max-width: 100%;
}

form {
  background-color: #111111;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px gold;
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-box {
  background-color: #111111;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 10px gold;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.auth-box form {
  box-shadow: none;
  margin-top: 0;
  padding: 0;
  width: 100%;
  background-color: transparent;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  max-width: 300px;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  background-color: #222222;
  color: white;
  font-size: 1rem;
  box-sizing: border-box;
}

input[type="email"]:disabled {
  background-color: #333;
  color: #888;
}

input[type="submit"] {
  background-color: gold;
  color: black;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

input[type="submit"]:disabled {
  background-color: #555;
  cursor: not-allowed;
}

/* --- THEMED BUTTONS --- */
.btn {
  font-family: "Courier New", monospace;
  padding: 10px 20px;
  border: 1px solid gold;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  text-transform: uppercase;
  transition: background-color 0.3s, color 0.3s;
}

.btn-primary {
  background-color: gold;
  color: black;
}

.btn-primary:hover {
  background-color: #ffd700; /* A slightly brighter gold */
  border-color: #ffd700;
}

.btn-secondary {
  background-color: #333;
  color: white;
  border-color: #555;
}

.btn-secondary:hover {
  background-color: #444;
  border-color: #666;
}

.btn-danger {
  background-color: #900;
  color: white;
  border-color: #a00;
}

.btn-danger:hover {
  background-color: #a00;
  border-color: #b00;
}

.btn:disabled {
  background-color: #222;
  color: #555;
  border-color: #444;
  cursor: not-allowed;
}


#google-login-btn {
  background-color: white;
  color: #757575;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  font-family: "Courier New", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.or-separator {
  margin: 15px 0;
  color: #AAA;
  font-size: 1.1rem;
}

a {
  color: #AAA;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #555;
  padding: 10px;
  text-align: center;
}

th {
  background-color: #333;
}

.wager-col input[type="text"] {
  width: 50px;
  display: block;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  padding: 5px;
}

.nominee-col {
  text-align: left;
}

.oscar-buck-icon, .oscar-buck-icon-bank, .oscar-buck-icon-small {
  content: url('images/oscarbuck.png');
  display: inline-block;
  vertical-align: middle;
}
.oscar-buck-icon { height: 0.8rem; }
.oscar-buck-icon-bank { height: 1.3rem; }
.oscar-buck-icon-small { height: 0.6rem; }

.instructions {
  background-color: #111111;
  color: white;
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: left;
  line-height: 1.6;
}

.sticky-bar {
  background-color: #222222;
  color: white;
  text-align: center;
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.sticky-bar > div {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 10px;
}

.sticky-bar h2 {
  font-size: 1.2rem;
  margin: 0;
  text-align: center;
  flex-grow: 1;
}

#menu-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.error-message {
  position: fixed;
  top: 60px;
  right: 20px;
  left: 20px;
  background-color: #f44336;
  color: white;
  text-align: center;
  padding: 15px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 9999;
  pointer-events: none;
}

.error-message.show {
  opacity: 1;
  pointer-events: auto;
}

.accordion {
  border: 1px solid #333;
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.accordion-header {
  background-color: #222;
  color: gold;
  cursor: pointer;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
}

.accordion-content {
  padding: 0;
  border-top: 1px solid #333;
  display: none;
  background-color: #111;
}

.accordion-header .arrow {
  transition: transform 0.3s ease;
}

.accordion-header.active .arrow {
  transform: rotate(90deg);
}

.center-container {
  text-align: center;
  margin-top: 15px;
}

#copy-wagers-btn {
  display: none;
  padding: 10px 20px;
  background-color: #333;
  color: gold;
  border: 1px solid gold;
  cursor: pointer;
  font-size: 1rem;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
}

/* This will be toggled by JS to show the modal */
.modal[style*="display: block"] {
    display: flex !important;
}

.modal-content {
  background-color: #111;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  color: white;
  width: 90%;
  max-width: 500px;
  text-align: center;
  border: 1px solid gold;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
  color: #AAA;
}

#btn-copy-wagers {
  background-color: gold;
  color: black;
  border: 1px solid gold;
}

#btn-copy-wagers, #btn-cancel-copy {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
}

#btn-cancel-copy {
    background-color: #555;
    color: white;
    margin-left: 10px;
}

#leaderboard {
  margin-bottom: 100px;
}

tr.winner, .winner {
  background-color: gold !important;
  color: black !important;
  font-weight: bold;
}

.side-menu {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 200;
  top: 0;
  right: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  box-shadow: -2px 0 5px rgba(0,0,0,0.5);
  border-left: 1px solid #333;
}

.side-menu a {
  padding: 15px 8px 15px 32px;
  text-decoration: none;
  font-size: 1.2rem;
  color: #818181;
  display: block;
  transition: 0.3s;
  font-family: "Courier New", monospace;
}

.side-menu a:hover {
  color: gold;
}

.side-menu .close-btn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.flex-container > .auth-box {
  flex: 1 1 400px;
  margin-top: 0;
}

.show-on-mobile { display: none; }

@media (max-width: 768px) {
  .container { padding: 1rem; }
  header h1 { font-size: 2rem; margin-top: 10px; }
  form { padding: 15px; margin-top: 20px; }
  .sticky-bar h2 { font-size: 1rem; }
  table { width: 100%; font-size: 0.9rem; }
  th, td { padding: 8px 5px; }
  .hide-on-mobile { display: none; }
  .show-on-mobile { display: table-cell; }
  .no-padding-on-mobile { padding: 0 !important; border: 0; }
  .show-on-mobile table { width: 100%; margin: 0; border: none; }
  .show-on-mobile td { border: none; padding: 2px 5px; text-align: left; }
  .show-on-mobile .split { width: 50%; text-align: center; border-bottom: 1px solid #333; }
}
