
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Body */
body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.header {
    background-color: #4CAF50;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #4CAF50;
    box-shadow: none;
    padding: 10px 20px;
}

.header .logo img {
    height: 60px;
}

/* Main */
.main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.container {
    width: 90%;
    max-width: 900px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    position: relative;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.container:hover {
    transform: scale(1.02);
}

/* Front Page */
#front-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.start-text {
    margin-bottom: 20px;
}

.start-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #333;
    animation: fadeInDown 1s;
}

.start-text p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #666;
    animation: fadeIn 1.5s;
}

.selections {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 2s;
}

.selection {
    margin-bottom: 20px;
    width: 100%;
}

.selection label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    text-align: center;
}

.selection select {
    width: 100%;
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: center;
    transition: border-color 0.3s ease;
}

.selection select:focus {
    outline: none;
    border-color: #4CAF50;
}

.selections button {
    background-color: #2196F3;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    border-radius: 5px;
    width: 100%;
}

.selections button:hover {
    background-color: #0b7dda;
}

/* Quiz */
#quiz {
    display: none;
}

.question {
    margin-bottom: 20px;
}

.question h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.option {
    display: flex;
    align-items: center;
}

.option input[type="radio"] {
    display: none;
}

.option label {
    display: block;
    padding: 10px;
    border-radius: 5px;
    background-color: #f5f5f5;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.option label:hover {
    background-color: #e0e0e0;
}

input[type="radio"]:checked + label {
    background-color: #4CAF50;
    color: #fff;
}

#submit,
#reset,
#back-button {
    width: 100%;
    margin-top: 20px;
    padding: 12px 0;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    border-radius: 5px;
}

#submit:hover,
#reset:hover,
#back-button:hover {
    background-color: #45a049;
}

#reset {
    background-color: #f44336;
}

#reset:hover {
    background-color: #da190b;
}

#timer,
#points {
    margin-top: 20px;
    font-size: 1.2em;
    color: #333;
}

/* Animation */
#loading-animation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.lds-ring {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 64px;
    height: 64px;
    margin: 8px;
    border: 8px solid #4CAF50;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #4CAF50 transparent transparent transparent;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background-color: #4CAF50;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    position: relative;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.footer .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer .footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}

.footer .footer-text {
    font-size: 0.9rem;
    color: #fff;
}
