.room_container {
  position: relative;   /* make this the reference */
  width: 100%;
  height: 100vh;        /* or some fixed height */
}

.room_container h2 {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(255, 255, 255);
  background-color: rgba(248, 245, 245, 0.2); /* 50% opaque red */
  font-size: 30px;
  border: none;
  border-radius: 10px;
  padding: 10px;
}

.room_main_container {
    width: 100%;
    min-height: 100vh;         
    display: flex;             
    justify-content: center;  
 
    background-color: #f5f5f5;  
}

.room_main_container img {
    max-width: 1500px;   
    width: 100%;       
    height: 75vh;       
    border-radius: 10px;
    display: block;  
    margin-top: 5px;   
}
.main_room_container{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    height: auto;
    margin: 10px;
 
}
.room_box{
 width: 400px;
 height: 60vh;
 margin: 10px;
 border: 1px solid black;
 border-radius: 5px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
 background-color: rgb(190, 181, 181);
 text-align: center;
 transition: all 0.3s ease-in-out;
}
.room_box::after{
    content: '';
    position: relative;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0, 0.3)
    ;
    transition: opacity 0.3s ease-in-out;
}
.room_box:hover{
    transform: scale(1.2,1.2);
}
.room_box:hover::after{
    opacity: 1;
}

.room_box button{
 margin-bottom: 5px;
 margin-top: 10px;
 width: 100px;
 height: 30px;
}
.main_room_container img{
    width: 100%;
    height: auto;
  object-fit: cover;
}
li{
    float: left;
    margin-left: 30px;
    width: 100%;
    text-align: left;
    top: 5px;
}
button{
       z-index: -1;
 transition: all 0.3s ease-in-out;
}
button:hover{
    transform: scale(1.2,1.2);

}
button::after{
    transition: opacity 0.3s ease-in-out;

}
button:hover::after{
    opacity: 1;
} 