@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
}
a {
    text-decoration: none;
}

.main {
    width: 100%;
    height: auto;
    min-height: 100vh;
    position: relative;
}
.main .logo {
    position: fixed;
    top: 50px;
    left: 0px;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.main .logo h1 {
    font-size: 40px;
    font-weight: 600;
    color: #fff;
    padding: 10px 25px;
    border: 2px solid #fff;
}
.main .blocks {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
}

.main .blocks .block {
    width: 33.33%;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: width 1s ease-in-out;
}
.main .blocks .block:hover {
    width: 50%;
}
.main .blocks .block:hover .block__content {
    background-color: rgba(0, 0, 0, 0.7);
}
.main .blocks .block:nth-child(2) {
    border: 2px solid #fff;
    border-top: 0px;
    border-bottom: 0px;
}
.main .blocks .block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.main .blocks .block .block__content {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: 9;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main .blocks .block .block__content h5 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.main .blocks .block .block__content h4 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
}

@media screen and (max-width: 960px) {
    .main .logo {
        display: none;
    }
    .main .blocks {
        flex-wrap: wrap;
    }
    .main .blocks .block {
        width: 100%;
        height: 33.33vh;
    }
    .main .blocks .block:nth-child(2) {
        border: 2px solid #fff;
        border-left: 0px;
        border-right: 0px;
    }
    .main .blocks .block:hover {
        width: 100%;
    }
}
