@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

body {
    margin: 0;
    width: 100vw;
    height: 100vh;
    box-sizing: border-box;
    font-family: Roboto, Verdana, Geneva, Tahoma, sans-serif;
    background-color: #241096;
    background-image: url(../img/bg.jpg);
    background-size: cover;
    background-position: center;
}

li {
    color: #fff;
    margin: 2vw;
}

*:focus {
    outline: none;
}

#scroller {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: scroll;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
    padding: 2vw 0 15vw;
    perspective: 200vw;
}

#scroller.notilt {
    align-content: unset;
}

p {
    text-align: center;
    font-family: Roboto, Verdana, Geneva, Tahoma, sans-serif;
    margin-block-start: 0;
    margin-block-end: 0;
    text-shadow: 0 0 3vw rgba(0, 0, 0, 0.2);
}

#mainbox {
    width: 80vw;
    border-radius: 4vw;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.1), -1vw -1vw 2vw rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(1vw);
    -webkit-backdrop-filter: blur(1vw);
    transition: 0.7s all ease;
    opacity: 1;
    position: relative;
}

#mainbox.hidden {
    -webkit-transform: scale3d(1, 1, 2) rotate3d(1, 0, 0, -10deg); 
    transform: scale3d(1, 1, 2) rotate3d(1, 0, 0, -10deg); 
    opacity: 0;
}

.notilt #mainbox.hidden {
    -webkit-transform: none; 
    transform: none; 
    opacity: 0;
}

.btn {
    bottom: 7vw;
    width: 60vw;
    left: 10vw;
    height: 15vw;
    border-radius: 10vw;
    background: #FFFFFF;
    color: #666;
    font-size: 4vw;
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
    cursor: pointer;
    margin: 10vw auto;
}

.btn.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn.upperbtn {
    bottom: 30vw;
}

.card-header {
    margin: 10vw auto;
    width: 90%;
}

.card-header p {
    color: #FFFFFF;
    font-size: 5vw;
    font-weight: 500;
}

.card-header p:last-of-type {
    margin-bottom: 5vw;
}

.card-header.p2 p {
    font-size: 4vw;
}

#input-wrapper {
    width: 90%;
    margin: auto;
    border-radius: 2vw;
    overflow: hidden;
    height: 13vw;
    margin-top: -2vw;
    margin-bottom: 4vw;
    transition: all 0.5s;
}

#input-wrapper:has(input:focus) {
    box-shadow: 0 0 5vw rgba(0, 0, 0, 0.3);
}

#input-wrapper input {
    font-size: 7vw;
    text-align: center;
    color: #333;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    opacity: 0.7;
    transition: all 0.5s;
}

#input-wrapper input:focus {
    opacity: 1;
}

#amount {
    text-align: center;
    color: #FFFFFF;
    font-size: 15vw;
    font-weight: 500;
    text-shadow: 0 0 10vw rgba(0, 0, 0, 0.2);
}

#sbp-logo {
    margin: 10vw auto 0;
    width: 25vw;
    height: 25vw;
    border-radius: 25vw;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-image: url(../img/sbp.png);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

#msisdn {
    margin: 5vw;
    font-size: 5vw;
}

.bank-item {
    display: flex;
    align-items: center;
    color: #FFFFFF;
    font-size: 4vw;
    font-weight: 500;
    text-shadow: 0 0 5vw rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.bank-item img {
    width: 15vw;
    margin: 2vw 5vw;
    pointer-events: none;
}

p.disclaimer {
    font-size: 4vw;
    width: 80%;
    margin: auto;
    color: #FFFFFF;
    font-weight: 500;
}

.confirmation-row {
    width: 90%;
    margin: 4vw auto;
    display: flex;
}

.confirmation-row div {
    font-size: 4vw;
    color: #FFFFFF;
    text-shadow: 0 0 5vw rgba(0, 0, 0, 0.2);
}

.confirmation-row div:first-of-type {
    width: 30%;
    font-weight: 100;
}

.confirmation-row div:last-of-type {
    width: 70%;
    font-weight: 900;
    text-align: right;
}

#info-wrapper, .process {
    margin: 5vw;
    display: flex;
    align-items: center;
}

.process .icon{
    background-image: url(../img/loading.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 60vw;
    width: 15vw;
    height: 15vw;
    border-radius: 15vw;
}


.process.done .icon{
    background-image: url(../img/done.png);
    background-size: cover;
}

.process.err .icon{
    background-image: url(../img/err.png);
    background-size: cover;
}

.process.inprocess .icon{
    background-image: url(../img/inprocess.png);
    background-size: cover;
}

#info-text, .process p {
    width: 50vw;
    font-size: 4vw;
    color: #FFFFFF;
    text-align: left;
}

.process p {
    margin-left: 5vw;
    margin-bottom: 3vw;
}

#add-info {
    background-color: rgba(255,255,255,0.3);
    margin: 5vw 0;
    padding: 5vw;
    color: white;
    font-size: 4vw;
    overflow: hidden;
    transition: height 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#add-info.collapsed {
 height: 0;
 padding: 0;
}

#add-info p {
    margin: 2vw;
}

.err404 {
    height: 40vw;
    width: 100%;
    background-image: url(../img/404.png);
    background-size: cover;
}

.err404 p {
    position: absolute;
    bottom: 2vw;
    text-align: center;
    width: 100%;
    color: #fff;
    text-shadow: 0 0 5vw rgba(0, 0, 0, 0.2);
}

.other-bank {
    color: #fff;
    text-shadow: 0 0 5vw rgba(0, 0, 0, 0.2);
    font-size: 4vw;
    margin: 7vw;
    cursor: pointer;
}

.other-bank-wrapper {
    margin-top: 12vw;
}

span.link {
    text-decoration: underline;
    cursor: pointer;
}

.error-text {
    font-weight: 900;
}

#mainbox .btn {
    height: 0;
    overflow: hidden;
    margin: 0 auto;
    transition: all 0.5s;
    opacity: 0;
}

#mainbox.verified .btn, #mainbox .show.btn {
    height: 15vw;
    margin: 10vw auto;
    opacity: 1;
} 

#wrong-phone.hidden {
    height: 0;
    margin: 0 auto;
    opacity: 0;
}

#wrong-phone {
    overflow: hidden;
    transition: all 0.5s;
    height: 24vw;
    opacity: 1;
}

#wrong-phone p {
    color: #ffffff;
    background: red;
    padding: 2vw;
    border-radius: 2vw;
}

#mainbox.verified .btn:focus, #mainbox.verified .btn:hover  {
    box-shadow: 0 0 5vw rgba(0, 0, 0, 0.3);
}

.btn.loading, #mainbox.verified .btn.loading:hover, #mainbox.verified .btn.loading:focus {
    box-shadow: none;
}

.btn.loading {
    animation-duration: 2s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeHolderShimmer;
    animation-timing-function: linear;
    background: linear-gradient(to right, rgb(255 255 255 / 20%) 8%, rgb(255 255 255 / 70%) 20%, rgb(255 255 255 / 20%) 28%);
    background-size: 300vw 100%;
    color:#fff;
}

@keyframes placeHolderShimmer {
    0% {
      background-position: -122vw 0
    }
    50% {
        background-position: 122vw 0
      }
    100% {
        background-position: -122vw 0
    }
}

#footer {
    position: fixed;
    bottom: 5vw;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
    opacity: 0;
    pointer-events: none;
}

#footer.visible-enabled {
    opacity: 1;
    pointer-events: all;
}

.footer-item {
    height: 7vw;
    border-radius: 7vw;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(1vw);
    margin: 2vw;
    padding: 0 3vw;
    line-height: 7vw;
    color: #fff;
    opacity: 0.6;
    transition: opacity 1s;
    cursor: pointer;
    font-size: 3vw;
}

.footer-item:hover {
    opacity: 0.85;
}

.footer-item.active {
    opacity: 1;
    box-shadow: 1vw 1vw 2vw rgba(0, 0, 0, 0.1), -1vw -1vw 2vw rgba(0, 0, 0, 0.1);
}

.info-wrapper p {
    color: #fff;
    margin: 2.5vw;
    font-size: 3.2vw;
}

.logo {
    margin: 10vw auto 0;
    width: 25vw;
    height: 25vw;
    border-radius: 25vw;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;  
}

#help-logo {
    background-image: url(../img/help.png);
}

#cgift-logo {
    background-image: url(../img/cgift-logo.png);
    background-color: unset;
    border: 0;
    border-radius: 0;
    width: 35vw;
}

.info-wrapper h2 {
    color: white;
    font-weight: normal;
    text-align: center;
    text-shadow: 0 0 4vw rgba(0, 0, 0, 0.2);
    font-size: 5vw;
}

.info-wrapper a {
    color: white;
}