@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700&display=swap');

.main-box
{
    display: flex;
    background-color: #303336;
    padding: 0;
    width: 100%;
    height: 288px;
}
.box
{
    height: 100%;
    border-right: 1px solid white;
    webkit-transition: 0.8s;
    -o-transition: 0.8s;
    transition: 0.8s;
    position: relative;
    overflow: hidden;
    list-style: none;
    width: auto;
    padding-left: 3%;
    padding-right: 3%;
}

.detail
{
    width: 90%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    background: white;
    color: black;
    opacity: 0;
    webkit-transition: 0.8s;
    -o-transition: 0.8s;
    transition: 0.8s;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    padding-left: 2px;
    padding-right: 2px;
}

.box.active
{
    width: 65% !important;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    height: auto;
}

.box.active .detail
{
    opacity: 1;
    -webkit-transition-delay: 0.6s;
    -moz-transition-delay: 0.6s;
    -o-transition-delay: 0.6s;
    transition-delay: 0.6s;
    transform: none;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
}

.box span {
    writing-mode: vertical-rl;
    font-size: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-transform: uppercase;
    width: 40px;
    transform: rotate(180deg);
    font-weight: 400;
    cursor: pointer;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding-top: auto;
    padding-bottom: auto;
    top: 0px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
.box span:hover{
    background: #4CAF50;
}

.box.active span 
{
    left: 14px;
    right: auto;
    margin: 0;
    font-weight: 600
}
@media (max-width: 1200px) {
.main-box {
    height: 238.08px;
}
    .box span {
    font-size: 15px;
    }
    .box.active span 
{
    left: 7px;

}
}
@media (max-width: 992px) {
.main-box {
    height: 175px;
}
     .box span {
    font-size: 10px;
    }
    .box.active span 
{
    left: -1px;
}
}
@media (max-width: 768px) {
.main-box {
    height: 131px;
}
     .box span {
    font-size: 7px;
    }
    .box.active span 
{
    left: -5px;
}
}
@media (max-width: 576px) {
.main-box {
    height: 97px;
}
     .box span {
    font-size: 7px;
    }
    .box.active span 
{
    left: -5px;
}
}

@media (max-width: 414px){
    .main-box {
    height: 90px;
}
    
}
