@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

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

html, body {
	height: auto;
	min-height: 100vh;
	overflow-x: hidden;
	overflow-y: auto;
}

body {
	background-color: white;
	transition: background-color 0.3s, color 0.3s;
	color: #000;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	flex-direction: column;
}

body.dark-mode {
	background-color: #151f28;
	color: #ffffff;
}

.passwort-form i {
    cursor: pointer;
    margin-left: 10px;
}

body.dark-mode .index-container {
	background-color: #151f28;
}

body.dark-mode h1 {
	color: #ffffff;
}

.index-container {
	background-color: white;
	border-radius: 10px;
	padding: 20px;
	width: 100%;
	max-width: 500px;
	text-align: center;
}

.icon-container {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background-color: #F6F7F7;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto 20px auto;
}

.icon {
	width: 125px;
	height: 125px;
	border-radius: 50%;
	background-color: #fafafa;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

h1 {
	color: #1976D2;
}

.text {
	margin-top: 20px;
}

table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 12px 30px; /* Spaltenabstand vergrößert */
    text-align: left;
    border: 1px solid #ddd;
}

.remove-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.remove-btn:hover {
    background-color: #b02a37;
}

form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

form input[type="text"],
form input[type="password"] {
    padding: 10px;
    border-radius: 25px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    outline: none;
    font-size: 14px;
}

form button[name="create"] {
    background-color: #2bafcf;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

form button[name="create"]:hover {
    background-color: #57c8e3;
}

form button[name="create"] i {
    pointer-events: none;
}

.index-container span {
	color: #2bafcf;
}

.auswahl-container {
	margin-bottom: 20px;
}

.options button {
	background-color: #2bafcf;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.1);
	color: white;
	border: none;
	padding: 10px 20px;
	margin: 5px;
	border-radius: 5px;
	cursor: pointer;
	width: 100%;
	font-size: 16px;
	transition: background-color 0.3s ease;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
	line-height: 1.5;
	text-align: left;
}

.options button:hover {
	background-color: #57c8e3;
}

.quiz-container .options button {
	text-align: left;
}

.options button {
	text-align: center;
}

.button-row {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 20px;
}

.button-row .mode-toggle,
.button-row .feedback {
	margin-top: 0; /* Einzelmargin oben entfernen */
}

.mode-toggle {
	background-color: #2bafcf;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
	border: none;
	padding: 10px;
	border-radius: 50%;
	cursor: pointer;
	width: 50px;
	height: 50px;
	font-size: 20px;
	margin-top: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.mode-toggle:hover {
	background-color: #57c8e3;
}

.quiz-container {
	background-color: white;
	border-radius: 10px;
	padding: 20px;
	width: 100%;
	max-width: 500px;
	text-align: center;
}

body.dark-mode .quiz-container {
	background-color: #151f28;	
}

.quiz-container span {
	color: #2bafcf;
}

.question-image {
	width: 100%;
	max-width: 200px;
	margin: 0 auto;
	margin-top: 20px;
	display: none;
	border-radius: 20px;
}

#question {
	width: 100%;
	box-sizing: border-box;
	padding: 10px;
	font-size: 1.2em;
	word-wrap: break-word;
	white-space: normal;
	overflow-wrap: break-word;
	line-height: 1.5;
	text-align: left;
}

.question-container {
	margin-bottom: 20px;
}

.feedback {
	background-color: #2bafcf;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
	border: none;
	padding: 10px;
	border-radius: 50%;
	cursor: pointer;
	width: 50px;
	height: 50px;
	font-size: 20px;
	margin-top: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.feedback:hover {
	background-color: #57c8e3;
}

.form-section {
    padding: 10px 40px 20px;
    width: 100%;
    max-width: 500px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    display: block;
}

.create-container {
	display: flex;
    align-items: center;
    gap: 10px;
}

form {
    display: block;
    width: 100%;
}

.form-group {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #16164d;
    display: block;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    font-size: 0.875rem;
    font-weight: 500;
    width: 100%;
    color: hsl(240, 54%, 15%);
    padding: 0.3rem;
    border: 2px solid #ccc;
    border-radius: 0.3rem;
    outline: none;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

#next-button {
	background-color: #2bafcf;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.1);	
	display: inline-block;
	margin: 20px auto;
	text-align: center;
	padding: 10px 20px;
	font-size: 16px;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

#next-button:hover {
	background-color: #57c8e3;
}

.result-container {
	display: none;
	text-align: center;
}

.result-container p {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 20px;
}

#incorrect-answers {
	background-color: #2bafcf;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.1);		
	max-height: 300px;
	overflow-y: auto;
	text-align: left;
	margin-bottom: 20px;
	padding: 10px;
	border-radius: 5px;
	color: white;
}

.result-container button {
	background-color: #2bafcf;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.1);	
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
}

.result-container button:hover {
	background-color: #57c8e3;
}

.video {
	width: 100%;
	max-width: 560px;
	aspect-ratio: 16 / 9;
	border: none;
	border-radius: 15px;
	display: block;
	margin: 0 auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back button {
	background-color: #2bafcf;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 4px 6px rgba(0, 0, 0, 0.1);
	color: white;
	border: none;
	padding: 10px 20px;
	margin: 5px;
	margin-top: 5px;
	border-radius: 5px;
	cursor: pointer;
	width: 100%;
	font-size: 16px;
	transition: background-color 0.3s ease;
}

.back button:hover {
	background-color: #57c8e3;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

#benutzer-tabelle {
    min-width: 500px;
}

@media (max-width: 600px) {
    .create-container {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}

@media (max-width: 600px) {
	h1 {
		font-size: 1.5rem;
	}

	.icon {
		width: 90px;
		height: 90px;
	}

	.options button {
		font-size: 0.95rem;
		padding: 12px;
	}

	#question {
		font-size: 1rem;
	}

	.mode-toggle,
	.feedback {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}

	.quiz-container,
	.index-container,
	.form-section {
		width: 100%;
		max-width: 100%;
		padding: 15px;
	}
}