﻿/*:root {
    --safe-padding: calc(min(calc(calc(env(safe-area-inset-bottom) + env(safe-area-inset-left)) / 3), 20px))
}
*/
* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
}

p {
    margin-block-start: 0;
}

.mdc-top-app-bar {
    z-index: 7;
}

.bid-fullscreen {
    top: 0;
    left: 0;
    min-height: 100%;
    width: 100%;
    height: auto;
}

.bid-fullscreen-bg {
    z-index: -1;
    min-height: 100%;
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #F9F3FF;
    /*    padding: var(--safe-padding) 0 var(--safe-padding) 0;*/
}


.bid-forward {
    z-index: 999;
}

.bid-main-card {
    padding: 1rem;
    z-index: 3;
    max-height: 100%;
    width: 100%;
    max-width: 700px;
    display: flex;
}

.bid-main-cell {
    width: 100%;
    height: 100%;
    /*height: 100vh;*/ /* Fallbackcalc- for browsers that do not support Custom Properties */
    /* 48px for the material grid padding 2 times (top and bottom) */
    /* TODO : causes issues on ios apps, to be investigated */
    /*    height: calc(var(--vh) - 48px);*/
    display: flex;
    flex-direction: column;
}

.bid-centered-cell {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    overflow: auto;
}


.main-body {
    /*    padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 // env(safe-area-inset-bottom) env(safe-area-inset-left);*/
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}



.bid-change-language-container {
    align-self: center;
    flex-grow: 0;
    z-index: 2;
    margin-top: 0.5rem;
    display: flex;
    justify-content: end; 
    align-items: center;
    /*    padding-bottom: var(--safe-padding);*/
}

.bid-alert {
    margin-bottom: 1rem;
}

.baloise-headerlogo {
    top: 11%;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: block;
    width: 100%;
    max-width: 30em;
}


.bid-change-language-container [type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bid-change-language-container label {
    cursor: pointer;
}

.select-culture {
    width: 100px;
    height: 40px;
}

.select-culture-anchor:focus-visible {
    outline: 5px auto -webkit-focus-ring-color;
}

.select-culture-menu {
    width: 100px;
    min-width: 100px;
}

.select-culture-anchor {
    padding-left: 0px !important;
    align-items: center !important;
}

.select-culture-icon {
    margin-left: 5px;
    margin-right: 5px;
}

.culture-flag {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.svg-icon {
    height: 1.5rem;
    width: 1.5rem;
}

.bid-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: auto;
}

.mdc-card {
    webkit-animation: fadein 0.3s ease-in; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 0.3s ease-in; /* Firefox < 16 */
    -ms-animation: fadein 0.3s ease-in; /*Internet Explorer */
    -o-animation: fadein 0.3s ease-in; /*Opera < 12.1 */
    animation: fadein 0.3s ease-in;

    border-radius: 0.75rem;
}

.mdc-list-item {
    height: 48px;
    display: flex;
    align-items: center;
}

.mdc-list-item > .material-icons {
    margin-right: 5px;
}

.bid-select-form {
    overflow: unset;
}

.bid-subaccount-title {
    font-size: 1em;
}

.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
    color: var(--mdc-theme-primary); /* or primary */
}

.mdc-select:not(.mdc-select--disabled).mdc-select--focused.bid-inputfield .mdc-floating-label {
    color: var(--mdc-theme-primary); /* or primary */
}

.bid-consent-card {
    padding: .5rem;
    height: 75vh;
}

.bid-consent-logo {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 32px;
}


.bid-consent-content {
}

.bid-consent-controls {
    flex-grow: 0;
    margin: 0.5rem 0 0.5rem 0;
}

.bid-inputfield {
    margin-bottom: 1rem;
}

    .bid-inputfield > label > input:required:invalid {
        outline: none;
    }

.bid-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bid-button {
    margin: 0 0.5rem;
    justify-content: space-between;
    height: 56px;
    font-size: 1rem;
}

.bid-row {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    align-items: center;
    margin: 0.5rem 0;
}

    .bid-row:first-child {
        margin-top: 0;
    }

    .bid-row:last-child {
        margin-bottom: 0;
    }

.bid-button:first-child {
    margin-left: 0;
}

.bid-button:last-child {
    margin-right: 0;
}

.bid-order-last {
    order: 99;
}

.bds-button {
    box-shadow: 0 0 0 0 !important;
}

.bds-button:hover {
    box-shadow: 0 0 0 0 !important;
    background-color: var(--bds-theme-hover);
}

.bds-button:active {
    box-shadow: 0 0 0 0 !important;
    background-color: var(--bds-theme-active);
}

.bds-button:focus {
    box-shadow: 0 0 0 0 !important;
}

.bds-button:focus-visible {
    box-shadow: 0 0 0 0 !important;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: 5px;
}

.justify-content-center {
    justify-content: center;
}

.flex-grow {
    flex-grow: 1;
}

.row-baselined {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
}

.hide {
    visibility: hidden;
}

.invisible {
    display: none;
}

.h-100 {
    min-height: 100%;
    height: 100%;
}

.w-100 {
    min-width: 100%;
    width: 100%;
}

.p-1 {
    padding: 1rem;
}

.pr-1 {
    padding-right: 1rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

@keyframes fadein {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0px;
}

.left {
    background: url(../img/Philharmonie_2050_2700.jpg);

    background-size: cover;
    display: flex;
    justify-content: end;
    align-items: start;
    position: relative;
}

.right {
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #e1d9ff;
}

.card {
    max-width: 540px;
    align-self: center;
    box-shadow: var(--bds-theme-box-shadow);
}

.logo {
    display: flex;
    justify-content: center;
    width: 100%;
    padding-bottom: 24px;
}

/* 
**   Removing blue background on autofill for chrome 
**   https://stackoverflow.com/questions/2781549/removing-input-background-colour-for-chrome-autocomplete
*/
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #f5f5f5 inset !important;
}

/*
** Fix autofill on Chromium that doesn't make the label go up
*/
.mdc-text-field__input:-webkit-autofill + .mdc-floating-label {
    -webkit-transform: translateY(-106%) scale(0.75);
    transform: translateY(-106%) scale(0.75);
}

.txt-center {
    text-align: center;
}

.shape {
    width: 330px;
    height: 330px;
    position: absolute;
    bottom: 10%;
    right: 0%;
    display: grid;
    grid-template: 1fr 1fr 1fr / 1fr 1fr 1fr;
}

.shape-div {
    background-color: #6c2273;
}

.shape-div:nth-child(1) {
    border-top-left-radius: 0.5em;
}

.shape-div:nth-child(2),
.shape-div:nth-child(4) {
    background: transparent;
}

.shape-div:nth-child(3) {
    border-top-right-radius: 0.5em;
}

.shape-div:nth-child(7) {
    border-bottom-left-radius: 0.5em;
}

.align-self-center {
    align-self: center;
}
