#cm .cmain {
    display: flex;
    position: relative;
}

#cm .cmain-border {
    display: flex;
}

#cm .cminor {
    display: none;
    position: absolute;
    top: 100%;
    z-index: 1;
}

#cm .cminor-border {
    display: flex;
}

#cm .items {
    -webkit-user-select: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: inset 0px -1px 0px 0px #000;
    font-size: 18px;
}

#cm .cminor {
    box-shadow: inset 0px 0px 0px 1px #000;
}

#cm .cminor .items {
    box-shadow: none;
}

#cm .items-border {
    display: flex;
    padding: 5px 10px;
}

#cm .items.active {
    box-shadow: 0px -1px 0px 1px #000;
}

#cm .cminor-border>.items.active {
    box-shadow: none;
}

#cm .items:active {
    box-shadow: inset 0px 0px 0px 1px #000;
}

#cm .cminor .items:active {
    background-color: #aaa;
    color: #fff;
}

#cm .cc {
    margin-bottom: 5px;
}

#cm .cc-border {
    -webkit-user-select: none;
    cursor: pointer;
}

#cm .cc-icon,
#cm .items-ddm {
    display: none;
}

#cm .cc-text {
    text-align: center;
    color: #79d1cc;
    font-weight: bold;
    font-size: 25px;
}

@media screen and (min-width: 768px) {
    #cm .items:hover {
        box-shadow: inset 0px 0px 0px 1px #000;
    }

    #cm .cminor .items:hover {
        background-color: #aaa;
        color: #fff;
    }
}

@media screen and (max-width: 768px) {

    #cm .cc-icon,
    #cm .items-ddm,
    #cm .cminor-border,
    #cm .cmain-border,
    #cm .items-border {
        display: block;
    }

    #cm .cminor,
    #cm .cminor-border {
        position: unset;
    }

    #cm .cminor,
    #cm .items.active,
    #cm .items:hover {
        box-shadow: none;
    }

    #cm .items-border {
        padding: 0;
    }

    #cm .cc-border {
        display: flex;
        justify-content: center;
        cursor: default;
    }

    #cm .cc-icon {
        margin-top: 15px;
        margin-left: 6px;
        width: 16px;
    }

    #cm .cc-icon img {
        max-width: 100%;
        vertical-align: top;
        pointer-events: none;
    }

    #cm .cmain-border {
        box-shadow: 0px 0px 0px 1px #000;
    }

    #cm .items {
        text-align: center;
        box-sizing: border-box;
        position: relative;
        cursor: default;
    }

    #cm .cminor .items:active {
        color: #fff;
        font-weight: bold;
    }

    #cm .cmain-border>.items {
        box-shadow: 0px 1px 0px 0px #000;
        padding: 5px;
        width: 150px;
    }

    #cm .items-ddm {
        position: absolute;
        top: 13px;
        right: 8px;
        width: 16px;
    }

    #cm .items-ddm img {
        max-width: 100%;
        vertical-align: top;
        pointer-events: none;
    }

    #cm .cminor {
        display: none;
    }

    #cm .cminor .items {
        padding-top: 5px;
    }
}