/*Font*/
@import url('https://fonts.googleapis.com/css?family=Work+Sans:400,500,600,700&display=swap');

/*Basic Setup*/
* {
    padding: 0;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
}

a {
    text-decoration: none;
}

/*Full width*/
html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

html {
    background-image: linear-gradient(to bottom right, #cb0068 0%, #ea4c9d 100%);
}

/*Flexbox body*/
body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #e20074;
}

/*Grid container*/
.container-grid {
    display: grid;
    grid-template-rows: 8% 1fr 1fr 8%;
    height: 97%;
    width: 90%;
    grid-row-gap: .5em;
    grid-column-gap: .5em;
}


/*Grid item section container*/
.block {
    grid-column: 1 / span 2;
    background-color: white;
    /*
    padding-top: .15em;
    padding-bottom: .15em;
    */
    box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    border-radius: 5px;
} 

/*Block adjustments*/
.perfect-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
   
}

.evenly {
    justify-content: space-evenly;
}

.rel {
    position: relative;
}

.clip {
    overflow: hidden;
}


/*Titles and Text*/
.block-title {
    font-family: 'Work Sans';
    font-size: 1.5em;
    color: #666666;
    font-weight: 400;
    text-align: center;
}


/*Logo*/
.planshare-logo {
    height: 45%;
    min-height: 1.25em;
    max-height: 1.5em;
    padding: .25em;
    padding: .25em;
}


/*Form Inputs and Login Button*/
.inputGrid {
    display: grid;
    grid-template-rows: 15% 1fr;
    grid-row-gap: .25em;
    width: 100%;
    height: 100%;
}

.toggleBtnHolder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 2em;
    padding-right: .5em;
    padding-left: .5em;
}

/*Button to change inputs*/
.formToggleBtn {
    color: #666666; 
    background-color: white;
    border: 0;
    font-family: 'Work Sans';
    font-weight: 600;
    font-size: 1em;
    transition: .2s linear;
}

.formToggleBtn:focus {
    outline: none;
}

.activeBtn {
    color: #e20074;
   
}

/*Hold inputs*/
.loginForm {
    display: grid;
    grid-row-gap: .75em;
    width: inherit;
    margin-bottom: .75em;
}

.loginForm label {
    font-family: 'Work Sans';
    color: black;
    font-size: 1.25em;
    font-weight: 500;
    text-align: center;
}

.loginForm div {
    width: inherit;
}

.userInput {
    width: 75%;
    padding: 0;
    color: #666666;
    font-size: 1.15em;
    font-weight: 400;
    text-align: center;
    border: 0;
    border-bottom: 2px solid #e5e5e5;
    background: transparent; 
    cursor: default;
}


.userInput:focus {
    outline: none;
}

.activeInput {
    border-color: #e20074;
    animation: blinker 1s linear infinite;
}

.errorInput {
    border-color: #ff707e;
    color: #ff707e;
}

.hidden {
    display: none;
}

/*Cursor like bink for focusBorder class*/
@keyframes blinker {
    50% {
        border-color: transparent;
    }
}

.default {
   background-color: white;
   color: #e20074;
}

.valid {
    background-color: #34cc99;
    color: white;
}

.invalid {
    background-color: #ff707e;
    color: white;
}

.loginText {
    font-family: 'Work Sans';
    font-weight: 600;
    font-size: 1.25em;
}


/*Number Buttons*/
.btn-grid {
    display: grid;
    width: 100%;
    height: 100%;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr 1fr;
}

.numBtn {
    background-color: #e20074;
    border: 0;
    color: white;
    font-weight: 400;
    font-family: 'Work Sans';
    font-size: 1.5em;
    transition: .1s linear;
}

/*Used for button click animation*/
.jump {
    font-size: 2.5em;
    font-weight: 500   
}

.invisible {
    color: #e20074;
}

.numBtn:focus {
    outline: none;
}



/*Smartphone and Vertical Tablet Screen Size*/
@media only screen and (max-width: 768px) {
    /*Grid layout control*/
    .container-grid {
        width: 97%
    }

    .greeting {     
        font-size: 1.75em;
    }

    .planshare-logo {
        height: 55%;
    }

    /*Bottom edges of last block curved (for rounded edges devices)*/
    .bottom-rounded-edge {
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }
}