body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}


.medcontainer {
    margin-top: 150px;
    text-align: center;
    padding: 20px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

input {
    padding: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button.med-search {
    padding: 10px 20px;
    background-color: var(--rich-black-fogra-29);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button.med-search:hover {
    background-color: #0056b3;
}

.tiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    justify-content: center;
}

.tile {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 300px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.tile img {
    max-width: 100%;
    height: 350px;
    border-radius: 8px;
}

.tile h3{
    margin-bottom: 10px;
    margin-top: auto;
}

.tile:hover {
    background-color: #f0f0f0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 50px;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    padding: 24px;
}


.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 50%;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.modal-content *{
    margin-top: 12px;
}

.modal .modal-content img{
    width: 100%;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.close:hover {
    color: red;
}

.suggested-chips {
    display: flex;
    flex-wrap: wrap;
    margin-top: 12px;
}

.suggested-chips .search-chip{
    background-color: rgb(190, 190, 253);
    border-radius: 8px;
    margin: 4px;
    padding: 0px 12px;
}
