/* General body styling */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    padding: 20px;
}

/* Container for the quiz */
.quiz-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: myAnim 2s ease 0s 1 normal forwards;
}

@keyframes myAnim {
	0% {
		opacity: 0;
		transform: translateX(50px);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}
/* Step styling with transitions */
.step {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Active step styling */
.step.active {
    display: block;
    opacity: 1;
}


/* Fade in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade out to left animation */
@keyframes fadeOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-200%);
    }
}

/* Apply fade in animation */
.step.fade-in {
    animation: fadeIn 1.0s forwards;
}

/* Apply fade out to left animation */
.step.fade-out-left {
    animation: fadeOutLeft 1.0s forwards;
}

/* Content styling */
.content {
    text-align: left;
}

/* Options container styling */
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Individual option styling */
.option {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}
.option label {
    padding: 20px;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
/* Option hover effect */
.option:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

/* Radio and checkbox input styling */
.option input[type="radio"], .option input[type="checkbox"] {
    margin-right: 15px;
}

/* Text animation for step 5 */
.fade-in-text {
    opacity: 0;
    transform: translateX(100%);
    animation: fadeIn 2s forwards;
}

/* Next button styling */
.next-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

/* Next button hover effect */
.next-btn:hover {
    background: #333;
}

/* Keyframes for fading in words */
@keyframes fadeInWord {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
