@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500&display=swap');

/* Base font settings */
body {
  font-family: 'Comic Neue', cursive;
  background: #fff;
  background-image: linear-gradient(to bottom, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 100% 28px;
  color: #333;
  margin: unset;
  height: 100%;
}
.container-main{
  margin:20px;
}
/* Title and Neon Effect */
h1 {
  font-family: 'Comic Neue', cursive;
  font-size: 34px;
  background: #2b6ca3;
  color: #fffacd !important;
  padding: 25px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin-bottom: 30px;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.3);
  animation: neonText 2s ease-in-out infinite alternate;
}

/* Neon Text Animation */
@keyframes neonText {
  0% {
    text-shadow: 0 0 5px #aca45f, 0 0 10px #aca45f, 0 0 15px #aca45f;
  }
  100% {
    text-shadow: 0 0 20px #aca45f, 0 0 30px #aca45f, 0 0 40px #aca45f;
  }
}

/* Form Elements */
input[type="text"],
input[type="number"],
textarea,
select {
  width: 96%;
  padding: 12px;
  margin-top: 6px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  font-size: 16px;
}

textarea {
  height: 120px;
  font-family: 'Comic Neue', cursive;
}

label {
  font-weight: bold;
  font-size: 16px;
  display: block;
  margin-top: 10px;
}

/* Button Styles */
button {
  background-color: #4caf50;
  color: white;
  padding: 14px 22px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #388e3c;
}

/* Option Button */
.option-btn {
  margin: 6px 0;
  padding: 10px 16px;
  font-size: 16px;
  background-color: #90caf9;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: inline-block;
}

.option-btn:hover {
  background-color: #42a5f5;
  color: #fff;
}

/* Radio Section */
.radio-section {
  margin: 15px 0;
  display: flex;
}

.radio-section label {
  padding: 0 70px 0 0;
}

/* Hidden Elements */
.hidden {
  display: none;
}

/* Image Box Styling */
#imageBox {
  margin-top: 10px;
  padding: 10px;
  background-color: #f9f9f9;
  border: 2px dashed #ccc;
  border-radius: 10px;
}

/* Form Section */
.form-section {
  background-color: #daeeff;
  border: 3px dashed #b0c4de;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 2px 3px 12px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

/* Question Box Styling */
/* .question-box {
  background-color: #fffde7;
  border: 1px solid #f0e68c;
  border-left: 5px solid #2b6ca3;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
  animation: popIn 0.8s ease;
}

.question-box p {
  margin: 8px 0;
  font-size: 16px;
} */

.search-form form {
  margin: 7px 0 0;
}

.search-form input[type="text"] {
  width: fit-content;
  margin-right: 20px;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

footer {
  background: #2b6ca3;
  color: #fffacd;
  padding: 10px 0;
  font-family: sans-serif;
  text-align: center;
}

.question-box {
  background-color: rgb(43, 108, 163);
  border: 1px solid #ffdd33;
  border-left: 5px solid #daeeff;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
  animation: popIn 0.8s ease;
  color:white;
}

.question-box p {
  margin: 8px 0;
  font-size: 16px;
  color:white;
}
.question-box strong {
  opacity: 0;
  animation: revealText 1s ease-out forwards;
  color:white;
}
/* Select Difficulty Styling */
select#difficulty {
  padding: 10px 14px;
  border-radius: 6px;
  border: 2px solid #b0c4de;
  background-color: #fff8dc;
  font-size: 16px;
  font-family: 'Comic Neue', cursive;
  color: #2b3a42;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
select#dsat-pt {
  padding: 10px 14px;
  border-radius: 6px;
  border: 2px solid #b0c4de;
  background-color: #fff8dc;
  font-size: 16px;
  font-family: 'Comic Neue', cursive;
  color: #2b3a42;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  max-height: 150px;
}
select#type {
    padding: 10px 14px;
    border-radius: 6px;
    border: 2px solid #b0c4de;
    background-color: #fff8dc;
    font-size: 16px;
    font-family: 'Comic Neue', cursive;
    color: #2b3a42;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}
select#dsat-pt:focus {
  outline: none;
  border-color: #87cefa;
  background-color: #f0ffff;
  box-shadow: 0 0 5px #87cefa;
}
select#dsat-pt option {
  font-size: 16px;
  font-family: 'Comic Neue', cursive;
}

select#difficulty:focus {
  outline: none;
  border-color: #87cefa;
  background-color: #f0ffff;
  box-shadow: 0 0 5px #87cefa;
}

select#difficulty option {
  font-size: 16px;
  font-family: 'Comic Neue', cursive;
}

select#type:focus {
  outline: none;
  border-color: #87cefa;
  background-color: #f0ffff;
  box-shadow: 0 0 5px #87cefa;
}

select#type option {
  font-size: 16px;
  font-family: 'Comic Neue', cursive;
}

strong {
  color: #2b3a42;
}


.character-helper {
  position: absolute;
  left: 38px;
  width: 72px;
  z-index: 999;
  animation: floatIn 1.5s ease, bounceChar 2s ease-in-out infinite;
}

.teachers-helper {
  right: 38px;
  position: absolute;
  width: 72px;
  z-index: 999;
  animation: floatIn 1.5s ease, bounceChar 2s ease-in-out infinite;
}

/* Bobbing and Floating Animations */
@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceChar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Pop-in animation for question box */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Text Reveal Animation for Questions */
/* .question-box strong {
  opacity: 0;
  animation: revealText 1s ease-out forwards;
} */

@keyframes revealText {
  to {
    opacity: 1;
  }
}

.laptop-helper {
  position: fixed;
  bottom: 10px;
  left: 20px;
  width: 150px;
  animation: bounceIn 2s ease-in-out infinite;
  z-index: 1000;
}

@keyframes bounceIn {
  0% { transform: translateY(-20px); opacity: 0; }
  60% { transform: translateY(10px); opacity: 1; }
  100% { transform: translateY(0); }
}


/* view Questions css */

/* Container for each question */
.question-card {
  background-color: #ffffff;
  border: 2px solid #dce3f0;
  border-left: 6px solid #4a90e2;
  padding: 20px;
  margin: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
  font-family: 'Comic Neue', cursive;
  width: -webkit-fill-available;
}

.question-card-que {
  width: 86%;
}

.question-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Question text */
.question-card > div:first-child {
  font-size: 16px;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* Answer list */
.question-card ul {
  list-style-type: none;
  padding-left: 0;
  margin: 10px 0;
}

.question-card ul li {
  padding: 8px 10px;
  background-color: #f2f6fc;
  border: 1px solid #dce3f0;
  border-radius: 5px;
  margin-bottom: 6px;
  transition: background-color 0.2s ease;
}

.question-card ul li:hover {
  background-color: #e8eff9;
}

/* Correct answer highlight */
.correct {
  margin-top: 15px;
  color: #2e7d32;
  font-weight: bold;
  font-size: 16px;
}

/* Explanation block */
.question-card-explain {
    background-color: #f9f9f9;
    padding: 12px;
    margin-top: 12px;
    border-left: 4px solid #f4b400;
    font-size: 15px;
    line-height: 1.6;
    border-radius: 5px;
}

/* Edit and Delete Links */
.question-card a {
  text-decoration: none;
  font-size: 14px;
  color: #0074cc;
  margin-right: 15px;
  transition: color 0.2s ease;
}

.question-card a:hover {
  color: #005fa3;
}

.question-card a:last-child {
  color: #cc0000;
}

.question-card a:last-child:hover {
  color: #a00000;
}

.difficulty-type {
    display: flex;
}

.container-main {
    border-radius: 8px;
}

.container-main-head h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Tabs styling */
.tabs{
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.dsat-filter-form{
    width: 25%;
    margin: 0 auto;
    justify-content: center;
    margin-bottom: 20px;
}

.tabs a {
    padding: 10px 20px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    margin: 0 5px;
    font-weight: bold;
}

.tabs a:hover {
    background-color: #ddd;
}

.tabs a.active {
    background-color: #4CAF50;
    color: white;
}

/* Search form styling */
.search-form {
    text-align: center;
    margin-bottom: 20px;
}

.search-form input[type="text"] {
    padding: 10px;
    font-size: 16px;
    width: 60%;
    margin-right: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.search-form button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
}

.search-form button:hover {
    background-color: #45a049;
}

/* Question cards styling */
.question-card {
    padding: 15px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    gap: 30px;
}

.question-card h3 {
    font-size: 18px;
}

.question-card strong {
    color: #ea1313;
}

.question-card ul {
    list-style-type: none;
    padding-left: 0;
}

.question-card ul li {
    margin: 5px 0;
}

.correct {
    font-weight: bold;
    color: green;
}

.question-card-explain {
    margin-top: 10px;
    color: #555;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Edit and Delete button styling */

.question-card-edit a {
    text-decoration: none;
    color: #007BFF;
}

.question-card-edit a:hover {
    color: #0056b3;
}

/* Responsive styling for smaller screens */
@media (max-width: 768px) {
    .search-form input[type="text"] {
        width: 80%;
    }
}