
/*Also set in mystyle3.css*/
* {
    box-sizing: border-box;
}

/*body {
    padding: 2em;
}*/

.grid {
    margin-top: 10px;
    /*margin-top: 40px;*/
    max-width: 1000px;
    margin: 0 auto;
    color: #807d7d;
}


.grid {
    display: grid;
    /*padding: 2em;*/
    /*counter-reset: grid-items;*/
    position: relative;
}

.grid::before {
    position: absolute;
    padding-left: 3em;
    content: attr(data-keyword);
}

/*Auto fit used in this scenario*/
/*.grid--auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
}*/

.grid--auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid__item {
   /* max-width: 280px;*/ /*Important otherwise image etc skews grid as its width is 100%*/
    max-width: 220px; /*resets in media commands below*/
    /*counter-increment: grid-item;*/
    height: 420px;
    margin: 12px;
    padding: 10px;
    color: #444;
    border: 2px solid #ccc;
    border-radius: 4px;
    /*background: linear-gradient(rgba(255,0,0,0) 66%, #efefef 34%);*/
    box-shadow: 0px 0px 16px 0px rgba(0,0,0,.17);
    transition: all 0.2s;
    background-color: #e4dada;
}

grid__item_heading {
    max-height: 20px;
    margin: 0;
    padding: 0;
}
/*.grid__item::before {
  content: counter(grid-item);
}*/

.grid__item > img {
    /*height: 30px;*/
    /*width:100%;*/
    width: 100%;
    /*height: 100%;*/
    height: 200px;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

.grid__item img:hover {
    opacity: 0.5;
    transition: all 0.5s ease-out;
}

/*Required to overide previoius settings*/
.grid__item__text {
    line-height: 16px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 0;
}

.mixedcard__button {
    margin: 1.6rem 0;
    text-align: center;
    padding: 0.8rem 1.6rem;
    background-color: #3a85c9;
    border: 2.5px solid #777;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

    .mixedcard__button:hover {
        border-color: #d099a0;
        background-color: #41a4fe;
        color: #000;
    }



.btns {
    display: grid;
    grid-gap: 2em;
    grid-template-columns: repeat(2, 1fr); /*Forces button left*/
}

    .btns .btn {
        text-align: center;
        padding: 0.5rem;
    }

    .btns .btn {
        text-align: center;
        padding: 0.5rem;
        margin-bottom: 0.1rem;
        background-color: #5b4c4c;
        color: #fff;
        border: 0;
        max-height: 40px;
    }

        .btns .btn:hover {
            background-color: #3a85c9;
            color: #000;
            transition: all 0.5s ease-out;
        }

    .btns i {
        float: left;
    }



.filter__heading{
    font-size:1.8em;
}

.filters {
    width: 100%;
    text-align: center;
}

.ui-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /*margin-bottom: 40px;*/
    margin-bottom: 10px;
    margin-top: -20px;
}

.button {
    display: inline-block;
    outline: none;
    padding: 0.5em 1.0em;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #444;
    /*font-size: 0.9em;*/
    font-size: 14px;
    background-color: white;
    transition: all 0.2s;
    font-weight: 600; /*Added In*/
    /*Color:red;*/
}

    .button:hover {
        background-color: #ccc;
        color: black;
    }

    .button:active,
    .button.is-checked {
        background-color: #444;
        border: 1px solid #444;
    }

    .button.is-checked {
        color: white;
    }

    .button:active {
    }

/* ---- button-group ---- */

.button-group:after {
    content: '';
    display: block;
    clear: both;
}

.button-group .button {
    float: left;
    border-radius: 0;
    margin-left: 0;
    margin-right: -1px;
}

    .button-group .button:first-child {
        border-radius: 4px 0 0 4px;
    }

    .button-group .button:last-child {
        border-radius: 0 4px 4px 0;
    }

@media only screen and (min-width: 600px) and (max-width: 900px) {
    .button {
        font-size: 1em;
        /*color:purple;*/
        font-weight: 600;
    }

    .grid__item__text {
        font-size: 1.6rem;
        /*color:purple;*/
    }

    .mixedcard__button {
        font-size: 1.6rem;
    }
}

/*Iphone 11*/
@media screen and (min-width : 391px) and (max-width: 420px) {
    .grid__item {
        max-width: 280px;
    }
}

    /*Iphpone 12  390 Galaxy S10 360*/
    @media screen and (min-width : 360px) and (max-width: 390px) {
        .grid__item {
            max-width: 280px;
        }
    }

    /*Iphone SE IPhone5 320 */
    @media screen and (min-width : 321px) and (max-width: 359px) {
        .grid__item {
            max-width: 280px;
        }
    }
    /*Iphpone 5 */
    @media screen and (max-width: 320px) {
        .grid__item {
            max-width: 280px;
        }

    }

    /*Assist buttons for mobile devices Galacy Tab and Ipad Air Portrait*/
    @media only screen and (min-width : 768px) and (max-width : 1024px) and (orientation : portrait) {
        /*@media only screen and (min-width: 600px) and (max-width: 900px) {*/
        .button {
            font-size: 1.4em;
            /*color:purple;*/
            font-weight: 600;
        }

        .grid__item__text {
            font-size: 2.2rem;
            /*color:purple;*/
        }

        .mixedcard__button {
            font-size: 2.2rem;
        }
    }
