/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

html {
    font-size: 2vw;
    --app-inset-top: 0px;
    --app-inset-bottom: 0px;
}

@media (min-width: 1401px) {
    html {
        font-size: 14px;
    }
}

body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
    background-color: #f7fffc;
    font-family: asap, Helvetica, Arial, sans-serif;
    font-size:12px;
    height:100vh;
    margin:0px;
    padding:0px;
    width:100%;
    position: relative;
    overflow: hidden;
}

body::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--app-inset-bottom);
    background-color: #f7fffc;
    z-index: 80;
    pointer-events: none;
}

.app {
    position: absolute;             /* position in the center of the screen */
    width: 100%;  
    height: 100%;
    left: 0;
    top: 0;
}

.app_background {
    background: url(../img/clef.png) no-repeat center;
    background-size: cover;
    position: absolute;
    width: 100%;  
    height: 100%;
    left: 0;
    top: 0;
    z-index: 10;
    opacity: 1.0;
    transition: opacity 0.5s;
}

.app_background.app_ready {
   	opacity: 0.1;
}

.app_content {
    position: absolute;
    width: 100%;  
    height: 100%;
    left: 0;
    top: 0;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.5s;
}

.app_content.app_ready {
	opacity: 1;
}

/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
    .app {
		display: none;
    }
}


@media screen and (prefers-color-scheme: dark) {
    body {
        /* background-image:linear-gradient(to bottom, #585858 0%, #1B1B1B 51%); */
    }
}

.shell_header {
    height: calc(5.15rem + var(--app-inset-top));
}

.shell_header::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--app-inset-top);
    background-color: #f7fffc;
    z-index: 110;
    pointer-events: none;
}

.shell_header_bar {
    position: fixed;
    top: var(--app-inset-top);
    left: 0;
    width: 100%;
    height: 4.8rem;
    z-index: 100;
    box-sizing: content-box;
    background-color: #1c1a1f;
    border-bottom: 0.35rem solid #ffbf00;
}

.shell_header_brand {
    position: absolute;
    left: 2rem;
    top: 1.1rem;
    height: 2.6rem;
    line-height: 2.6rem;
    font-size: 3.3rem;
    font-weight: bold;
    letter-spacing: -0.04rem;
    color: #ffbf00;
}

.login_container {
    width: 100%;
    min-height: calc(100vh - 5.15rem - 4rem - var(--app-inset-top) - var(--app-inset-bottom));
    margin: 0;
    padding: 4rem 0;
    box-sizing: border-box;
    text-align: center;
    background-color: #f7fffc;
}

.shell_footer {
    position: relative;
    height: 4rem;
    background-color: #1c1a1f;
}

.shell_footer::after {
    content: '';
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--app-inset-bottom);
    background-color: #f7fffc;
    z-index: 80;
    pointer-events: none;
}

.shell_privacy {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translate(0, -50%);
    color: #ffbf00;
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1.4rem;
    text-decoration: none;
}

/* The shell's popup (Create account consent): the site popup of music/docs/design.md, as a system popup.
   This page does not load the site CSS, so the values are repeated here (phone sizes). */
.shell_confirm {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 210;
    box-sizing: border-box;
    padding: calc(1.5rem + var(--app-inset-top)) 1.5rem calc(1.5rem + var(--app-inset-bottom)) 1.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shell_confirm[hidden] {
    display: none;
}

.shell_confirm_box {
    box-sizing: border-box;
    width: 40rem;
    max-width: 100%;
    max-height: 100%;
    overflow-y: auto;
    padding: 2.4rem;
    border-radius: 1rem;
    background-color: #ffffff;
    box-shadow: 0 0.4rem 2.4rem rgba(0, 0, 0, 0.25);
    text-align: center;
}

.shell_confirm_heading {
    padding: 0 0 1.2rem 0;
    font-size: 2rem;
    line-height: 2.57rem;
    font-weight: bold;
    color: #007f5e;
}

.shell_confirm_text {
    font-size: 1.5rem;
    line-height: 1.7rem;
    color: #001f17;
}

.shell_confirm_link {
    display: inline-block;
    margin-top: 0.8rem;
    border-bottom: 0.12rem solid #ffbf00;
    color: #007f5e;
    font-size: 1.5rem;
    line-height: 1.7rem;
    text-decoration: none;
}

.shell_confirm_buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    padding: 2rem 0 0 0;
}

.shell_confirm_agree,
.shell_confirm_cancel {
    box-sizing: border-box;
    min-width: 11rem;
    padding: 0.9rem 2.6rem;
    border: 0;
    border-radius: 3rem;
    background-color: #007f5e;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.5rem;
    line-height: 1.7rem;
    font-weight: bold;
    cursor: pointer;
}

.shell_page[hidden] {
    display: none;
}

/* The web app: Google's own sign-in button (shell.js app_google_web_button), the install offer */
.shell_google_web {
    display: flex;
    justify-content: center;
    min-height: 5rem;
}

.shell_google_web[hidden],
.shell_google[hidden],
.shell_install[hidden],
.shell_install_hint[hidden] {
    display: none;
}

.shell_install {
    width: 30rem;
    max-width: 100%;
    margin: 2rem auto 0 auto;
    text-align: center;
    font-size: 1.5rem;
    line-height: 2rem;
    color: #001f17;
}

.shell_install_button {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 1.6rem;
    line-height: 2.6rem;
    padding: 0 2rem;
    border-radius: 3rem;
    border: 0.2rem solid #007f5e;
    background-color: #007f5e;
    color: #ffffff;
    font-weight: bold;
    cursor: pointer;
}

.shell_install_hint {
    margin-top: 0.8rem;
    color: #007f5e;
}

.shell_google_overlay {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100000;
}

.login_content {
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
}

.login_heading {
    display: block;
    font-size: 2.88rem;
    line-height: 3.6rem;
    font-weight: bold;
    color: #007f5e;
    margin: 0 auto;
    padding: 0 0 2.5rem 0;
    text-align: center;
}

.login_alternative {
    height: 5rem;
    width: 30rem;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 2.5rem;
    border: 0.25rem solid #3384fc;
    box-sizing: border-box;
    font-size: 1.88rem;
    line-height: 4.5rem;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 2.75rem auto;
    padding: 0 0 0 3.75rem;
    color: #3384fc;
    cursor: pointer;
}

.login_alternatives_separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.56rem;
    width: 30rem;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    font-size: 1.82rem;
    line-height: 2.08rem;
    color: #001f17;
    padding: 2.34rem 0;
    letter-spacing: 0.026em;
}

.login_alternatives_separator::before,
.login_alternatives_separator::after {
    content: '';
    flex: 1 1 auto;
    border-top: 0.12rem solid #007f5e;
    min-width: 2rem;
}

.login_form {
    display: block;
    width: 30rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
}

.login_row {
    padding: 0.65rem 0;
}

.login_label {
    display: block;
    width: 100%;
    font-size: 2.08rem;
    line-height: 3.9rem;
    text-align: left;
    padding: 0 0 0.39rem 0;
    color: #001f17;
}

.login_input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 2.08rem;
    line-height: 3.9rem;
    padding: 0 1.3rem;
    border: 0.2rem solid #007f5e;
    border-radius: 0.31rem;
    background-color: #fff;
    color: #001f17;
    outline: none;
}

.login_input::placeholder {
    color: transparent;
}

.login_input:focus {
    border-color: #ffbf00;
}

.login_submit_row {
    padding: 2.6rem 0;
    text-align: center;
}

.login_submit {
    display: inline-block;
    font-family: inherit;
    font-size: 1.8rem;
    line-height: 3rem;
    padding: 0 2.6rem;
    border: 0.2rem solid #007f5e;
    border-radius: 0.65rem;
    background-color: #007f5e;
    color: #fff;
    cursor: pointer;
}

.login_error {
    display: none;
    font-size: 1.68rem;
    line-height: 1.96rem;
    color: #f36f63;
    padding: 1rem 1.5rem 2rem;
}

.login_error_active {
    display: block;
}

.login_forgot_area {
    padding-top: 1.8rem;
    text-align: center;
}

.login_forgot_heading {
    font-size: 1.68rem;
    line-height: 1.92rem;
    color: #001f17;
}

.login_forgot_cta {
    font-size: 1.56rem;
    line-height: 1.92rem;
    display: inline-block;
    border-bottom: 0.12rem solid #ffbf00;
    color: #007f5e;
    padding-top: 0.96rem;
    text-decoration: none;
}
