/*******************************************************************************
 * Copyright (c) 2018 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
 @font-face {
    font-family: 'Asap';
    font-style: normal;
    font-stretch: 100%;
    src: url("../../fonts/Asap.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

 @font-face {
    font-family: BunueloLight;
    src: url("/fonts/BunueloCleanPro-Light.woff");
}

body {
    font-family: Asap;
    margin: 0 1px;
    overflow: hidden;
}

.bankHeadingBlock {
    height: 36px;
    background-color: #deedf7;
}

.bankHeadingBlockFlexContainer { /* The same flexbox will be used to hold the bank heading with and without the account in it */
    height: 36px;
    background-color: #deedf7;
    display: flex;
    justify-content: space-between;
}

.bankHeadingBlockFlexContainer > span {
    margin: auto 10px auto auto;
}

.bankHeadingBlockFlexContainer > span > img {
    height: 24px;
    width: 24px;
    opacity: 0.41;
    padding-left: 10px;
}

.bankHeading {
    font-weight: 500;
    font-size: 16px;
    color: #5b6888;  /*#5E6B8D;*/
    letter-spacing: 0;
    text-align: left;
    padding: 9px 0px 9px 18px;
}

.stepIntro {
    background-color: rgba(222,237,247,0.44);
    height: 50px;
}

.stepIntroText {
    font-size: 14px;
    color: #272727;
    letter-spacing: 0;
    text-align: left;
    padding: 17px 0px 15px 18px;
}

.loader {
    position: absolute;
    left: 43%;
    top: 50%;
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

#fail, #welcome {
    display: flex;  /** Initially the spinner is showing so hide this div **/
    height: calc(100% - 36px);    /** 36px is the global ebank headers **/
}

.flexWarningContainer {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: center;
    margin: 24px 24px 0;
    flex-grow: 1;
    overflow: hidden;
}

.flexWarningContainer > div {
    text-align: center;
    line-height: 24px;
    font-weight: 500;
    font-size: 14px;
    align-self: center;
    color: #1B1C34;
    letter-spacing: 0;
}

.flexWelcomeContainer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    flex: 1;
}


.flexWelcomeContainer > figure {
    flex: 1;  /* image will take up 1 flex space */
    display: flex;
    overflow: hidden;
    position: relative;
    margin: 10px;
}

.flexWarningContainer > figure > img, .flexWelcomeContainer > figure > img {
    margin: auto;
    max-height: 100%;
    max-width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.welcomeTextWrapper {
    display: flex;
    flex-direction: column;
    flex: 3;  /* text part will take up 3 flex space */
    overflow: hidden;
    justify-content: center;
}

.welcomeBorderWrapper > p {
    font-size: 16px;
    font-weight: 500;
    color: #5E6B8D;
    letter-spacing: 0;
}

.welcomeBorderWrapper {
    display: flex;
    align-items: center;
    width: 88%;  /* to control how long the border line is displayed */
}

.welcomeLine {
    border-top: 1px solid #C3C8D7;
    flex-grow: 1;
    margin: 0 10px;
}

.welcomeBankTitle {
    font-family: BunueloLight, Arial Narrow, Helvetica, Arial;
    font-size: 12vw;  /* use vw (viewport width) as the unit instead of hardcoding the font size sp
                         that the font size is scalable */
    color: #5E6B8D;
    letter-spacing: 0;
}

.welcomeBankTitle > p {
    margin: 0;
}

@media (max-width: 375px) {
    .bankHeading {
        font-size: 14px;
        padding-left: 5px;
    }

    .bankHeadingBlockFlexContainer > span {
        margin-right: 5px;
    }

    .bankHeadingBlockFlexContainer > span > img {
        padding-left: 0px;
    }
}

@media (max-width: 620px) {
    .welcomeTextWrapper {
        justify-content: center;  /* need to adjust the alignment to the center because the image
                                     shrinks causing mis-alignment */
    }
}

@media (min-width: 950px) {
    .welcomeBankTitle {
        font-size: 10vw; /* to tone down the text as the image won't stretch past its max size */
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
