
/* Base styles */
body {
    margin: 0;
    padding: 20px;
    font-family: "Arial", sans-serif;
    background-color: #f0f0f0;
    color: #333;
}

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

/* Titles and text */
.quiz-title {
    text-align: center;
    color: #007bff;
}

.question-text, .answered-text {
    color: #555;
    margin: 10px 0;
     font-size: 25px;
}

/* Question items and images */
.question-item {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.question-image {
    cursor: pointer;
    width: auto;
    max-width: 300px; /* Adjusted for consistency */
    height: auto;
    display: block;
    margin-right: 20px; /* Space for 'record again' link on the right */
     margin-left: 20px; /* Space for 'question' link on the left */
    transition: max-width 0.5s ease; /* Smooth transition for resizing */
}

.question-image.answered {
    max-width: 50px; /* Smaller size for answered questions */
}

/* Buttons */
.record-btn, .stop-btn, .re-record-link {
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.record-btn, .re-record-link {
    background-color: #28a745;
    color: white;
}

.stop-btn {
    background-color: #dc3545;
    color: white;
}

/* Link styles */
a, .dashboard-link, .record-again-link {
    color: #007bff;
    text-decoration: none;
}

a:hover, .dashboard-link:hover, .record-again-link:hover {
    text-decoration: underline;
}

/* Answered text and re-record link */
.answered-text {
    font-size: 18px; /* Making the text bigger */
    display: inline-block; /* Aligning with the image */
    margin-top: 0; /* Adjust as needed */
    
}

.re-record-link {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-left: auto; /* Aligns the link to the right */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .record-btn, .stop-btn, .re-record-link {
        font-size: 14px;
        padding: 8px 12px;
    }
}

/* Additional elements and adjustments */
.header, .footer {
    background-color: #007bff;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.main {
    margin: 20px 0;
}

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

.grid-item {
    background-color: #ff3333;
    padding: 20px;
    border-radius: 8px;
    color: white;
    text-align: center;
}

button, .button-recording, .button-stop {
    background-color: #28a745;
    color: white;
}

.button-recording:hover, .button-stop:hover {
    opacity: 0.8;
}

.not-answered {
    color: #dc3545;
    font-weight: bold;
}

































/* General Reset */
body, h1, p, a {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    text-align: center;
}

body {
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
header {
    background: #0073e6;
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
}

#headerLogo {
    height: 50px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #ffcc00;
}

/* Container */
.container {
    margin: 50px auto;
    padding: 20px;
    max-width: 600px;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    margin-bottom: 20px;
    color: #0073e6;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #0073e6;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.3s;
}

.btn:hover {
    background: #005bb5;
}

/* Footer */
footer {
    margin-top: 50px;
    background: #0073e6;
    padding: 20px 0;
}

#footerImage {
    height: 80px;
}
