html, body {
  height: 100%;
}

body {
  /* margin: 0; */
  margin-top: 2rem;
  display: flex;
  
  /* This centers our sketch horizontally. */
  justify-content: center;
  
  /* This centers our sketch vertically. */
  align-items: center;
}

body {
  background-color: #FCFCFC;
}


.cover {
  height: 100%;
  width: 100%;
  position: absolute;
  z-index: 1;
}

.blur-in {
  -webkit-animation: blur 2s forwards;
  -moz-animation: blur 2s forwards;
  -o-animation: blur 2s forwards;
  animation: blur 2s forwards;
}

.blur-out {
  -webkit-animation: blur-out 2s forwards;
  -moz-animation: blur-out 2s forwards;
  -o-animation: blur-out 2s forwards;
  animation: blur-out 2s forwards;
}

@-webkit-keyframes blur {
  0% {
    -webkit-filter: blur(0px);
    -moz-filter: blur(0px);
    -o-filter: blur(0px);
    -ms-filter: blur(0px);
    filter: blur(0px);
  }
  
  100% {
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    -o-filter: blur(4px);
    -ms-filter: blur(4px);
    filter: blur(4px);
  }
}

@-moz-keyframes blur {
  0% {
    -webkit-filter: blur(0px);
    -moz-filter: blur(0px);
    -o-filter: blur(0px);
    -ms-filter: blur(0px);
    filter: blur(0px);
  }
  
  100% {
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    -o-filter: blur(4px);
    -ms-filter: blur(4px);
    filter: blur(4px);
  }
}

@-o-keyframes blur {
  0% {
    -webkit-filter: blur(0px);
    -moz-filter: blur(0px);
    -o-filter: blur(0px);
    -ms-filter: blur(0px);
    filter: blur(0px);
  }
  
  100% {
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    -o-filter: blur(4px);
    -ms-filter: blur(4px);
    filter: blur(4px);
  }
}

@keyframes blur {
  0% {
    -webkit-filter: blur(0px);
    -moz-filter: blur(0px);
    -o-filter: blur(0px);
    -ms-filter: blur(0px);
    filter: blur(0px);
  }
  
  100% {
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    -o-filter: blur(4px);
    -ms-filter: blur(4px);
    filter: blur(4px);
  }
}

@-webkit-keyframes blur-out {
  0% {
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    -o-filter: blur(4px);
    -ms-filter: blur(4px);
    filter: blur(4px);
  }
  
  100% {
    -webkit-filter: blur(0px);
    -moz-filter: blur(0px);
    -o-filter: blur(0px);
    -ms-filter: blur(0px);
    filter: blur(0px);
  }
}

@-moz-keyframes blur-out {
  0% {
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    -o-filter: blur(4px);
    -ms-filter: blur(4px);
    filter: blur(4px);
  }
  
  100% {
    -webkit-filter: blur(0px);
    -moz-filter: blur(0px);
    -o-filter: blur(0px);
    -ms-filter: blur(0px);
    filter: blur(0px);
  }
}

@-o-keyframes blur-out {
  0% {
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    -o-filter: blur(4px);
    -ms-filter: blur(4px);
    filter: blur(4px);
  }
  
  100% {
    -webkit-filter: blur(0px);
    -moz-filter: blur(0px);
    -o-filter: blur(0px);
    -ms-filter: blur(0px);
    filter: blur(0px);
  }
}

@keyframes blur-out {
  0% {
    -webkit-filter: blur(4px);
    -moz-filter: blur(4px);
    -o-filter: blur(4px);
    -ms-filter: blur(4px);
    filter: blur(4px);
  }
  
  100% {
    -webkit-filter: blur(0px);
    -moz-filter: blur(0px);
    -o-filter: blur(0px);
    -ms-filter: blur(0px);
    filter: blur(0px);
  }
}


span {
  color: dimgray;
}

.round-num{
  position: fixed;
  margin: 5% auto;
  left: 0;
  right: 0;
  top:-2rem;
  z-index: 2;
  border-radius: 50px;
}
.correct-ans-popup,.next-round-popup,.won-game-popup,.won-game-popup,.timeup-popup,.correct-ans-explain{
  position: fixed;
  margin: 5% auto;
  left: 0;
  right: 0;
  top:-5rem;
  z-index: 2;
  border-radius: 50px;
}

.round-start-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.round-start-popup .generic-popup-content {
  background-color: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 80%;
  max-height: 80%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: popupFadeIn 0.3s ease-out;
  overflow-y: auto;
}

.round-start-popup .generic-popup-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 0 20px 0;
  padding: 0;
  color: #9149e5;
  text-shadow: 0 2px 4px rgba(145, 73, 229, 0.3);
}

.round-start-popup .round-info {
  margin: 20px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #9149e5;
}

.round-start-popup .round-info h3 {
  color: #9149e5;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 25px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.round-start-popup .game-instructions {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.round-start-popup .game-instructions p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  margin: 15px 0;
}

.round-start-popup .game-instructions strong {
  color: #e74c3c;
  font-weight: 600;
}

.round-start-popup .continue-instruction {
  font-size: 1rem;
  color: #666;
  margin-top: 30px;
  font-style: italic;
  opacity: 0.8;
}

.generic-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.box {
  background-color: whitesmoke;
  text-align: center;
  width: 50%;
  height: 10%;
  margin-left: auto;
  margin-right: auto;
  margin-top: 4%;
  position: relative;
  -webkit-box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.1);
  box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.1);
  border-radius: 20px;
}

.generic-popup-content {
  background-color: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 80%;
  max-height: 80%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: popupFadeIn 0.3s ease-out;
  overflow-y: auto;
}

.generic-popup-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 0 20px 0;
  padding: 0;
}

.generic-popup-content .result-correct {
  color: #28a745;
  text-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.generic-popup-content .result-incorrect {
  color: #dc3545;
  text-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.generic-popup-content .bubble-content {
  margin: 20px 0;
  padding: 15px;
  background-color: #e9ecef;
  border-radius: 8px;
  border: 1px solid #9149e5;
}

.generic-popup-content .bubble-content h4 {
  margin: 0 0 10px 0;
  color: #9149e5;
  font-size: 1.1rem;
  font-weight: 600;
}

.generic-popup-content .bubble-content p {
  margin: 0;
  font-style: italic;
  color: #495057;
  font-size: 1rem;
  line-height: 1.4;
}

.generic-popup-content .bubble-content .content-type-indicator {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 15px 0 5px 0;
  padding: 8px 12px;
  border-radius: 20px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-style: normal;
}

.generic-popup-content .bubble-content .content-type-fact {
  background-color: #f8d7da;
  color: #721c24;
  border: 2px solid #e74c3c;
}

.generic-popup-content .bubble-content .content-type-myth {
  background-color: #d4edda;
  color: #155724;
  border: 2px solid #27ae60;
}

.generic-popup-content .explanation {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
  margin: 20px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #9149e5;
}

.generic-popup-content .timer-content {
  text-align: center;
  margin: 20px 0;
}

.generic-popup-content .timer-content h3 {
  color: #9149e5;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 25px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.generic-popup-content .myths-remaining {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
}

.generic-popup-content .myths-remaining h4 {
  color: #333;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 2px solid #9149e5;
  padding-bottom: 8px;
}

.generic-popup-content .myths-remaining ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.generic-popup-content .myths-remaining li {
  background-color: #f8f9fa;
  border-left: 4px solid #e74c3c;
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.generic-popup-content .myths-remaining li:hover {
  transform: translateX(5px);
}

.generic-popup-content .continue-instruction {
  font-size: 1rem;
  color: #666;
  margin-top: 30px;
  font-style: italic;
  opacity: 0.8;
}

/* Game completion styles */
.game-completion-content {
  text-align: center;
  margin: 20px 0;
}

.game-completion-content h3 {
  color: #28a745;
  font-size: 2.2rem;
  font-weight: bold;
  margin: 20px 0;
  text-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.game-completion-content p {
  font-size: 1.2rem;
  margin: 15px 0;
  color: #333;
}

.game-completion-content .download-section {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin: 25px 0;
  border: 2px solid #e9ecef;
}

.game-completion-content .download-section p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #495057;
}

.game-completion-content .download-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.game-completion-content .download-link {
  display: inline-block;
  background: linear-gradient(135deg, #9149e5 0%, #7a4bd3 100%);
  color: white;
  text-decoration: none;
  border: none; /* Remove button border */
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit; /* Use parent font family */
  cursor: pointer; /* Ensure pointer cursor */
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(145, 73, 229, 0.3);
}

.game-completion-content .download-link:hover {
  background: linear-gradient(135deg, #7a4bd3 0%, #6a3bc4 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(145, 73, 229, 0.4);
  color: white;
  text-decoration: none;
}

.game-completion-content .download-link:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Main website button styling */
.game-completion-content .main-website-btn {
  display: inline-block;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
  text-decoration: none;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  width: 100%;
  max-width: 250px;
}

.game-completion-content .main-website-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
  color: white;
  text-decoration: none;
}

.game-completion-content .main-website-btn:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.game-completion-content .main-website-btn:disabled {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

/* Navigation section styling */
.game-completion-content .navigation-section {
  text-align: center;
}

.game-completion-content .navigation-section p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #495057;
}

#scoring-status {
  font-size: 0.85rem !important;
  color: #666 !important;
  margin-top: 10px !important;
}

.scoring-indicator {
  display: inline-block;
  margin-right: 5px;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.button {
  margin:0 auto;
  background-color: #FF8566;
  margin-bottom: 33px;
}

.button:hover {
  background-color: #7CCF29;
  -webkit-box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.1);
  -moz-box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.1);
  box-shadow: 0px 4px 6px 0px rgba(0,0,0,0.1);
}

.close-button {
  transition: all 0.5s ease;
  position: absolute;
  background-color: #fff;
  padding: 1.5px 7px;
  left: 0;
  margin-left: -10px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: white;
  -webkit-box-shadow: -4px -2px 6px 0px rgba(0,0,0,0.1);
  -moz-box-shadow: -4px -2px 6px 0px rgba(0,0,0,0.1);
  box-shadow: -3px 1px 6px 0px rgba(0,0,0,0.1);
}

.close-button:hover {
  background-color: #fff;
  color: #9149e5;
}

h3 {
  text-align: center;
  padding-top: 15px;
  padding-bottom: 15px;
  color: #9149e5;
  /* background-color: #9149e5; */
}

p {
  padding: 20px 65px 10px 65px;
  color: dimgray;
}
.modal__button-link{
  display: block;
  margin: 1rem auto 0;
  background-color: transparent;
  color: var(--first-color);
  font-weight: 500;
}

/* CSS for landscape mode on mobile devices */
@media screen and (max-width: 767px) and (orientation: landscape) {
  /* .row {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; 
  } */
  
  .generic-popup-content {
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
  }
  
  .generic-popup-content h2 {
    font-size: 2rem;
  }
  
  .generic-popup-content .bubble-content {
    padding: 12px;
    margin: 15px 0;
  }
  
  .generic-popup-content .bubble-content h4 {
    font-size: 1rem;
  }
  
  .generic-popup-content .bubble-content p {
    font-size: 0.9rem;
  }
  
  .generic-popup-content .bubble-content .content-type-indicator {
    font-size: 0.9rem;
    padding: 6px 10px;
    margin: 12px 0 5px 0;
  }
  
  .generic-popup-content .explanation {
    font-size: 1rem;
    padding: 15px;
  }
  
  .generic-popup-content .timer-content h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }
  
  .generic-popup-content .myths-remaining h4 {
    font-size: 1.1rem;
  }
  
  .generic-popup-content .myths-remaining li {
    font-size: 0.95rem;
    padding: 10px 12px;
  }
}

/* CSS for portrait mode on mobile devices */
@media screen and (max-width: 767px) and (orientation: portrait) {
  .generic-popup-content {
    max-width: 90%;
    max-height: 85%;
    padding: 25px;
  }
  
  .generic-popup-content h2 {
    font-size: 2.2rem;
  }
  
  .generic-popup-content .bubble-content {
    padding: 15px;
    margin: 18px 0;
  }
  
  .generic-popup-content .bubble-content h4 {
    font-size: 1.05rem;
  }
  
  .generic-popup-content .bubble-content p {
    font-size: 0.95rem;
  }
  
  .generic-popup-content .bubble-content .content-type-indicator {
    font-size: 1rem;
    padding: 7px 11px;
    margin: 14px 0 5px 0;
  }
  
  .generic-popup-content .explanation {
    font-size: 1.1rem;
    padding: 18px;
  }
  
  .generic-popup-content .timer-content h3 {
    font-size: 1.6rem;
    margin-bottom: 22px;
  }
  
  .generic-popup-content .myths-remaining h4 {
    font-size: 1.2rem;
  }
  
  .generic-popup-content .myths-remaining li {
    font-size: 1rem;
    padding: 12px 14px;
  }
}

/* Info popup specific styles */
.info-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1060; /* Higher than other popups */
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.info-popup .generic-popup-content {
  background-color: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 80%;
  max-height: 80%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: popupFadeIn 0.3s ease-out;
  overflow-y: auto;
}

.info-popup .generic-popup-content h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0 0 20px 0;
  padding: 0;
  color: #9149e5;
  text-shadow: 0 2px 4px rgba(145, 73, 229, 0.3);
}

.info-popup .controls-info,
.info-popup .scoring-info {
  margin-top: 20px;
  text-align: left;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 10px;
}

.info-popup .controls-info h4,
.info-popup .scoring-info h4 {
  color: #333;
  margin-bottom: 10px;
  font-size: 1.1em;
  font-weight: 600;
}

.info-popup ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.info-popup li {
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 0.95em;
}

.info-popup li strong {
  font-weight: 600;
  color: #2c3e50;
}

.info-popup .continue-instruction {
  font-size: 1rem;
  color: #666;
  margin-top: 30px;
  font-style: italic;
  opacity: 0.8;
}

/* Mobile responsive adjustments for info popup */
@media (max-width: 768px) {
  .info-popup .generic-popup-content {
    max-width: 95%;
    padding: 30px 20px;
  }
  
  .info-popup .generic-popup-content h2 {
    font-size: 2rem;
  }
  
  .info-popup .controls-info,
  .info-popup .scoring-info {
    margin-top: 15px;
    padding: 12px;
  }
  
  .info-popup .controls-info h4,
  .info-popup .scoring-info h4 {
    font-size: 1em;
  }
  
  .info-popup li {
    font-size: 0.9em;
    margin-bottom: 6px;
  }
}


/* h1 {
color: dimgray;
font-family: Garamond, Baskerville, "Baskerville Old Face", "Hoefler Text", "Times New Roman", serif;
} */

/* Game navbar info moved from templates/game.html */
.game-info {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  align-items: center;
  gap: 2.5rem;
}

.game-info-item {
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 600;
  margin: 0 !important;
}

.game-info-value {
  color: #ffffff !important;
  font-weight: 700;
}
.game-info-sep {
  color: #ffffff !important;
  margin: 0 0.35rem;
  font-weight: 700;
}

/* Mobile responsive adjustments for game-info */
@media (max-width: 768px) {
  .game-info {
    position: static;
    transform: none;
    left: auto;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
  }

  .game-info-item {
    font-size: 16px;
    margin: 0 !important;
  }
}
