/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f2f4f8;
    font-family:'Poppins',sans-serif;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    padding:20px;
}

/* ===========================
   PHONE CONTAINER
=========================== */

.phone{
    width:100%;
    max-width:420px;
    background:#fff;
    border-radius:35px;
    overflow:hidden;
    box-shadow:0 15px 40px rgba(0,0,0,.18);
    position:relative;
    min-height:820px;
}

/* ===========================
   HEADER
=========================== */

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px;
}

.menu-btn,
.notification{
    width:45px;
    height:45px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    cursor:pointer;
    transition:.3s;
}

.menu-btn:hover,
.notification:hover{
    background:#f3f3f3;
}

.menu-btn i,
.notification i{
    font-size:20px;
}

.logo{
    width:150px;
}

.notification{
    position:relative;
}

.notification span{
    position:absolute;
    top:8px;
    right:8px;
    width:10px;
    height:10px;
    border-radius:50%;
    background:#ff2b2b;
}

/* ===========================
   ACCOUNTS
=========================== */

.accounts{
    padding:0 20px;
}

.accounts h1{
    font-size:38px;
    margin-bottom:20px;
}

.account-select{
    display:flex;
    justify-content:space-between;
    align-items:center;
    font-size:28px;
    margin-bottom:20px;
    cursor:pointer;
}

.account-select i{
    transition:.3s;
}

/* ===========================
   CARD
=========================== */

.card{
    background:#0b4450;
    color:white;
    border-radius:22px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.25);
    transition:.35s;
}

.card:hover{
    transform:translateY(-4px);
}

.card-top{
    display:flex;
    justify-content:space-between;
    padding:25px;
}

.card h2{
    font-size:28px;
    font-weight:600;
}

.card p{
    opacity:.8;
    margin-top:8px;
}

.card i{
    font-size:28px;
}

.balance{
    text-align:center;
    font-size:48px;
    font-weight:600;
    padding-bottom:25px;
}

.available{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:white;
    color:#222;
    padding:20px;
    font-size:18px;
}

.available strong{
    font-size:22px;
}

/* ===========================
   ACTIONS
=========================== */

.actions{
    margin:25px 20px 110px;
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.action{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px;
    cursor:pointer;
    transition:.3s;
    border-bottom:1px solid #eee;
}

.action:last-child{
    border:none;
}

.action:hover{
    background:#f7f7f7;
}

.action div{
    display:flex;
    align-items:center;
    gap:18px;
}

.action i:first-child{
    color:#0b4450;
    font-size:24px;
}

.action span{
    font-size:20px;
}

/* ===========================
   BOTTOM NAV
=========================== */

nav{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    display:flex;
    justify-content:space-around;
    background:white;
    border-top:1px solid #ddd;
    padding:14px 0;
}

.nav-item{
    text-align:center;
    color:#666;
    cursor:pointer;
    transition:.3s;
    flex:1;
}

.nav-item i{
    font-size:22px;
}

.nav-item p{
    margin-top:5px;
    font-size:13px;
}

.nav-item.active{
    color:#d71920;
}

.nav-item:hover{
    transform:translateY(-4px);
}

/* ===========================
   ANIMATIONS
=========================== */

.card{
    animation:fadeUp .7s ease;
}

.actions{
    animation:fadeUp .9s ease;
}

@keyframes fadeUp{

    from{
        opacity:0;
        transform:translateY(30px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* Ripple effect */

.action:active,
.menu-btn:active,
.notification:active,
.nav-item:active{

    transform:scale(.96);

}

/* ===========================
   TABLET
=========================== */

@media(max-width:768px){

.phone{

    max-width:100%;
    min-height:100vh;
    border-radius:0;

}

body{

    padding:0;

}

}

/* ===========================
   SMALL MOBILE
=========================== */

@media(max-width:480px){

.accounts h1{
    font-size:30px;
}

.account-select{
    font-size:22px;
}

.card h2{
    font-size:22px;
}

.balance{
    font-size:38px;
}

.available{
    font-size:15px;
}

.available strong{
    font-size:18px;
}

.action span{
    font-size:16px;
}

.action{
    padding:18px;
}

.logo{
    width:120px;
}

}

/* ===========================
   LARGE DESKTOP
=========================== */

@media(min-width:900px){

body{

    background:linear-gradient(
        135deg,
        #eceff3,
        #d7dde8
    );

}

.phone{

    transform:scale(.95);

    transition:.4s;

}

.phone:hover{

    transform:scale(1);

}

}