/* Global */

:root, html, body, * {
	--header-color: #191633;
	--background-color: #F7AE83;
	--button-background-color: #0064A2;
	--button-text-color: white;
}

html, body {
	margin: 0;
	padding: 0;
	background: var(--background-color);
	font-family: 'Open Sans', sans-serif;
	font-size: 14px;
}

input {
	border-width: 1px;
	border-color: var(--button-background-color);
}

button, input[type="button"], input[type="submit"] {
	background-color: var(--button-background-color);
	border: none;
	border-radius: 8px;
	color: var(--button-text-color);
	padding: 5px 10px;
	text-align: center;
	text-decoration: none;
	display: inline-block;
}

input:disabled {
	opacity: 0.5;
	cursor: default;
}

h3 {
	margin-top: 30px;
}

.loggedOutUserAlert {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;

	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 20px;
}

* {
	color: #333;
	text-decoration: none;
}

.header {
	background-color: var(--header-color);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	padding: 8px;
	display: flex;
	justify-content: space-between;

	transition: opacity 0.2s;
}

/* prevent flouc */
.header .right {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	margin-right: 6px;
}

sl-dialog {
	display: none;
}

.header * {
	color: var(--sl-color-primary-900);
}

.header .logo {
	height: 20px;
	margin-bottom: -3px;
}

.headerEmail {
	opacity: 0.5;
}

.header sl-button {
	color: var(--sl-color-primary-900);
}


/* settings */

.contact, .account {
	padding: 20px;
	border-bottom: 1px solid black;
}

.formFieldContainer {
	display: flex;
	flex-direction: row;
}

.formFieldContainer span {
	flex-basis: 30%;
}

.formFieldContainer input {
	flex-grow: 1;
}

/* throbber */
.throbber {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.inlineThrobber {
	display: inline-flex;
	margin-left: 20px;
}

.throbber img {
	width: 20px;
	height: 20px;

	display: inline-block;
	animation: rotation 2s infinite linear;
}

@keyframes rotation {
	100% {
		transform: rotate(360deg);
	}
}

/* tab bar */

.tabbar {
	text-align: center;
	border-bottom: 1px solid rgb(159, 173, 201);

}

.tabbar * {
	display: inline-block;
	border-bottom: 4px solid transparent;
	color: rgb(88, 97, 116);
	padding-left: 15px;
	padding-right: 15px;
	cursor: pointer;
}

.tabbar *.active {
	font-weight: bold;
	border-color: rgb(159, 173, 201);
}

.subheader {
	font-size: 15px;
}

.subheader a {
	padding: 10px;
}

/* downloadAllData */
.downloadsection {
	height: 100px;

	display: flex;
	justify-content: center;
	align-items: center;
}

.download {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;

	font-size: 30px;

	margin-top: 40px;
}

.downloadLink {
	display: none;

	justify-content: center;
	align-items: center;
	gap: 10px;
}

.downloadLink img {
	width: 40px;
	height: 40px;
}

/*** Transactions ***/
#transactions {
	width: 100%;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

#transactions table {
	width: 100%;
	border-collapse: collapse;
}

#transactions th {
	text-align: left;
	padding: 5px;
	border-bottom: 1px solid black;
}

#transactions th:last-child,
#transactions td:last-child {
	text-align: right;
}

/*** accounts ***/
.submitbutton {
	cursor: pointer;
}

.buttonBar {
	display: flex;
	align-items: center;
}

/*** global ***/
#loadingIndicator div {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#loadingIndicator sl-spinner {
	font-size: 3rem;
}

@media (max-width: 480px) {
	div.login {
		width: 95%;
	}

	div.login div {
		flex-direction: column;
	}

	div.login div input {
		box-sizing: border-box;
		margin: 0;
		width: 100%;
		margin-bottom: 6px;
	}

	div.login div button {
		box-sizing: border-box;
		margin: 0;
		width: 100%;
	}

	.headerEmail {
		display: none;
	}

	.twocolumns {
		flex-direction: column;
	}
}