* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

.pr-header {
    padding: 35px;
    color: #b3b3b3;
}

.card_box {
    width: 90vw;
    height: 65vh;
    display: grid;
    grid-template-rows: 330px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 330px));
    gap: 2px;
    justify-content: center;
    grid-auto-rows: 320px;

}

.card {
    font-size: 1.2vw;
    margin: 15px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    font-family: 'Roboto', sans-serif;

    h3 {
        position: absolute;
        background: #219b73;
        width: 100%;
        height: 8vh;
        bottom: 0;
        text-align: center;
        padding: 10px;
        color: black;
    }

    & a {
        text-decoration: none;
        background-color: black;
        width: 50%;
        height: 16%;
        border-radius: 4px;
        margin: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: white;
    }

    & a:hover {
        color: rgb(24, 155, 127);
    }
}

.card .description {
    display: none;
    position: absolute;
    background: rgba(21, 153, 122, 0.5);
    color: rgb(255, 255, 255);
    margin-top: 1%;
    height: 100%;
    width: 100%;
    padding: 6%;

    & h3 {
        margin: 5px;
        color: rgb(0, 0, 0);
        font-family: 'Fjalla One', sans-serif;
    }
}

#card1 {
    background-image: url('../Gocabs.png');
    background-size: cover;
    background-position: center;

}

#card2 {
    background-image: url('../medicy.png');
    background-size: cover;
    background-position: center;
}

#card3 {
    background-image: url('../roomify.png');
    background-size: cover;
    background-position: center;
    color: white;
    border: 1px solid #131313;

}

#card4 {
    background-image: url('../AdminDash.png');
    background-size: cover;
    background-position: center;
}

#card5 {
    background-image: url('../chat.png');
    background-size: cover;
    background-position: center;
}

#card6 {
    background-image: url('../blog.png');
    background-size: cover;
    background-position: center;
}

.card:hover {
    & .description {
        animation: card-animate 0.5s linear;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    scale: 1.05;
}

@keyframes card-animate {
    0% {
        top: 100%;
    }

    50% {
        top: 50%;
    }


    100% {
        top: 0%;
    }
}

.ft {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    padding: 10px;
    text-align: center;
    /* background-color: rgb(6 6 6); */
    color: white;
    font-size: 12px;
}

.ft p {
    padding-top: 10px;
    display: flex;
    text-align: center;
    justify-content: center;
}

.ft a {
    text-decoration: none;
    color: rgb(33 155 115);
    padding: 10px;
}

.ft a:hover {
    color: #ffefba;
    border-bottom: 1px solid rgb(33 155 115);
}

/*Shrinking for mobile*/

.line {
    width: 33px;
    background-color: white;
    height: 4px;
    margin: 3px 3px;
}

.main {
    display: none;
    position: absolute;
    right: 5%;
    top: 15px;
    cursor: pointer;

}

@media only screen and (max-width:715px) {
    .navbar li a {
        margin: 8px 3px;
        padding: 8px 8px;
    }

    .navlist {
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .navbar {
        height: 260px;
        flex-direction: column;
        transition: all 0.7s ease-in-out;
        align-items: flex-start;
        padding-left: 27px;
        padding-top: 10px;
        justify-content: space-between;
    }

    .logo {
        display: block;
    }

    .card a {
        width: 30%;
        height: 13%;
    }

    .main {
        display: block;
    }

    .op {
        display: none;
        opacity: 0;
    }

    .nav-h {

        height: 68px;
    }

    .body-container-wrapper {
        margin-top: 80px;
    }
}