body {
    margin: 20px auto;
    max-width: 1023px;
    width: 98%;
    background: hsl(187, 100%, 50%);
}

.container {
    padding: 5%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 10px; 
    background: hsl(188, 17%, 83%);
}

.card {
    width: calc(32.33% - 4px);
    height: calc(30.33% - 4px);
    margin-bottom: 2px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    padding: 2px;
    border: 1px solid black;

   
    
}

.top {
    height: 77px;
    background-color: lightblue;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
    margin-bottom: 2px;
    padding: 5px;
}

.text {
    text-align: center;
}

.bottom {
    height: 90%;
    background-color: lightblue;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid black;
    padding: 1px;
}

.bottom img {
    max-width: 100%;
    max-height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.bottom img:hover {
    transform: scale(1.1);
}

@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 100%;
        height: auto;
    }
}
