﻿.search-bar-container {
    max-width: 470px;
}

.title {
    line-height: 1.1;
}

.title-category-pictogram {
    height: 4rem;
    width: 4rem;
    min-width: 4rem;
    color: white;
    background: #4CA1EF;
    border-radius: .75rem;
    justify-content: center;
    align-items: center;
    display: flex;
    font-size: 2rem;
    margin-right: 1.5rem;
}

.medicines-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5em, 1fr));
    gap: 1.5rem;
}

.medicine {
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    text-decoration: none;
    transition: transform .1s ease-in-out, box-shadow .1s ease-in-out;
}

.medicine:hover {
    box-shadow: 0 .1rem 1rem #00000020;
    transform: scale(1.03);
}

.medicine-image {
    height: 125px;
    width: 125px;
    margin: 1rem 0;
    object-fit: contain;
    background: transparent url(../../img/spinner.gif) no-repeat scroll center center;
}


.medicine-name {
    font-size: 1.2em;
    overflow-wrap: anywhere;
}

.medicine .more-info-button {
    position: absolute;
    top: calc(125px + 4rem);
}

.medicine:hover .medicine-category, .medicine:hover .medicine-name, .medicine:not(:hover) .more-info-button {
    visibility: hidden;
}