/* Add mobile app page-specific background color, padding, and font smoothing */
.webview-sign-in, .webview-sign-up, .webview-forgotten-password {
    background: #0073C7;
    padding: 0 18px;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    font-weight: 400;
}

.webview-sign-in.slaps-webview, .webview-sign-up.slaps-webview {
    background: #FFFFFF;
}


/* Undo mobile Safari sytling */
.webview-sign-in input[type=text], 
.webview-sign-up input[type=text], 
.webview-forgotten-password input[type=text], 
.webview-sign-in input[type=button], 
.webview-sign-up input[type=button], 
.webview-forgotten-password input[type=button] {
    -webkit-appearance: none; 
}


/* Hide global header and nav for the following pages in mobile app */
.webview-sign-in .outer2, .webview-sign-up .outer2, .webview-forgotten-password .outer2 {
    display: none; 
}

.webview-sign-in .socialSignup-container {
    width: 100%;
}

/* Sign in page logo above form */
.logo-sign-in {
    margin: 60px auto 30px;
    border:none;
    height:auto;
    width: 140px;
    max-width: 100%;
}

.slaps-webview .logo-sign-in {
    margin-top: 100px;
}

.slaps-webview .logo-sign-up {
    margin: 100px auto 30px;
    border:none;
    height:auto;
    width: 100px;
    max-width: 100%;
}

/* Card */
.card-shadow-sm {
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid rgba(221, 221, 221, 0.8);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
}


/* Button */
.dk-button-lg {
    font-size: 18px;
    padding: 12px;
    font-weight: bold;
    border: none;
    border-radius: 6px !important;
}

.dk-button-blue-500 {
    background: #0073C7 !important;
    border-radius: 6px !important;
    color: white;
}

.dk-button-blue-500:active {
    background: #0061A8;
}

.dk-button-blue-500:focus, .webview-sign-in .button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 156, 228, 0.4);
}

/* Sign in error notifications */
.webview-forgotten-password .signinBoxNotification,
.webview-sign-in .signinBoxNotification {
    background:rgba(255,204,0, 0.3);
    padding: 12px 18px;
    margin-bottom: 18px;
    color: #68696b;
    display: none;
    font-size: 14px;
    border-radius: 30px;
    text-align: center;
    line-height: 1.3;
}


/* Forgot password */
.webview-sign-in .signinForgotContainer {
    margin-top: 0;
    margin-bottom: 24px;
}

/* Inputs */
.webview-sign-in .dk-input {
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.2);
    font-size: 16px;
    padding: 12px;
    display: block;
    color: black;
    font-weight: 400;
}

.webview-sign-in .dk-input::placeholder, .webview-sign-up .homeFormInput::placeholder {
    color: rgba(0,0,0,0.5);
}

.webview-sign-in .dk-input:focus, .webview-sign-up .homeFormInput:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(21, 156, 228, 0.4);
}

/* Sign in callout that links to /signin */
.webview-sign-in .callout-below-form,
.webview-sign-up .callout-below-form,
.webview-forgotten-password .callout-below-form {
    margin-top: 30px;
    text-align: center;
    color: white;
    font-size: 16px;
}

.webview-sign-in .callout-below-form a,
.webview-sign-up .callout-below-form a,
.webview-forgotten-password .callout-below-form a {
    text-decoration: underline;
    color: white;
    font-weight: bold;
}

.slaps-webview .callout-below-form, .slaps-webview .callout-below-form a {
    color: #000000 !important;
}

/* --------------------------- */
/* Sign up mobile app */

.webview-sign-up .button {
    text-transform: initial;
    font-weight: bold;
    background: #0073C7;
    font-size: 18px;
    padding: 12px;
    border: none;
    border-radius: 6px !important;
}

.webview-sign-up .homeFormInputContainerStandalone,
.webview-sign-up  .regFormContainerStandalone .homeFormInputContainer {
    border: initial !important;
}

.webview-sign-up .homeFormInputContainer.no-pad-left {
    padding-left: 0 !important;
}

.webview-sign-up .homeFormInput {
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 6px;
    box-sizing: border-box;
    padding: 12px;
    font-size: 16px;
    display: block;
    color: black;
    font-weight: 400;
    line-height: normal;
}

.webview-sign-up .notify {
    background:rgba(255,204,0, 0.3);
    padding: 12px 18px;
    margin-bottom: 18px;
    color: #68696b;
    display: none;
    font-size: 14px;
    border-radius: 30px;
    text-align: center;
    line-height: 1.3;
    text-transform: none;
    margin-top: 0;
}

/* --------------------------- */


/* --------------------------- */
/* Forgot Password mobile app */


.webview-forgotten-password .inputForgotPasswordEmail {
    width: 100%;
    line-height: normal;
    padding: 12px;
    font-size: 16px;
    color: #000;
    box-sizing: border-box;
    height: auto;
}

.buttonSmall {
    font-size: 18px;
    padding: 12px;
    font-weight: bold;
    border: none;
    border-radius: 6px !important;
    background: #0073C7 !important;
    color: white;
    text-transform: none;
    width: 100%;
}

/* --------------------------- */

/* --------------------------- */
/* new Dashboard mobile app */

html, body.webview-dashboard, .webview-dashboard .wrapper, .webview-dashboard .everythingButNavNoTopMargin, .webview-dashboard .no-releases {
    height: calc(100%); /* Needed to vertically stretch each element up the DOM to match browser height in order to vertically center .no-releases message */
    -webkit-overflow-scrolling: touch;
}

.webview-dashboard {
    background: #FAFAFA;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    font-weight: 400;
}

/* Start No releases state */
.webview-dashboard .no-releases {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 18px;
}

.webview-dashboard .no-releases .message {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    line-height: 1.5;
    color: rgba(0,0,0,0.5);
}

.webview-dashboard .no-releases .message img {
    width:210px;
    max-width: 100%;
}

.webview-dashboard .no-releases .message-title {
    font-size: 17px;
    font-weight: bold;
}

.webview-dashboard .no-releases .message-content {
    font-size: 15px;
}

.webview-dashboard .no-releases .btn {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.333rem;
    width: 100%;
    font-weight: bold;
    text-align: center;
    background: #0073C7;
    color: #FFF;
    cursor: pointer;
    font-size: 10pt;
    position: relative;
    top: 30px;
}
.webview-dashboard .no-releases .btn i {
    margin-right: 5px;
}
/* END No releases state */

/* Start Releases state */
.webview-dashboard .releases {
    padding: 18px 18px 1px; /* 1px padding-bottom needed here for some reason to kick in the margin-bottom on .release-card-shadow-sm below */
}

.webview-dashboard .release-card-shadow-sm {
    background: #FFFFFF;
    border: 1px solid rgba(221, 221, 221, 0.8);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    margin-bottom: 18px;
    overflow: hidden; /* Trim overflow so that cover art gets rounded corners */
}

.webview-dashboard .release-card-shadow-sm a,
.webview-dashboard .release-card-shadow-sm a:hover,
.webview-dashboard .release-card-shadow-sm a:active,
.webview-dashboard .release-card-shadow-sm a:focus {
    text-decoration: none;
}

.webview-dashboard .releases img {
    width: 100%;
}

.webview-dashboard .release-details {
    font-size: 15px;
    color: #222;
    padding: 18px;
    line-height: 1.4;
}

.webview-dashboard .release-title-and-artist {
    font-weight: bold;
}

.webview-dashboard .number-of-tracks {
    color: rgba(34,34,34,0.7);
}

/* Aspect ratio trick using SVG to control whatever ratio we want in HTML */
/* 
    E.g.
    <div class="aspect-ratio">
        <svg viewBox="0 0 16 9"></svg>
        <div>
            <img src="cover-art.jpg">
        </div>
    </div>

    Found: https://stackoverflow.com/questions/1495407/maintain-the-aspect-ratio-of-a-div-with-css/53245657#53245657
*/
.aspect-ratio {
    display: grid;
    position: relative
}

.aspect-ratio > * {
    grid-area: 1/1;
}

.aspect-ratio div {
    display: flex;
    align-items: center;
    justify-content: center;
    position:absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.webview-dashboard .release-status--processing {
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
    background: rgba(0, 115, 199, 0.05);
    color: #0073C7;
    align-items: center;
}

.webview-dashboard .release-status--processing svg {
    width: 13px;
    height: auto;
    color: #0073C7;
    margin-right: 6px;
}


.webview-dashboard .release-status--error {
    font-size: 13px;
    font-weight: bold;
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 30px;
    margin-bottom: 12px;
    background: #FFF1F2;
    color: #8B0D17;
    align-items: center;
}

.webview-dashboard .release-status--error svg {
    width: 13px;
    height: auto;
    color: #FF2B3A;
    margin-right: 6px;
}

/* END Releases state */


/* --------------------------- */

/* --------------------------- */
/* new Cover Songs Licenses mobile app */

body.webview-cover-songs {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    font-weight: 400;
}

body.webview-cover-songs, .webview-cover-songs .wrapper, .webview-cover-songs .everythingButNavNoTopMargin, .webview-cover-songs .no-cover-songs {
    height: calc(100%); /* Needed to vertically stretch each element up the DOM to match browser height in order to vertically center .no-cover-songs message */
    -webkit-overflow-scrolling: touch;
}

.webview.webview-cover-songs {
    background: #FAFAFA;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    font-weight: 400;
}

.webview.webview-cover-songs .no-cover-songs {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 18px;
    justify-content: center;
    align-items: center;
}

.webview.webview-cover-songs .message {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: center;
    line-height: 1.5;
    color: rgba(0,0,0,0.5);
    font-size: 15px;
}

.webview.webview-cover-songs .message svg {
    width:85px;
    max-width: 100%;
    margin: 0 auto;
}

.webview.webview-cover-songs .message-title {
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    display: block;
    margin-top: 12px;
}

.webview.webview-cover-songs .message-content p {
    font-size: 15px;
    margin: 12px 0;
}

.webview.webview-cover-songs .need-information {
    margin: 0 18px 18px;
    padding: 18px;
    color: #222;
    background: #fff;
    border-radius: 6px;
    border: 1px solid rgba(221, 221, 221, 0.8);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.webview.webview-cover-songs .buttonSmall {
    font-size: 16px;
    display: block;
    width: initial;
    margin-top: 18px;
}

.webview.webview-cover-songs .has-cover-songs {
    padding-bottom: 18px;
}

.webview.webview-cover-songs .has-cover-songs .message {
    padding: 18px 18px 24px;
    color: #222;
}

.webview.webview-cover-songs .cover-songs-list {
    margin-top: 0;
    margin-bottom: 0;
    background: #fff;
    border: 1px solid #E6E6E6;
    font-size: 15px;
    list-style-type: none;
    padding: 0;
}

.webview.webview-cover-songs .cover-songs-list li {
    padding: 18px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    display: flex;
}

.webview.webview-cover-songs .cover-songs-list li:last-child {
    border-bottom: 0;
}

.webview.webview-cover-songs .cover-songs-list .cover-song-details {
    flex-grow: 2;
    line-height: 1.5;
    align-self: center;
    color: #222;
}

.webview.webview-cover-songs .cover-songs-list .cover-song-download {
    align-self: center;
    justify-self: center;
}
.webview.webview-cover-songs .cover-songs-list .cover-song-download a {
    display: inline-block;
    padding: 12px;
    flex-shrink: 0;
    text-align: center;
    align-self: center;
    justify-self: center;
    text-decoration: none;
    border-radius: 6px;
    margin-left: 12px;
    font-size: 18px;
    border: 1px solid rgba(0,0,0,0.1);
    color: #0073C7;
}

.webview.webview-cover-songs .cover-songs-list .cover-song-download a:active, .webview.webview-cover-songs .cover-songs-list .cover-song-download a:hover {
    background:rgba(0, 115, 199, 0.02);
    border: 1px solid #0073C7;
}


/* --------------------------- */


/* iPhone SE and small screens */
@media screen and (max-width: 374px) {

    .webview-sign-in .logo-sign-in, .webview-sign-up .logo-sign-in, .webview-forgotten-password .logo-sign-in  {
        margin: 30px auto 24px;
    }
    
    .card-shadow-sm {
        padding: 18px;
    }

    .webview-sign-in .signinForgotContainer {
        margin-bottom: 18px;
    }

    .webview-sign-in .callout-below-form, .webview-sign-up .callout-below-form {
        margin-top: 24px;
    }

}
/* END iPhone SE and small screens */

/* -------------------------- */
/* -------------------------- */

/* new Lyrics page mobile app */

body.webview-lyrics {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    font-weight: 400;
}

body.webview-lyrics, .red.bold {
    height: calc(100%); /* Needed to vertically stretch each element up the DOM to match browser height in order to vertically center .no-cover-songs message */
    -webkit-overflow-scrolling: touch;
}

.webview.webview-lyrics {
    background: #FAFAFA;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    font-weight: 400;
}

.webview.webview-lyrics .lyricsTextarea {
    font-size: 16px;
    font-family: 'Lato', sans-serif;
    border-radius: 6px;
}

.webview.webview-lyrics .ul-mobileApp{
    margin-left: 0px;
    line-height: 32px;
}

.webview.webview-lyrics .red.bold{
    background-color: #FEF9C3;
    color: #854D0E;
    font-size: 14px;
    padding: 6px 18px;
    text-align: center;
    border-radius: 36px;

}

.webview.webview-lyrics .button.webviewFullWidthMobileButton{
    background-color: #0073C7;
}

.webview.webview-lyrics .lyrics-track-name{
    text-align: center;
    padding-top: 18px;

}


/* -------------------- */
/* START CREDITS MOBILE APP */

body.webview-credits {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
    font-weight: 400;
}

body.webview-credits {
    height: calc(100%); /* Needed to vertically stretch each element up the DOM to match browser height in order to vertically center .no-cover-songs message */
    -webkit-overflow-scrolling: touch;
}

.webview.webview-credits .mobileCredits {
    display: none;
}

.webview.webview-credits .mobileCreditsBodyCopy {
    font-size: 12pt !important;
}

/* .webview.webview-credits .coolSelectModern {
    width: 100% !important;
    max-width: 100%;
} */

.webview.webview-credits .coolSelectModern {
    display: block;
        font-size: 15px;
        font-family: sans-serif;
        font-weight: 400;
        color: #222;
        line-height: 1.3;
        padding: 3px 30px 3px 9px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0;
        border: 1px solid rgba(0,0,0,0.2);
        border-radius: 6px;
        -moz-appearance: none;
        -webkit-appearance: none;
        appearance: none;
        background-color: #fff;
        background-image: url('../images/chevron-down-solid.svg');
        background-repeat: no-repeat, repeat;
        background-position: right .7em top 50%, 0 0;
        background-size: .65em auto, 100%;
        height: 42px;
}

.webview.webview-credits .fa.fa-caret-down.selectCaret.gray {
    display: none;
}


.webview.webview-credits .mobileCreditsFullWidth {
    width: 100% !important;
    max-width: 100% !important;
}

.webview.webview-credits .coolInputModern {
    width: 100% !important;
    max-width: 100% !important;
}

.webview.webview-credits .mobileMarginTop5 {
    margin-top: 12px !important;
}

.webview.webview-credits .buttonSmallGreen {
    font-size: 18px;
    padding: 12px;
    font-weight: bold;
    border: none;
    border-radius: 6px !important;
    background: #009813 !important;
    color: white;
    text-transform: none;
    width: 100%;
}

.webview.webview-credits .green.bold.containsChanges {
    background-color: #F5F5F5;
    color: #858585 !important;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px !important;
    font-weight: 400;
}

.webview.webview-credits .green.bold.changesHaventBeenSubmittedYet {
    background-color: #F5F5F5;
    color: #858585 !important;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px !important;
    font-weight: 400;
    line-height: 1.3em;
}

.webview.webview-credits .tableRow.creditRow .tableCell {
    border-bottom: 1px solid rgba(0,0,0,0.1) !important;
}

.webview.webview-credits .tableCell.bold {
    top: 0px !important;
    background: #0073C7!important;
    color: #fff;
    text-align: center;
    font-size: 16px;
    padding: 18px;
    line-height: 1.3;
}

.webview.webview-credits .fa.fa-drag-handle.storeDragHandle.ui-sortable-handle {
    display: none;
}

.webview.webview-credits .creditColName {
    padding-left: 0 !important;
}

.webview.webview-credits .red.highlightedFieldsAreRequiredMessage {
    color: #CC0000;
    margin-bottom: 12px !important;
}

.webview.webview-credits .creditsFinalizing.green {
    display: table;
    margin: 12px auto;
}

.webview.webview-credits .creditsHighlightedFieldsAreRequired {
    border: 1px solid red;
    background-color: rgba(255, 0, 0, 0.05)
}

.webview.webview-credits .creditColRole {
    width: auto !important;
    display: block;
}

.webview.webview-credits .creditsTrash {
    margin-left: 12px;
    margin-right: -15px;
}

.webview.webview-credits .tableInputCaretCredits {
    max-width: initial;
}

.webview.webview-credits .finePrint {
    font-size: 14px;
}