*{
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    background: #f9f9f9;
   
    color: #333;
    animation: fadeIn 0.8s ease-in-out;
}



/* HERO SECTION */
.hero {
    background: linear-gradient(to right, #007BFF, #0056b3);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-top: 50px;
    animation: fadeIn 1s ease-in-out;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.cta-btn {
    background: #FFD700;
    color: #333;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.cta-btn:hover {
    background: #ffcc00;
    transform: scale(1.05);
}

/* INFO SECTION */
.info-section {
    padding: 50px 20px;
    background: white;
}

.info-section h2 {
    font-size: 32px;
    color: #007BFF;
    margin-bottom: 20px;
}

.info-box {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 900px;
    margin: auto;
}

.info-item {
    width: 250px;
    text-align: center;
    padding: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease-in-out;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.15);
}

.info-item i {
    font-size: 40px;
    color: #007BFF;
    margin-bottom: 10px;
}

.info-item p {
    font-size: 16px;
    color: #555;
}






/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none;
}

/* HEADER */
header {
    background: #007BFF;
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-in-out;
}

/* Header Slide Down Animation */
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* NAVIGATION */
nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #FFD700; /* Gold color on hover */
}

/* FOOTER */
footer {
    background: #007BFF;
    color: white;
    padding: 10px;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
}

/* BUTTONS */
button {
    margin: 10px;
    padding: 12px 20px;
    font-size: 16px;
    background: #ffcc00;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
}

/* Button Hover Effect */
button:hover {
   
    transform: scale(1.1);
}

/* QUIZ CONTAINER */
#questions-container {
    text-align: left;
    display: inline-block;
    margin-top: 20px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}


/* QUESTION BOX */
.question-box {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    background:#007bff ;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: block;
    
}

/* Question Box Hover Effect */
.question-box:hover {
    transform: scale(1.02);
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
}

/* Correct Answer Animation */
.correct {
    background: #28a745 !important;
    color: white;
    animation: correctAnswer 0.5s ease-in-out;
}

@keyframes correctAnswer {
    from { background: white; color: black; }
    to { background: #28a745; color: white; }
}

/* Wrong Answer Animation */
.wrong {
    background: #dc3545 !important;
    color: white;
    animation: wrongAnswer 0.5s ease-in-out;
}

@keyframes wrongAnswer {
    from { background: white; color: black; }
    to { background: #dc3545; color: white; }
}

/* IMAGES */
img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 10px;
    opacity: 0;
    animation: fadeIn 0.8s ease-in-out forwards;
}

/* LOGIN & SIGNUP CONTAINERS */
.login-container, .signup-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    margin: auto;
    margin-top: 130px;
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

/* INPUT FIELDS */
.cr {
    width: 90%;
    padding: 10px;
    margin-top: 115px ;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease-in-out;
}

/* Input Focus Effect */
input:focus {
    border-color: #007BFF;
    outline: none;
}

/* RESPONSIVE DESIGN */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    header {
        font-size: 18px;
        padding: 10px;
    }

    nav ul {
        flex-direction: column;
        text-align: center;
    }

    nav ul li {
        margin: 5px 0;
    }

    footer {
        font-size: 14px;
        padding: 8px;
    }

    .login-container, .signup-container {
        width: 90%;
    }

    #questions-container {
        width: 100%;
        padding: 10px;
    }

    button {
        width: 90%;
        padding: 15px;
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {
    header {
        font-size: 16px;
        padding: 8px;
    }

    nav ul li a {
        font-size: 16px;
    }

    button {
        font-size: 16px;
        padding: 12px;
    }

    .question-box {
        padding: 10px;
        font-size: 14px;
    }
}



.id {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease-in-out;
}

.dr {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: border-color 0.3s ease-in-out;
}





/* Quiz Container */
.quiz-container {
    max-width: 600px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    margin: 100px auto;
}

.quiz-container h2 {
    font-size: 24px;
    color: #007BFF;
}

.question {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Answer Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.option {
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #ccc;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.option:hover {
    background: #e0e0e0;
}

.option.correct {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.option.wrong {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Navigation Buttons */
.next-btn {
    background: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
    transition: 0.3s;
    display: none;
}

.next-btn:hover {
    background: #0056b3;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .quiz-container {
        max-width: 90%;
        padding: 20px;
    }
}

@media screen and (max-width: 480px) {
    .quiz-container h2 {
        font-size: 20px;
    }

    .option {
        font-size: 16px;
        padding: 8px;
    }
} 

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz-container {
    animation: fadeIn 0.5s ease-in-out;
}







/* General Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #007bff;
    padding: 15px 20px;
    color: white;
}

/* Logo */
.logo h1 {
    margin: 0;
    font-size: 1.5rem;
}

/* Navigation */
nav {
    display: flex;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    padding: 8px 12px;
    transition: 0.3s;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #007bff;
        text-align: center;
        padding: 10px 0;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    nav ul li {
        display: block;
    }

    nav ul li a {
        display: block;
        padding: 10px;
    }

    nav.active {
        display: flex;
        flex-direction: column;
    }
}
#logo-image {
    width: 100px;  /* Fixed width for the logo */
    height: 100px; /* Fixed height for the logo */
    object-fit: cover; /* Ensure the image is resized to fill the area without distortion */
    border-radius: 50%; /* Makes the image circular */
  }
  
  #user-logo {
    width: 40px; /* Fixed width for the user logo in the profile section */
    height: 40px; /* Fixed height for the user logo in the profile section */
    object-fit: cover; /* Ensure the image fits without distortion */
    border-radius: 50%; /* Makes the image circular */
  }

/* Recent Quizzes Section */
.recent-quizzes {
    padding: 40px 20px;
}

.recent-quizzes h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.quiz-list {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    color: #007BFF;
}

.quiz-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 30%;
    text-align: center;
    margin-bottom: 20px;
}

.quiz-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.quiz-item p {
    font-size: 16px;
    margin-bottom: 20px;
}

.quiz-item .btn-secondary {
    background-color: #0077ff;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
}

.quiz-item .btn-secondary:hover {
    background-color: #005bb5;
}

/* Testimonials Section */
.testimonials {
    padding: 40px 20px;
    background-color: #f1f1f1;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.testimonial-item {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonial-item p {
    font-style: italic;
    font-size: 18px;
}

.testimonial-item span {
    font-weight: bold;
    margin-top: 10px;
    display: block;
}



/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero .btn-primary {
        font-size: 16px;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        width: 80%;
        margin-bottom: 20px;
    }

    .quiz-list {
        flex-direction: column;
        align-items: center;
    }

    .quiz-item {
        width: 80%;
    }

    .testimonials .testimonial-item {
        width: 80%;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 10px;
    }

    .hero h2 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero .btn-primary {
        padding: 8px 20px;
        font-size: 14px;
    }

    .features {
        padding: 20px;
    }

    .feature-item {
        width: 100%;
        margin-bottom: 20px;
    }

    .quiz-item {
        width: 100%;
    }

    .testimonials .testimonial-item {
        width: 100%;
    }
}


.rate{
    width: 90%;
    text-align: center;
    align-items: center;
    justify-content: center;
    justify-items: center;
    margin-left: 50px;
}
.container {
    background-color:#007bff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* max-width: 1500px; */
}

h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
}

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

.rating, .comment {
    margin-bottom: 20px;
}

.rating input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.comment textarea {
    width: 95%;
    height: 120px;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
    resize: vertical;
}

.bbt {
    background-color: #FFD700;
    color: rgb(0, 0, 0);
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    width: 90%;
    margin-top: 10px;
}



.error-message {
    color: red;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 15px;
    }

    h3 {
        font-size: 1.5rem;
    }

    .comment textarea {
        height: 100px;
    }

    .comment button {
        font-size: 1rem;
    }
}

/* Rating section visibility */
.rating-section, .comment-section {
    display: none;
}
















/* Subscription Section Styles */
.subscription-container {
    background-color: #fff;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 50px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.pricing-plans {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.plan {
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    width: 280px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.plan:hover {
    transform: translateY(-5px);
}

.plan h3 {
    margin: 0;
    color: #2e3a59;
}

.plan p {
    margin: 15px 0;
    color: #5c5c5c;
}

.plan ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 20px;
}

.plan ul li {
    margin: 8px 0;
}

.plan button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

/* Subscription Benefits */
.subscription-benefits {
    margin-top: 40px;
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.subscription-benefits ul {
    list-style: none;
    padding: 0;
}

.subscription-benefits ul li {
    margin: 12px 0;
    font-size: 16px;
    color: #555;
}

/* Payment Upload Section */
.payment-upload {
    margin-top: 30px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment-upload input[type="file"] {
    padding: 8px;
    margin-bottom: 15px;
}

.payment-upload button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

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

/* Payment Options Section */
.payment-options {
    margin-top: 40px;
    text-align: center;
}

.payment-options button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-right: 20px;
}

.payment-options button:hover {
    background-color: #0056b3;
}

/* Payment Confirmation */
#payment-confirmation {
    background-color: #d4edda;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
}

#payment-confirmation h3 {
    color: #155724;
}

#payment-confirmation button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

#payment-confirmation button:hover {
    background-color: #218838;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .pricing-plans {
        flex-direction: column;
        align-items: center;
    }

    .plan {
        width: 90%;
        margin-bottom: 20px;
    }
}



/* Quiz container styles */
.quiz-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.quiz-container h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #333;
}

.quiz-container input,
.quiz-container select,
.quiz-container button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #000;
}

.quiz-container input[type="text"],
.quiz-container input[type="number"],
.quiz-container input[type="file"] {
    width: 90%;
    display: inline-block;
}

.quiz-container .question-box {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.quiz-container .question-box input {
    width: 100%;
    margin-bottom: 10px;
}

.quiz-container .question-box div {
    margin-bottom: 10px;
}



/* Share and results section */
#share-container {
    margin-top: 20px;
}

#share-container input {
    width: 70%;
}

#share-container button {
    width: 25%;
}

/* Responsive design */
@media (max-width: 600px) {
    .quiz-container {
        padding: 10px;
    }

    .quiz-container input,
    .quiz-container select,
    .quiz-container button {
        font-size: 0.9em;
    }

    #share-container input,
    #share-container button {
        width: 100%;
    }
}
