body {
    font-family: 'Arial', sans-serif;
    margin:0;
    padding:0;
    background: linear-gradient(to bottom right, #ffe6f2, #e6f7ff);
}

/* Header */
header { width:auto; 
  padding:20px 50px; 
  background:#6c5ce7; 
  color:white; 
  text-align:center; 
  font-size:28px; 
  border-radius:0 0 20px 20px;
   box-shadow:0 5px 15px rgba(0,0,0,0.3); }

/* Welcome page */
.welcome-screen {
  display:flex;
  justify-content:center;
  align-items:center;
  height:100vh;
  flex-direction:column;
  text-align:center;
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg,#fbc2eb,#a6c1ee);
}

.welcome-screen h1 {
  font-size:48px;
  font-weight:bold;
  color:#fff;
  text-shadow:2px 2px 5px rgba(0,0,0,0.3);
}

.welcome-screen .tagline {
  font-size:20px;
  font-weight:500;
  color:#fff;
  margin-top:12px;
  text-shadow:1px 1px 3px rgba(0,0,0,0.3);
}

/* Auth page */
.auth-container {
  display:flex;
  justify-content:center;
  align-items:center;
  height:100vh;
  background: linear-gradient(135deg,#89f7fe,#66a6ff);
}

form {
  width:350px;
  padding:35px;
  border-radius:20px;
  background: linear-gradient(135deg,#f6d365,#fda085);
  box-shadow:0 12px 30px rgba(0,0,0,0.4);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  transition:0.3s;
}

form:hover { transform:scale(1.02); }

input {
  width:90%;
  padding:12px;
  margin:12px 0;
  border-radius:12px;
  border:none;
  box-shadow:0 3px 6px rgba(0,0,0,0.2);
}

.back-btn { position: fixed; right: 20px; bottom: 20px; padding: 8px 15px; font-size: 0.9rem; border: none; border-radius: 10px; background: #ff6f61; color: #fff; cursor: pointer; transition: 0.3s; box-shadow: 0 3px 6px rgba(0,0,0,0.2); }
.back-btn:hover { background: #ff4b3e; }

.showLink {
  margin-top:10px;
  cursor:pointer;
  color:#341f97;
  font-weight:bold;
}

.showLink:hover { text-decoration:underline; }
.back-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    border: none;
    border-radius: 10px;
    background: #ff6f61;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}
.back-btn:hover {
    background: #ff4b3e;
}


/* Domains page */

#domainSearch {
  display:block;
  margin:15px auto;
  width:70%;
  max-width:400px;
  padding:12px;
  border-radius:25px;
  border:none;
  box-shadow:0 5px 15px rgba(0,0,0,0.2);
  text-align:center;
}



.domain-list {
  display: grid;
  grid-template-columns: repeat(4, 2fr); /* exactly 3 columns */
  gap: 30px;
  justify-items: center;
  margin: 20px auto;
  width: 90%;
  max-width: 900px;
}

.domain-card {
  width:140px;
  height:140px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background: linear-gradient(135deg,#f6d365,#fda085);
  border-radius:15px;
  cursor:pointer;
  transition:0.3s;
}

.domain-card img {
  width: 55px;
  height:55px;
  margin-bottom:6px;
  
}

.domain-card:hover {
  transform:scale(1.05);
  background: linear-gradient(135deg,#84fab0,#8fd3f4);
}

/* Quiz page */
.quiz-top {
    display:flex;
    justify-content: space-around;
    margin: 15px 0;
    font-weight:bold;
    font-size:1.2rem;
    
}
.quiz-container {
    max-width: 600px;
    margin: 0 auto 30px;
    padding:20px;
    background:rgb(152, 88, 205);
    border-radius:15px;
    box-shadow:0 4px 10px rgba(0,0,0,0.15);
}
.quiz-container div { margin-bottom:20px; }
.quiz-container p { font-size:1.1rem; margin-bottom:10px; }
.optionBtn {
    display:block;
    width:100%;
    padding:10px;
    margin-bottom:10px;
    border:none;
    border-radius:10px;
    font-size:1rem;
    cursor:pointer;
    transition: all 0.3s;
    background-color:#db6adb;
}
.optionBtn:hover { background-color:#ffb3d9; }
.correct { background-color:#66ff66 !important; color:white; }
.wrong { background-color:#ff6666 !important; color:white; }

/* Score page */
.sprinkle {
  position: fixed;
  top: 0;
  width: 8px;
  height: 8px;
  background: gold;
  border-radius: 50%;
  opacity: 0.8;
  animation: fall 3s linear infinite;
}
@keyframes fall {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}
.score-box {
  text-align: center;
  margin-top: 80px;
  font-family: 'Poppins', sans-serif;
  color: #333;
}
.score-buttons {
    display: flex;
    justify-content: center; /* centers buttons horizontally */
    gap: 20px; /* space between buttons */
    margin-top: 20px; /* spacing from the score box */
}

.score-buttons button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background-color: #4CAF50; /* you can change color */
    color: white;
    transition: transform 0.2s;
}

.score-buttons button:hover {
    transform: scale(1.05);
}


