* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body{
    height: 100%;
    width: 100%;
}

body{
    background: linear-gradient(45deg, #000, #333);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.box{
    height: 400px;
    width: 250px;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.box img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.box .bottom{
    height: 50px;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.823));
    position: absolute;
    bottom: -50px;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease-in-out;
}

.box .bottom h1{
    font-size: 20px;
    color: #fff;
}

.box:hover .bottom{
    bottom: 0;
}


body:has(.box:hover) .box{
    transform: scale(0.8);
    opacity: 0.5;
}

body .box:hover{
    transform: scale(1.2) !important;
    opacity: 1 !important;
}


