/* assets/css/style.css */

:root {
    --primary-green: #4CAF50; /* Example green from image */
    --light-green: #e8f5e9;
    --dark-green: #388E3C;
    --gray-bg: #f8f8f8;
    --text-color: #333;
    --secondary-text: #666;
    --border-color: #ddd;
    --card-hover-border: #aed581; /* Lighter green for hover */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-bg);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align content to the top */
    min-height: 100vh; /* Full viewport height */
    padding: 20px 0; /* Add some padding top/bottom */
}

.tagline {
    font-size: 1em;
    color: var(--secondary-text);
    margin-top: 10px;
    display: block;
}

.container {
    /* background-color: #fff; */
    /*
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    */
    padding: 25px;
    max-width: 600px; /* Max width for desktop */
    width: 95%; /* Responsive width */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-header {
    text-align: center;
    margin-bottom: 20px;
}

.header-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.main-header h1 {
    font-size: 1.8em;
    color: var(--text-color);
    margin-bottom: 5px;
}

.quiz-list-grid {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 15px;
}

.quiz-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    padding: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quiz-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.quiz-icon {
    font-size: 2.2em;
    margin-right: 15px;
    line-height: 1; /* Ensure icon is vertically centered */
}

.quiz-info h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: var(--text-color);
}

.quiz-info p {
    font-size: 0.9em;
    color: var(--secondary-text);
}

.no-quiz-message {
    text-align: center;
    color: var(--secondary-text);
    padding: 20px;
    background-color: var(--light-green);
    border-radius: 8px;
}

.main-footer {
    text-align: center;
    padding-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none;
}

.btn-continue {
    background-color: var(--primary-green);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-continue:hover {
    background-color: var(--dark-green);
    transform: translateY(-1px);
}

/* Responsiveness for wider screens */
@media (min-width: 768px) {
    .container {
        padding: 35px;
    }

    .main-header h1 {
        font-size: 2.2em;
    }

    .quiz-list-grid {
        /* If you want multiple columns on desktop, use grid or flex-wrap */
        /* display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; */
    }

    .quiz-card {
        padding: 20px;
    }

    .quiz-icon {
        font-size: 2.5em;
    }

    .quiz-info h3 {
        font-size: 1.2em;
    }

    .quiz-info p {
        font-size: 1em;
    }

    .btn-continue {
        padding: 15px 30px;
    }
}

/* Specific styling for the green bubble in the image */
/* This is a simple approximation. For exact match, more complex SVG/CSS might be needed */
.main-header {
    position: relative;
    padding-top: 30px; /* Make space for the bubble */
}

.header-icon {
    position: absolute;
    top: -10px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    /*
    background-color: var(--primary-green);
    */
    border-radius: 50%;
    width: 60px; /* Size of the bubble */
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    /*
    color: white;
    font-size: 2.5em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
    z-index: 10;
}

/* Speech bubble shape for the header */
.main-header h1 {
    background-color: var(--light-green); /* Background for the bubble */
    border-radius: 0px;
    padding: 20px 25px;
    padding-top: 40px; /* Adjust padding to make space for the icon */
    position: relative;
    font-size: 1.4em; /* Adjust font size to fit bubble */
    color: var(--text-color);
}

.main-header h1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 0;
    border: 15px solid transparent;
    border-bottom-color: var(--light-green); /* Triangle for speech bubble */
    border-top: 0;
    transform: translateX(-50%) translateY(-15px); /* Position the triangle */
    filter: drop-shadow(0 -2px 1px rgba(0,0,0,0.05)); /* Subtle shadow for the triangle */
}

/* Adjust header-icon positioning for the green bubble */
.header-icon {
    top: 5px; /* Position the icon inside the bubble */
    font-size: 1.8em; /* Smaller icon inside the bubble */
    width: 45px;
    height: 45px;
}