.frame_main {
    background-color: #000;
    background: url("/static/img/wave.svg") no-repeat,
                linear-gradient(110deg, #333 50%, #444 50%);
    background-size: cover;
}

/* Subpage menu */
.nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    position: relative;
    padding: 10px;
}
.nav a {
    display: inline-block;
    position: relative;
    min-width: 200px;
    padding: 10px;
    z-index: 3;
    font-size: 20px;
    border: none;
    outline: none;
    color: #fff;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: 1px 1px 0 #888;
    cursor: pointer;
}
.nav a:hover {
    background-color: transparent !important;
}
.nav .slide1,
.nav .slide2 {
    display: inline-block;
    position: absolute;
    height: 0.4em;
    bottom: 0px;
    box-shadow: 1px 1px 0 #666;
    transform: skew(-20deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.nav .slide1 {
    z-index: 2;
    background-color: rgba(238,238,238,0.3);
}
.nav .slide2 {
    opacity: 0;
    z-index: 1;
    background-color: transparent;
    border: 1px solid  rgba(238,238,238,0.7);
}

/* Subpage canvas */
.item-wrapper {
    display: block;
    width: 100%;
    position: relative;
}
.item {
    display: none;
    overflow: auto;
    width: 100%;
}
.item.active {
    display: flex;
}
.card-wrapper {
    display: flex;
    flex-wrap: wrap;
    max-width: 1300px;
    margin: 0 auto;
}
.refer_card {
    display: inline-block;
    position: relative;
    height: 200px;
    width: 624px;
    margin: 10px 10px;
    font-size: 17px;
    line-height: 17px;
}
.refer_info {
    position: absolute;
    width: 367px;
    height: 200px;
    margin-left: 257px;
}
.refer_mask {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background-color: #f0f8ff;
}
.refer_mask:before {
    content: "";
    position: absolute;
    width: 10px;
    height: 100%;
    background: #f0f8ff;
}

.refer_img {
    position: absolute;
    width: 267px;
    height: 200px;
    border-radius: 10px;
    background-color: #888;
}
.refer_customer {
    position: absolute;
    height: 45px;
    margin: 6px 0 0 5px;
    opacity: 0.95;
    border-radius: 5px;
    background-color: transparent !important;
}
.refer_text {
    position: absolute;
    margin: 60px 0 0 5px;
    color: black;
}

/* RDW */
@media screen and (max-width: 1300px) {
    .card-wrapper {
        width: 1000px;
    }
    .refer_card {
        height: 245px;
        width: 310px;
        margin: 20px 10px;
        font-size: 16px;
        line-height: 17px;
    }
    .refer_info {
        width: 310px;
        height: 200px;
        margin-left: 0px;
    }
    .refer_mask {
        width: 100%;
        height: 100%;
        margin-top: 30px;
        background-color: rgba(50,50,50, 0.5);
        border-radius: 0;
    }
    .refer_mask:before{
        display: none;
    }
    .refer_img{
        width: 310px;
        height: 245px;
    }
    .refer_customer{
        margin: 10px 0 0 20px;
        background-color: transparent;
        height: 45px;
        border-radius:5px;
    }
    .refer_text {
        position: relative;
        margin-top: 55px;
        padding: 5px;
        background-color: transparent;
        color: white;
    }
    .refer_info:hover {
        opacity: 0.01;
        transition: opacity 1s;
        cursor: context-menu;
    }
    .refer_text p {
        margin: 3px 0;
    }
}
@media screen and (max-width: 990px) {
    .card-wrapper {
        width: 665px;
    }
}
@media screen and (max-width: 660px) {
    .item{
        overflow: unset;
    }
    .nav a {
        min-width: 130px;
        padding: 5px 0;
    }
    .card-wrapper {
        width: 100%;
    }
    .refer_card {
        margin: 20px auto;
    }
}
