@import url('menu.css');
@import url('loader.css');

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

:root{
    --main-color:#357BBA;
    --bg-color:#fafafa;
    --content-border:#CCC1C1;
    --tip-color:#85929E;
    --error:#C0392B;
    --list-over:#e1f1ff;
}

html, body{
    min-height: 100%;
}

body{
    font-family: Verdana, sans-serif;
    font-size: 11px;
}

header{
    width: 100%;
    position: fixed;
    z-index: 10;
}

.fixed__header{
    width: 100%;
    min-height: 55px;
}

main{
    padding: 10px;
    flex-grow: 1;
    width: 100%;
}

nav, footer{
    background-color: var(--main-color);
    color:var(--bg-color);
    width: 100%;
    height: 50px;
}

nav{
    padding: 1px 8px;
}

svg{
    fill:var(--bg-color);
    border: 2px solid var(--bg-color);
    border-radius: 5px;
}

h2 + h3 {
    margin-top: 5px;
}

footer{
    width: 100%;
    height: 48px;
    padding: 15px;
}

.principal{
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
}

.brand{
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.hide {
    display: none;
}

.nav__bar{
    display: flex;
    width: 100%;
    height: 48px;
    justify-content: space-between;
    align-items: center;
}

.copyright{
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo{
    height: 43px;
}


.pagination{
    text-align: center;
    margin-top: 20px;
}

.page-link{
    display: inline-block;
    padding: 5px 10px;
    margin: 5px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
}

.page-link:hover{
    background-color: #0056b3;
}

.page-link  i {
    font-size: inherit;
}

.main__content__title{
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--tip-color);
    margin-bottom: 8px;
}

.form__group, .results, .details{
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.group__row{
    flex-direction: row;
    justify-content: space-around;
}

.form__label, legend {
    font-weight: bold;
    text-transform: uppercase;
}

fieldset {
    margin: 10px 0;
    border: solid 1px lightblue;
}

select,input[type=text] {
    width: 100%;
    padding: 2px 10px;
    /**HACK IOS**/
    min-width: 95%;
    min-height: 1rem;
    margin-bottom: 8px;
}

.btn {
    border: none;
    border-radius: 5px;
    height: 32px;
    font-size: 14px;
    font-weight: bold;
    padding: 5px 10px;
    min-width: 100px;
    max-width: 200px;
}

.primary{
    background-color: var(--main-color);
    color: var(--bg-color);
}

.secondary{
    background-color: var(--error);
    color: var(--bg-color);
}

li{
    list-style: none;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.7rem;
    border-bottom: 1px solid var(--list-over);
}

li:hover{
    background-color: var(--list-over);
}

li:before{
    background-image: url('../images/item.png');
    content: '';
    width: 20px;
    height: 20px;
    position: absolute;
    background-size: cover;
    background-position: center;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

i {
    font-size: 2rem;
}

.icon__btn{
    border: none;
    color: var(--main-color);
    background-color: transparent;
    margin-right: 20px;
    cursor: pointer;
}

.icon__btn + .icon__btn{
    margin-right: 5px;
}

.result__content{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.center{
    text-align: center;
}

.details__container{
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.card__container{
    display: flex;
    flex-direction: column;
    border: solid 1px lightblue;
    border-radius: 5px;
    gap: 10px;
    padding: 10px;
    box-shadow: 1px 1px 5px lightblue;
    margin-bottom: 10px;
    font-weight: bold;
}

.card__container:hover, .card__container_hover{
    background-color: var(--main-color);
    color:var(--bg-color);
}

@media  screen and (min-width: 801px) {
    .details__container{
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: start;
    }

    .card__container{
        flex-grow: 1;
        max-width: 450px;
    }
}