@font-face {
    font-family: 'San Francisco Small';
    font-style: normal;
    font-weight: 500;
    src: url('../Fonts/SF-UI-Medium.woff2') format('woff2'), url('../Fonts/SF-UI-Medium.woff') format('woff');
}

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

:root {
    font-family: 'San Francisco Small', sans-serif;
    font-size: 20px;
    color: light-dark(#000, #000);
    color-scheme: light dark;
    --main-color: #3bc53b;
    --main-text-1: #ff9700;
    --main-text-2: #fb4bff;
    --button-1: #fb4b02;
    --border-box-shadow: #808080;    
    --Background-color-dark: #16182d;
    --backdrop-modal: rgba(80, 80, 80, .8);
}

h1 {
    font-size: 1.1rem;
    padding: 10px;
    background: -webkit-linear-gradient(90deg, var(--main-text-1) 0%, var(--main-text-2) 100%);
    background: linear-gradient(90deg, var(--main-text-2) 0%, var(--main-text-1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-family: 'San Francisco Small';
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 1px;
}

h3 {
    font-size: .9rem;
}

h4 {
    font-size: .6rem;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
}

body {
    display: grid;
    justify-items: center;
    background-color: light-dark(#fff, var(--Background-color-dark));
    background-image: url(../Images/Abstract-1.svg);
    background-size: cover;
}


/* Header */
header {
    display: flex;
    justify-content: center;
    align-items: center;    
    width: 100%;
}

header div{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1200px, 95vw);
    border: 1px solid #fff;
    border-radius: 5px;
    box-shadow: .5px .5px 10px var(--border-box-shadow), -.5px -.5px 10px var(--border-box-shadow);
    position: fixed;
    top: 15px;
    -webkit-backdrop-filter: blur(5px);
    -moz-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    z-index: 10;
}

.logo-animation {
    padding: 5px;
    animation: logo-animation 10s 5s infinite;
    
}

@keyframes logo-animation {

    from {
        transform: rotateY(0);        
    }

    5% {
        transform: rotateY(360deg);
    }
    
    to {
        transform: rotateY(360deg);
    }
    
}
/* End header */

/* Main */
main {
    display: grid;
    place-items: center;
    width: 90%;
    max-width: 1000px;
    margin-top: 100px;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
}

.calendar {
    width: 100%;
    background-color: #fff;
    grid-area: 2 / 1 / 3 / 2;
    border: 2px solid #808080;
    box-shadow: 0 2px 10px 2px #808080;
}

.paragraph p {
    font-size: 1.2rem;
    padding: 10px;
    grid-area: 1 / 1 / 2 / 2;
    transform: translateX(-100vw);
    animation: fade-text .2s  linear .7s 1 forwards;
}

@keyframes fade-text {
    to {
        transform: translateX(0);
    }
}

.button-download {
    grid-area: 3 / 1 / 4 / 2;
    opacity: 0;
    animation: fade-button-download .5s linear 1.2s 1 forwards;
}

@keyframes fade-button-download {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.button-share {
    grid-area: 4 / 1 / 5 / 2;
    opacity: 0;
    animation: fade-button-share .5s linear 1.7s 1 forwards;
}

@keyframes fade-button-share {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

caption {
    border: 3px solid #000;
    border-radius: 4px 4px 0 0;
    padding: 10px;
}

table {
    width: 95%;
    table-layout: fixed;
    border: 3px solid #000;
    border-radius: 0 0 4px 4px;
    padding: 5px;
    margin: 10px auto;
}

.Days {
    height: 30px;
}

.Days th {
    font-size: .8rem;
    vertical-align: bottom;
}

.Days th:before {
    content: attr(Desktop);
}

tr {
    width: 100%;
    height: 90px;
}

table td {
    border: 1px solid grey;
    border-radius: 5px;
    color: #000;
    text-align: center;
    cursor: pointer;
}

td img {
    width: 80%;
    height: auto;
    max-width: 60px;
    overflow: hidden;
}

.modal {
    width: min(300px, 80%);
    border-radius: 10px;
    box-shadow: 0 3px 10px #000;
    margin: auto;
    &::backdrop {
        background-color: var(--backdrop-modal);
    }
    & p {
        text-align: center;
        padding: 10px;
    }        
}

.modal__paragraph--pharmacy {
    font-size: 1.2rem;
}

.modal__paragraph--address,
.modal__paragraph--phone {
    font-size: 1rem;
}

.modal a {
    color: inherit;
    &:focus-visible {
        outline: none;
    }
}

.fade-in {
    animation: .2s cubic-bezier(0.68, -0.55, 0.27, 1.55) fade-in;
}

@keyframes fade-in {
    from {
        transform: scale(0);
    }
    
    to {
        transform: scale(1);
    }
}


.from-left {
    animation: .2s cubic-bezier(0.68, -0.55, 0.27, 1.55) from-left;
}

@keyframes from-left {
    from {
        left: -200vw;
    }
    
    to {
        left: 0;
    }
}

.from-right {
    animation: .2s cubic-bezier(0.68, -0.55, 0.27, 1.55) from-right;
}

@keyframes from-right {
    from {
        right: -200vw;
    }
    
    to {
        right: 0;
    }
}

.from-up {
    animation: .2s cubic-bezier(0.68, -0.55, 0.27, 1.55) from-up;
}

@keyframes from-up {
    from {
        top: -100vh;
    }
    
    to {
        top: 0;
    }
}

.from-down {
    animation: .2s cubic-bezier(0.68, -0.55, 0.27, 1.55) from-down;
}

@keyframes from-down {
    from {
        bottom: -100vh;
    }
    
    to {
        top: 0;
    }
}


.modal__content {
    animation: show .7s;
}

.modal__content a img {
    margin: auto 5px
}

@keyframes show {
    from {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.button-group {
    padding: 8px 0 12px;
    display: flex;
    justify-content: space-evenly;
}

.button-modal {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 120px;
    border-radius: 5px;
    height: 30px;
    color: #fff;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    background: linear-gradient(0deg, rgb(255, 151, 0) 0%, rgb(251, 75, 2) 100%);
    transition: .3s;
    letter-spacing: 1px;
    cursor: pointer;
}

.button-modal p {
    padding: 0;
    font-size: .8rem;
}

.button-modal:hover {
    background-color: linear-gradient(0deg, rgb(251, 75, 2) 0%, rgb(255, 151, 0)100%);
    transform: scale(1.01);
    transition: all .3s;
}

.button-download {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 180px;
    border-radius: 30px;
    height: 40px;
    color: #fff;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    background: linear-gradient(0deg, rgb(255, 151, 0) 0%, rgb(251, 75, 2) 100%);
    transition: .3s;
    letter-spacing: 1px;
    cursor: pointer;
}

.button-download p {
    padding: 10px 0;
    font-size: .7rem;
    letter-spacing: 2px;
}

.button-download:hover {
    background-color: linear-gradient(0deg, rgb(251, 75, 2) 0%, rgb(255, 151, 0)100%);
    transform: scale(1.03);
    transition: all .3s;
}

.button-share {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 180px;
    border-radius: 30px;
    height: 40px;
    color: #fff;
    box-shadow: inset 2px 2px 2px 0px rgba(255, 255, 255, .5), 7px 7px 20px 0px rgba(0, 0, 0, .1), 4px 4px 5px 0px rgba(0, 0, 0, .1);
    background: linear-gradient(0deg, rgb(37, 211, 102) 0%, rgb(18, 140, 126) 100%);
    transition: .3s;
    letter-spacing: 1px;
    cursor: pointer;
}

.button-share p {
    padding: 10px 0;
    font-size: .7rem;
    letter-spacing: 2px;
}

.button-share:hover {
    background: linear-gradient(0deg, rgb(18, 140, 126) 0%, rgb(37, 211, 102)100%);
    transform: scale(1.03);
    transition: all .3s;
}
/* End main */

/* Section */
section {
    display: grid;
}

/* Footer */
footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}
/* End footer */

/* Media query's */
@media screen and (max-width: 500px) {

    .Days th:before {
        content: attr(Mobile);
    }

}

@media (min-width: 500px) {
    
    main {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .paragraph {
        grid-area: 1 / 1 / 2 / 3 ;
    }

    .paragraph p {
        font-size: 1.6rem;
    }
    

    .calendar {
        grid-area: 2 / 1 / 3 / 3;
    }

    .button-a {
        grid-area: 3 / 1 / 4 / 2;
    }

    .button-b {
        grid-area: 3 / 2 / 3 / 3;
    }

}

@media (min-width: 900px) {
    
    main {
        grid-template-columns: 200px 200px 30px 1fr;
        gap: 0;
    }

    .paragraph {
        grid-area: 1 / 1 / 2 / 3 ;
    }

    .paragraph p {
        font-size: 1.6rem;
    }
    

    .calendar {
        grid-area: 1 / 4 / 3 / 5;
        border: 2px solid #808080;
    }

    .button-a {
        grid-area: 2 / 1 / 3 / 2;
    }

    .button-b {
        grid-area: 2 / 2 / 3 / 3;
    }
   
    
    h1 {
        font-size: 1.4rem;
        font-weight: bold;
        letter-spacing: 2px;
    }

    h2 {
        font-size: 1rem;
    }

    header {
        padding: 10px 80px;
    }
}