* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
a {
    text-decoration: none;
}
h1, h2 {
    color: rgb(1, 0, 51);
}
p {
    color: rgb(44, 46, 47);
}
button {
    cursor: pointer;
}
.medianav {
    display: none;
}
.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px 4px 16px;
    position: fixed;
    width: 100%;
    background-color: #ffffff;
}
.topnav img {
    margin-right: 6px;
}
.logomenu h1 {
    font-family: kanit;
}
.logomenu {
    display: flex;
    align-items: center;
}
.topnav a {
    display: inline-block;
    text-decoration: none;
    padding: 0 10px;
    color: rgb(111, 132, 165);
    font-size: 14px;
    transition: 2s;
}
a#logbtn {
    color: rgb(0, 172, 255);
}
.topnav a:hover {
    color: rgb(0, 172, 255);
}
.topnav button {
    border: none;
    border-radius: 6px;
    font-size: 16px;
    line-height: 14px;
    cursor: pointer;
    margin: 0 10px;
    font-weight: lighter;
}
#logbtn:hover {
    color: rgba(0, 172, 255, 0.5);
}
#signbtn {
    color: white;
    background-color: rgb(0, 172, 255);
    padding: 12px 16px;
    font-size: 14px;
}
#signbtn:hover {
    background-color: rgba(0, 172, 255, 0.5);
}
.boxone {
    display: flex;
    align-items: center;
    padding-top: 90px;
    flex-direction: column;
}
.boxone h1 {
    font-size: 28px;
    text-align: center;
    line-height: 30px;
    margin-bottom: 8px;
}
.boxone p {
    text-align: center;
    width: 700px;
    line-height: 30px;
}
.boxone img {
    width: 400px;
    height: 400px;
}
.transferbox {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: rgba(234, 246, 252, 0.4);
    box-shadow: 6px -5px 16px -5px rgb(234, 246, 252, 0.4);
}
.transferbox img {
    width: 550px;
    height: 350px;
    padding: 16px 0;
}
.transferbox h2, p {
    width: 450px;
    margin-bottom: 16px;
    line-height: 26px;
}
.transferbox a {
    color: rgb(0, 172, 255);
}
.transferbox a:hover {
    color: rgba(0, 172, 255, 0.5);
}
.savingbox {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.savingbox img {
    width: 500px;
    height: 300px;
}
.savingbox h2, p {
    width: 450px;
    margin-bottom: 18px;
    line-height: 28px;
}
.savingbox button {
    padding: 12px 16px;
    border-radius: 6px;
    color: #ffffff;
    border: none;
    background-color: rgb(0, 172, 255);
    font-size: 14px;
}
.savingbox button:hover {
    background-color: rgba(0, 172, 255, 0.6);
}
.paymentbox {
    display:  flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 0;
    border-radius: 12px;
    background-color: rgba(234, 246, 252, 0.4);
    box-shadow: 6px -5px 16px -5px rgb(234, 246, 252, 0.4);
}
.paymentbox h2 {
    width: 400px;
    padding-bottom: 12px;
    line-height: 28px;
    text-align: center;
}
.paymentbox p {
    text-align: center;
    line-height: 28px;
}
.paymentbox img {
    width: 400px;
    height: 350px;
    margin-top: 24px;
}
.paymentbox button {
    color: #ffffff;
    background-color: rgb(0, 172, 255);
    border: none;
    font-size: 14px;
    padding: 14px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: block;
    margin: 0 auto;
}
.paymentbox button:hover {
    background-color: rgba(0, 172, 255, 0.5);
}
.investbox {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.investbox h2, p {
    width: 400px;
    padding-bottom: 8px;
    line-height: 30px;
}
.investbox button {
    color: rgb(0, 172, 255);
    background-color: #ffffff;
    border: 0.5px solid rgb(0, 172, 255);
    font-size: 14px;
    padding: 14px 18px;
    border-radius: 6px;
    cursor: pointer;
}
.investbox button:hover {
    color: rgba(0, 172, 255, 0.5);
}
.investbox img {
    width: 400px;
    height: 300px;
}
.loanbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px;
    background-color: rgb(0, 172, 255);
    color: white;
    box-shadow: 6px -5px 16px -5px rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    padding-top: 20px;
    padding-bottom: 12px;
}
.loanbox h2 {
    width: 400px;
    line-height: 32px;
    padding-bottom: 12px;
    text-align: center;
}
.loanbox p {
    width: 400px;
    line-height: 32px;
    padding-bottom: 12px;
    text-align: center;
}
.loanbox a {
    color:#ffffff;
    line-height: 32px;
    padding-bottom: 12px;
}
.lastsection {
    display: flex;
    justify-content: space-evenly;
    margin-top: 30px;
}
.lastsection a {
    padding: 10px 0;
    color:rgb(111, 132, 165);
    font-size: 14px;
}
.lastsection h4 {
    color:rgb(0, 172, 255);
    margin-bottom: 6px;
}
.companybox, .productbox, .contactbox {
    display: flex;
    flex-direction: column;
}
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.5px solid rgba(111, 132, 165, 0.4);
    padding: 14px 28px;
    margin-top: 16px;
}
.footer a {
    color: rgb(1, 0, 51);
    padding: 0 12px;
    font-size: 14px;
}
@media screen and (width: 768px) {
    .topnav {
        display: none;
    }
    .medianav {
        display: flex;
        background-color: #ffffff;
        justify-content: space-between;
        position: fixed;
        top: 0;
        align-items: center;
        width: 100%;
        padding: 8px 24px 0 8px;
        margin-bottom: 6px;
    }
    .rowmenu {
        color: rgb(0, 172, 255);
        padding: 8px;
        font-size: 30px;
    }
    .logomenu {
        display: flex;
        align-items: center;
    }
    .medianav img {
        width: 60px;
        height: 60px;
        margin: 6px;
    }
    .medianav h1 {
        font-family: cursive;
        font-size: 20px;
    }
    .boxone h1 {
        font-size: 16px;
        text-align: center;
        line-height: 24px;
    }
    .boxone p {
        font-size: 12px;
        width: 500px;
        text-align: center;
        line-height: 24px;
    }
    .boxone img {
        width: 250px;
        height: 200px;
    }
    .transferbox img {
        width: 300px;
        height: 200px;
    }
    .transferbox h2, p {
        width: 300px;
        line-height: 24px;
        margin-bottom: 10px;
    }
    .transferbox a:hover {
        color: rgba(0, 172, 255, 0.5);
    }
    .transferbox h2 {
        font-size: 14px;
    }
    .transferbox p {
        font-size: 12px;
    }
    .savingbox img {
        width: 300px;
        height: 200px;
    }
    .savingbox h2, p {
        width: 300px;
        margin-bottom: 10px;
        line-height: 24px;
    }
    .savingbox h2 {
        font-size: 14px;
    }
    .savingbox p {
        font-size: 12px;
    }
    .savingbox button {
        padding: 8px 12px;
        font-size: 14px;
    }
    .savingbox button:hover {
        background-color: rgba(0, 172, 255, 0.6);
    }
    .paymentbox {
        margin: 14px 0;
    }
    .paymentbox h2 {
        width: 200px;
        padding-bottom: 8px;
        line-height: 24px;
        text-align: center;
        font-size: 14px;
    }
    .paymentbox p {
        font-size: 12px;
    }
    .paymentbox img {
        width: 200px;
        height: 150px;
        margin-top: 12px;
    }
    .paymentbox button {
        font-size: 14px;
        padding: 8px 12px;
    }
    .paymentbox button:hover {
        background-color: rgba(0, 172, 255, 0.5);
    }
    .investbox h2, p {
        width: 300px;
        padding-bottom: 6px;
        line-height: 24px;
    }
    .investbox h2 {
        font-size: 14px;
    }
    .investbox p {
        font-size: 12px;
    }
    .investbox button {
        font-size: 14px;
        padding: 8px 10px;
    }
    .investbox button:hover {
        color: rgba(0, 172, 255, 0.5);
    }
    .investbox img {
        width: 300px;
        height: 200px;
    }
    .loanbox {
        margin: 20px 28px;
    }
    .loanbox h2 {
        width: 200px;
        line-height: 24px;
        padding-bottom: 8px;
        font-size: 14px;
    }
    .loanbox p, a {
        line-height: 24px;
        padding-bottom: 8px;
        font-size: 12px
    }
    .lastsection a {
        padding: 4px 0;
        font-size: 12px
    }
    .lastsection h4 {
        font-size: 14px;
    }
    .footer {
        padding: 8px 18px;
        margin-top: 10px;
    }
    .footer a {
        font-size: 12px;
        padding: 0 8px;
    }
}
@media screen and (max-width: 425px) {
    .topnav {
        display: none;
    }
    .medianav {
        display: flex;
        background-color: #ffffff;
        justify-content: space-between;
        position: fixed;
        top: 0;
        align-items: center;
        width: 100%;
        padding: 0 24px 0 4px;
    }
    .rowmenu {
        color: rgb(0, 172, 255);
        padding: 8px;
        font-size: 30px;
    }
    .logomenu {
        display: flex;
        align-items: center;
    }
    .medianav img {
        width: 40px;
        height: 40px;
        margin: 4px;
    }
    .medianav h1 {
        font-family: kanit;
        font-size: 15px;
    }
    .boxone {
        display: flex;
        flex-direction: column;
        background-color: rgb(234, 246, 252, 0.4);
        padding: 80px 0 12px 0;
    }
    .boxone h1 {
        font-size: 16px;
        line-height: 24px;
        text-align: center;
    }
    .boxone p {
        font-size: 12px;
        width: 300px;
        line-height: 24px;
        text-align: center;
    }
    .boxone img {
        width: 250px;
        height: 200px;
    }
    .transferbox {
        display: flex;
        flex-direction: column-reverse;
    }
    .transferbox img {
        width: 300px;
        height: 200px;
    }
    .transferbox h2, p {
        width: 300px;
        line-height: 24px;
        margin-bottom: 6px;
        text-align: center;
    }
    .transferbox a:hover {
        color: rgba(0, 172, 255, 0.5);
    }
    .transferbox h2 {
        font-size: 14px;
    }
    .transferbox p {
        font-size: 12px;
    }
    .savingbox {
        display: flex;
        flex-direction: column;
        background-color: rgb(247, 255,  255, 0.4);
        padding: 12px 8px;
    }
    .savingbox img {
        width: 300px;
        height: 200px;
    }
    .savingbox h2, p {
        width: 280px;
        margin-bottom: 10px;
        line-height: 24px;
    }
    .savingbox h2 {
        font-size: 14px;
        text-align: center;
    }
    .savingbox p {
        font-size: 12px;
    }
    .savingbox button {
        padding: 8px 12px;
        font-size: 14px;
        display: block;
        margin: auto;
    }
    .paymentbox {
        margin: 14px 0;
    }
    .paymentbox h2 {
        width: 200px;
        padding-bottom: 8px;
        line-height: 24px;
        text-align: center;
        font-size: 14px;
    }
    .paymentbox p {
        font-size: 12px;
    }
    .paymentbox a {
        color: #ffffff;
    }
    .paymentbox img {
        width: 200px;
        height: 150px;
        margin-top: 12px;
    }
    .paymentbox button {
        font-size: 14px;
        padding: 8px 12px;
    }
    .investbox {
        display: flex;
        flex-direction: column;
        background-color: rgb(247, 255,  255, 0.4);
        padding: 12px 8px;
    }
    .investbox h2, p {
        width: 300px;
        padding-bottom: 4px;
        line-height: 24px;
    }
    .investbox h2 {
        font-size: 14px;
        text-align: center;
    }
    .investbox p {
        font-size: 12px;
    }
    .investbox button {
        font-size: 14px;
        padding: 8px 10px;
        display: block;
        margin: auto;
    }
    .investbox img {
        width: 300px;
        height: 200px;
    }
    .loanbox {
        margin: 8px 26px;
    }
    .loanbox h2 {
        width: 250px;
        line-height: 24px;
        padding-bottom: 8px;
        font-size: 14px;
    }
    .loanbox p {
        width: 250px;
        line-height: 24px;
        padding-bottom: 8px;
        font-size: 12px;
        text-align: center;
    }
    .loanbox a {
        font-size: 12px;
    }
    .lastsection {
       justify-content: space-around;
       background-color: rgb(234, 246, 252, 0.4);
       padding: 12px 0;
    }
    .lastsection a {
        padding: 4px 0;
        font-size: 11px;
        text-align: center;
    }
    .lastsection h4 {
        font-size: 12px;
        text-align: center;
    }
    .footer {
        padding: 4px 8px;
    }
    .footer a {
        font-size: 11px;
        padding: 0 4px;
    }
    small {
        font-size: 9px;
    }
}