.gallery {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    margin:0;
}

header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #96AF9A;
    margin-top: 0;
}

header a {
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: black;
    text-decoration: none;
    width: 12%;
    text-align: center;
    font-size: 0.8rem;
}

.tirosa {
    width: 32%;
}

.logo {
    width: 4rem;
    text-align: center;
}


.card {
    width: 13vi;
    height: 500px;
    margin: 10px;
    border-radius: 10px;
    background: url(rabbithouse/2.png);
    background-size: cover;
    background-position: center;
    position: relative;
    transition: width 0.5s;
}

.card:nth-child(2) {
    background: url(tirosa/8.jpg);
    background-size: cover;
    background-position: center;
}

.card:nth-child(3) {
    background: url(rabbithouse/1.png);
    background-size: cover;
    background-position: center;
}
.card:nth-child(4) {
    background: url(tirosa/6.jpg);
    background-size: cover;
    background-position: center;
}

.card:nth-child(5) {
    background: url(rabbithouse/4.png);
    background-size: cover;
    background-position: center;
}
.card h3 {
    color: #fff;
    font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    position: absolute;
    bottom: 0;
    left: 30px;
    opacity: 0;
    transition: bottom 0.5s, opacity 0.5s;
}

.card:hover {
    width:30vi;
    cursor: pointer;
}


.card:hover  h3{
    opacity: 1;
    bottom: 10px;
}

footer {
    text-align: center;
    background-color: #96AF9A;
    padding: 1rem;

}
footer p {
    margin: 0;
}

footer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 8rem;
}

.logo2 {
    margin: 0 auto;
    text-align: center;
    display: block;
    width: 7rem;
    margin-bottom: 1rem;
}