.warningMsg{
    display: block;
    margin-bottom: 2rem;
    background: white;
    padding: 0.3rem 0.4rem;
    text-align: center;
    border-radius: 10px;
}

.rpBox{
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.medicine{
    position: relative;
    margin: 0 0.3rem 0.7rem 0.3rem;
    flex-grow: 1;
    flex-basis: 300px;
}

.medicine .main{
    position: relative;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 0px 5px 1px rgb(0 0 0 / 60%);
    padding: 0.3rem 0.5rem;
    padding-right: 3.7rem;
    z-index: 1;
}

.medicine .name{
    display: inline-block;
    font-weight: bold;
}

.medicine .counter{
    padding: 0 0.2rem;
    background: var(--bs-primary);
    color: white;
    border-radius: 25px;
    padding-bottom: 1px;
    font-size: small;
    position: absolute;
    line-height: 1;
}

.medicine .expand{
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    position: absolute;
    right: 8px;
    top: 6px;
    padding: 0;
}

.medicine .add{
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    position: absolute;
    right: 30px;
    top: 6px;
    padding: 0;
}

.medicine .expand svg{
    margin-top: -6px;
    pointer-events: none;
}

.medicine .add svg{
    margin-top: -10px;
    pointer-events: none;
}

.medicine .prescriptions{
    height:0px;
    background: hsl(216 60% 80% / 1);
    margin: 0 0.5rem;
    box-shadow: 0px 0px 3px 0px rgb(0 0 0 / 60%);
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    transition: all .2s ease-in;
}

.medicine .prescriptions.opened{
    max-height:fit-content;
    min-height:fit-content;
}

.prescription{
    min-height:30px;
    background:white;
    margin:.7rem;
    border-radius: 4px;
    padding: .4rem;
}

.prescription .rp{
    
}

.prescription .votes{
    float: right;
    margin-top: -10px;
    margin-right: -10px;
    border: 3px solid hsl(216 60% 80% / 1);
    border-radius: 0 6px
}

.prescription .votes button{
    background: transparent;
    border: none;
    padding: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
}

.prescription .votes button > svg{
    margin-top:-3px;
}

.prescription .votes button > svg > path{
    animation-duration: .2s;
    animation-timing-function:ease-in;
}

.prescription .votes span{
    margin-left:.2rem;
    margin-right:.2rem;
}

.prescription .votes .dislike{
    color: var(--bs-danger);
}

.prescription .votes .like{
    color: var(--bs-success);
}

.prescription .votes .dislike > svg >path{
    animation-name: disliking;
}

.prescription .votes .like> svg >path{
    animation-name: liking;
}

.addPrescription textarea{
    width: 300px;
}
@media (min-height:600px){
    .addPrescription textarea{
        width: 500px;
    }
}

@keyframes liking {
    from {transform:scale(.5) translate(50%, 60%);}
    to {transform:scale(1);}
}

@keyframes disliking {
    from {transform:scale(.5) translate(50%, 30%);}
    to {transform:scale(1);}
}
