.main-box
{
    display: flex;
    background: #FFF;
    margin: 70px auto 70px auto;
    padding:0;
    max-width: 100%;
}

.box{
min-height: 70vh;
padding:15px;
border-right: 1px solid white;
webkit-transition: 0.8s;
-o-transition: 0.8s;
transition: 0.8s;
position: relative;
overflow: hidden;
list-style: none;
background:#cae4ff;

}

.detail
{    
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    width: 85%;
    height: 100%;
    position: absolute;
    right: 0;
    top:0;
    background: #f5f3ef;
    color:black;
    opacity: 0;
    padding:30px;
    box-sizing:border-box;
    webkit-transition: 0.8s;
    -o-transition: 0.8s;
    transition: 0.8s;
    -webkit-transform: translateY(100%);
    transform: translateY(100%);
    overflow:scroll;
    flex-wrap:wrap;
    flex-direction:column;
}

.box.active
{
    width: 90% !important;
}

.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;
}

.box span {
    writing-mode: vertical-rl;
    font-size: 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b65eb;
    text-transform: uppercase;
    letter-spacing: 4px;
    width: 40px;
    transform: rotate(180deg);
    font-weight: 400;
    cursor: pointer;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
  
}

.box.active span 
{
	left:25px;
	right:auto;
	margin:0;
  font-weight:600
}

p 
{
	line-height: 23px;
}
.detail img{
    max-width: 100%;
    height: 250px;
    border-radius: 5px;
}


/* width */
.box.active .detail::-webkit-scrollbar {
  width: 20px;
}

/* Track */
.box.active .detail::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.1);
	background-color: #F5F5F5;
  border-radius: 5px;
}
 
/* Handle */
.box.active .detail::-webkit-scrollbar-thumb {
background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, rgb(122,153,217)), color-stop(0.72, rgb(73,125,189)), color-stop(0.86, rgb(28,58,148)));
  border-radius: 10px;
}

/* Handle on hover */
.box.active .detail::-webkit-scrollbar-thumb:hover {
  
}
@media only screen and (max-width: 400px) {
    .detail img{
    width:300px;
    height: 280px !important;
    border-radius: 5px;
}
html,body{
    max-width:100%;
    overflow-x:hidden;
}
.detail{
    display:flex;
    flex-direction:row;
}
.box.active .detail::-webkit-scrollbar {
  width: 5px;
}
.box span {
font-size:15px;
}
.box.active span {
left:-2px;
}
.box.active .detail{
    padding:10px;
}
}
