:root {
    --color-key-bg: #fff;
    --color-correct-bg: #b6dba2;
    --color-correct-text: #20432c;
}

html, body {
	width: 100%;
	overflow-x: hidden;
	overscroll-behavior-x: none;
	overscroll-behavior-y: none;
}

body.dark {
    --color-key-bg: #232323;
    --color-correct-bg: #43513b;
    --color-correct-text: #c5c8c3;
}

/*
.modal {
	display: flex;
	opacity: 1;
	transform: translateY(0);
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
	z-index: 1000;
	padding: 20px;
	position: fixed;
	color: #fff;
	background-color: transparent;
}
.modal:before {
	content: "";
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: -1;
	background: rgb(0 0 0 / 50%);
}
*/

/*-------------------------------------------------------
MENU SCENE
-------------------------------------------------------*/
#title-scene {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    overscroll-behavior-y: none;
}

/*
#btn-logout {
	position: fixed;
	top: 10px;
	left: 10px;
	color: var(--color-text);
}
*/

#login-status-container {
	height: 20px;
	margin-top: 0.75rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
	   grid-gap: 0.5rem;
}

#login-status {
}

.btn-link {
	border: none;
	color: var(--color-link);
	font-family: inherit;
	font-size: 1rem;
	background: none;
	cursor: pointer;
}

.btn {
	cursor: pointer;
}

.btn span {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    padding-top: 0.25rem;
}

#module-select-wrapper {
	display: flex;
	flex-grow: 1;
	flex-shrink: 1;
	width: 100%;
	flex-direction: column;
}

#module-select-container {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: center;
}

#module-select-container .btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
	width: 400px;
	max-width: 100%;
    margin-top: 0.75rem;
	text-align: left;
    font-weight: 600;
    background-color: var(--color-btn-1);
}

#module-select-container #daily-puzzle-btn {
    position: relative;
	justify-content: center;
	width: 400px;
	max-width: 100%;
	margin: 1rem auto 0.25rem;
    padding: 1rem;
    color: #994c36;
    background-color: var(--color-btn-0);
}

.brailliance-module div:first-child {
    width: calc(100% - 75px);
}

.module-description {
	line-height: 1rem;
	min-height: 2rem;
}

#daily-puzzle-btn img {
	margin-right: 0.5rem;
    /*filter: invert(1);
    opacity: 0.55;*/
    filter: invert(0.5) sepia(1) saturate(3) brightness(0.65) hue-rotate(326deg);
}
#daily-puzzle-btn span {
    padding-top: 0.125rem;
}
#dailyStreak {
    position: absolute;
    top: 50%;
    right: 1rem;
    text-align: center;
    transform: translateY(-50%);
}
#dailyPuzzleTime {
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    color: #898681;
}

.level-number {
    text-align: center;
}

.level-number span, #dailyStreak span {
    padding-top: 0;
}

#module-select-container .btn svg {
    fill: var(--color-btn-text);
}

#module-select-container .level-number svg, .shopListingPrice svg {
    display: block;
    width: 20px;
    fill: none;
    stroke-width: 5px;
    stroke-linecap: round;
    stroke: var(--color-btn-text);
}

#options-container {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: center;
	padding-top: 1.5em;
}

#options-container .btn {
	position: relative;
	width: 250px;
	max-width: 100%;
    margin-top: 0.75rem;
    background-color: var(--color-btn-2);
}

#news-container {
	display: flex;
	width: 100%;
	flex-direction: column;
	align-items: flex-start;
	padding-top: 1.5em;
	max-width: 400px;
    align-self: center;
	text-align: justify;
}

/*-------------------------------------------------------
SHOP
-------------------------------------------------------*/

.shopListing {
    background-color: var(--color-btn-0);
    color: var(--color-btn-text);
    justify-content: center;
    width: 400px;
    max-width: 100%;
    margin: 1rem auto 1rem;
    display: flex;
    flex-direction: column;
    border-radius: 0.375rem;
    box-sizing: border-box;
    overflow: hidden;
	cursor: pointer;
}

.shopListing.level-pack {
    background-color: var(--color-link);
}

.shopListing.purchased {
	background-color: var(--color-btn-2);
	cursor: default;
}

.shopListingHeader {
    color: var(--color-btn-text);
    padding: 0.5rem 1rem;
    display: flex;
	align-items: center;
}

.purchased .shopListingHeader {
}

.shopListingTitle {
    font-size: 1.15rem;
    flex-grow: 1;
	font-weight: 600;
}

.shopListingDescription {
    padding: 0.5rem 1rem;
}

.shopGroupHeader {
    text-align: center;
}

.shopListingPaypalButtons {
    padding: 0 1em;
	max-height: 0;
	transition: max-height 0.15s;
}

.shopListingOpen .shopListingPaypalButtons {
	max-height: 500px;
	transition: max-height 0.15s;
}

.shopListing .btn {
	background-color: var(--color-bg);
	   margin-bottom: 1em !important;
}

/*-------------------------------------------------------
LOGIN SCENE
-------------------------------------------------------*/
#login-scene input {
	display: block;
	width: 250px;
	margin: 1rem auto;
	padding: 0.5rem;
	font-size: 1rem;
	border-radius: 0.5rem;
	border: 1px solid #cdc9b5;
}

#login-back {
	position: fixed;
	top: 10px;
	left: 10px;
	color: var(--color-text);
}

#login-scene .btn {
	font-size: 1rem;
}

#use-username-link {
	min-width: 186px;
	height: 40px;
	padding: 0;
	border-radius: 0.25rem;
}

.or-divider {
	margin: 0.75rem auto;
}

#alt-login-buttons-1, #alt-login-buttons-3 {
	margin: 0.75rem auto 0.25rem;
}

.third-party-logins img {
	display: block;
	margin: 0 auto 0.125rem auto;
}

#modalProfileUsername {
	font-size: 150%;
	font-weight: 600;
	display: block;
    margin: 0.375rem auto 0 auto;
	text-align: center;
}

/*-------------------------------------------------------
DARK THEME
-------------------------------------------------------*/

.dark #module-select-container #daily-puzzle-btn {
    color: #ffd6b6;
}
.dark #daily-puzzle-btn img {
    filter: invert(0.5) sepia(1) saturate(1.5) brightness(1.5) hue-rotate(324deg);
}

/*-------------------------------------------------------
MODALS
-------------------------------------------------------*/

.modal {
	display: flex;
	opacity: 1;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
    padding: 1rem;
    font-size: 14px;
	background-color: rgb(0 0 0 / 30%);
	z-index: 1000;
	animation: fadeIn 0.2s ease-out;
	animation-fill-mode: both;
}
.modal > div {
    width: 100%;
	max-width: 500px;
    max-height: 100%;
	padding: 1rem;
    text-align: left;
	border-radius: 12px;
	background: var(--color-key-bg);
    overflow-y: auto;
    transform: translateY(0);
    animation: transIn 0.2s ease-out;
	animation-fill-mode: both;
}
.modal button {
	animation-fill-mode: both;
}
@keyframes fadeIn {
	0% { opacity: 0; }
	100% { opacity: 1; }
}
@keyframes transIn {
	0% { opacity: 0; transform: translateY(50px); }
	100% { opacity: 1; transform: translateY(0); }
}
modalTitle {
    font-size: 175%;
	color: var(--color-text);
    font-weight: 600;
	display: block;
	text-align: center;
}
.modal .btn {
    display: block;
    width: 200px;
    margin: 0.375rem auto 0 auto;
	font-size: 100%;
}
.modal h2 {
    margin: 1rem 0 0.375rem;
    color: var(--color-text);
    font-size: 125%;
}
.modal ul {
    margin-left: 1rem;
}
.modal li::marker {
    color: var(--color-text);
}
.hidden {
    display: none;
}

.dimmed {
    opacity: 0.5;
}

.modal p:first-of-type {
	margin: 1rem 0;
    font-size: 125%;
}

.flagEntry {
	display: flex;
    flex-direction: column;
    background-color: #BBBBBB;
    margin: 0.5em;
    padding: 1em;
    border-radius: 1em;
}

body.dark .flagEntry {
	background-color: #353535;
	color: var(--color-text);
}

.flagFALSE .flagButton, .flagUNSET .flagButton {
    background-color: white;
}

body.dark .flagFALSE .flagButton, body.dark .flagUNSET .flagButton {
    background-color: var(--color-btn-1);
}

.flagTRUE {
    background-color: bisque;
}

body.dark .flagTRUE {
	background-color: peru;
    color: white;
}

.flagHeader {
	display: flex;
	align-items: center;
}

.flagName {
	display: flex;
    flex-shrink: 1;
	flex-grow: 1;
	font-weight: bold;
}

.flagButton {
	width: 100px !important;
    margin: 0 !important;
    display: block !important;
    flex-grow: 0;
    flex-shrink: 0;
    min-width: 0;
}

.flagDescription {
	font-size: smaller;
    margin-top: 0.5em;
}