﻿.cabinet {
    position: absolute;
    color: #fff;
    transition: all cubic-bezier(.19, 1, .22, 1);
    transition-duration: .4s;
    font-family: 'Roboto', sans-serif;
}

.cabinet-drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.cabinet-knob {
    position: absolute;
    background-color: #ffc600;
    border: 1px solid #ccc;
}

    .cabinet-knob p {
        color: #000;
    }

.cabinet.cabinet-open .cabinet-drawer.drawer-open .cabinet-knob {
    background-color: #254ea0;
    border: none;
    z-index: 10;
    border: solid 1px #ffdb3e
}

    .cabinet.cabinet-open .cabinet-drawer.drawer-open .cabinet-knob p {
        color: #fff;
    }

.cabinet-box {
    /*position: absolute;*/
    top: -15px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    /*background: rgba(255,255,255,0.5);*/
    padding: 10px;
}


.cabinet-right {
    top: 30%;
    right: 0px;
    height: 230px;
}


    .cabinet-left .cabinet-knob,
    .cabinet-right .cabinet-knob {
        width: 50px;
        height: 100px;
    }

        .cabinet-left .cabinet-knob p,
        .cabinet-right .cabinet-knob p {
            transform: rotate(-90deg);
            transform-origin: left bottom;
            position: absolute;
            bottom: 25px;
            left: 35px;
            overflow: hidden;
        }

    .cabinet-left .cabinet-drawer:nth-child(1) .cabinet-knob,
    .cabinet-right .cabinet-drawer:nth-child(1) .cabinet-knob {
        top: -15px;
    }

    .cabinet-left .cabinet-drawer:nth-child(2) .cabinet-knob,
    .cabinet-right .cabinet-drawer:nth-child(2) .cabinet-knob {
        top: calc(100px - 10px);
    }

    .cabinet-left .cabinet-drawer:nth-child(3) .cabinet-knob,
    .cabinet-right .cabinet-drawer:nth-child(3) .cabinet-knob {
        top: calc(200px - 20px);
    }

    .cabinet-left .cabinet-drawer:nth-child(4) .cabinet-knob,
    .cabinet-right .cabinet-drawer:nth-child(4) .cabinet-knob {
        top: calc(300px - 30px);
    }

    .cabinet-left .cabinet-drawer:nth-child(5) .cabinet-knob,
    .cabinet-right .cabinet-drawer:nth-child(5) .cabinet-knob {
        top: calc(400px - 40px);
    }

.cabinet-left .cabinet-knob {
    right: -50px;
    border-radius: 0px 10px 10px 0px;
}

.cabinet-left.cabinet.cabinet-open .cabinet-drawer.drawer-open .cabinet-knob {
}

.cabinet-right .cabinet-knob {
    left: -50px;
    border-radius: 10px 0px 0px 10px;
}

.cabinet-right.cabinet.cabinet-open .cabinet-drawer.drawer-open .cabinet-knob {
}

.cabinet-top .cabinet-knob,
.cabinet-bottom .cabinet-knob {
    width: 100px;
    height: 50px;
    text-align: right;
}

    .cabinet-top .cabinet-knob p,
    .cabinet-bottom .cabinet-knob p {
        margin-top: 5px;
        margin-right: 5px;
        overflow: hidden;
    }

.cabinet-top .cabinet-drawer:nth-child(1) .cabinet-knob,
.cabinet-bottom .cabinet-drawer:nth-child(1) .cabinet-knob {
    right: 0px;
}

.cabinet-top .cabinet-drawer:nth-child(2) .cabinet-knob,
.cabinet-bottom .cabinet-drawer:nth-child(2) .cabinet-knob {
    right: calc(100px - 10px);
}

.cabinet-top .cabinet-drawer:nth-child(3) .cabinet-knob,
.cabinet-bottom .cabinet-drawer:nth-child(3) .cabinet-knob {
    right: calc(200px - 20px);
}

.cabinet-top .cabinet-drawer:nth-child(4) .cabinet-knob,
.cabinet-bottom .cabinet-drawer:nth-child(4) .cabinet-knob {
    right: calc(300px - 30px);
}

.cabinet-top .cabinet-drawer:nth-child(5) .cabinet-knob,
.cabinet-bottom .cabinet-drawer:nth-child(5) .cabinet-knob {
    right: calc(400px - 40px);
}


.cabinet-top .cabinet-knob {
    bottom: -50px;
    border-radius: 0px 0px 10px 10px;
    box-shadow: 0px 2px 5px 0px #aaa;
}

.cabinet-top.cabinet.cabinet-open .cabinet-drawer.drawer-open .cabinet-knob {
    box-shadow: 0px 5px 10px 0px #aaa;
}

.cabinet-bottom .cabinet-knob {
    top: -50px;
    border-radius: 10px 10px 0px 0px;
    box-shadow: 0px -2px 5px 0px #aaa;
}

.cabinet-bottom.cabinet.cabinet-open .cabinet-drawer.drawer-open .cabinet-knob {
    box-shadow: 0px -5px 10px 0px #aaa;
}
