body {
  margin: 0;
  font-family: sans-serif;
  background-color: #111;
  color: #FFF;
  font-weight: bold;
}

a {
  color: white;
  text-decoration: none;
}

.nav-buttons button {
  margin-left: 10px;
  padding: 6px 12px;
  background-color: #111;
  border: none;
  font-weight: bold;
  border-radius: 4px;
  color: #d4aa00;
  cursor: pointer;
}

.nav-buttons button:hover {
  background-color: #777;
}

.board-label {
  margin-top: 10px;
  color: #ccc;
  font-weight:bold;
}


.white {
  background-color: #d4aa00;
}

.black {
  background-color: #222;
}

.board-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px;                              
  padding: 20px;
  padding-top:120px;
  
  max-width: 1200px;
  margin: 0 auto;
}


@media (max-width: 900px) {
  .board-container {
    grid-template-columns: repeat(2, 1fr); 
  }
}

@media (max-width: 500px) {
  .board-container {
    grid-template-columns: 1fr; 
  }
}

.board-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.board {
  display: grid;
  grid-template-columns: repeat(8, 30px);
  grid-template-rows: repeat(8, 30px);
  border: 2px solid #222;;
}

.offer-image {
  width: 240px;
  height: 240px;
}

.square {
  position: relative;
  font-size: 12px;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  border: 3px solid black;
  color: transparent !important;
  transition: border 0.2s, color 0.2s;
}

.square:hover {
  border: 2px solid white;
  color: white !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
}

.banner {

position: fixed;
top: 0;
left: 0;
right: 0;
  z-index: 1000;   

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1em;
  background-color: #222;
  color: white;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.logo img {
  height: 40px;
  margin-right: 20px;
}

.site-name {
  flex: 1;
  color: #fed223;
  text-align: left;
  align-items: left;
  font-weight: bold;
  font-size: 1.5em;
}

.site-name font {
  font-size: 0.7em;
  display: block;
  margin-top: 0.25em;
}

.tagline {
  font-size: min(4vw,12pt);
  max-width: max(400px, 40vw);
  min-width: min(350px, 40vw);
  margin-bottom: 0.25em;
  margin-top: 0.25em;
  display: block;
  color: #d4aa00;
}

.nav-buttons {
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.nav-buttons button {
  padding: 0.5em 1em;
  font-size: 1em;
  border: none;
  background-color: #2a7731;
  color: white;
  color: #fed223;
  cursor: pointer;
  border-radius: 4px;
}

.nav-buttons button:hover {
  background-color: #666;
}


.user-search-form input {
  padding: 0.5em 1em;
  font-size: 1em;
  border: none;
  border-radius: 4px;
  background-color: #444;
  color: #fed223;
  min-width: min(300px,40vw);
  max-width: min(300px,40vw);
}

.user-search-form input::placeholder {
  color: white;
  color: #fed223;
}

.user-search-form input:focus {
  outline: none;
  background-color: #555;
}

.tile-wrapper {
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 12px;
  max-width: 300px;
  text-align: center;
  background-color: #1e1e1e;
  color: #f0f0f0;
  margin: 1em auto;
}

.tile-title {
  font-size: 1.0em;
  font-weight: bold;
  margin-bottom: 0.5em;
}

.ad-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.user-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5em;
  margin-top: 0.75em;
}

.user-button {
  background: #2a2a2a;
  border: none;
  color: white;
  font-size: 0.9em;
  padding: 0.5em;
  border-radius: 8px;
  cursor: pointer;
}

.user-button:hover {
  background-color: #444;
}

.user-button span {
  display: block;
  font-size: 0.7em;
  margin-top: 0.2em;
}

.sparkle-icon-wrapper {
  position: relative;
  display: inline-block;
} 

.sparkle {
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 20px;
  opacity: 0;
  pointer-events: none;
  animation-name: sparkle-pop;
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  animation-play-state: paused;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  animation-name: sparkle-pop;
  animation-duration: 1s;
  animation-iteration-count: 1;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  animation-play-state: running;
  transition: opacity 0.3s ease;
}

.ad-button:hover svg {
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.9)) drop-shadow(0 0 10px rgba(255, 223, 0, 0.8));
  transition: filter 0.3s ease;
}

@keyframes sparkle-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  40% {
    transform: scale(1.5);
    opacity: 1;
  }
  70% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(0);
    opacity: 0;
  }
}

.status-message {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  align-items: center;
  justify-content: center;
  min-height: 40vh; 
  text-align: center;
  font-family: sans-serif;
  color: #d4aa00;
}

.status-message canvas {
  margin-top: 20px;
}

.status-message input {
  padding: 8px;
  margin-top: 10px;
  font-size: 16px;
  color: #fed223;
}

.status-message button {
  padding: 8px 12px;
  font-size: 16px;
  color: #fed223;
}

.status-message {
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 12px;
  max-width: 400px;
  margin: 0 auto;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
  color: #eee;
}

.status-message p {
  margin: 0 0 10px;
  font-size: 16px;
}

.status-message .subtext {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 15px;
}

#user-search-form-inline {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#user-search-input-inline {
  height:50px;
  padding-top:0px;
  margin-top:0px;
  border: 1px solid #555;
  border-radius: 6px;
  background-color: #2a2a2a;
  color: #fff;
  width: 200px;
}

#user-search-input-inline::placeholder {
  color: #888;
}

#user-search-form-inline button {
  height:50px;
  padding-top:0px;
  margin-top:0px;
  background-color: #FFD700;
  border: none;
  border-radius: 6px;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#user-search-form-inline button:hover {
  background-color: #e6c200;
}

.similarity-box {
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 12px;
  width:100%;
  max-width:300px;
  text-align: center;
  background-color: #1e1e1e;
  color: #f0f0f0;
  margin: 1em auto;
}

.similarity-box h4 {
  margin-top: 0;
  font-size: 1rem;
}

.bar-row {
  display: flex;
  align-items: center;
  margin: 5px 0;
}

.bar-label {
  flex: 1;
  font-size: 0.9rem;
}

.bar {
  flex: 3;
  height: 16px;
  background-color: #4caf50;
  text-align: right;
  padding-right: 5px;
  color: #fff;
  font-size: 0.8rem;
  border-radius: 4px;
}

.email-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.email-modal.hidden {
  display: none;
}

.email-modal-content {
  background-color: #222;
  padding: 25px;
  border-radius: 10px;
  color: white;
  width: 320px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.email-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

#email-input {
  margin-top: 10px;
  width: 90%;
  padding: 8px;
  border-radius: 5px;
  background-color: #333;
  border: none;
  color: white;
}

#submit-email {
  margin-top: 12px;
  padding: 10px 20px;
  background-color: #d4aa00;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.email-response {
  margin-top: 10px;
  font-size: 0.85em;
  color: #ccc;
}
#username-input {
  margin-top: 10px;
  width: 90%;
  padding: 8px;
  border-radius: 5px;
  background-color: #333;
  border: none;
  color: white;
}