 @font-face {
  font-family: Effra; /* set name */
  src: url(/public/Effra.otf); /* url of the font */
}

:root{
    --clr-primary: #8BC751;
    --clr-secondary: #6E3D51;

    font-family: Effra;
    color: var(--clr-secondary);
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body{
    width: 100%;
    height: 100%;
}

body{
    display: flex;
    justify-content: center;

    padding: 2rem;
}

/*-------*/

.pharmacies{
    box-shadow: 0 0 10px -5px black;
    border-radius: 1rem;

    overflow: hidden;
    display: flex;

    width: 100%;
    max-width: 1200px;
}

/* Preview */

.preview{
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: none;

    height: 100%;
    min-width: 0;
}

.hero{
    position: relative;
}

.hero img{
    display: block;
    object-fit: cover;

    width: 100%;
    aspect-ratio: 16/5;
}

.heroOverlay{
    background: linear-gradient(0deg,rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.8) 10%, rgba(0, 0, 0, 0) 100%);
    color: white;
    
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    top: 0;
    width: 100%;
    height: 100%;
    padding: 1rem 2rem 1rem 2rem;
}

.heroHours{ text-align: right; }
.heroHours h3{color: var(--clr-primary); font-size: 1.5vw;}
.heroHours p{font-size: 1vw;}

.heroOverlay h1{ font-size: 4vw; line-height: 4vw;}
.heroOverlay h2{ font-size: 2vw; font-weight: normal;}

/* Content Preview */

.previewContent{
    display: flex;
    flex-direction: column;

    gap: 1rem;
    min-height: 0;
}

.slovakiapharm{
    background-color: #49419A;
    text-decoration: none;
    color: white;

    display: flex;              /*<-------------------------------------------------------------------*/
    align-items: center;
    justify-content: center;

    gap: 0.25rem;
    padding: 0.25rem;
}

.slovakiapharm img{
    height: 1rem;
}

.item{
    display: flex;
    flex-direction: column;

    gap: 0.5rem;
    padding: 1rem 2rem 1rem 2rem;
    width: 100%;
    height: fit-content;
}

.service{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.itemDouble{
    display: flex;
    gap: 1rem;
}

.happy img{
    border-radius: 0.5rem;

    width: 100%;
    height: auto;
}

.servicesList{
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.servicesList li{
    box-shadow: 0 0px 6px -1px gray;
    border-radius: 0.5rem;

    display: flex;
    align-items: center;
    text-transform: uppercase;
    text-wrap: nowrap;

    gap: 0.25rem;
    width: fit-content;
    padding: 0.4rem;
    transition: 0.2s;
}

.servicesList li span{color: var(--clr-primary);}

.servicesList li:hover{
    cursor: pointer;
}

.gallery{
    border-radius: 0.5rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    overflow-x: scroll;

    width: 100%;
    height: fit-content;
    gap: 0.5rem;
    padding: 0 0 0.5rem 0;
}

.gallery img{
    border-radius: 0.5rem;
    display: block;
    height: 20rem;
    width: auto;
    flex-shrink: 0;
    transition: 0.2s;
}

.gallery img:hover{
    cursor: pointer;
    transform: scale(1.03);
}

.contact{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact h4{
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.contact h4 span{color: var(--clr-primary);}

.previewContent h3{font-size: x-large; font-weight: bold;}

/* Search */

.pharmaciesSearch{
    border-left: 1px solid silver;
    width: 600px;
}

.search{
    padding: 1rem;
}

.search input{
    border-radius: 0.25rem;
    border: 1px solid silver;

    width: 100%;
    height: 2rem;
    padding: 0.5rem;
}

.results{
    overflow-y: auto;
    display: flex;
    flex-direction: column;

    gap: 0.5rem;
    padding: 0 1rem 0 1rem;
    height: 100%;
}

.resultsItem{
    background-color: rgb(244, 244, 244); /*#f6eff2*/
    border-radius: 0.25rem;

    flex-shrink: 0;

    width: 100%;
    height: fit-content;
    padding: 0.5rem;
    transition: 0.2s;
}

.resultsItem:hover{
    cursor: pointer;
    transform: scale(1.05);
}

.resultsItem h4{color: var(--clr-primary);}

@media only screen and (max-width: 1000px) {
  .pharmaciesSearch {
    display: none;
  }
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  src: url(/public/icons.woff2) format('woff2');
}

.icon {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
}

.icon.gray{color: rgb(228, 228, 228); border-color: rgb(228, 228, 228);}
.icon.green{color: var(--clr-primary); border-color: var(--clr-primary);}
.icon.border{border: 2px solid; padding: 0.1rem; border-radius: 0.25rem;}