body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
}

h1, h2 {
    text-align: center;
    color: #333;
}

h1 {
    margin-bottom: 30px;
    font-size: 2.5rem;
    font-weight: bold;
}

.back-to-quizzes, .back-to-dashboard {
    display: block;
    text-align: center;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #4267b2;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, opacity 0.3s ease;
    max-width: 150px;
    opacity: 1;
}

.back-to-quizzes:hover, .back-to-dashboard:hover {
    background-color: #2a4365;
    opacity: 0.7;
}

.quiz-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 80%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.quiz-section:hover {
    opacity: 0.7;
}

.quiz-categories {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}



.quiz-image-container {
    position: relative;
    display: block;
    overflow: hidden;
}

.quiz-image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.5s ease-in-out;
}

.quiz-image-container:hover img {
    transform: scale(1.05);
     opacity: 0.7;
}

.quiz-name-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-image-container:hover .quiz-name-overlay {
    opacity: 1;
}
  .quiz-header {
        text-align: center;
        color: #4267b2;
        margin-bottom: 30px;
        font-size: 2.5rem;
        font-weight: bold;
    }

    .quiz-categories {
        list-style: none;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-bottom: 30px;
    }

    .quiz-category {
        width: calc(25% - 20px); /* Adjust the width for your screen */
        min-width: 200px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: transform 0.2s ease-in-out;
    }

    .quiz-category:hover {
        transform: scale(1.05);
    }

    .quiz-image-container {
        position: relative;
        display: block;
        overflow: hidden;
    }

  

    .quiz-name-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.5rem;
        color: white;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        opacity: .8;
        transition: opacity 0.3s ease-in-out;
    }

    .quiz-image-container:hover .quiz-name-overlay {
        opacity: 1;
        font-size: 2.2rem;
    }

    .quiz-link {
        display: block;
        text-decoration: none;
        color: inherit;
    }

    .quiz-link:hover {
        text-decoration: none;
    }

    .coming-soon {
        font-size: 1.2rem;
        color: #aaa;
        text-align: center;
        padding: 15px 0;
    }

    .back-to-dashboard {
        display: block;
        text-align: center;
        margin-top: 30px;
        padding: 10px 20px;
        background-color: #4267b2;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    .back-to-dashboard:hover {
        background-color: #2a4365;
    }