@import url("https://uilight.netlify.app/main.css");
body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  width:100%;
 
  background-image:radial-gradient(125% 125% at 50% 90%, #ffffff 40%, #14b8a6 100%);
}
 
@keyframes backgroundChange {
  0% { background-color: #FF6B6B; }
  14% { background-color: #4ECDC4; }
  28% { background-color: #45B7D1; }
  42% { background-color: #96CEB4; }
  56% { background-color: #FFBE0B; }
  70% { background-color: #FF006E; }
  84% { background-color: #8338EC; }
  100% { background-color: #FF6B6B; }
}

.notification-box:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Mobile Styles */
@media (max-width: 768px) {
  .notification-box {
    padding: 12px 15px;
    font-size: 0.9rem;
    margin-top: 1em; /* Added space below mobile navbar */
    line-height: 1.4;
    width: 100%;
    left: 0;
    right: 0;
  }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
  .notification-box {
    padding: 10px;
    font-size: 0.85rem;
    margin-top: 1.5em;
  }
}

/* Handle very small screens */
@media (max-width: 320px) {
  .notification-box {
    padding: 8px;
    font-size: 0.8rem;
    margin-top: 1.5em;
  }
}
#scene-container {
  width: 100%;
  height: 100%;
}
 
.flex{
  display: flex;
}
h1 {
  color: #2600ff;
  padding-top: 2rem;
}
.flex-container {
  width: 100%;
  max-width: 70em;
  margin: 0 auto;
  padding: 2rem;
  background-image:   radial-gradient(circle at center, #0c491f, transparent);

  border-radius: 2em;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}
.deficulty-container{
  display: flex;
  gap:2em;
  padding:1rem;
  margin-left:1em ;
}
.flex-container:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.flex-container * {
  color: #ffffff;
}

@media (max-width: 768px) {
  .flex-container {
    width: 95%;
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .flex-container {
    width: 100%;
    border-radius: 0;
  }
}

.flex-container button,
.flex-container input,
.flex-container a {
  cursor: pointer;
  transition: all 0.2s ease;
}

.flex-container button:hover,
.flex-container input:hover,
.flex-container a:hover {
  opacity: 0.8;
}

.flex-container button:active,
.flex-container input:active,
.flex-container a:active {
  transform: scale(0.98);
}

 .button.circular-btn.success {
  background-color: green;
  color: white;
}

 .button.circular-btn.error {
  background-color: red;
  color: black;
}
.navbar-links{
  display: flex;
  justify-content: space-between;
  padding-top: 3.5em;
  gap: 2em;
}
#ranktable-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em 1em;
  border: 2px solid #2600ff;
  border-radius: 25px;
  background-image: linear-gradient(to left, #1a1a1a, #ffd700);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

#ranktable-link:hover {
  background-image: linear-gradient(to right, #1a1a1a, #ffd700);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#ranktable-link:active {
  transform: scale(0.95);
}

#login-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em 1em;
  border: 2px solid #2600ff;
  border-radius: 25px;
  background-image: linear-gradient(to left, #1a1a1a, #ffd700);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

#login-link:hover {
  background-image: linear-gradient(to right, #1a1a1a, #ffd700);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#login-link:active {
  transform: scale(0.95);
}
#dashboard-link {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em 1em;
  border: 2px solid #2600ff;
  border-radius: 25px;
  background-image: linear-gradient(to left, #1a1a1a, #ffd700);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

#dashboard-link:hover {
  background-image: linear-gradient(to right, #1a1a1a, #ffd700);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#dashboard-link:active {
  transform: scale(0.95);
}
.flex-container  {
 
 
  display: flex;
 align-items: center;
 justify-content: center;
 
  margin-top: 4rem;
 
 
  color: #fafafa;
}

 
 

.section-rule-box {
  color: #fafafa;
}

 
 

.rule-title {
 
  font-family: 'Arial', sans-serif;
  font-size: 2.2em;
  color: #000000;
  text-shadow: 2px 2px 4px rgba(253, 251, 251, 0.5);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #000000;
  display: inline-block;
  transition: all 0.3s ease;
}

.rule-title:hover {
  transform: scale(1.05) rotate(1deg);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
  color: #444243;
  transition: all 0.3s ease-in-out;
}

.rules-list {
  list-style-type: none;
  padding-left: 1em;
  margin: 1.5em 0;
  counter-reset: rule-counter;
}

.rules-list li {
  margin-bottom: 1em;
  padding-left: 2em;
  position: relative;
}

.rules-list li::before {
  content: counter(rule-counter);
  counter-increment: rule-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5em;
  height: 1.5em;
  background-color: #000000;
  color:white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

@media (max-width: 768px) {
  .rules-list li {
    padding-left: 1.5em;
  }
}

@media (max-width: 480px) {
  .rules-list {
    font-size: 0.95em;
  }
  
  .rules-list li::before {
    font-size: 0.8em;
  }
}

.rule-point {
  padding: 1rem 1rem 1rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  font-size: 1.2em;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.rule-point:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.link-btn {
  color: var(--text-color-primary);
  text-decoration: none;
  width: 100%;
}

.play-btn {
  border: none;
  background-color: #334155;
  color: #fafafa;
  padding: 8px 1rem;
  font-size: 1.5rem;
  border-radius: 4em;
  font-weight: bold;
  margin-top: 10em;
}
@media (max-width: 720px) {
  .play-btn {
    margin-top: 5em;
  }
}

.play-btn:hover {
  opacity: 0.85;
}

.hide {
  display: none;
}
.container{
  width: 90%;
}
.container-category{
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quiz {
  background-color: #94a3b8;
  margin-top: 7em;
  color: #150202;
  padding: 2rem;
  width: 45vw;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  box-shadow: 0 0 10px 5px rgba(0, 0, 255, 0.3);
  transition: box-shadow 0.3s ease;
}
#menu-open-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1000;
  display: none;
}
@media (max-width: 780px) {
  .navbar-mini-container {
    display: flex;
  }
  #menu-open-btn{
    display: block;
  }
  .result{
    margin-top: 4em;
  }

  .navbar {
    display: none;
  }

  .navbar.hide {
    display: flex;
  }
}
.navbar-title-mini{
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #290ec3;
}
.quiz:hover {
  box-shadow: 0 0 15px 8px rgba(255, 251, 0, 0.372);
}
@media (max-width: 768px) {
  .quiz {
    margin-top: 12em;
    width: 82vw;
    padding: 0.5rem;
    font-size: 0.9rem;
  }
  .cta{
    font-size: 0.9rem;
    padding: 0rem 0rem 0rem 0rem;
  }
  .quiz-category {
    font-size: 1.5rem;
  }

  .questions-container {
    font-size: 1.2rem;
  }

  .options-contianer .button {
    font-size: 1rem;
    padding: 8px 0;
  }

  .cta {
    font-size: 1rem;
  }
}


.result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: #cbd5e1;
  background-color: #2660b1;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: all 0.3s ease;
}

.result:hover {
  transform: translate(-50%, -52%) scale(1.05);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.quiz-category {
  font-size: 2rem;
  font-weight: 700;
}

.questions-container {
  font-size: 1.5rem;
  word-break: break-all;
}

.options-contianer .button {
  background-color: #475569;
  color: #fafafa;
  border-radius: 2rem;
  font-size: 1.25rem;
  font-weight: bold;
  padding: 10px 0;
}

.justify-center {
  justify-content: center;
}

.justify-space-between {
  justify-content: space-between;
}

.cta {
  font-size: 1.25rem;
  font-weight: bold;
  border: none;
  padding: 10px 1.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.quit {
  background-color: #cbd5e1;
  font-weight: 600;
}

.next {
  background-color: #334155;
  color: #fafafa;
  font-weight: 600;
}

.circular-btn {
  cursor: pointer;
  border: solid  #334155;
  border-radius:2em ;
  background-color:rgb(151, 198, 239);
}

.qns-count,
.cur-score {
  font-size: 1.25rem;
}
/* Spinner image design */
.spinner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  z-index: 10000;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 1);
}

.spinner-image {
  width: 100%;
  height: 100%;
  animation: spin 1s linear infinite;
}

/* Spin animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.box-container {
  width: 18em;
  padding: 1.5em;
  border: 1px solid #ccc;
  border-radius: 10px;
  margin: 2em auto;
  text-align: center;
}

.form-container {
  display: flex;
  flex-direction: column;
}

.input {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.submit-button {
  padding: 1em;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.muted-link, .bold-link {
  color: #007bff;
  text-decoration: none;
}

.bold-link {
  font-weight: bold;
}

.muted-link:hover, .bold-link:hover {
  text-decoration: underline;
}

.margin-vertical {
  margin-top: 1em;
}

#modal {
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid #4CAF50;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
  color: #fff;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

#modal h2 {
  font-family: 'Arial', sans-serif;
  font-size: 1.5em;
  margin-bottom: 1em;
  text-align: center;
  color: #4CAF50;
}

#modal input[type="number"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1em;
}

#modal input[type="number"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

#modal button[data-name="submit-btn"] {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  border: none;
  border-radius: 5px;
  background-color: #4CAF50;
  color: white;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#modal button[data-name="submit-btn"]:hover {
  background-color: #45a049;
}

#modal.hide {
  opacity: 0;
  visibility: hidden;
}
#modal {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#modal:hover {
  transform: translate(-50%, -52%) scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
@media (max-width: 768px) {
  #modal {
    width: 92%;
    height: 62%;
    margin-top: 8em;
  }

  #modal h2 {
    font-size: 1em;
  }
}


.input {
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.margin-vertical {
  margin-top: 1em;
}
.notification-box{
  display: flex;
  justify-content: center;
  animation: blink infinite;
}
@keyframes blink {
  
}
.popupbox{
  width:60%;
  height: 40%;
  border-radius: 2em;
  color: black;
  background-image:linear-gradient(right,blue,to left,silver) ;
  padding: 1em;
  margin-top:2em;
  z-index: 9999;
}
.hidden{
  display: none;
}
.popupbox {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 90%;
  margin: 2rem auto;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 2px solid #4CAF50;
  animation: fadeIn 0.5s ease-out;
  z-index: 9999;
  position: fixed;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.popup-title {
  color: #2C3E50;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.popup-subtitle {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-family: 'Poppins', sans-serif;
}

.popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.popup-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  position: relative;
  overflow: hidden;
}

.popup-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.popup-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(76, 175, 80, 0.2);
  background: #45a049;
}

.popup-btn:hover::before {
  left: 100%;
}

.popup-btn:active {
  transform: translateY(1px);
}

.btn-icon {
  font-size: 1.3rem;
}

/* Different colors for duel button */
.popup-btn[data-id="play-dule"] {
  background: #FF6B6B;
}

.popup-btn[data-id="play-dule"]:hover {
  background: #ff5252;
  box-shadow: 0 7px 14px rgba(255, 107, 107, 0.2);
}

@media (max-width: 768px) {
  .popupbox {
    padding: 1.5rem;
    margin: 1rem auto;
  }

  .popup-title {
    font-size: 1.5rem;
  }

  .popup-subtitle {
    font-size: 1rem;
  }

  .popup-btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}
.duel-button {
  position: fixed;
  right: 20px;
  bottom: 40px;
  background: linear-gradient(45deg, #FF6B6B, #FF006E);
  color: white;
  padding: 12px 25px;
  border-radius: 25px 0 0 25px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
  animation: pulse 2s infinite, float 3s ease-in-out infinite;
  transition: all 0.3s ease;
  z-index: 1000;
}

.duel-button:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
  background: linear-gradient(45deg, #FF006E, #FF6B6B);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 768px) {
  .duel-button {
    padding: 10px 20px;
    font-size: 0.9rem;
    right: 10px;
    bottom: 30px;
  }
}

.difficulty-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.difficulty-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  width: 100%;
  max-width: 200px;
}

.difficulty-card img {
  width: 100%;
  height: auto;
}

.difficulty-card:hover {
  transform: scale(1.05);
}

.difficulty-card p {
  margin: 0;
  padding: 1rem;
  font-size: 1rem;
  color: #333;
}

.card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  margin: 1rem 0;
}

.card-container:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card-image {
  width: 30%;
  height: auto;
  border-radius: 10px 0 0 10px;
}

.card-content {
  padding: 1rem;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 1.2rem;
  color: #333;
}

.card-subtitle {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #666;
}

.card-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.card-button:hover {
  background-color: #45a049;
}


/* Popup sliding animations */
.popupbox {
  animation: slideInFromRight 0.4s ease-out;
}

.popupbox.slide-out {
  animation: slideOutToLeft 0.4s ease-in forwards;
}

.popupbox.slide-in {
  animation: slideInFromLeft 0.4s ease-out forwards;
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutToLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Toggle button to reopen popup */
.popup-toggle-btn {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 0 15px 15px 0;
  padding: 20px 12px;
  cursor: pointer;
  box-shadow: 2px 0 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-toggle-btn:hover {
  padding-right: 18px;
  box-shadow: 4px 0 15px rgba(0,0,0,0.4);
}

.toggle-icon {
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
}

.popup-toggle-btn:active {
  transform: translateY(-50%) scale(0.95);
}
