/* ========== Reset ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid #00ffcc;
  outline-offset: 2px;
}

/* ========== Page ========== */
body {
  background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
  color: #00ffcc;
  font-family: "Courier New", Courier, monospace;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.wrapper {
  width: 95%;
  max-width: 1000px;
  padding: 30px;
  background: #101010;
  border: 2px solid #00ffcc;
  border-radius: 16px;
  box-shadow: 0 0 20px #00ffcc44;
  text-align: center;
}

.flash {
  background: #00ffcc22;
  color: #00ffaa;
  padding: 8px 12px;
  border: 1px solid #00ffcc;
  border-radius: 4px;
  margin-bottom: 16px;
  text-align: center;
}

/* ========== Title + Buttons ========== */
.title-with-button {
  font-size: 2.2rem;
  color: #00ffff;
  text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc88;
  margin-bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}

.inline-button {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.inline-button button {
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  background-color: #101010;
  border: 1px solid #00ffcc;
  color: #00ffcc;
  border-radius: 6px;
  box-shadow: 0 0 5px #00ffcc66;
}

/* Songboard button (non-admin navigation) */
.inline-button .nav-btn {
  display: inline-block;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  background-color: #101010;
  border: 1px solid #00ffcc;
  color: #00ffcc;
  border-radius: 6px;
  box-shadow: 0 0 5px #00ffcc66;
  text-decoration: none;
}

.inline-button .nav-btn:hover {
  box-shadow: 0 0 12px #00ffccaa;
}

/* ========== Admin Menu ========== */
#adminMenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #222;
  border: 1px solid #444;
  padding: 10px;
  display: none;
  z-index: 1000;
  min-width: 140px;
  text-align: center;
}

#adminMenu a {
  color: #00ffcc;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  font-size: 14px;
  font-family: "Courier New", Courier, monospace;
}

#adminMenu a:hover {
  text-decoration: underline;
}

/* ========== Grids ========== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.top-buttons {
  margin-bottom: 30px;
}

.grid.top-buttons {
  border: 2px solid #00ffcc;
  border-radius: 12px;
  padding: 16px;
  background-color: #101010;
}

.soundboard {
  margin-top: 10px;
}

/* ========== Soundboard Buttons (.sb) ========== */
.sb {
  background-size: cover;
  background-position: center;
  height: 150px;
  width: 100%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffcc66;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.sb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 204, 0.15);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 12px;
}

.sb:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffccaa;
}

.sb:hover::after {
  opacity: 1;
}

/* ========== Top Action Buttons (.action-btn) ========== */
.action-btn {
  background-size: cover;
  background-position: center;
  height: 150px;
  width: 100%;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffcc66;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;

  /* hide inner text */
  color: transparent;
  text-indent: -9999px;
}

.action-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 255, 204, 0.15);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: 12px;
}

.action-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #00ffccaa;
}

.action-btn:hover::after {
  opacity: 1;
}

/* ========== Image Classes ========== */
.herbert {
  background-image: url("../images/herbert.jpg");
}

.cy {
  background-image: url("../images/cy.gif");
}

.random {
  background-image: url("../images/cy.gif");
}

.fart {
  background-image: url("../images/goat.jfif");
}

.borat {
  background-image: url("../images/borat.jpg");
}

.familyguy {
  background-image: url("../images/fg.png");
}

/* ========== Modal ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 10;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
}

.modal-content {
  background-color: #111;
  color: #00ffcc;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #00ffcc;
  width: 50%;
  border-radius: 10px;
  font-family: "Courier New", Courier, monospace;
  box-shadow: 0 0 20px #00ffcc55;
}

.modal-content input[type="text"],
.modal-content input[type="file"],
.modal-content input[type="submit"] {
  width: 100%;
  padding: 10px;
  margin: 6px 0 16px;
  background: #000;
  color: #00ffcc;
  border: 1px solid #00ffcc;
  border-radius: 6px;
}

.modal-content input[type="submit"] {
  background: #00ffcc;
  color: #000;
  font-weight: bold;
  cursor: pointer;
}

.modal-content input[type="submit"]:hover {
  background: #00ffee;
}

.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  color: #00ffcc;
  cursor: pointer;
}

/* ========== Reduced Motion ========== */
@media (prefers-reduced-motion: reduce) {
  .sb,
  .action-btn {
    transition: none;
  }

  .sb:hover,
  .action-btn:hover {
    transform: none;
  }
}
