* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
}

#card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: #f6f6f6;
    height: 100%;
    position: relative;
}

#card .front {
    height: 220px;
    margin-top: 30px;
    width: 90%;
    display: flex;
    border-radius: 10px;
}

#card .opposite {
    height: 220px;
    margin-top: 15px;
    border-radius: 10px;
    width: 90%;
}

#card .front .left {
    width: 50%;
    position: relative;
}

#card .front .left .logo-box{
    width: 40%;
    position: absolute;
    top: 43%;
    left: 27%;
}

#card .front .left .logo {
    width: 55px;
}

#card .front .left .logo img {
    width: 100%;
    height: 100%;
}

#card .front .left .name p:first-child {
    font-size: 12px;
}

#card .front .left .name p:last-child {
    font-size: 8px;
}

#card .front .right {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#card .con {
    width: 100%;
}

#card .front .name {
    margin-bottom: 5px;
}

#card .front .right .name p {
    font-weight: bold;
    font-size: 16px;
}

#card .front .title {
    margin-bottom: 25px;
}

#card .front .title p {
    font-size: 14px;
}

#card .mobile,.email {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
    position: relative;
    height: 20px;
}

@media (max-width: 312px) {
    #card .mobile, .email {
        height: 30px;
    }
}

#card .mobile svg,.email svg {
    position: absolute;
    top: 2px;
}

#card .mobile p,.email p {
    position: absolute;
    top: 0;
    left: 16px;
}

#card .address {
    position: relative;
    height: 30px;
}

#card .address svg {
    position: absolute;
    top: 9%;
}

#card .address p {
    position: absolute;
    left: 16px;
}

#card .mobile p,.email p,.address p {
    font-size: 12px;
    width: 85%;
    word-wrap: break-word;
}

/* opposite */
#card .opposite {
    display: flex;
}

#card .opposite .left {
    width: 50%;
    position: relative;
}

#card .opposite .left .left-box {
    position: absolute;
    top: 60%;
    display: flex;
    width: 100%;
}

#card .opposite .left .color {
    width: 20%;
    height: 14px;
    display: flex;
    margin-right: 10px;
}

#card .opposite .left .color div:first-child {
    width: 80%;
    background-color: #d9d9d9;
    height: 100%;
}

#card .opposite .left .color div:last-child {
    width: 20%;
    height: 100%;
    background-color: #e8551e;
}

#card .opposite .left .name p {
    font-size: 12px;
    line-height: 14px;
}

#card .opposite .right {
    width: 50%;
    position: relative;
}

#card .opposite .right .logo-box {
    position: absolute;
    top: 42%;
    left: 10%;
}

#card .opposite .right .logo-box .logo {
    width: 55px;
}

#card .opposite .right .logo-box img {
    width: 100%;
}

#card .opposite .right .name p:first-child {
    font-size: 12px;
}

#card .opposite .right .name p:last-child {
    font-size: 8px;
}

#card .btn {
    width: 100%;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 10px;
}

#card .btn-box {
    width: 90%;
    background-color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    border-radius: 10px;
}

#card button {
    padding: 10px 4%;
    background: linear-gradient(to right, #e8551e,#f88559);
    border: 0;
    color: #fff;
    border-radius: 5px;
}

#card button i {
    margin-right: 10px;
}

#card .logo-box p {
    color: #fff;
}

@media (max-width: 390px) {
    #card button {
        padding: 10px 9%;
    }
}

@media (max-width: 330px) {
    #card button {
        padding: 10px 6%;
    }
}

@media (max-width: 350px) {
    #card .front .left .logo-box {
        left: 18%;
    }

    #card .opposite .right .logo-box {
        left: 2%;
    }

}

/* nav */
#card .nav {
    width: 100%;
    background-color: #fff;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: absolute;
    bottom: 0;
}

#card .nav ul{
    list-style: none;
}

#card .nav ul li{
    text-align: center;
    padding: 20px 0;
    border-bottom: 1px solid #e3e3e3;
}

#card .nav ul li:last-child {
    border-bottom: 0;
    color: #9e9e9e;
}

@media screen and (min-width: 768px){
    #card .front{
        width: 375px;
    }
    #card .opposite{
        width: 375px;
    }
    #card .btn{
        width: 375px;
    }
}
