/* REQUIRED STYLES */
.slider-radio {
    position: relative;
}

.slider-radio input[type=radio] {
    display: none;
}

.slider-radio input[type=radio]:checked + label {
    position: relative !important;
    z-index: 100 !important;
}

/* DEFAULT */
.slider-radio {
    display: inline-block;
}

.slider-radio label {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    /*font-size: 20px;*/
}

/* Indicator Styles */
.slider-radio input[type=radio]:checked + label,
.slider-radio .sliding-piece {
    background-color: #77abff;
    transition-timing-function: cubic-bezier(.74, .14, .38, .99);
}

/* Base Theme */
.slider-radio.base {
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
}

.slider-radio.base input[type=radio]:checked + label,
.slider-radio.base .sliding-piece {
    background-color: #005D7A;
    border: none;
    color: white;
}


/* Elegant Theme */

.slider-radio.elegant label {
    display: inline-table;
    /*padding: 10px 20px;*/
    padding: 0.75em 1em;
    cursor: pointer;
    /*font-size: 20px;*/
    font-weight: bold;
    opacity: 0.5;
    max-width: 18%;
    min-width: 6em;
    align-content: center;
}

.slider-radio.elegant input[type=radio]:not(:checked) + label {
    border: 2px solid gray;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.slider-radio.elegant input[type=radio]:not(:checked) + label:hover {
    border: 2px solid #801a5f;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    opacity: 80%;
    background-color: #000;
    background-image: linear-gradient(45deg, #a41a47, #5a1679);
    background-size: 100%;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -webkit-text-fill-color: transparent; 
    -moz-text-fill-color: transparent;
}

.slider-radio.elegant input[type=radio]:checked + label,
.slider-radio.elegant .sliding-piece {
    color: white;
    border: 2px solid transparent;
    border-radius: 10px;
    background-color: #821a5e;
    background-image: linear-gradient(to top right, #a41a47, #5a1679);
    opacity: 1;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.slider-radio.elegant input[type=radio]:checked + label:hover {
    opacity: 90%;
}

/* Edgy Theme */

.slider-radio.edgy label {
    display: inline-block;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    opacity: 0.5;
    filter: blur(1px);
    transition: filter 0.3s;
}

.slider-radio.edgy input[type=radio]:checked + label {
    filter: blur(0px);
}

.slider-radio.edgy input[type=radio]:checked + label,
.slider-radio.edgy .sliding-piece {
    border-radius: 10px;
    background-color: transparent;
    color: black;
    opacity: 1;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Vertical */

.slider-radio.vertical label {
    display: block !important;
}

@media only screen and (max-width: 747px) {
    .slider-radio.elegant label {
        display: block !important;
        max-width: 100% !important;
        margin: auto;
    }
}

@media only screen and (min-width: 748px) {
    .slider-radio.elegant label {
        height: 6.5em;
    }
}
