

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
}

p {
    margin-bottom: 1em;
}

label {
    margin-bottom: 0.3em;
}

a {
    color: rgb(243, 98, 98);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* General */
.center {
    text-align: center;
}

select,
option,
.explorer-details button,
input[type=text],
input[type=email],
input[type=password],
input[type=datetime-local],
input[type=text]::first-line,
input[type=email]::first-line,
input[type=password]:first-line,
input[type=datetime-local]:first-line,
textarea {
  border: none;
  font-size: 1.1em;
  font-family: monospace;
  line-height: 1;  
  letter-spacing: 0.03em;	
  padding: 0.5em 0.3em;
  width: 100%;
  background-color: aliceblue;
  border: 1px solid white;
  color: #333;
}

.explorer-details button {
    border: 1px solid #666;
    border-radius: 0.3em;
    cursor: pointer;
}

input::placeholder,
textarea::placeholder {
  color: #ccc;
}

input:focus,
input:focus::first-line {
    border: 1px solid lightgray;
    outline: none;
}

input[type=checkbox] {
    margin-right: 0.5em;
}

[error]:not([error=""])::after {
    display: block;
    content: attr(error);
    color: red;
}

.hidden {
    display: none;
}

/* Cookie banner */
.cbanner-background {
  
}

.cbanner-background--selected {	
  display: block;
	position: fixed;	
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background-color: rgba(169, 169, 169, .4);	
	z-index: 100000;
}

.cbanner {
    position: fixed;
    left: 2em;
    bottom: 2em;
    padding: 1.5em;
    background-color: #fff;
    border-radius: 1em;
    color: #333;
    z-index: 100000;
    -webkit-box-shadow: 3px 9px 27px -2px #61666E;
    box-shadow: 3px 9px 27px -2px #61666E;
    max-width: 450px;
}

.cbanner-background--selected .cbanner {
  left: 50%;
  top: 25%;
  bottom: unset;  
	transform: translate(-50%, -25%);
}

.cbanner-title {
    margin: 0;
    color: #000;
    font-weight: bold;
    font-size: 1.1em;
}

.cbanner-instructions {
    margin: 0.5em 0;
    letter-spacing: 0.04em;
    line-height: 1.3;
    font-weight: normal;
    color: #000;
}

#cbanner_acceptall,
#cbanner_save {
    margin: 0.5em 0; 
    padding: 0.3em;
    color: #fff;
    background-color: #20688F;
    border-radius: 5px;   
    font-size: 1em;     
    font-weight: bold;      
    flex-grow: 1;               
}

.cbanner_buttons_row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: stretch;
    gap: 1em;
}

#cbanner_dismiss {
  display: none;
  margin: 0; 
  padding: 0.3em;
  color: #20688F;
  background-color: #fff;
  border-radius: 5px;   
  font-size: 1em;    
  border: 2px solid #fff;  
  flex-grow: 2;      
  font-weight: bold;    
  flex-basis: 100%;
}

#cbanner_dismiss:hover {
  border: 2px solid #20688F;
}

.cbanner-background--selected #cbanner_dismiss {
  display: block;
}

/*#cbanner_dismiss,
#cbanner_save {
    margin: 0; 
    padding: 0.3em;
    color: #20688F;
    background-color: #fff;
    border-radius: 5px;   
    font-size: 1em;    
    border: 2px solid #fff;  
    flex-grow: 1;      
    font-weight: bold;      
}*/

/*#cbanner_dismiss:hover,
#cbanner_save:hover {
    border: 2px solid #20688F;
}*/

.banner-option {
    font-weight: normal;
    line-height: 2em;
}

.cbanner-options {
    clear: both;
    margin: 1em 0;
    padding: 0;
    list-style: none;
    list-style-position: inside;            
}

.cbanner-option {
    margin: 0.8em 1em;
    padding: 0;
    line-height: 1;
}

.cbanner-switch {
    display: inline-flex;
    flex-direction: row;
    align-items: stretch;
    margin-right: 1em;
    padding: 2px;
    background-color: darkred;
    border-radius: 1em;
    color: #fff;         
    width: 2em;
    height: 1em;
    vertical-align: top;
    cursor: pointer;
}

.cbanner-switch-inner {
    display: inline-block;
    margin: 0;
    padding: 0;
    background-color: #fff;  
    border-radius: 1em;  
    width: 1em;            
}

.cbanner-switch-enabled {
    background-color: green;
    justify-content: flex-end;
}

.cbanner-switch-disabled {
    background-color: gray;
    cursor: not-allowed;
}

.cbanner-link {
    color: darkgreen;
    text-decoration: none;
}

.cbanner-link:hover {
    text-decoration: underline;
}

/* Message box */
.meapp-messagebox-background {
	position: fixed;			
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(169, 169, 169, .4);
	z-index: 1000;
}

.meapp-messagebox {
	position: absolute;			
	left: 50%;
	top: 25%;
	transform: translate(-50%, -25%);
	margin: 0;
	padding: 1em;
	list-style: none;
	background-color: #fff;
	border: 1px solid gray;
	font-size: 1em;
	line-height: 1.2;
	font-weight: normal;
	-webkit-box-shadow: 3px 3px 7px -2px #61666E; 
	box-shadow: 3px 3px 7px -2px #61666E;
	border: 1px solid #999;
	border-radius: 5px;	
} 

.meapp-messagebox-title {
	margin: 0 0 0.5em 0;
  color: #000;
}

.meapp-messagebox-text {
	margin: 0 0 1em 0;
  color: #000;
}

.meapp-messagebox-footer {
	margin: 0 ;
}

.meapp-messagebox-buttons {	
	margin: 0;
	padding: 0;
	text-align: center;
	list-style: none;
}

.meapp-messagebox-button {	
  display: inline-block;
  padding: 0 0.4em;
  font-size: 1.3em;
  line-height: 32px;
  background-color: #cedae1;
  color: #000;
  letter-spacing: 0.04em;	
  border-radius: 0.2em;
  border: none;
  min-width: 125px;
  cursor: pointer;
}

.meapp-messagebox-button:disabled {
  background-color: #B0BBC1;
  color: #fff;
  cursor: not-allowed;
}

.meapp-messagebox-buttons li {
	display: inline;
	margin: 0 1em 0 0;
}

.meapp-messagebox-button--main {
  color: #fff;
  background-color: #0078CE;
}

.meapp-messagebox-buttons li:last-child {
	margin-right: 0;
}

/* */
.meapp_wrapper {
    display: flex;
    flex-direction: column;
    align-content: stretch;
    height: 100vh;
}

.meapp_header {
    height: 80px;
}

.meapp_body {
    background-image: url('./res/images/background.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #D7F5FF;
    background-size: cover;
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
}

.meapp_footer {
    height: 80px;
}

.toolbar {
    position: absolute;
    top: 1em;
    right: 4em;
    list-style: none;
    list-style-position: inside;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2em;
}

.toolbar-link {
    text-decoration: none;
    font-size: 1.2em;
    line-height: 1;
    font-weight: bold;
    color: #4B587C;
}

.account {
    display: inline-flex;
    background-color: gray;
    font-size: 1.5em;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    aspect-ratio: 1;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.logo {
    position: absolute;
    top: 0.5em;
    left: 2em;
    font-size: 2em;
    font-weight: normal;
    color: #4B587C;
    font-family: impact;
    letter-spacing: 0.05em;
    font-style: italic;        
    user-select: none;   
    cursor: pointer;
}

.footer-items {
    font-size: 1em;
    font-weight: bold;
    list-style: none;
    list-style-position: inside;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    height: 80px;
    gap: 2em;
}

.footer-item {
    display: inline;
}

.footer-link {
    padding: 0.5em 1em;
    text-decoration: none;
    color: black;
    letter-spacing: 0.05em;
    font-family: Lato;
}

.footer-link:hover {
    color: rgb(72, 72, 170);
}

.footer-link-copyright {
    font-weight: bold;   
    color: black;
    letter-spacing: 0.05em;
    font-family: Lato;
}

.box {    
    margin: 0em;
    background-color: #fff;
    border-radius: 0.5em;
    -webkit-box-shadow: 1px 1px 7px -2px #61666E;
    box-shadow: 1px 1px 7px -2px #61666E;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 600px;     
    background-image: url('./res/images/background.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-color: #D7F5FF;
    background-size: cover;
    font-family: Lato;
    font-size: 0.9em;
    letter-spacing: 0.03em;
    color: #333;
}

.box-panel-center {
    padding: 2em;
    flex-basis: 0%;
    flex-grow: 1;
    background-color: white;
}

.box-panel-left {
    flex-basis: 3em;
    border-right: 1px solid lightgray;
}

.box-panel-right {   
    flex-basis: 3em;
    border-left: 1px solid lightgray;
}

.box-section {
    margin-bottom: 3em;
}

.box-section:last-child {
    margin-bottom: 0;
}

.box-row {
    margin-bottom: 1em;
}

.box-row:last-child {
    margin-bottom: 0em;
}

.box-title {
    margin-bottom: 0.2em;
    font-size: 2em;
    color: #F36944;
}

.box-input-title {
    display: block;
    margin-bottom: 0.2em;
}

.button {
    border-radius: 1em;
    padding: 0.5em 1em;
    border: 1px solid #6096B4;
    background-color: #fff;
    font-size: 1.2em;
    line-height: 1;
    letter-spacing: 0.02em;
    font-family: 'Courier New', Courier, monospace;
    cursor: pointer;
}

.button--auth {
    padding-left: 2em;
    padding-right: 2em;
}

.button.tfa_menu,
.button.remove,
.button.passkey_add,
.button.tfa_enable,
.button.tfa_disable,
.button.address_change,
.button.settings_change,
.button.register,
.button.activate,
.button.email_change,
.button.password_change,
.button.password_reset,
.button.login {
    width: 60%;
}

.button.passkey {
    width: 60%;
    background-color: #ffffff;
    color: #000;
}

.button--default {
    background-color: #9661FF;
    color: #fff;
}

.button:hover {
    background-color: #9661FF;
    color: #fff;
}

.button:disabled {
    /*background-color: #efefef;*/
    border-color: #999;
    color: #fff;
    cursor: not-allowed;
}

.activate-send-link,
.password-reset-link {
    float: right;    
}

.auth-list {
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-position: inside;
}

.auth-item {
    margin: 0 0.3em;
    padding: 0;
    display: inline;
}

.login-rememberme-label {
    cursor: pointer;
}


/*.box-panel-center:hover .button:hover:not(.button--default) .button--default {
    background-color: #9661FF;
    color: #f0f;
}*/

.profile-options {
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-position: inside;
}

.profile-option {
    margin: 1em 0;
    text-align: center;
}

.profile-option button {
    width: 80%;
}

.box-back {
    float: right;
    font-size: 2.2em;
    line-height: 1;
    cursor: pointer;
    color: #333;
    margin-left: 0.5em;
    margin-bottom: 0.5em;
}

.box-indent {
    margin-left: 1em;
    margin-right: 1em;
}

.box-result {
    padding: 0.5em 1em;
    text-align: center;
    border-radius: 0.4em;
}

.box-result--success {
    background-color: #A5FF30;
    color: #000;    
}

.box-result--failure {
    background-color: #FFB5B7;
    color: #000;
}

.box-result:empty {
    display: none;
}

/* Two-Factor Authentication */
.tfa-backup-codes {
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-position: inside;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: center;
    cursor: pointer;
}

.tfa-backup-code {
    padding: 0.2em 0;
    color: #000;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.8em;
    line-height: 1;
}

/* Passkeys */
.meapp-passkeys {
    margin: 0;
    padding: 0;
    list-style: none;
    list-style-position: inside;
    display: flex;
    flex-direction: row;
    gap: 1em;
    align-items: stretch;
}

.meapp-passkey {
    padding: 1em;
    border: 2px solid #efefef;
    border-radius: 0.5em;
    flex-basis: 100%;
    flex-grow: 1;
    background-color: #fefefe;
}

.meapp-passkey-remove {
    display: none;
    font-size: 1rem;
    color: #f00;
    float: right;
}

.meapp-passkey:hover .meapp-passkey-remove {
    display: inline;
    cursor: pointer;
}

.meapp-passkey-name {
    font-family: Lato;
    margin-bottom: 0.2em;
    font-size: 1.5rem;
    color: #333;
}

.meapp-passkey-added {
    margin: 0;
    color: gray;
}

/* Speech bubble */
.speech {
    display: none;
    font-size: 0.9em;
    background: rgb(255, 255, 255);
    padding: 0.5em;
    border-radius: 0.4em;
    border: 1px solid #000;
    max-width: 250px;
    color: #000;
    -webkit-box-shadow: 3px 9px 27px -2px #61666E;
    box-shadow: 3px 9px 27px -2px #61666E;
    z-index: 20000;
    user-select: none;
    /*transform: rotate(-3deg) translate(0, -10px);*/
}

.speech::after {
    display: block; width: 0; content: "";
    border: 15px solid transparent;
}

.speech--up::after {
    border-bottom-color: #666;
    border-top: 0;
}

.speech--down::after {
    border-top-color: #666;
    border-bottom: 0;
}

.speech--left::after {
    border-right-color: #666;
    border-left: 0;
}

.speech--right::after {
    border-left-color: #666;
    border-right: 0;
}

.speech.speech--animate {
    animation: speech-wiggle 2500ms infinite ease-in-out;
}

@keyframes speech-wiggle {
    0% { transform: rotate(-3deg); }
    50% { transform: rotate(6deg); }
    100% { transform: rotate(-3deg); }
}

.speech {
    position: absolute;
    margin: 0em;
}

.speech::after 
{ 
    position: absolute; 
}

.speech--up::after {
    top: -15px; left: calc(50% - 15px);
}

.speech--down::after {
    bottom: -15px; left: calc(50% - 15px);
}

.speech--left::after {
    left: -15px; top: calc(50% - 15px);
}

.speech--right::after {
    right: -15px; top: calc(50% - 15px);
}

/* Info icon */ 
.box-info {
    float: right;
    font-size: 1rem;
    color: #0075FF;
    cursor: help;
}

.box-info.completed {
    color: green;
}

.box-info.pending {
    color: orange;
}

.box-info.failed {
    color: indianred;
}

/* Mobile */
@media only screen and (max-width: 600px) {

    .cbanner,
    .cbanner-background--selected .cbanner {
        left: 0.5em;
        right: 0.5em;
        bottom: 0.5em;
        transform: unset;
    }

    .cbanner-background--selected .cbanner {    
        bottom: unset;
    }

    .cbanner-option {
        margin-left: 0.5em;
    }

    .cbanner_buttons_row {
        gap: 0.5em;
    }

    #cbanner_dismiss,
    #cbanner_save {
        min-width: unset;
    }

    .meapp_body,
    .box {
        background-image: none;
    }
  
    .box-panel-left,
    .box-panel-right {
        display: none;
    }

    .meapp_wrapper {
        display: block;
    }

    .meapp_header {
        height: unset;
    }

    .meapp_footer {
        padding: 1em;
        height: unset;
    }

    .logo {        
        font-size: 1.2em;
        padding: 0.5em;
        position: static;
        text-align: left; 
    }

    .toolbar {
        top: 0.5em;
        right: 0.5em;
        gap: 0.5em;
    }

    .account {
        font-size: 0.9em;
        width: 25px;
        height: 25px;
    }

    .footer-items {
        gap: 1em;
    }    

    .box-panel-center {
        padding: 1em;
    }

    .profile-option button {
        width: 90%;
    }

    .box-section {
        margin-bottom: 1.5em;
    }
}