body {
    font-family: 'Nata Sans', 'Tiro Bangla', serif;
    margin: 0;
    background-color: #f7f8fa;
}

.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    min-height: calc(100vh - 160px);
}

.banner {
    background-color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.banner-logo img {
    height: 110px;
}

.tagline {
    font-size: 0.6em;
    color: #111;
    margin: -5px 0 0 0;
    text-align: left;
    /* font-weight: bold; */
}

.banner-search form {
    display: flex;
}

.banner-search input {
    width: 300px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px 0 0 20px;
    outline: none;
}

.banner-search button {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-left: none;
    background-color: #f0f0f0;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
}

.banner-auth {
    display: flex;
    align-items: center;
}

.btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    margin-left: 10px;
    font-weight: bold;
}

.btn-login {
    background-color: white;
    color: #1865f2;
    border: none;
    border-radius: 2px;
}

.btn-signup {
    background-color: #1865f2;
    color: white;
    border: none;
    border-radius: 2px;
}

.btn-logout {
    background-color: #f44336;
    color: white;
    border: none;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    background-color: #f0f0f0;
}

footer a {
    margin: 0 15px;
    text-decoration: none;
    color: #555;
}

@media (max-width: 768px) {
    .breadcrumb-text {
        display: none;
    }

    .breadcrumb-container .breadcrumbs {
        font-size: 0.65em;
        padding-left: 0.5em;
    }

    .banner {
        flex-direction: column;
    }

    .banner-logo {
        margin-bottom: 15px;
    }

    .banner-search-auth-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .banner-search {
        width: 40%;
    }

    .banner-search input {
        width: calc(100% - 45px);
    }

    .btn {
        font-size: 0.9em;
        padding: 8px 15px;
    }
}

@media (min-width: 769px) {
    .banner-search-auth-container {
        display: contents;
    }
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.grid-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s;
}

.grid-item:hover {
    border-color: #bbb;
}

.book-item .book-cover {
    position: relative;
    width: 100%;
    padding-bottom: 141%; /* Aspect ratio for book covers */
}

.book-item .book-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s;
}

.book-item .book-cover .color {
    opacity: 0;
}

.book-item:hover .book-cover .color {
    opacity: 1;
}

.book-item:hover .book-cover .grayscale {
    opacity: 0;
}

#timer {
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.mcq ul {
    list-style-type: none;
    padding: 0;
}

.mcq li {
    margin-bottom: 10px;
}

.correct {
    color: green;
}

.incorrect {
    color: red;
}

.profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
}

.breadcrumb-container {
    padding: 10px 20px;
    background-color: #f8f9fa;
}

.breadcrumbs {
    font-size: 0.9em;
    margin: 0 auto;
    max-width: 800px;
    padding-left: 1em;
}

.breadcrumbs a {
    text-decoration: none;
    color: #1865f2;
}

.breadcrumbs span {
    color: #555;
}

.chapter-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chapter-item {
    display: block;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
}

.chapter-item:hover {
    border-color: #bbb;
}

.chapter-serial {
    font-weight: bold;
    margin-right: 10px;
    color: #1865f2;
}

.chapter-name {
    font-size: 1.1em;
}

.share-container {
    text-align: right;
    margin: 20px auto;
    max-width: 800px;
    padding: 0 20px;
}

.share-button {
    display: inline;
    align-items: center;
    justify-content: center;
    //width: 75px;
    //height: 75px;
    font-size: 1.6em;
    color: #ccc;
    transition: color 0.2s;
    vertical-align: middle;
    //border-radius: 5px;
    //border: 1px solid #ccc;
}

.share-button:hover {
    color: #1877f2;
}

/* Styles for intro_banner */
.quiz-steps-container {
    width: 100%; /* Default for smaller screens */
    margin: 20px auto; /* Center the container */
    //padding: 20px;
    background-color: #e0f7fa; /* Light blue background for playful feel */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
}

@media (min-width: 768px) {
    .quiz-steps-container {
        width: 98%; /* 80% width for desktop screens */
    }
}

.steps-title {
    color: #00796b; /* Dark teal color */
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: bold;
}

.steps-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 15px;
}

.step-box {
    background-color: #ffffff;
    border: 2px solid #00796b;
    border-radius: 8px;
    padding: 15px 20px;
    text-align: center;
    flex: 1; /* Allow boxes to grow and shrink */
    min-width: 120px; /* Minimum width for step boxes */
    max-width: 180px; /* Maximum width for step boxes */
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.step-number {
    font-size: 2em;
    font-weight: bold;
    color: #00796b;
    margin-bottom: 5px;
}

.step-text {
    font-size: 0.9em;
    color: #333;
}

.arrow {
    font-size: 1.5em;
    color: #00796b;
    margin: 0 10px;
}

.final-instruction {
    margin-top: 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: #004d40; /* Even darker teal */
}

/*
@media (max-width: 600px) {
    .steps-row {
        flex-direction: column;
    }
    .arrow {
        transform: rotate(90deg); 
        margin: 10px 0;
    }
}
*/

/* front large banner style */
        .quiz-steps-container {
            background: #f7f5f0;
            padding: 30px 20px; /* Reduced padding for 50% smaller height */
            font-family: 'Tiro Bangla', serif;
            overflow: hidden;
            position: relative;
        }
        
        .quiz-steps-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23d4af9a" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
            pointer-events: none;
        }

        .steps-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .steps-title {
            text-align: center;
            color: #5d4037;
            font-size: 2.5rem;
            font-weight: 600;
            margin-bottom: 50px;
        }

        .steps-row {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px; /* Reduced gap for smaller screens */
            margin-bottom: 40px;
            flex-wrap: wrap; /* Allow wrapping if necessary, but aim for single row */
        }

        .step-box {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 20px 15px; /* Reduced padding for smaller height */
            text-align: center;
            box-shadow: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.07);
            border: 1px solid rgba(255,255,255,0.2);
            position: relative;
            flex: 1;
            min-width: 100px; /* Adjusted min-width to fit in a row */
            max-width: 220px; /* Adjusted max-width */
            min-height: 80px; /* Adjusted min-height */
            display: flex;
            flex-direction: column; /* Ensure content stacks vertically within box */
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            transform: translateY(0);
        }

        .step-box:hover {
            transform: translateY(-8px);
            box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 10px 25px rgba(0,0,0,0.1);
        }

        .step-number {
            background: rgba(255, 255, 255, 0.9);
            color: #2d3748;
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: absolute;
            top: 12px;
            left: 12px;
            font-size: 0.9rem;
            font-weight: 600;
            border: 1px solid rgba(255,255,255,0.5);
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }

        .step-text {
            color: #2d3748;
            font-size: 1.6rem;
            font-weight: 600;
            line-height: 1.6;
            margin: 0;
            padding-top: 10px;
        }

        .arrow {
            color: #8d6e63;
            font-size: 3.5rem;
            opacity: 0.8;
            animation: pulse 2s ease-in-out infinite;
            flex-shrink: 0;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.6; transform: scale(1); }
            50% { opacity: 1; transform: scale(1.1); }
        }

.final-instruction {
    text-align: center;
    color: #5d4037;
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 10px 30px;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 154, 0.3);
    max-width: 700px;
    margin: 0 auto;
}

/* Contact Form Specific Styles */
#contactForm .submit-button {
    width: auto;
    padding: 12px 24px;
    font-size: 1em;
    margin-top: 10px;
}

#contactForm .submit-button:hover {
    background-color: #1453cc;
    transform: none;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    min-height: 1.2em; /* Reserve space for messages */
}

.form-feedback.success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
    font-size: 1.5em;
    text-align: center;
}

.form-feedback.error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

hr {
    border: 0;
    height: 1px;
    background-color: #f0f0f0;
    margin: 30px 0;
}

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .quiz-steps-container {
                padding: 20px 15px; /* Adjusted padding for smaller height */
            }
            
            .steps-title {
                font-size: 2rem;
                margin-bottom: 20px; /* Adjusted margin */
            }
            
            .steps-row {
                flex-wrap: wrap; /* Allow wrapping if needed, but aim for single row */
                gap: 8px; /* Further reduced gap for very small screens */
            }
            
            .step-box {
                padding: 15px 10px; /* Adjusted padding */
                min-width: 90px; /* Adjusted min-width to fit 3 in a row */
                max-width: 30%; /* Max width to encourage 3 per row */
                min-height: 70px; /* Adjusted min-height */
            }
            
            .step-number {
                width: 20px;
                height: 20px;
                font-size: 0.7rem;
                top: 8px;
                left: 8px;
            }
            
            .step-text {
                font-size: 0.8rem; /* Adjusted font size */
                line-height: 1.2;
            }
            
            .arrow {
                font-size: 2rem; /* Adjusted arrow size */
                margin: 0 5px; /* Adjusted margin */
                transform: none; /* Ensure arrows remain horizontal */
            }
            
            .final-instruction {
                font-size: 1rem; /* Adjusted font size */
                padding: 15px 20px; /* Adjusted padding */
            }
        }

        @media (max-width: 480px) {
            .quiz-steps-container {
                padding: 15px 10px;
            }
            .steps-title {
                font-size: 1.8rem;
            }
            .step-box {
                min-width: 80px;
                padding: 12px 8px;
                min-height: 60px;
            }
            .step-text {
                font-size: 0.75rem;
            }
            .arrow {
                font-size: 1.5rem;
            }
            .final-instruction {
                font-size: 0.9rem;
            }
        }

        @media (max-width: 360px) {
            .quiz-steps-container {
                padding: 10px 5px;
            }
            .steps-title {
                font-size: 1.5rem;
            }
            .step-box {
                min-width: 70px;
                padding: 10px 5px;
                min-height: 50px;
            }
            .step-text {
                font-size: 0.7rem;
            }
            .arrow {
                font-size: 1.2rem;
            }
            .final-instruction {
                font-size: 0.8rem;
            }
        }

        /* Accessibility */
        @media (prefers-reduced-motion: reduce) {
            .arrow {
                animation: none;
            }
            
            .step-box {
                transition: none;
            }
            
            .step-box:hover {
                transform: none;
            }
        }
