.demo-switcher {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
}

.box-layout {
    float: right;
    padding: 45px 20px;
    margin-right: -330px;
    width: 330px;
    background: #fff;
    height: 100vh;
    overflow-y: scroll;
    color: black;
}

.box-layout h3 {
    font-size: 14px;
    color: #000;
    padding-bottom: 10px;
    text-transform: capitalize;
    position: relative;
    margin-bottom: 15px;
}
.box-layout h3 a{
    color: #0c65ed;
    float: right;
    margin-left: 10px;
}
.box-layout h3::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
}

.icon-demo {
    box-shadow: 0 0 15px 0px rgba(0, 0, 0, 0.1);
    color: #333333;
    cursor: pointer;
    display: block;
    text-align: center;
    width: 40px;
    background: #cc0000;
    position: absolute;
    right: 0;
    top: 25%;
    padding:20px 0 5px;
}

.icon-demo span{
    writing-mode: vertical-rl;
    text-transform:uppercase;
    color: #fff;
    font-weight: 700;
    letter-spacing:4px;
    font-size: 14px;
}
.demo-box li {
    width: 50%;
    float: left;
    padding: 5px;
}

.demo-box li a {
    display: block;
    box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.3);
    position: relative;
    background-color: #000;
}
.demo-box li a .demo-name {
    position: absolute;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.7);
    height: 100%;
    width: 100%;
    z-index: 0;
    text-align: center;
    justify-content: center;
    align-items: center;
    display: flex;
    opacity: 0;
    transition: all .3s ease;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -ms-transition: all .3s ease;
    -o-transition: all .3s ease;
    transform: scale(0);
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
}
.demo-box li a:hover .demo-name{
    opacity: 1;
    transform: scale(1);
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
}
.demo-name p {
    color: #fff;
    width: 100%;
    font-size: 18px;
    text-transform: capitalize;
}