@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
}

a {
    text-decoration: none;
    color: #333;
}

img {
    object-fit: cover;
}

body {
    background-color: #f6f6f6;
}

nav {
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav .logo {
    display: flex; /* Use flexbox to align items */
    align-items: center; /* Center the items vertically */
}

.logo-image {
    width: 50px; /* Adjust the width as needed */
    height: 50px; /* Keep it square for a rounded effect */
    border-radius: 50%; /* Make the image rounded */
    margin-right: 20px; /* Space between the logo and text */
}

nav a.logo {
    display: flex;
    align-items: center;
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

nav .logo span {
    margin-left: -10px; /* Adjust this value to move the text to the left */
}

nav .links {
    display: flex;
    gap: 20px;
}

nav .links a {
    position: relative;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s ease;
}

nav .links a:hover {
    color: #ff5722;
}

nav .links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 100%;
    background-color: #ff5722;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav .links a:hover::after {
    transform: scaleX(1);
}


.quiz-title {
    text-align: center;
    padding: 1rem;
    background-color: #f0f8ff;
}

.quiz-title h2 {
    font-size: 2rem;
    color: #ff5722;
}



@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300&family=Lato:wght@400;700&display=swap');


.quiz {
    font-family: 'Lato', sans-serif;   
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    padding: 20px;
    background: url("./assets/img/carbon.jpg");
    background-size: cover;
}

.container {
  background-color: rgba(255, 255, 255, 0.6);
     padding: 2em;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 600px;
    justify-content: center;
   
}

.title h1 {
    font-size: 2em;
    color: #2c3e50;
}

.title p {
    font-size: 1.2em;
    color: #0d0d0d;
}

.quizbody {
    margin-top: 1em;
    margin-bottom: 1em;
}

.question {
    background-color: #eaf2f8;
    padding: 1em;
    border-radius: 8px;
}

.questiontext {
    font-size: 1.5em;
    color: #2c3e50;
}

.hint {
    color: #e74c3c;
    font-size: 1em;
    margin: 1em 0;
    display: none;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: 1em;
}

button {
    padding: 0.8em 2em;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    color: white;
    background-color: #1abc9c;
    transition: background-color 0.3s;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

button.yes {
    background-color: #1abc9c;
}

button.no {
    background-color: #e74c3c;
}

button.yes:hover, button.no:hover {
    background-color: #16a085;
}

button.nextq {
    margin-top: 1em;
    background-color: #ff5722;
}

.next-question-container {
    margin-top: 1em;
}


footer {
    background-color: #333;
    color: #fff;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

footer h3 {
    font-size: 36px;
}

footer .links a {
    color: #aaa;
    margin: 0 10px;
}

footer .links a:hover {
    color: #fff;
}

footer .social i {
    font-size: 24px;
    color: #ff5722;
    margin: 0 10px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .quiz-title h2 {
        font-size: 1.5rem;
    }

    nav .links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
