/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: #F4F4F4 url('abstract-5035778_1280.png') no-repeat center center fixed;
    background-size: cover;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header Styles */
header {
    background-color: rgba(0, 51, 102, 0.9);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

h1 {
    margin: 0;
    font-size: 28px;
}

/* Tab Styles */
.tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.tab {
    padding: 15px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    margin: 0 5px;
}

.tab:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Quiz Panel Styles */
.quiz-panel {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 12px 20px;
    margin: 5px 0;
    color: white;
    background-color: #007BFF; /* Primary blue color */
    border: none;
    border-radius: 8px; /* Rounded edges */
    cursor: pointer;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
    width: 100%; /* Full width for better mobile experience */
    max-width: 300px; /* Limit max width */
}

.button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px);
}

/* Progress Bar Styles */
.progress {
    height: 20px;
    background-color: #ddd;
    border-radius: 5px;
    margin: 20px 0;
}

.progress-bar {
    height: 100%;
    width: 70%;
    background-color: #28A745;
    transition: width 0.5s;
}

/* Result Styles */
.result {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 20px;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Certificate Styles */
#certificate {
    display: none;
    text-align: center;
    background-color: white;
    border: 2px solid #28A745;
    padding: 20px;
    border-radius: 8px;
    margin: 10px auto;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#certificate h2 {
    color: #28A745;
}

/* Footer Styles */
footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

/* Responsive Styles */
@media (max-width: 600px) {
    header, footer {
        font-size: 14px;
    }
    .tab {
        padding: 10px;
    }
    .quiz-panel {
        padding: 20px;
    }
}