﻿:root {
	--primary-color: #3498db;
	--secondary-color: #2ecc71;
	--background-color: #ecf0f1;
	--text-color: #34495e;
	--card-background: #ffffff;
}

body {
	font-family: "Roboto", sans-serif;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-color: var(--background-color);
	color: var(--text-color);
	margin: 0;
	padding: 0;
}

header {
	background-color: var(--primary-color);
	color: white;
	padding: 1rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#options {
	display: flex;
	flex-direction: row;
}

/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4);
	padding-top: 60px;
}

.modal-content {
	background-color: #fefefe;
	margin: 5% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	max-width: 300px;
}

form {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 40px;
}
form input {
	background-color: #1111;
	border: none;
	border-radius: 2px;
}
.acbutton {
	margin-top: 10px;
	transition: background-color 0.3s, color 0.3s;
}

.acbutton:hover,
.acbutton:focus {
	background-color: white;
	border: 1px solid var(--primary-color);
	color: var(--primary-color);
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

h1 {
	margin: 0;
	font-size: 1.5rem;
}




nav button {
	background-color: transparent;
	border: 1px solid white;
	color: white;
	padding: 0.5rem 1rem;
	margin-left: 1rem;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s;
}

nav button:hover {
	background-color: white;
	color: var(--primary-color);
}

main {
	display: flex;
	flex-grow: 1;
	min-height: 100%;
	justify-content: center;
	align-items: center;
	padding: 2rem;
}

.container {
	background-color: var(--card-background);
	border-radius: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	padding: 2rem;
	min-width: 450px;
	max-width: 600px;
	position: relative;
	display: grid;
}

#close-button {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	font-size: 1.2rem;
	color: #bdc3c7;
	cursor: pointer;
	transition: color 0.3s;
}


#close-button:hover {
	color: var(--text-color);
}

#flashcard {
	margin-bottom: 1.5rem;
}

#question,
#answer {
	font-size: 1.2rem;
	margin-bottom: 1rem;
}

#metadata {
	display: flex;
	justify-content: space-between;
	font-size: 0.9rem;
	color: #7f8c8d;
	margin-top: 12px;
}

#controls {
	display: flex;
	justify-content: space-between;
	column-gap:12px;
	row-gap:6px;
}

button {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.1s;
}

#toggle-answer {
	background-color: var(--primary-color);
	color: white;
}

#correct-answer {
	background-color: var(--secondary-color);
	color: white;
}

#incorrect-answer {
	background-color: #e74c3c;
	color: white;
}

button:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.loading-sentence {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.loading-word {
	width: 60px; /* average word length */
	height: 16px; /* height of a 16px character */
	background-color: lightgray;
	border-radius: 8px;
	margin-bottom: 8px;
}

footer {
	background-color: var(--primary-color);
	color: white;
	text-align: center;
	padding: 1rem;
	font-size: 0.9rem;
}

@media (max-width: 768px) {
	header {
		flex-direction: column;
		text-align: center;
	}

	nav {
		margin-top: 1rem;
	}

	nav button {
		margin: 0.5rem;
	}

	#controls {
		flex-direction: column;
	}

	button {
		margin-bottom: 0.5rem;
	}
}

@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400;500;600;700&display=swap");
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Quicksand", sans-serif;
}

section {
	position: absolute;
	width: 100vw;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 2px;
	background: black;
	flex-wrap: wrap;
	overflow: hidden;
}
section::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	background: linear-gradient(#000, #00f, #000);
	animation: animate 5s linear infinite;
}
@keyframes animate {
	0% {
		transform: translateY(-100%);
	}
	100% {
		transform: translateY(100%);
	}
}
section span {
	position: relative;
	display: block;
	width: calc(6.25vw - 2px);
	height: calc(6.25vw - 2px);
	background: #181818;
	z-index: 2;
	transition: 1.5s;
}
section span:hover {
	background: #00f;
	transition: 0s;
}

section .signin {
	position: absolute;
	width: 400px;
	background: #222;
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 40px;
	border-radius: 4px;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 9);
}
section .signin .content {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	gap: 40px;
}
section .signin .content h2 {
	font-size: 2em;
	color: #00f;
	text-transform: uppercase;
}
section .signin .content .form {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 25px;
}
section .signin .content .form .inputBox {
	position: relative;
	width: 100%;
}
section .signin .content .form .inputBox input {
	position: relative;
	width: 100%;
	background: #333;
	border: none;
	outline: none;
	padding: 25px 10px 7.5px;
	border-radius: 4px;
	color: #fff;
	font-weight: 500;
	font-size: 1em;
}
section .signin .content .form .inputBox i {
	position: absolute;
	left: 0;
	padding: 15px 10px;
	font-style: normal;
	color: #aaa;
	transition: 0.5s;
	pointer-events: none;
}
.signin .content .form .inputBox input:focus ~ i,
.signin .content .form .inputBox input:valid ~ i {
	transform: translateY(-7.5px);
	font-size: 0.8em;
	color: #fff;
}
.signin .content .form .links {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: space-between;
}
.signin .content .form .links a {
	color: #fff;
	text-decoration: none;
}
.signin .content .form .links a:nth-child(2) {
	color: #00f;
	font-weight: 600;
}
.signin .content .form .inputBox input[type="submit"] {
	padding: 10px;
	background: #00f;
	color: #000;
	font-weight: 600;
	font-size: 1.35em;
	letter-spacing: 0.05em;
	cursor: pointer;
}
input[type="submit"]:active {
	opacity: 0.6;
}
@media (max-width: 900px) {
	section span {
		width: calc(10vw - 2px);
		height: calc(10vw - 2px);
	}
}
@media (max-width: 600px) {
	section span {
		width: calc(20vw - 2px);
		height: calc(20vw - 2px);
	}
}

#content {
	display: flex;
    flex-direction: column;
    min-height: 100vh;
}
