/* Apply Oswald font globally */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');


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

body {
    font-family: 'Oswald', sans-serif;
    background-color: #333;
    color: white;
    text-align: center;
    margin: 0;
    padding: 0;
}

h2 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    margin: 10px 0;
}

h3 {
    font-size: 1.5rem;
    color: white;
    font-weight: 300;
    margin: 5px 0;
}

p {
    font-size: 1rem;
    color: #FFD700;
    margin-bottom: 20px;
}

#thank-you-message {
    font-size: 1.2rem;
    color: #a5d6a7;
    margin-top: 10px;
    font-weight: bold;
}

#submission-message {
    font-size: 1rem;
    color: #a5d6a7;
    margin-top: 10px;
    font-weight: bold;
    display: none;
}

/* Question Box Styling */
.question-box {
    width: 80%;
    max-width: 500px;
    background-color: #15272f; /* Dark blue background */
    color: white;
    border: 2px solid #FFD700;
    border-radius: 10px;
    padding: 15px;
    margin: 10px auto;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;  /* Updated font */
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.question-box:hover {
    background-color: #1a3a45; /* Slightly lighter blue on hover */
    transform: scale(1.05);
}

.selected {
    background-color: #a5d6a7 !important;
    color: #2e7d32;
    font-weight: bold;
}

.selected:hover {
    background-color: #a5d6a7 !important;
}

/* New Question Input */
#new-question-container {
    margin-top: 30px;
    padding: 10px;
    width: 90%;
    max-width: 500px;
    background-color: #222;
    border: 2px solid #FFD700;
    border-radius: 10px;
    margin: 20px auto;
}

#new-question {
    width: 90%;
    padding: 10px;
    font-size: 1rem;
    font-family: 'Oswald', sans-serif;
    border: 1px solid #FFD700;
    border-radius: 5px;
    margin-bottom: 10px;
    background-color: #444;
    color: white;
    text-align: center;
}

#submit-question {
    background-color: #FFD700;
    color: #333;
    font-size: 1rem;
    padding: 10px 20px;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submit-question:hover {
    background-color: #FFA500;
}


#refresh-questions {
    background-color: #FFD700;
    color: #333;
    font-size: 1rem;
    padding: 10px 20px;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

#refresh-questions:hover {
    background-color: #FFA500;
}

.new-submission {
    background-color: #FFD700 !important;
    transition: background-color 1s ease-in-out;
}

#refresh-questions:active {
    background-color: #FFD700 !important;
}

/* Popup Overlay & Modal Styling */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup {
  background-color: #15272f;
  color: white;
  width: 90%;
  max-width: 400px;
  border: 2px solid #FFD700;
  border-radius: 10px;
  padding: 20px;
  position: relative;
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out;
}

.popup.show {
  transform: translateX(0);
}

.popup .small-text {
  font-family: 'Roboto', sans-serif;
  font-size: 1.0rem; /* Increased by one step */
  margin-bottom: 10px;
}

.popup h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.big-button {
  background-color: #FFD700;
  color: #333;
  font-size: 1rem;
  padding: 15px 20px;
  border: 2px solid #333;
  border-radius: 20px; /* More rounded corners */
  cursor: pointer;
  width: 100%;
  margin-top: 15px;
  transition: background-color 0.3s;
}

.big-button:hover {
  background-color: #FFA500;
}

.no-thanks {
  color: white;
  margin-top: 15px;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9rem;
}

.close-btn {
  position: absolute;
  top: 5px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* New styles for the email prompt box */
#new-question-container {
  margin-top: 30px;
  padding: 10px;
  width: 90%;
  max-width: 500px;
  background-color: #222;
  border: 2px solid #FFD700;
  border-radius: 10px;
  margin: 20px auto;
  text-align: center;
}

#new-question-container h3,
#new-question-container p {
  color: white;
  font-family: 'Oswald', sans-serif;
}

#new-question-container input,
#new-question-container button {
  margin-top: 10px;
  padding: 10px;
  font-size: 1rem;
  font-family: 'Oswald', sans-serif;
  border: 1px solid #FFD700;
  border-radius: 5px;
  width: 90%;
  background-color: #444;
  color: white;
  text-align: center;
}

#new-question-container button {
  background-color: #FFD700;
  color: #333;
  border: 2px solid #333;
  cursor: pointer;
  transition: background-color 0.3s;
}

#new-question-container button:hover {
  background-color: #FFA500;
}

.email-input-container {
  text-align: center;
}

.email-input-container input {
  margin-top: 10px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #FFD700;
  border-radius: 5px;
  width: 90%;
  background-color: #444;
  color: white;
}

.email-input-container button {
  margin-top: 10px;
  padding: 10px;
  font-size: 1rem;
  background-color: #FFD700;
  color: #333;
  border: 2px solid #333;
  border-radius: 20px; /* More rounded corners for consistency with the share button */
  cursor: pointer;
  width: 90%;
  transition: background-color 0.3s;
}

.email-input-container button:hover {
  background-color: #FFA500;
}

.email-options {
  margin-top: 15px;
}

.email-options button {
  margin: 0 10px;
  padding: 10px 20px;
  font-size: 1rem;
  background-color: #FFD700;
  color: #333;
  border: 2px solid #333;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.email-options button:hover {
  background-color: #FFA500;
}

.thank-you-message {
  font-size: 1rem;
  color: #a5d6a7;
  margin-top: 10px;
  font-weight: bold;
}

#sticky-header {
  position: sticky;
  top: 0;
  background-color: #333; /* match your site background */
  z-index: 1000;
  padding: 10px 20px;
  text-align: center;
}

#back-to-game {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #FFD700;
  color: #000;
  padding: 5px 12px;
  font-size: 0.9rem;
  font-weight: bold;
  border: 2px solid #FFD700;
  border-radius: 5px;
  text-decoration: none;
  font-family: 'Oswald', sans-serif;
  transition: background-color 0.3s, transform 0.2s;
}

#back-to-game:hover {
  background-color: #FFA500;
  border-color: #FFA500;
  transform: scale(1.05);
}

#sticky-header h2, #sticky-header h3 {
  margin: 5px 0;
  color: white;
}

a {
  text-decoration: none;
}