body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

.grid-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.grid-heading {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.grid {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Three columns with equal width */
    grid-gap: 60px;
    margin: 40px;

}

.grid div {
    overflow: hidden;
    align-items: center;
    border-radius: 5%;
    padding: 5px;
    border: 1px solid #ffcc00;
    color: black;
    background-color: rgb(192, 214, 228);
    box-shadow: 10px 10px 15px rgba(158, 170, 178);
    /*add shadow */
}

.grid-item {
    border-radius: 5%;


}

.grid div img {
    border-radius: 5%;
    width: 100%;
    height: auto;
}

.grid-item {
    background-color: #fff;
    border: 2px solid #ddd;
    padding: 20px;
    text-align: center;
    box-shadow: 10px 10px 15px rgba(158, 170, 178);
}

.grid div:hover {
    border: 1px solid #ffcc00;
    color: rgba(255, 69, 0);
    background-color: rgb(107, 168, 199);
    box-shadow: 10px 10px 15px rgb(121, 155, 179);
    cursor: pointer;
    pointer-events: auto;
    transition: width 2s ease-in-out, background-color 1s linear, box-shadow 0.6s;
    transform-style: preserve-3d;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    display: flex;
    justify-content: center;
    /* Center the modal horizontally */
    align-items: center;
    /* Center the modal vertically */
}

.modal-content {
    width: 92%;
    /* Adjust the width of the modal content */
    /* Set a maximum width for the modal content */
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.close {
    color: #ffffff;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #aaaaaa;
    text-decoration: none;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .grid-item {
        padding: 10px;
    }
}