/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

/* Container for forms and questions */
.container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    animation: fadeIn 1s ease-in-out;
}

/* Headings */
h1 {
    color: #0078d7;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

/* Input fields */
input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    outline: none;
}

input:focus, select:focus {
    /*border-color: #0078d7;
    box-shadow: 0 0 5px rgba(0, 120, 215, 0.5);
	*/
	border: 2px solid #0078d7;
	box-shadow: none;
}

/* Buttons */
button {
    background-color: #0078d7;
    color: #fff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

button.submit-button {
	margin-top: 20px;
}

button:hover {
    background-color: #005ba1;
    transform: scale(1.05); /* Slightly enlarges the button */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Adds shadow on hover */
}

/* Scrollable Container */
.scrollable-container {
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid #ccc;
	border-radius: 5px;
	padding: 10px;
	background-color: #fff;
}

/* Question spacing */
.question{
	margin: 15px 0;
	padding: 10px;
	background-color: #f9f9ff;
	border-radius: 5px;
	border: 1px solid #e0e0e0;
}

select {
	width: 100%;
	padding: 10px;
	margin-top: 5px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-size: 1rem;
	background-color: #fff;
}

select option[value=""] {
	color: #999;
}

select:focus {
	border-color: #0078d7;
	box-shadow: 0 0 5px rgba(0,120, 215, 0.5);
}

.invalid {
	border: 2px solid red;
	background-color: #ffe6e6;
}

/* Hide elements dynamically */
.hidden {
    display: none;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
	button, input, select {
		font-size: 1.2rem;
		padding: 12px;
	}
	.container {
		padding: 20px;
	}
	button.submit-button {
	margin-top: 20px;
	}
}

#riddle {
	font-family: 'Garamond', serif;
	font-size: 1.7rem;
	text-align: center;
	color: #2b2b2b;
	font-style: italic;
	margin-bottom: 20px;
	line-height: 1.5;
}
#step4 h2{
	margin-bottom: 10px;
}
#step5 h2{
	margin-bottom: 10px;
}

input#password {
	font-family: 'Courier-New', monospace;
	font-size: 1.2rem;
}