/* Custom styles for this template */
:root {
    --md-sys-color-primary: #4285f4; /* Primary color */
    --md-sys-color-primary-container: #4285f4; /* Tonal button primary color */
    --md-sys-color-secondary: #f4ae3e; /* Secondary color */
    --md-sys-color-secondary-container: #bcd1f8; /* Tonal button secondary color */
    --md-sys-color-tertiary: #0f9d58; /* Tertiary color */
    --md-sys-color-background: #f0f4f9; /* Background color */
    --md-sys-color-surface: #ffffff; /* Surface color */
    --md-sys-color-surface-container: #e8f0fe; /* Menu color */
    --md-sys-color-surface-container-highest: #e8f0fe; /* Card color */
    --md-sys-color-surface-container-high: #ebf1f8; /* Dialog color */
    --md-sys-color-text-primary-on-background: #202124; /* Text color */
    --md-sys-color-text-secondary-on-background: #5f6368; /* Secondary text color */
}

html, body {
    overflow-x: hidden;
}

section#reload-classes,
section#choose-classes,
section#class-content,
section#destination-account,
section#confirm-migration,
section#migrating-content,
section#migration-complete,
section#migration-failed,
#select-destination-account-template,
#destination-accounts-exists {
    display: none;
}

#class-template, #class-content-template {
    display: none;
}


a {
    color: inherit;
    text-decoration: inherit;
}

/* Linear Progress */
:root {
    --md-linear-progress-track-height: 16px;
    --md-linear-progress-track-shape: 8px;
    --md-linear-progress-active-indicator-height: 16px;
}

md-linear-progress {
    width: 100%;
}

md-linear-progress.indeterminate {
    margin-top: -16px;
}

md-linear-progress.indeterminate div.inactive-track {
    opacity: 0.5;
}

/* Dialog */
#buy-dialog {
    width: inherit;
    max-width: min(800px, 100% - 48px);
    max-height: min(700px, 100% - 48px);
}


/* Reassign headings to tailwind sizes */
h1 {
    font-size: 2.25rem !important;
    line-height: 2.5rem !important;
    font-weight: 700 !important;
}

h2 {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
    font-weight: 700 !important;
}

h3 {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
    font-weight: 700 !important;
}

h4 {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
    font-weight: 700 !important;
}


@font-face {
    font-family: HarryThin;
    src: url("../fonts/harry-thin.ttf");
}

@font-face {
    font-family: Google Sans;
    src: url("../fonts/google-sans.ttf");
}

body {
    font-family: 'Roboto', sans-serif;
    min-height: 100%;
    background-color: var(--md-sys-color-background);
}

.card.warning {
    --md-sys-color-surface: #fff8e1;
    --md-sys-color-outline: #ffa726;
}

.card.error {
    --md-sys-color-surface: #ffebee;
    --md-sys-color-outline: #f44336;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    transition: opacity 0.5s ease-in-out;
}

main {
    transition: opacity 0.5s ease-in-out;
}

/* Logo */
.logo {
    color: #666666;
}

.logo img {
    margin-right: 10px;
    height: 50px;
    width: auto;
}

.logo .title {
    margin: 0;
    font-family: 'HarryThin', sans-serif;
    font-weight: bold;
}

.logo .subtitle {
    margin: 0;
    font-weight: normal;
}

.logo.logo-large img {
    height: 100px;
}

.logo.logo-large .title {
    font-size: 2em;
}

.logo.logo-large .subtitle {
    font-size: 1.5em;
}

#profile-panel {
    cursor: pointer;
}

.card .content {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    padding: 16px;
    gap: 16px;
}

#welcome-card {
    background-image: url("/images/banner.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
}

#credits-container .card .content {
    justify-content: start;
}

.loading {
    display: none;
    padding: 50px;
}

.actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.actions #confirm-content {
    align-self: start;
}

#destination-account-signin {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*
#btn-signinwithgoogle {
    --md-outlined-button-container-shape: 4px;
    --md-outlined-button-outline-color: #dadce0;
    background: #FFFFFF;
    display: flex;
    flex-direction: row;
    max-width: 200px;
}

#btn-signinwithgoogle:hover {
    background: #f8fafe;
}

#btn-signinwithgoogle .google-logo {
    height: 18px;
    margin-right: 8px;
    min-width: 18px;
    width: 18px;
}

#btn-signinwithgoogle .google-label {
    font-family: "Google Sans", arial, sans-serif;
    font-weight: normal;
    color: #3c4043;
}
*/

.gsi-material-button {
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -webkit-appearance: none;
    background-color: WHITE;
    background-image: none;
    border: 1px solid #747775;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: #1f1f1f;
    cursor: pointer;
    font-family: 'Roboto', arial, sans-serif;
    font-size: 14px;
    height: 40px;
    letter-spacing: 0.25px;
    outline: none;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    text-align: center;
    -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
    vertical-align: middle;
    white-space: nowrap;
    width: auto;
    max-width: 400px;
    min-width: min-content;
}

.gsi-material-button .gsi-material-button-icon {
    height: 20px;
    margin-right: 12px;
    min-width: 20px;
    width: 20px;
}

.gsi-material-button .gsi-material-button-content-wrapper {
    -webkit-align-items: center;
    align-items: center;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    height: 100%;
    justify-content: space-between;
    position: relative;
    width: 100%;
}

.gsi-material-button .gsi-material-button-contents {
    -webkit-flex-grow: 1;
    flex-grow: 1;
    font-family: 'Roboto', arial, sans-serif;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
}

.gsi-material-button .gsi-material-button-state {
    /*-webkit-transition: opacity .218s;*/
    /*transition: opacity .218s;*/
    bottom: 0;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.gsi-material-button:disabled {
    cursor: default;
    background-color: #ffffff61;
    border-color: #1f1f1f1f;
}

.gsi-material-button:disabled .gsi-material-button-contents {
    opacity: 38%;
}

.gsi-material-button:disabled .gsi-material-button-icon {
    opacity: 38%;
}

.gsi-material-button:not(:disabled):active .gsi-material-button-state,
.gsi-material-button:not(:disabled):focus .gsi-material-button-state {
    background-color: #dadada;
    opacity: 12%;
}

.gsi-material-button:not(:disabled):hover {
    -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
}

.gsi-material-button:not(:disabled):hover .gsi-material-button-state {
    background-color: #bcd1f8;
    opacity: 8%;
}


/* FAQ */
section#faq {
    --md-sys-color-surface: transparent;
}

section#faq md-list-item {
    display: flex;
    margin-top: 12px;
    font-size: 1.2em;
    font-weight: 400;
    cursor: pointer;
}
section#faq .panel-content {
    display: none;
    padding: 0 16px;
    margin: 16px 0;
    border-left: 2px solid var(--md-sys-color-primary); /* Optional: visual separator */
    margin-left: 12px; /* Indentation to align with content */
    color: var(--md-sys-color-text-primary-on-background);
}

section#faq .panel-content.open {
    display: block;
}

section#faq md-icon {
    transition: transform 0.2s ease-in-out;
}
section#faq md-list-item > md-icon, md-list-item[aria-expanded="true"] > md-icon {
    transform: rotate(-90deg);
}
section#faq md-list-item[aria-expanded="true"] > md-icon {
    transform: rotate(00deg);
}


#card-migration-status {
    margin: 0 auto;
    padding: 20px;
    min-width: 400px;
    max-width: 600px;
}

#migration-status {
    font-family: monospace;
    font-size: 1.2em;
    color: #666666;
    max-height: 4em;
    overflow: scroll;
}

#migration-status #previous-actions {
    opacity: 0.6;
}

/* Footer sticky at bottom*/
footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f8f9fa;
}

footer, footer a {
    color: #666666;
}

.grecaptcha-badge {
    visibility: hidden !important;
}