body{
    position: fixed;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    background-color: white;
    font-family: 'Roboto', sans-serif;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
}
.selective{
    width: 90%;
    border-bottom: 1px solid rgba(0,0,0,0.4);
    height: 5%;
    margin-top: 3%;
    margin-left: 5%;
    margin-right: 5%;
    position: relative;
    overflow: visible;
}
.selector{
    width: 95%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    padding:0;
    margin: 0 0 0 2.5%;
    list-style-type: none;
    background: white;
    -webkit-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#menu{
    opacity: 0;
    height: 100%;
    -webkit-transition: opacity 0.5s, height 0.5s;
    transition: opacity 0.5s, height 0.5s;
    z-index: 3;
}
.selection{
    width: 90%;
    border-radius: 0px;
    cursor: pointer;
}
.placeholder{
    width: 90%;
    color: rgba(0,0,0,0.8);
    display: inline-block;
    vertical-align: middle;
}
#selectMonth{
    text-indent: 6.5%;
}
#caret{
    display: inline-block;
    vertical-align: middle;
}
.swiper-container {
    width: 100%;
    height: 79%;
}  
.card{
    position: relative;
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
    margin-bottom: 5%;
    -webkit-transition: -webkit-transform 1s;
    -moz-transition: -moz-transform 1s;
    -o-transition: -o-transform 1s;
    transition: transform 1s;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform-origin: 50% 50%;
}
.card.flipped {
    -webkit-transform: rotateY( 180deg );
    -moz-transform: rotateY( 180deg );
    -o-transform: rotateY( 180deg );
    transform: rotateY( 180deg );
}
.front,.back{
    width: 100%;
    height: 100%;
    position: absolute;
    -webkit-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -o-backface-visibility: hidden;
    backface-visibility: hidden;
}
.back{
    -webkit-transform: rotateY( 180deg );
    -moz-transform: rotateY( 180deg );
    -o-transform: rotateY( 180deg );
    transform: rotateY( 180deg );
}
.scrollable{
    width: 100%;
    height: 65%;
    overflow-y: scroll;
}

@media only screen and (max-width: 1080px){
    .selective{
        margin-bottom: 2.5%;
    }
    
    .selection:nth-of-type(1){
        margin-top: 2.5%;
    }
    .selection{
        padding: 2.5% 5% 2.5% 5%;
    }
    .selection:last-of-type{
        margin-bottom: 2.5%;
    }
    .swiper-button-prev{
        display: none;
    }
    .swiper-button-next{
        display: none;
    }
    .card{
        height: 85%;
        margin-top: 5%;
    }
    .main{
        margin-bottom: 5%;
        font-size: 10vw;
        margin-left: 4.25%;
    }
    div.cells:not(.check){
        margin-bottom: 1%;
    }
   input.cells{
        margin-bottom: 3%;
        font-size: 5.4vw;
    }
    .login{
        height: 15%;
    } input.cells:not(#password):not(#password2):not(#email):not(#balance):not(#payAmount):not(#payDate):not(.login){
        height: 11%;
    }
    #password,#password2,#email,#balance{
        height: 5.5%;
    }
    #payAmount,#payDate{
        height: 15%;
    }
    button{
        width:125px;
        height: 5vh;
        font-size: 18px;
    } .detailsbutton,.summarybutton,#close,#closePay,#addPay,#info,#closeAccount,#closeAccount{
        margin-top: 3%;
    }
    #save,#savePay,#saveAccount{
        margin-top: 3%;
    }
    td,th{
        padding: 3% 0 3% 0;
        font-size: 2vh;
    }
    #payhistory{
        height: 55%;
    }
    #payEdit{
        width: 80%;
        height: 30%;
        padding: 5% 0 0 0;
    }
    .check{
        margin: 2.5% 0 5% 5%;
    }    
    #message{
        margin-top: 5%;
    }
    #loginform{
        padding: 10% 0 0 0;
        width: 80%;
        height: 35%;
    }
}
@media only screen and (min-width: 1081px){
    label{
        text-indent: 6%;
    }
    .selection{
        padding: 1% 5% 1% 5%;
    }
    .selection:hover{
        background-color: rgba(20,120,239,0.1);  
    }
    .card{
        height: 85%;
        margin-top: 2.5%;
    }
    .main{
        margin-bottom: 1.5%;
        font-size: 3vw;
        margin-left: 4.75%;
    }
    div.cells:not(.check){
        margin-bottom: 0.5%;
    }
   input.cells{
        margin-bottom: 1.75%;
        font-size: 1.6vw;
    } input.cells:not(#password):not(#password2):not(#email):not(#balance):not(#payAmount):not(#payDate):not(.login){
        height: 9%;
    }
    .login{
        height: 15%;
    } #password,#password2,#email,#balance{
        height: 5.5%;
    } 
    #payDate,#payAmount{
        11%
    }
    button{
        width:125px;
        height: 4vh;
        font-size: 18px;
    }
    .detailsbutton,.summarybutton{
        margin-top: 1%;
    }
    #close,#closePay,#addPay,#info,#closeAccount{
        margin-top: 2.5%;
    }
    #save,#savePay,#saveAccount{
        margin-top: 1.5%;
    }
    td,th{
        padding: 1% 0 1% 0;
    }
    #payhistory{
        height: 51%;
    }
    #payEdit{
        width: 30%;
        height: 30%;
        padding: 2.5% 0 0 0;
    }
    .check{
        margin: 0 0 2.5% 0;
    }
    #message{
        margin-top: 2.5%;
    }
    #loginform{
        padding: 2.5% 0 0 0;
        width: 30%;
        height: 27.5%;
    }
}
.main{
    margin-top: 2.5%;
}
.title{
    padding-left: 1%;
}
.cells:not(.check){
    width:90%;
    margin-left: 5%;
    margin-right: 5%;
}
div.cells{
    color: rgba(0,0,0,0.8);
}
input.cells{
    text-indent: 3%;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0px;
    border-top: none;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.4);
    border-left: none;
    color: rgba(0,0,0,0.8);
}
button{
    color: white;
    border: none;
    border-radius: 2px;
    -webkit-appearance: none;
    appearance: none;
}
#save,#close,#loginButton,#savePay,#closePay,#addPay,#info,#saveAccount,#closeAccount{
    background-color: #1478EF; 
}
.detailsbutton,.summarybutton{
    background-color: rgba(96,96,100,1);
}
#payments,#userInfo{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 2% 0 0 0;
    margin: auto;
    background: white;
    z-index: 5;
    opacity: 0;
    -webkit-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
}
#userInfo{
    height: 100%;
    width: 100%;
}
#payments{
    height: 90%;
    width: 90%;
}
#headers{
    width: 90%;
    margin-left: 5%;
}
td,th{
    text-align: left;
    margin: 0;
}
td:not(.noborder){
    border-bottom: 1px solid rgba(96,96,100,0.3);
}
#payhistory{
    margin-left: 5%;
    width: 90%;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}
#payEdit{
    position: absolute;
    opacity: 0;
    z-index: 10;
    top: 2000;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    -webkit-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
    background: white;
}
#savePay,#addPay,#save,#saveAccount{
    margin-right: 3%;
}
#loginform{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    -webkit-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.3);
}
#message{
    font-size: 22px;
}

label {
    display: block;
    font-size: 18px;
    width: 100%;
}
input[type="checkbox"]{
    display: none;
}
#check{
    -webkit-appearance:none;
    width: 18px;
    height: 18px;
    padding: 0;
    margin:0 5px 0 0;
    vertical-align: middle;
    position: relative;
    top: -1px;
    overflow: hidden;
    -webkit-transition: background-color 0.5s, border 0.5s, background-image 0.5s;
    transition: background-color 0.5s, border 0.5s, background-image 0.5s;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.8);
    border-radius: 2px;
    background-size: contain;
}
#alertmessage{
    position: absolute;
    opacity: 0;
    background: rgba(255,255,255,0.9);
    color: black;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding: 0;
    text-align: center;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
    z-index: 1001;
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    display: none;
    justify-content: center; /* align horizontal */
    align-items: center; 
}


