/* Some colors from http://www.colorcombos.com/color-schemes/7/ColorCombo7.html */

html {
	font-size: 1rem;
}

@media (max-width: 1000px) {
	html {
		font-size: 0.8rem;
	}
}

div {
	display: flex;
}

ul,
ol {
	display: flex;
	list-style-type: none;
	padding: 0;
	margin: 0;
}

h1 {
	font-size: 2em;
}

button,
.button {
	display: flex;
	gap: 0.5em;
	padding: 0.5em;
	border: 1.5px black solid;
	border-radius: 8px;
	background: #ADD445;
	font-size: inherit;
}

button:not(:disabled),
.button:not(:disabled) {
	cursor: pointer;
}

button svg,
.button svg {
	display: inline-block;
	margin-right: 7px;
}

button.disabled,
.button.disabled {
	cursor: default;
	color: lightgray;
	border-color: lightgray;
}

a.button {
	color: black;
	text-decoration: none;
}

h1 a,
h2 a,
h3 a,
h4 a {
	color: inherit;
	text-decoration: none;
}

.tiles {
	display: grid;
	grid-gap: 10px;
}

.fa-triangle-exclamation {
	color: #EED202;
}

.tiles>*,
#dashboard-page .user-area-content,
#test-component .test-results .resources-gained,
#test-component .test-results .words-studied,
.course-settings>*,
#import-vocab-page #import-file-types>*,
#import-memrise-progress-page .progresses>* {
	border: solid 2px black;
	border-radius: 7px;
	padding: 10px;
}

.actions-icon {
	width: 30px;
	cursor: pointer;
	justify-content: center;
}

.dropdown-menu {
	margin: 0;
	padding: 0;
	border: solid black 1px;
	background: white;
	flex-direction: column;
}

.dropdown-menu li {
	cursor: pointer;
	white-space: nowrap;
	padding: 0.5em;
}

.dropdown-menu li svg {
	margin-right: 1ex;
}

.error {
	display: block;
}

body {
	background: url(/img/background-6b06a004800017698d24.jpg) fixed;
	display: grid;
	width: 100%;
	align-content: center;
	font-size: 17.6px;
}

.editor-and-toolbar {
	flex-direction: column;
}

.editor-and-toolbar .toolbar {
	border: 1px solid black;
}

.editor-and-toolbar button {
	background: white;
	border: 0;
	border-radius: initial;
}

.editor-and-toolbar .toolbar button svg {
	margin-right: 0;
}

.editor-and-toolbar .editor {
	display: flex;
	flex: 1;
	border: 1px solid black;
	min-height: 5em;
}

.editor-and-toolbar .editor .ql-editor {
	margin: 0 2px;
}

.ql-editor {
	flex: 1;
	flex-direction: column;
}

.ql-editor p {
	margin-top: 0;
	margin-bottom: 0;
}

#app>div {
	flex: 1;
	justify-content: center;
}

#page-template {
	background: white;
	min-height: 500px;
	padding: 1em;
	flex-direction: column;
	margin: 0.5em;
}

#page-template.narrow {
	flex-direction: column;
	width: 660px;
}

#not-logged-in-footer {
	margin-top: 4em;
	border-top: 1px dashed black;
	padding-top: 1em;
}

#not-logged-in-footer .menu-links {
	display: flex;
}

#page-template.wide {
	width: 80vw;
}

.top-section {
	justify-content: space-between;
	gap: 0.8em;
	margin-bottom: 0.5em;
}

#course-template .course-name {
	margin-top: 0.5em;
	margin-bottom: 0.2em;
}

#course-template .course-name a {
	text-decoration: none;
}

.top-section #top-level-links {
	display: flex;
	align-items: center;
}

.top-section #top-level-links ol {
	margin-top: 0;
	margin-bottom: 0;
}

.top-section #top-level-links ol li {
	display: inline-block;
}

#page-content {
	flex: 1;
	flex-direction: column;
	max-width: 100%;
}

#page-content>.loading:first-child:last-child,
#page-content>.error:first-child:last-child,
#dashboard-page .courses-area .loading,
#account-page #page-content .loading {
	align-self: center;
	margin-block-start: auto;
	margin-block-end: auto;
}

#login-page h2 {
	margin-top: 2em;
}

form .inputs {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-column-gap: 20px;
	grid-row-gap: 1em;
	margin-bottom: 0.5em;
	align-items: center;
}

form .inputs label,
form .inputs label {
	align-content: center;
}

form .inputs input:not([type="checkbox"]),
form .inputs select {
	width: 200px;
}

form .button-and-spinner {
	margin-top: 1em;
}

#login-page #wrong-login-credentials {
	padding: 5px;
	border-color: red;
	border-style: solid;
	border-width: 2px;
	margin-top: 2em;
	margin-bottom: -1em;
}

#registration-page #registration-error,
#activate-account-page #activation-error {
	padding: 5px;
	border-color: red;
	border-style: solid;
	border-width: 2px;
	margin-top: 2em;
	margin-bottom: 1em;
}

#registration-page #registration-success {
	flex-direction: column;
	gap: 1em;
}

#activate-account-page #activation-success a {
	margin-left: 5px;
}

#registration-page #registration-error {
	flex-direction: column;
	gap: 1em;
}

/* Thanks to http://phrogz.net/CSS/valign_in_body/block.html
   and https://www.kirupa.com/html5/make_body_take_up_full_browser_height.htm
   for tips on how to have a content area that takes up the full height
   of the browser and also expands with content. */

/* From https://www.paulirish.com/2012/box-sizing-border-box-ftw/ */

html {
	box-sizing: border-box;
	height: 100%;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

body {
	background-color: #77A603;
	margin: 0px;
	font-family: sans-serif;
	min-height: 100%;
}

a,
.link {
	color: #CF0000;
	text-decoration: underline;
}

h1 a,
h2 a {
	color: inherit;
}

input,
select {
	font-size: 12pt;
	padding: 3px;
}

/* Make some buttons look like links. */
/*
#log-out-button {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font-size: inherit;
	text-decoration: underline;
	cursor: pointer;
} */

#mainArea,
#welcomeMessageInner,
#loginRegister,
.footerContent {
	background-color: white;
	/*border: solid 3px #CF0000;*/
	margin-left: auto;
	margin-right: auto;
	padding: 15px;
}

.menu-links {
	gap: 10px;
}

.instructions {
	display: block;
	margin-top: 1em;
	margin-bottom: 1em;
	font-style: italic;
}

.button-and-spinner {
	align-items: center;
	gap: 0.5em;
}

.message {
	display: block;
	text-align: center;
}

.error:before,
.error:after {
	content: ' ';
	display: inline-block;
	background-color: red;
	width: 1.25ex;
	height: 1.25ex;
	margin-right: 1ex;
	margin-left: 1ex;
	margin-bottom: 0.5px;
}

.success:before,
.success:after {
	content: ' ';
	display: inline-block;
	background-color: #77A603;
	width: 1.25ex;
	height: 1.25ex;
	margin-right: 1ex;
	margin-left: 1ex;
	margin-bottom: 0.5px;
}

.shortcut-key-tooltip {
	background: white;
	padding: 0.25em 0.5em;
}

.shortcut-key-tooltip.border {
	border: black 1px solid;
}

#dashboard-page #page-content {
	display: grid;
	grid-template-columns: 1fr 120px;
	margin-top: 1em;
	gap: 1em;
}

#dashboard-page .courses-area {
	flex: 1;
	flex-direction: column;
}

#dashboard-page .courses-area>.message {
	text-align: center;
	margin-top: 6em;
}

#dashboard-page .course-tiles {
	grid-template-columns: 1fr 1fr 1fr;
}

#dashboard-page .user-area {
	flex-direction: column;
}

#dashboard-page .course-tiles h4,
#dashboard-page .user-area h4 {
	margin-top: 0;
	color: black;
}

#dashboard-page .course-tiles .bottom-things {
	justify-content: space-between;
	margin-top: 0.8em;
}

#dashboard-page .user-area h4 {
	margin-bottom: 0px;
	overflow-x: hidden;
}

.resources {
	flex-direction: column;
}

.resource {
	height: 50px;
	align-items: center;
	gap: 16px;
}

/* Spinners that should be aligned to the right. */

#loginButton .spinner,
#createAccountButton .spinner {
	left: unset;
	right: -30px;
}

/*** Modal Box ***/

/* From https://css-tricks.com/considerations-styling-modal */

.modal {
	display: table;
	width: 600px;
	max-width: 100%;
	height: 400px;
	max-height: 100%;
	position: fixed;
	z-index: 100;
	/* From https://css-tricks.com/considerations-styling-modal/#comment-1602896 */
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin: auto;
	background: white;
	box-shadow: 0 0 60px 10px rgba(0, 0, 0, 0.9);
}

.modal.closed {
	display: none;
}

.modalOverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 50;
	background: rgba(0, 0, 0, 0.6);
}

.modalContent {
	display: table-cell;
	padding: 20px;
	vertical-align: middle;
	text-align: center;
}

.modal .closeButton {
	position: absolute;
	z-index: 1;
	top: 10px;
	/* needs to look OK with or without scrollbar */
	right: 20px;
	border: 0;
	background: black;
	color: white;
	padding: 5px 10px;
	font-size: 1.3em;
}

.testing-directions {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 1em;
}

.review-test-types {
	display: flex;
	gap: 1em;
}

.testing-directions>*,
.review-test-types>*,
#test-component .question .multiple-choice-options>*,
#test-component .question .multiple-choice .i-dont-know {
	border: solid 1px black;
	border-radius: 5px;
	color: black;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.testing-directions>*,
#test-component .question .multiple-choice-options>*,
#test-component .question .multiple-choice .i-dont-know {
	position: relative;
	padding: 15px;
}

#test-component .question .multiple-choice-options.images>* {
	border: 0;
	padding: 0;
}

.review-test-types>* {
	padding: 10px;
}

.testing-directions>*.selected,
.review-test-types>*.selected {
	background-color: greenyellow;
}

.testing-directions>*:not(.selected):hover,
.review-test-types>*:not(.selected):hover,
#test-component .question .multiple-choice:not(.already-answered) .multiple-choice-options>*:hover,
#test-component .question .multiple-choice:not(.already-answered) .i-dont-know:hover {
	background-color: lightgreen;
}

.testing-directions>a,
.review-test-types>a {
	text-decoration: none;
}

/* From https://dev.to/crayoncode/css-morphable-clip-path-ribbons-1ld6 */
.ribbon {
	position: absolute;
	right: 10px;
	top: -3px;

	/* box-shadow will not work here */
	filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.3));
}

.ribbon .content {
	width: 20px;
	min-height: 50px;
	color: white;
	font-size: 1.25rem;
	text-align: center;
	font-weight: 400;
	/* background: #577a45; */
	background: #57C443 linear-gradient(45deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.25) 100%);
	padding: 8px 2px 4px;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 8px), 0 100%);
}

.study-badge {
	position: absolute;
	right: 8px;
	top: 8px;
}

.testing-directions .columnNames {
	flex-direction: column;
	font-size: 14px;
}

.testing-directions .examples {
	margin-top: 1em;
	text-align: center;
	flex-direction: column;
}

.testing-directions .examples .prompt {
	font-size: 30px;
	max-height: 1em;
	overflow-y: hidden;
}

.testing-directions .examples .answer {
	margin-top: 17px;
	max-height: 1em;
	overflow-y: hidden;
}

.testing-directions .examples .prompt span,
.testing-directions .examples .answer span {
	word-break: break-word;
}

.testing-directions .examples .image {
	justify-content: center;
}

.testing-directions .examples .image img {
	/* max-width: 1em; */
	max-height: 1em;
}

#course-template>#course-overview-page {
	flex-direction: column;
}

#course-overview-page #course-overview-top-section {
	margin-top: 0.5em;
	margin-bottom: 1em;
	/* align-items: start; */
	background: #EEEEEE;
	padding: 0.3em;
	gap: 1em;
}

#course-overview-page #course-overview-top-section .avatar-and-description {
	flex: 1;
	gap: 1em;
}

#course-overview-page #course-overview-top-section .course-avatar {
	object-fit: cover;
}

#course-overview-page #course-overview-top-section .course-name-and-description {
	flex-direction: column;
	flex: 1;
	margin-bottom: 0.3em;
}

#course-overview-page #course-overview-top-section .course-name-and-description h2 {
	margin: 0;
}

#course-overview-page #course-overview-top-section .course-info-and-begin-course-button {
	flex-direction: column;
	gap: 1em;
}

#course-overview-page #course-overview-top-section .course-info {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 8px;
	margin-top: 0.4em;
	margin-right: 0.4em;
	align-items: center;
}

#course-overview-page #course-overview-top-section .course-info>*,
#course-overview-page #course-overview-top-section .course-info>*>* {
	display: contents;
}

#course-overview-page #course-overview-top-section .course-info>*>span:first-of-type {
	display: none;
}

#course-overview-page #course-overview-top-section .begin-course-button {
	flex-direction: column;
	gap: 1em;
}

#course-overview-page .additional-links {
	flex-direction: column;
	margin-left: 1em;
	margin-right: 0.3em;
	margin-top: 0.2em;
}

#course-overview-page .additional-links h3 {
	margin-top: 0;
}

#course-overview-page .additional-links ul svg {
	margin-right: 1ex;
}

#course-overview-page .additional-links a {
	color: black;
}

#course-overview-page .overview-title-and-buttons {
	justify-content: space-between;
	margin-top: 1em;
	margin-bottom: 1em;
	gap: 1em;
}

#course-overview-page .overview-title-and-buttons h3 {
	margin-top: 0;
	margin-bottom: 0;
}

#course-overview-page .overview-title-and-buttons button.show-settings-button,
#edit-vocab-page #page-title-and-import-link button.show-settings-button {
	padding: 0;
	border: none;
	background: none;
}

#course-overview-page .overview-title-and-buttons .show-settings-button svg,
#edit-vocab-page #page-title-and-import-link button.show-settings-button svg {
	margin-right: 0;
}

.course-settings {
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2em;
}

.course-settings .title-and-buttons {
	margin-bottom: 1em;
	align-items: center;
}

#course-overview-page .course-settings .title-and-buttons {
	align-items: baseline;
}

.course-settings .error {
	margin-top: 2em;
	margin-bottom: 2em;
}

.course-settings .title-and-buttons svg {
	margin-right: 9px;
}

.course-settings h4 {
	margin: 0;
}

.course-settings .settings-description {
	flex-direction: column;
	gap: 1em;
}

.course-settings .settings-description div {
	display: revert;
}

.course-settings .settings-description ul {
	display: revert;
	list-style-type: revert;
	padding: revert;
	margin: revert;
}

.course-settings .find-and-replace-all .input-and-actions {
	display: flex;
	gap: 1rem;
}

.course-settings .find-and-replace-all .input-and-actions>div {
	display: flex;
	gap: 1ex;
	align-items: center;
}

#course-overview-page .course-description {
	margin-top: 1em;
}

#course-overview-page .course-entries-wrapper {
	flex-direction: column;
	overflow-x: auto;
	margin-top: 1em;
}

#course-overview-page .course-entries-wrapper .progress-and-ignored {
	justify-content: space-between;
	gap: 1em;
}

#course-overview-page .course-entries-wrapper .course-entries {
	margin-bottom: 1em;
}

#course-overview-page .search-and-settings {
	gap: 5em;
	align-items: center;
}

.course-links {
	flex-wrap: wrap;
}

.course-links>a:not(:last-child) {
	margin-right: 10px;
}

#select-words-screen {
	flex: 1;
	flex-direction: column;
}

#select-words-screen .page-title {
	margin-bottom: 0.5em;
}

#select-words-screen .page-contents {
	flex: 1;
	flex-direction: column;
}

#select-words-screen .page-contents>.loading {
	flex: 1;
	justify-content: center;
	align-items: center;
}

#select-words-screen #other-testing-directions {
	margin-top: 1em;
	flex-direction: column;
}

#select-words-screen #course-review-page-contents {
	flex-direction: column;
	gap: 1em;
}

#select-words-screen #course-review-page-contents>*:not(.begin-test-button-container) {
	flex-direction: column;
}

#course-review-page-contents .test-type {
	gap: 1em;
}

#course-review-page-contents .test-type label {
	display: flex;
	align-items: center;
}

#select-words-screen #testing-directions-container {
	flex-direction: column;
}

#select-words-screen #testing-directions-container #normal-testing-directions {
	align-items: center;
}

#select-words-screen #testing-directions-container #normal-testing-directions .testing-directions .actions {
	margin-left: 2em;
	margin-right: 1em;
}

#select-words-screen #num-ranges {
	display: grid;
	width: 25vw;
	grid-template-columns: auto minmax(2em, auto) 1fr;
	grid-column-gap: 1ex;
	grid-row-gap: 0.5em;
}

#select-words-screen #num-ranges>* {
	display: contents;
}

#select-words-screen #num-ranges input {
	padding: 0;
	margin: 0;
}

#select-words-screen #num-ranges .test-type>* {
	display: flex;
	align-items: center;
	margin-bottom: 0.5em;
}

#select-words-screen .num-words-to-study .value {
	padding-right: 1ex;
}

#test-component {
	flex: 1;
	width: 90%;
	align-self: center;
}

#test-component .question {
	flex: 1;
	flex-direction: column;
}

#test-component .question.multiple-choice {
	gap: 1em;
}

#test-component .question.multiple-choice .prompt {
	justify-content: center;
	margin-top: 1em;
	margin-bottom: 1em;
}

#test-component .question.multiple-choice .answer-area {
	gap: 2rem;
}

#test-component .question.multiple-choice .answer-instructions {
	text-align: center;
}

#test-component .question .multiple-choice {
	flex-direction: column;
	gap: 1rem;
}

#test-component .question .multiple-choice-options {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1rem;
	grid-auto-rows: 1fr;
}

#test-component .question .multiple-choice-options.four-options {
	grid-template-columns: 1fr 1fr;
}

#test-component .question .multiple-choice-options.images {
	gap: 0;
}

#test-component .question .multiple-choice-options .pausing-correct {
	border-color: #77A603;
	border-width: 3px;
	margin: -2px;
}

#test-component .question .multiple-choice-options.images .pausing-correct {
	background-color: #77A603;
}

#test-component .question .multiple-choice-options>*,
#test-component .question .multiple-choice .i-dont-know {
	position: relative;
	justify-content: center;
}

#test-component .question .multiple-choice:not(.already-answered) .multiple-choice-options>*,
#test-component .question .multiple-choice:not(.already-answered) .i-dont-know {
	cursor: pointer;
}

#test-component .question .multiple-choice .number {
	position: absolute;
	top: 0.25em;
	left: 0.25em;
	font-size: 0.75em;
}

#test-component .question .multiple-choice .multiple-choice-options.images .number {
	padding: 0.225em 0.4em;
	background: white;
	border-radius: 8px;
}

#test-component .question .multiple-choice-options .image img {
	max-width: 100%;
	max-height: 20vh;
}

#test-component .question .multiple-choice .i-dont-know {
	grid-column: 1/4;
}

#test-component .test-question-audio {
	justify-content: end;
	height: 2em;
}

#test-component .test-question-audio button svg {
	width: 1.25em;
	height: 1.25em;
}

#test-component .prompt {
	font-size: 40px;
}

#test-component .prompt:lang(zh) {
	font-size: 60px;
}

#test-component .prompt .image img {
	max-width: 5em;
	max-height: 5em;
}

#test-component .prompt .audio button {
	padding: 0;
	border: 0;
	font-size: 50px;
	background: none;
}

#test-component .prompt .audio button svg {
	margin-right: 0;
}

#test-component .prompt-and-answer {
	flex: 1;
	flex-direction: column;
	align-self: center;
	justify-content: center;
}

#test-component .answer-area {
	flex-direction: column;
}

#test-component .answer-area form {
	margin-top: 1em;
	margin-bottom: 1em;
}

#test-component .test-question-actions {
	display: flex;
	gap: 2ex;
}

#test-component .question.typing .test-question-actions {
	margin-top: 2em;
}

#test-component .question.typing input.pausing-correct {
	border: #77A603 solid 3px;
	margin: -2px;
	outline: none;
	cursor: default;
}

#test-component .test-question-actions button,
#test-component .test-question-actions .button {
	display: flex;
	align-items: center;
	background: none;
	border: none;
}

#test-component .test-question-actions svg {
	margin-right: 3px;
}

#test-component .test-question-actions .pretend-answer-was-correct svg {
	margin-right: 0px;
}

#test-component .test-question-actions .learn-later svg {
	margin-right: 2px;
}

#test-component .incorrect-answer-container {
	flex: 1;
	align-items: center;
	margin-top: 3em;
	justify-content: center;
}

#test-component .incorrect-answer {
	flex-direction: column;
	gap: 1em;
}

#test-component .incorrect-answer .course-entries {
	margin-bottom: 2em;
}

#test-component .incorrect-answer .test-question-actions {
	margin-top: 2em;
	margin-bottom: 0.5em;
}

#test-component .test-finished {
	flex: 1;
	flex-direction: column;
	align-items: center;
}

#test-component .test-finished .message-and-actions {
	text-align: center;
	margin-top: 3em;
}

#test-component .test-finished .finished-message {
	font-size: 30px;
}

#test-component .test-finished .save-result {
	margin-top: 1em;
}

#test-component .test-finished .future-actions {
	justify-content: space-evenly;
	margin-top: 1em;
}

#test-component .test-results {
	margin-top: 2em;
	margin-bottom: 2em;
	gap: 3em;
}

#test-component .test-results>* {
	flex-direction: column;
}

#test-component .test-results .hidden-resources-gained {
	visibility: hidden;
}

#test-component .test-results .resources-gained {
	flex-direction: column;
	margin-top: 43.75px;
}

#test-component .test-results .resources-gained h4 {
	margin-top: 0;
	margin-bottom: 0;
}

#test-component .test-results .correct-and-incorrect-answers {
	gap: 3em;
}

#test-component .test-results .correct-and-incorrect-answers>* {
	flex-direction: column;
}

#test-component .test-results .correct-and-incorrect-answers h4 {
	margin-top: 0;
}

#test-component .test-finished .test-results .course-entries {
	flex: 1;
}

#test-component .incorrect-answer-you-typed {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-column-gap: 1ex;
	grid-row-gap: 0.5em;
	margin-bottom: 1em;
}

#test-component .incorrect-answer-you-typed.image {
	grid-column-gap: 3em;
}

#test-component .incorrect-answer-you-typed img {
	max-width: 100%;
	max-height: 20vh;
}

#test-component .actions-button {
	margin-top: 1em;
}

#test-component .actions {
	margin-top: 5em;
	align-items: center;
}

#test-component .actions>* {
	cursor: pointer;
}

#test-component .actions svg {
	margin-right: 1ex;
}

#test-component .surpassed-levelup-screen .continuing-reviewing-form {
	display: inline-block;
	margin-left: 1ex;
}

#course-learn-page .study-entries {
	flex-direction: column;
	margin-bottom: 1em;
}

#course-learn-page .study-entries td.actions {
	padding-left: 40px;
}

#course-learn-page .study-entries .actions>svg {
	cursor: pointer;
}

#course-learn-page .course-entries-wrapper {
	margin-top: 3em;
}

#course-learn-page #learn-words-message {
	margin-top: 2em;
	flex-direction: column;
}

#course-review-page,
#course-learn-page {
	flex: 1;
	flex-direction: column;
}

#course-review-page #select-words-screen #num-ranges {
	width: 30vw;
}

#course-review-page #select-words-screen .begin-test-button {
	margin-top: 2em;
}

#course-review-page #no-words-to-level-up {
	display: block;
}

#edit-course-page {
	flex-direction: column;
}

#edit-course-page .title-and-delete {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
}

#create-course-page .inputs,
#edit-course-page .inputs {
	margin-bottom: 1em;
}

#edit-vocab-page {
	flex-direction: column;
}

#edit-vocab-page .message {
	margin-top: 2em;
}

#edit-vocab-page #empty-course-instructions {
	flex-direction: column;
	gap: 1em;
	margin-bottom: 2em;
}

#edit-vocab-page #empty-course-instructions p {
	margin: 0;
}

#edit-vocab-page #page-title-and-import-link {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	margin-top: 2em;
	margin-bottom: 2em;
}

#edit-vocab-page #page-title-and-import-link>* {
	margin: 0;
}

.course-entries {
	display: table;
}

.course-entries>* {
	display: table-row;
}

.course-entries>*>* {
	display: table-cell;
	padding: 5px 1em;
	/* For when the overview page, learning page, etc. has entries that wrap to multiple lines. */
	vertical-align: top;
}

.course-entries>*>*:first-child {
	padding-left: 0;
}

.course-entries>*>*:last-child {
	padding-right: 0;
}

.course-entries .actions {
	padding-left: 0;
	padding-right: 0;
}

.course-entries .audio>button {
	display: inline-block;
}

.course-entries>*:first-child:not(.headers)>* {
	padding-top: 0;
	text-align: left;
	font-weight: bold;
	white-space: nowrap;
}

.course-entries>*:first-child>.level {
	white-space: nowrap;
}

.course-entries .image img {
	max-height: 3em;
}

.course-entries .select-container {
	text-align: initial;
	font-weight: initial;
	flex-direction: column;
	width: 206px;
}

.course-entries .select-container div[class*="-menu"],
.course-entries .select-container div[class*="-menu"] div {
	/* Get rid of the "display: flex" that's applied to all <div>'s */
	flex-direction: column;
}

.course-entries .select-container div[class$="-singleValue"] {
	font-weight: bold;
}

.course-entries .move-icon {
	margin-bottom: 0.3em;
	justify-content: center;
}

.course-entries .move-icon svg {
	color: darkgray;
	cursor: move;
	padding: 4px;
}

/* .course-entries span[lang*="zh"] span {
	white-space: nowrap;
}*/

.course-entries .audio button,
#test-component .test-question-audio button {
	padding: 0;
	border: 0;
	background: initial;
}

.course-entries input:not([type="checkbox"]) {
	width: 100%;
}

#add-new-entry-button,
#add-new-header-button,
#course-create-edit .uploaded-course-avatar button,
#test-component .answer-area .actions-button button,
#course-create-edit .add-link-button,
#course-create-edit .remove-link-button {
	padding: 0.5em 0.8em;
	border: 1.8px darkgray dashed;
	color: darkgray;
	font-size: 1em;
	background: none;
}

#add-new-header-button {
	white-space: nowrap;
}

#edit-vocab-page .save-section {
	flex: 1;
	margin-top: 1.5em;
	flex-direction: column;
	gap: 1em;
}

#edit-vocab-page .save-section .button-and-spinner {
	margin-top: 0;
}

.save-progress {
	flex-direction: column;
	gap: 0.5em;
}

.save-progress progress {
	-webkit-appearance: none;
	appearance: none;
	width: 50%;
	height: 0.5em;
}

progress::-moz-progress-bar {
	background: #77A603;
}

#edit-vocab-page .save-vocab-button {
	align-items: center;
}

#edit-vocab-page .save-vocab-button svg {
	margin-right: 0;
}

#import-vocab-page {
	flex-direction: column;
}

#import-vocab-page #import-file-types {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
	grid-gap: 1em;
}

#import-vocab-page #import-file-types>* {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-bottom: 7px;
	color: black;
	text-decoration: none;
}

#import-vocab-page #import-file-types span {
	margin-top: 1em;
}

#import-vocab-page #import-file-types svg {
	color: #ADD445;
}

#import-vocab-page-excel {
	flex-direction: column;
}

#import-vocab-page-excel #example-screenshot {
	margin-bottom: 2em;
}

#import-vocab-page-csv {
	flex-direction: column;
}

#import-vocab-page-csv #example-csv-file {
	margin-top: 1.5em;
	margin-bottom: 1.5em;
	font-family: monospace;
	white-space: pre;
}

#import-vocab-page-image {
	flex-direction: column;
}

#import-vocab-page-image form {
	margin-top: 2em;
}

#edit-dashboard-page {
	flex-direction: column;
}

#edit-dashboard-page .tiles-container {
	display: grid;
	justify-items: center;
}

#edit-dashboard-page .tiles {
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	width: 50%;
	margin-top: 7em;
	text-align: center;
}

#edit-dashboard-page .tiles>* {
	padding: 1em 0;
}

#edit-dashboard-page .tiles svg {
	color: black;
}

#edit-dashboard-page .tiles span {
	display: block;
	margin-top: 1.5em;
}

#course-edit-entries-form {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

#course-entries-edit-table {
	flex: 1;
	gap: 2.5em;
	justify-content: space-between;
}

#course-entries-edit-table .column-header .column-type-and-actions {
	align-items: center;
	gap: 0.25em;
}

#course-entries-edit-table .column-header .settings {
	flex-direction: column;
	margin-top: 0.75em;
	margin-bottom: 1em;
	gap: 0.5em;
}

#course-entries-edit-table .column-header .settings>* {
	gap: 1ex;
}

#course-entries-edit-table .column-header .settings input:not([type="checkbox"]) {
	width: 206px;
}

#course-entries-edit-table select.column-type option.column-type-category {
	color: black;
	font-style: italic;
	font-weight: bold;
}

#course-entries-edit-table .course-entries .dragged-over>div {
	border-top: black 3px dashed;
	border-bottom: black 3px dashed;
	overflow-x: visible;
}

#course-entries-edit-table .course-entries .dragged-over>div:first-child {
	padding-left: 4px;
	border-left: black 3px dashed;
}

#course-entries-edit-table .course-entries .dragged-over>div:last-child {
	border-right: black 3px dashed;
	padding-right: 1em;
}

#course-entries-edit-table .course-entries .audio {
	width: min-content;
}

#course-entries-edit-table .course-entries .audio-column-contents,
#course-entries-edit-table .course-entries .image-column-contents {
	gap: 0.5em;
	/* The same height as the input text boxes */
	min-height: 29.2px;
}

#course-entries-edit-table .course-entries .audio-column-contents .audio-buttons,
#course-entries-edit-table .course-entries .image-column-contents .images {
	flex: 1;
	flex-wrap: wrap;
	align-items: center;
}

#course-entries-edit-table .add-audio-file-button,
#course-entries-edit-table .add-image-file-button {
	align-items: center;
	padding-left: 8px;
	padding-right: 8px;
}

#course-entries-edit-table .add-image-file-button {
	padding: 0;
	border: 0;
	background: initial;
}

#course-entries-edit-table .add-audio-file-button span,
#course-entries-edit-table .add-image-file-button span {
	position: relative;
}

#course-entries-edit-table .add-audio-file-button svg,
#course-entries-edit-table .add-image-file-button svg {
	margin-right: 0;
}

#course-entries-edit-table .add-audio-file-button .fa-plus,
#course-entries-edit-table .add-image-file-button .fa-plus {
	position: absolute;
	right: -9px;
	bottom: -8px;
	/* right: -10px;
	top: -7px; */
	font-size: 12px;
}

#course-entries-edit-table .add-audio-file-input,
#course-entries-edit-table .add-image-file-input {
	display: none;
}

#course-entries-edit-table .course-entries .actions {
	padding-left: 0.25em;
}

#course-entries-section-wrapper {
	max-width: 100%;
	overflow-x: auto;
}

#course-entries-section {
	flex: 1;
	flex-direction: column;
	/* width: fit-content; */
	/* To fit the language selector dropdown. */
	min-height: 360px;
}

#course-entries-edit-table .course-entries>*>* {
	padding-right: 0;
	vertical-align: middle;
}

#course-entries-table-and-add-new-entry-button-wrapper {
	flex-direction: column;
	gap: 1.5em;
}

.course-section {
	flex: 1;
	flex-direction: column;
}

.course-section>.loading {
	flex: 1;
	justify-content: center;
	align-items: center;
}

.fa-ellipsis-v {
	cursor: pointer;
}

h2 {
	margin-top: 2em;
}

#game-page .game-and-next-level-area {
	flex-direction: column;
	gap: 1rem;
}

#game-page .next-level-area {
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1em;
	margin-bottom: -0.3em;
}

#game-page .game-and-buy-area {
	gap: 1em;
}

#game-page .game-area {
	position: relative;
	flex: 1;
	overflow-x: hidden;
}

#game-page .game-area img:not(:first-child) {
	position: absolute;
}

#game-page .village-title-and-resources-area {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
}

#game-page .buy-area {
	flex-direction: column;
	border: solid 2px black;
	border-radius: 5px;
	gap: 1em;
	padding: 0.5em;
}

#game-page .buy-area .resource-cost {
	flex-direction: column;
}

#game-page .buy-area .resource-cost h4 {
	margin-top: 0;
	margin-bottom: 0;
	text-align: center;
}

#game-page .buy-area .resources {
	flex-direction: row;
	font-size: 0.8em;
	gap: 0.5em;
}

#game-page .buy-area .resources .resource {
	gap: 4px;
	height: initial;
}

#game-page .buy-area .resources .resource img {
	width: 20px;
}

#game-page .buy-area .items {
	display: flex;
	flex-direction: column;
	gap: 1em;
}

#game-page .buy-area .items>* {
	gap: 1em;
	align-items: center;
}

#game-page .buy-area .items form {
	display: contents;
}

#game-page .buy-area .items .image {
	width: 32px;
}

#game-page .buy-area .items img {
	width: 100%;
	image-rendering: pixelated;
}

#game-page .buy-area .items button {
	font-size: 0.9em;
	padding: 0.3em;
}

#game-page .resources-area .resources {
	gap: 2em;
	flex-direction: row;
}

#game-page .resources-area .resources .resource {
	gap: 10px;
	align-items: center;
	height: auto;
}

#game-page .next-level-resources .resources {
	flex-direction: row;
	gap: 1em;
}

#game-page .next-level-resources .resources .resource {
	gap: 6px;
	height: initial;
}

#game-page .next-level-resources .resources .resource img {
	width: 25px;
}

#home-page #page-template {
	width: 90vw;
}

#home-page .screenshots {
	gap: 1em;
}

#home-page .screenshots figure {
	margin: 0;
}

#home-page .screenshots figure img {
	width: 100%;
}

#home-page .screenshots figure figcaption {
	margin-top: 0.5em;
	text-align: center;
}

#courses-choose-page #page-content {
	flex: 1;
	justify-content: center;
	gap: 1em;
	width: auto;
}

#home-page .login-register-links a,
#courses-choose-page #page-content>* {
	padding: 1em;
	font-size: 16pt;
	border: 3px solid black;
	border-radius: 20px;
	text-decoration: none;
	background-color: #ADD445;
	color: black;
	white-space: nowrap;
}

#home-page .login-register-links a svg,
#courses-choose-page #page-content>* svg {
	margin-right: 0.5em;
}

#home-page .explanation-sections {
	flex-direction: column;
	margin-top: 3rem;
	gap: 2rem;
}

#home-page .explanation-sections>* {
	flex-direction: column;
	gap: 1em;
}

#home-page .explanation-sections p {
	margin-top: 0;
	margin-bottom: 0;
}

#home-page .explanation-sections h2 {
	margin-top: 0;
	margin-bottom: 0.25em;
}

a.logo-and-name {
	color: inherit;
	text-decoration: none;
}

.logo-and-name {
	display: flex;
	align-items: center;
}

.logo-and-name>*:not(:last-child) {
	margin-right: 20px;
}

.logo-and-name img {
	margin-top: -10px;
	width: 4rem;
}

.logo-and-name h1 {
	margin-top: 0;
	margin-bottom: 0;
}

.logo-and-name.small h1 {
	font-size: 1.2em;
}

.logo-and-name.small img {
	margin-top: -5px;
	width: 2.2rem;
	height: 2.2rem;
}

.user-area-content {
	flex-direction: column;
}

.user-area-content .view-village-link {
	margin-top: 1em;
}

.search-form {
	display: flex;
	gap: 0.5em;
	align-items: center;
}

.search-form button {
	padding-top: 0.25em;
	padding-bottom: 0.25em;
}

.course-entries .level {
	width: 28px;
	height: 28px;
	padding-top: 0;
	padding-bottom: 0;
}

#courses-page #not-logged-in-footer {
	margin-top: 2em;
}

#courses-page #language-selection-header {
	margin-top: 2em;
	justify-content: space-evenly;
}

#courses-page #language-selection-header span {
	white-space: nowrap;
}

#courses-page #language-selection-header>* {
	align-items: center;
	gap: 1ex;
}

#courses-page #language-selection-header select {
	max-width: 100%;
}

#courses-page .course-tiles {
	flex: 1;
	grid-template-columns: 1fr 1fr 1fr;
}

#courses-page .course-tiles>a {
	color: black;
	text-decoration: none;
}

#courses-page .courses-and-page-search {
	margin-top: 3em;
	flex: 1;
	justify-content: center;
}

#courses-page .courses-and-page-search>.loading,
#courses-page .courses-and-page-search .message {
	align-self: center;
}

#courses-page .courses-list {
	flex: 1;
	flex-direction: column;
	gap: 1em;
}

#courses-page .courses-and-page-search .page-and-search {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 2em;
	align-items: center;
}

#courses-page .courses-and-page-search .page-and-search .page,
#courses-page .courses-and-page-search .page-and-search .sort-by {
	display: flex;
	gap: 1ex;
	align-items: center;
	align-content: center;
	white-space: nowrap;
}

#courses-page .courses-and-page-search .page-and-search .search-form input {
	width: calc(max(100%, 200px));
}

#courses-page .courses {
	flex: 1;
	align-content: center;
	align-items: center;
	justify-content: center;
}

#courses-page .no-courses-found-message {
	font-size: 16pt;
}

#course-template {
	flex: 1;

	flex-direction: column;
}

form .inputs textarea {
	width: 50%;
	height: 10em;
}

.expects-guest-page #page-template.logged-in {
	width: 860px;
}

.expects-guest-page .already-logged-in-message {
	margin-top: 4em;
	margin-left: auto;
	margin-right: auto;
}

#login-page .forgot-login-links {
	margin-top: 4em;
	justify-content: space-around;
}

#forgot-password-page .error,
#reset-password-page .error,
#forgot-username-page .error {
	margin-top: 2em;
}

#course-create-edit {
	flex-direction: column;
}

#course-create-edit label[for="course-avatar-input"] {
	align-self: start;
	margin-top: 1em;
}

#course-create-edit .course-avatar-upload {
	flex-direction: column;
}

#course-create-edit .course-avatar-upload input {
	display: block;
	width: unset;
	margin-top: 1em;
	margin-bottom: 1em;
}

#course-create-edit .uploaded-course-avatar {
	align-items: center;
	gap: 1em;
	flex-wrap: wrap;
}

#course-create-edit .uploaded-course-avatar img {
	max-height: 150px;
	max-width: 150px;
}

#course-create-edit .links-area {
	flex-direction: column;
	margin-top: 3em;
	margin-bottom: 3em;
}

#course-create-edit .links-area h3 {
	margin-top: 0;
}

#course-create-edit .links-area .links {
	flex-direction: column;
	margin-bottom: 1em;
}

#course-create-edit .links-area .links>div {
	margin-top: 1em;
}

#course-create-edit .links-area .links>div>*:not(:first-child) {
	margin-left: 1em;
}

#course-create-edit .links-area .links .remove-link-button {
	padding: 0.3em 1em;
}

.course-tiles>a {
	display: flex;
}

.course-tiles .course {
	flex: 1;
	gap: 20px;
}

.course-tiles h4 {
	margin: 0;
	word-break: break-word;
}

.course-tiles .course-avatar,
.course-tiles .course-avatar img {
	width: 100px;
	height: 100px;
}

.course-tiles .course-avatar {
	font-size: 0;
}

.course-tiles .course-avatar:not(:has(img)) {
	background-color: #ADD445;
}

.course-tiles .course-avatar img {
	object-fit: cover;
}

.course-tiles .course-contents {
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	gap: 8px;
}

.course-tiles .course-contents .middle-things {
	display: grid;
	grid-template-columns: auto 1fr auto 1fr;
	grid-column-gap: 8px;
	grid-row-gap: 6px;
}

.page-title-and-things {
	margin-top: 2em;
	justify-content: space-between;
	gap: 1em;
}

.page-title-and-things h3 {
	margin-top: 0;
	margin-bottom: 0;
}

#account-page .my-account {
	display: flex;
	flex-direction: column;
	gap: 2em;
}

#account-page .my-account h4 {
	margin-top: 0.75em;
	margin-bottom: 0.75em;
}

#account-page .my-account>* {
	flex-direction: column;
}

#account-page .my-account input[type="number"] {
	width: 70px;
}

#account-page .my-account .checkboxes {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1ex;
}

#account-page .my-account .checkboxes .show-hide-textbox {
	grid-column-start: 2;
}

#account-page .my-account .checkboxes .show-hide-textbox input[type="number"] {
	width: 60px;
}

#account-page .my-account .textboxes {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1ex;
	align-items: center;
}

#account-page .my-account .textboxes div {
	gap: 1ex;
	align-items: center;
}

#account-page .my-account .textboxes .show-hide-textbox {
	grid-column: span 2;
	margin-left: 10px;
}

#account-page .my-account .textboxes .show-hide-textbox input[type="number"] {
	width: 60px;
}

#account-page .my-account .textboxes select#native-language {
	overflow-x: hidden;
}

#import-memrise-progress-page h2 {
	margin-top: 1em;
}

#import-memrise-progress-page .instructions-section {
	flex-direction: column;
	gap: 3em;
}

#import-memrise-progress-page .instructions-section>* {
	flex-direction: column;
	gap: 1em;
}

#import-memrise-progress-page .instructions-section>*>* {
	flex-direction: column;
}

#import-memrise-progress-page .instructions-section h3 {
	margin: 0;
}

#import-memrise-progress-page .instructions-section .overview ol {
	flex-direction: column;
	list-style-type: revert;
	padding: revert;
	margin: revert;
	gap: 0.25em;
}

#import-memrise-progress-page .instructions-section img {
	max-width: min(100%, 800px);
	margin-top: 0.5em;
}

#import-memrise-progress-page .progresses-section {
	flex-direction: column;
	gap: 2em;
}

#import-memrise-progress-page .progresses-section .instructions {
	margin-top: 0;
	margin-bottom: 0;
}

#import-memrise-progress-page .progresses-section .import-type {
	flex-direction: column;
	gap: 1em;
}

#import-memrise-progress-page .progresses-section .import-type .import-type-options {
	display: inline-grid;
	grid-template-columns: auto 1fr;
	row-gap: 1em;
	column-gap: 0.25em;
}

#import-memrise-progress-page .progresses-section .import-type .import-type-options div {
	align-items: start;
}

#import-memrise-progress-page .progresses {
	display: grid;
	grid-gap: 1em;
	grid-template-columns: 1fr 1fr 1fr;
}

#import-memrise-progress-page .progresses .title {
	gap: 1em;
}

#import-memrise-progress-page .progresses h4 {
	margin-top: 0;
	margin-bottom: 0;
}

#import-memrise-progress-page .progresses .spinner {
	display: inline;
}

#import-memrise-progress-page .progresses>* {
	gap: 1em;
}

#import-memrise-progress-page .progresses .body {
	flex-direction: column;
	gap: 1em;
}

#import-memrise-progress-page .progresses .body>div {
	flex-direction: column;
	gap: 0.5em;
}

#import-memrise-progress-page .progresses .fa-xmark {
	color: red;
}

#import-memrise-progress-page .progresses .fa-ban {
	color: lightgray;
}

#import-memrise-progress-page .progresses .fa-check {
	color: #77A603;
}

#import-memrise-progress-page .progresses .not-found .body>div {
	display: block;
}

#import-memrise-progress-page .progresses .no-ignore-information-warning {
	flex-direction: column;
	gap: 1em;
	margin-top: 1em;
}

#import-memrise-progress-page .progresses h4 a {
	color: black;
	text-decoration: none;
}

#course-settings-page {
	flex-direction: column;
}

#course-settings-page #page-content {
	gap: 1em;
}

#course-settings-page h2 {
	margin-top: 1em;
}

#course-settings-page .course-actions {
	flex-direction: column;
	gap: 1rem;
}

/* From font-awesome CSS */
.fa-pulse {
	-webkit-animation: fa-spin 1.25s infinite steps(128);
	animation: fa-spin 1.25s infinite steps(128);
}

@-webkit-keyframes fa-spin {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(359deg);
		transform: rotate(359deg);
	}
}

@keyframes fa-spin {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}

	100% {
		-webkit-transform: rotate(359deg);
		transform: rotate(359deg);
	}
}

/* End font-awesome CSS */

#home-page .login-register-links {
	flex-direction: row;
	justify-content: space-around;
	align-items: center;
	margin-top: 4em;
	margin-bottom: 4em;
	gap: 2em;
}

@media (min-width: 1200px) {
	#courses-choose-page #page-content {
		flex-direction: row;
		justify-content: space-around;
		align-items: center;
		margin-top: 4em;
		margin-bottom: 4em;
		gap: 2em;
	}
}

@media (max-width: 670px) {
	#page-template {
		padding: 0.5em;
	}

	.logo-and-name h1 {
		font-size: 1.8em;
	}

	.top-section {
		flex-direction: column;
	}

	#home-page .login-register-links {
		display: grid;
		grid-template-areas:
			'login register'
			'view-courses view-courses';
		grid-template-columns: 1fr 1fr;
		margin-top: 2rem;
		margin-bottom: 1rem;
		gap: 1em;
	}

	#home-page .login-register-links>:first-child {
		grid-area: login;
	}

	#home-page .login-register-links>:last-child {
		grid-area: register;
	}

	#home-page .login-register-links>:nth-child(2) {
		grid-area: view-courses;
	}

	#home-page .login-register-links a,
	#courses-choose-page #page-content>* {
		padding: 0.75em;
		/* font-size: 14pt; */
	}

	#home-page .explanation-section {
		margin-top: 2rem;
	}

	#home-page .screenshots {
		flex-direction: column;
	}

	#game-page .next-level-area {
		margin-bottom: 0;
	}
}

@media (max-width: 1524px) {

	#courses-page .course-tiles,
	#dashboard-page .course-tiles {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 1120px) {

	#courses-page .course-tiles,
	#dashboard-page .course-tiles {
		display: flex;
		flex-direction: column;
	}
}

/* Make user area be on top instead of the right */
@media (max-width: 575px) {
	#dashboard-page #page-content {
		display: flex;
		flex-direction: column-reverse;
	}

	#dashboard-page .user-area-content {
		display: grid;
		grid-template-rows: auto 1fr;
		grid-template-columns: 1fr auto;
		gap: 1em;
		padding-bottom: 7px;
	}

	#dashboard-page .user-area-content .resources {
		grid-row: 2;
		grid-column-start: 1;
		grid-column-end: 3;

		flex-direction: row;
		gap: 1.2em;
		justify-content: space-evenly;
	}

	#dashboard-page .user-area-content .resources>* {
		height: auto;
	}

	#dashboard-page .user-area-content .resources .resource {
		gap: 10px;
	}

	#dashboard-page .user-area-content .view-village-link {
		margin: 0;
	}
}

@media (max-width: 1000px) {
	#page-template {
		flex: 1;
	}

	#page-template.narrow {
		width: auto;
	}

	#test-component {
		width: initial;
	}

	#test-component .question.multiple-choice .answer-instructions {
		display: none;
	}

	#select-words-screen #num-ranges {
		width: initial;
	}
}

@media (max-width: 950px) {
	.actions-menu-icon {
		display: none;
	}
}

@media (max-width: 1160px) {
	.testing-directions {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media (max-width: 760px) {
	.testing-directions {
		grid-template-columns: 1fr 1fr;
	}
}

@media(max-width: 650px) {
	#course-overview-page #course-overview-top-section {
		flex-direction: column;
	}

	#course-overview-page #course-overview-top-section .course-info {
		display: flex;
		justify-content: space-between;
		width: 100%;
		gap: 1em;
		flex-wrap: wrap;
	}

	#course-overview-page #course-overview-top-section .course-info>* {
		display: flex;
		gap: 1em;
	}

	#course-overview-page #course-overview-top-section .course-info>*>* {
		display: flex;
		gap: 0.4em;
	}
}

@media(max-width: 630px) {
	/* #course-overview-page #course-overview-top-section .avatar-and-description {
		flex-direction: row-reverse;
	}

	#course-overview-page #course-overview-top-section .course-avatar {
		width: 75px;
		height: 75px;
	}*/

	#course-overview-page #course-overview-top-section .course-avatar {
		display: none;
	}
}

@media (max-width: 1100px) {
	div:not(#course-entries-table-and-add-new-entry-button-wrapper)>.course-entries {
		display: flex;
		flex-direction: column;
		gap: 0.5em;
		flex: 1;
	}

	div:not(#course-entries-table-and-add-new-entry-button-wrapper)>.course-entries>*:first-child {
		display: none;
	}

	div:not(#course-entries-table-and-add-new-entry-button-wrapper)>.course-entries>* {
		display: grid;
		grid-template-areas: 'word actions';
		grid-template-columns: 1fr;
		gap: 0.5em;
		border: 1.5px black solid;
		border-radius: 4px;
		padding: 0.5em;
		grid-auto-flow: rows;
	}

	.incorrect-answer>.course-entries>* {
		display: flex;
		flex-direction: column
	}

	#test-component .incorrect-answer .test-question-actions {
		flex-direction: column;
		gap: 0.25em;
	}

	div:not(#course-entries-table-and-add-new-entry-button-wrapper)>.course-entries>*>* {
		display: flex;
		padding: 0;
		grid-column: span 2;
	}

	div:not(#course-entries-table-and-add-new-entry-button-wrapper)>.course-entries>*>*:first-child {
		grid-area: word;
	}

	div:not(#course-entries-table-and-add-new-entry-button-wrapper)>.course-entries>*>*:empty {
		display: none;
	}

	div:not(#course-entries-table-and-add-new-entry-button-wrapper)>.course-entries .actions {
		grid-area: actions;
	}

	div:not(#course-entries-table-and-add-new-entry-button-wrapper)>.course-entries .level {
		width: initial;
	}

	#course-overview-page .overview-title-and-buttons {
		margin-bottom: 0;
	}
}

@media (max-width: 407px) {
	.logged-in .logo-and-name {
		display: none;
	}
}

@media (max-width: 705px) {
	#courses-page .courses-and-page-search .page-and-search {
		display: flex;
		row-gap: 1em;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	#courses-page .courses-and-page-search .page-and-search .search-form {
		flex-grow: 1;
	}
}

@media (max-width: 500px) {
	.logged-in .top-section {
		flex-direction: row;
		justify-content: start;
	}

	.logged-in .logo-and-name h1 {
		display: none;
	}

	.logged-in .logo-and-name> :not(:last-child) {
		margin-right: 0.25em;
	}

	#course-template h2 {
		font-size: 1.3em;
	}

	#test-component .incorrect-answer-container {
		margin-top: 2em
	}

	#test-component .incorrect-answer .course-entries {
		margin-bottom: 1em;
	}

	#test-component .incorrect-answer-you-typed {
		margin-bottom: 0;
	}

	#test-component .question .multiple-choice-options {
		gap: 0;
	}

	#test-component .question .multiple-choice-options>*,
	#test-component .question .multiple-choice .i-dont-know {
		border-radius: 0;
	}

	#test-component .question .multiple-choice-options .number {
		display: none;
	}
}

@media (max-width: 535px) {
	#test-component .test-finished .test-results {
		flex-direction: column-reverse;
		margin-top: 1.5em;
		margin-bottom: 1em;
	}

	#test-component .test-results .correct-and-incorrect-answers {
		gap: 2em;
	}

	#test-component .test-results .correct-and-incorrect-answers h4 {
		margin-bottom: 1em;
	}

	#test-component .test-finished .test-results .hidden-resources-gained {
		display: none;
	}

	#test-component .test-finished .test-results .resources-gained {
		margin-top: 0;
	}

	#test-component .test-finished .test-results .resources-gained h4 {
		display: none;
	}

	#test-component .test-finished .test-results .resources-gained .resources {
		flex-direction: row;
		gap: 1em;
		justify-content: space-around;
	}
}

@media(max-width: 480px) {
	#courses-choose-page #page-content {
		flex-direction: column;
	}

	.course-tiles .course {
		gap: 10px;
	}

	.logo-and-name img {
		width: 3rem;
	}

	.logo-and-name h1 {
		font-size: 1.4em;
	}

	#home-page .login-register-links {
		margin-top: 1rem;
	}

	#home-page .explanation-sections h2 {
		font-size: 1.25em;
		margin-bottom: 0;
	}
}

@media(max-width: 850px) {
	#courses-page #language-selection-header {
		display: grid;
		grid-template-columns: auto 1fr;
		gap: 1em;
	}

	#courses-page #language-selection-header>* {
		display: contents;
	}
}

@media(max-width: 390px) {
	#courses-page .courses-and-page-search .page-and-search .page .of-pages {
		display: none;
	}
}

@media(max-width: 440px) {
	#courses-page #language-selection-header select {
		width: 100%;
	}
}

@media(max-width: 500px) {
	body {
		align-content: start;
	}
}

@media(max-width: 1500px) {
	#game-page .game-and-buy-area {
		flex-direction: column;
	}

	#game-page .game-and-buy-area .game-area {
		max-width: 100%;
		overflow-x: auto;
	}

	#game-page .buy-area .items {
		flex-direction: row;
		column-gap: 3em;
	}

	#game-page .buy-area .resources {
		font-size: initial;
		gap: 1.5em;
	}
}

@media(max-width: 750px) {
	#game-page .buy-area .items {
		column-gap: 2em;
	}
}

@media(max-width: 425px) {
	#game-page .buy-area .items {
		column-gap: 1.75em;
	}
}

@media(max-width: 390px) {
	#game-page .buy-area .items {
		column-gap: 1.5em;
	}
}

@media(max-width: 670px) {
	#game-page #page-content {
		gap: 1em;
	}
}

@media(max-width: 800px) {
	#course-overview-page .search-and-settings {
		display: contents;
	}

	#course-overview-page .search-and-settings .actions-icon {
		align-self: center;
	}
}

@media(max-width: 510px) {
	#course-overview-page .overview-title-and-buttons {
		display: grid;
		grid-template-areas:
			"title settings"
			"search search";
		grid-template-columns: 1fr auto;
	}

	#course-overview-page .overview-title-and-buttons h3 {
		grid-area: title;
	}

	#course-overview-page .search-and-settings .actions-icon {
		grid-area: settings;
	}

	#course-overview-page .search-and-settings .search-form {
		grid-area: search;
	}
}
