/*! HTML5 Boilerplate v7.1.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 1.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

 
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

   html {
    color: #222;
    font-size: 1em;
    line-height: 1.2;
    font-family: 'Heebo', sans-serif;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}
img { max-width: 100%; }

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}




 /* ==========================================================================
   Author's custom styles
   ========================================================================== */


 .wrapper {
     width: 1200px;
     margin: 0 auto;
     position: relative;
 }
 
 .header-container {
     width: 100%;
     box-sizing: border-box;
     background: #f62427;
     height: 110px;
     float: left;
 }
 .top-phone {
     display: none;
 }
 .top-logo {
    background: #fff;
    position: absolute;
    left: 0;
    top: 10px;
    z-index: 9999;
 }
 .top-logo img {
     padding: 20px;
     box-sizing: content-box;
 }
 .top-logo img:hover {
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    -moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
    box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);    
 }
 nav {
     float: right;
     margin: 75px 0 0 0;
 }
 nav ul {
     list-style-type: none;
     padding: 0;
     margin: 0;
 }
 nav ul li {
     float: left;
     display: inline;
     color: #000;
     line-height: 18px;
 }
 nav ul li a {
     font-family: 'Roboto Slab', serif;
     color: #fff;
     text-decoration: none;
     font-size: 16px;
     line-height: 16px;
     padding: 12px 15px;
     box-sizing: border-box;
 }
 
 nav ul li.active a {
     border-bottom: 4px solid rgba(0,0,0,0.5) !important;
 }
 
 nav ul li a:hover {
     color: #fff;
     text-decoration: none;
     background: rgba(0,0,0,0.3);
     border-bottom: 4px solid rgba(0,0,0,0.5) !important;
 }
 
 
 /* MOBILE NAV */
 
 /* The side navigation menu */
.sidenav {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    right: 0;
    background-color: #111; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 0px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
    z-index: 99999;
    text-align:left;
}

/* The navigation menu links */
.sidenav a {
    padding: 12px 12px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
    background-color: rgba(255,255,255,0.1);
    border-bottom: 1px solid #555;
    font-weight: 300;
}

/* When you mouse over the navigation links, change their color */
.sidenav a:hover {
    color: #f1f1f1;
    background: rgba(255,255,255,0.15);
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
    width: 100%;
    text-align: left;
    font-size: 32px;
    background: none;
    padding-top: 4px;
}
.sidenav .closebtn:hover {
    background: none;
}
.mmbtn {
    display: none;
}
.sidenav .topbtns {
    padding: 12px 0 0 12px;
}

.sidenav .topbtn {
    width: 150px;
    box-sizing: border-box;
    margin: 0 0 10px 0 !important;
    opacity: 1;
}
 
 /* END MOBILE NAV */
 
 .hero-container {
     float: left;
     width: 100%;
     box-sizing: border-box;
     background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .55)), url('../img/topsoil-hero.jpg');
     background-repeat: no-repeat;
     background-size: cover;
     background-position: center top;
 }
 .hero {
     padding: 200px 0 170px 0;
 }
 .hero h1 {
     font-family: 'Roboto Slab', serif;
     color: #fff;
     font-size: 60px;
     font-weight: bold;
     text-align: left;
     margin: 0 0 10px 0;
 }
 .hero h2 {
     color: #fff;
     font-size: 31px;
     font-weight: normal;
     text-align: left;
     margin: 0 0 25px 0;
 }
 
 .hero .button {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    padding: 20px 30px;
    border: 2px solid #a12727;
    border-radius: 8px;
    background: #ff4a4a;
    background: -webkit-gradient(linear, left top, left bottom, from(#ff4a4a), to(#cc3333));
    background: -moz-linear-gradient(top, #ff4a4a, #cc3333);
    background: linear-gradient(to bottom, #ff4a4a, #cc3333);
    text-shadow: #591717 1px 1px 5px;
    font-family: 'Roboto Slab', serif;
    font-size: 26px;
    color: #ffffff;
    text-decoration: none;
}
.hero .button:hover,
.hero .button:focus {
    background: #ff5959;
    background: -webkit-gradient(linear, left top, left bottom, from(#ff5959), to(#f53d3d));
    background: -moz-linear-gradient(top, #ff5959, #f53d3d);
    background: linear-gradient(to bottom, #ff5959, #f53d3d);
    color: #ffffff;
    text-decoration: none;
    border-color: #fff;
}
.hero .button:active {
    background: #982727;
    background: -webkit-gradient(linear, left top, left bottom, from(#982727), to(#cc3333));
    background: -moz-linear-gradient(top, #982727, #cc3333);
    background: linear-gradient(to bottom, #982727, #cc3333);
}
.hero .button2 {
    display: inline-block;
    text-align: center;
    vertical-align: middle;
    padding: 20px 30px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 8px;
    text-shadow: #591717 1px 1px 5px;
    font-family: 'Roboto Slab', serif;
    font-size: 26px;
    color: #ffffff;
    text-decoration: none;
    margin-left: 15px;
}
.hero .button2:hover,
.hero .button2:focus {
    background: #ff5959;
    background: -webkit-gradient(linear, left top, left bottom, from(#ff5959), to(#f53d3d));
    background: -moz-linear-gradient(top, #ff5959, #f53d3d);
    background: linear-gradient(to bottom, #ff5959, #f53d3d);
    color: #ffffff;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,1);
}
.hero .button2:active {
    background: #982727;
    background: -webkit-gradient(linear, left top, left bottom, from(#982727), to(#cc3333));
    background: -moz-linear-gradient(top, #982727, #cc3333);
    background: linear-gradient(to bottom, #982727, #cc3333);
}

.home-content-container {
    padding: 60px 0;
    width: 100%;
    float: left;
    box-sizing: border-box;
}
.home-section2 {
    background: #333;
}
.home-content-container h1 {
    color: #444;
    font-family: 'Roboto Slab', serif;
    font-size: 40px;
    font-weight: normal;
    text-align: center;
    margin: 0 0 5px 0;
}
.home-content-container h2 {
    color: #eee;
    font-family: 'Roboto Slab', serif;
    font-size: 40px;
    font-weight: normal;
    margin: 0 0 15px 0;
}
.home-content-container p {
    font-size: 20px;
    color: #aaa;
    line-height: 30px;
    font-weight: 300;
    margin: 0 0 20px 0;
}
.home-content-container p:last-of-type {
    margin: 0 0 0 0;
}
.home-content-container h3 {
    font-size: 24px;
    color: #999;
    text-align: center;
    line-height: 30px;
    font-weight: 300;
    margin: 0 0 20px 0;
}
.resicom {
    width: 100%;
    max-width: 100%;
    height: 70vh;
    max-height: 70vh;
}
.htiles {
  display: grid;
  grid-gap: 15px; 
  overflow: hidden;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-flow: dense;
  height: 100%;
}
.htile {
    border: 15px solid #B0C5FF;
    background-image: linear-gradient(224deg, #B0C5FF 0%, #26145F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-family: 'Roboto Slab', serif;
    color: #FFF;
    text-shadow: 0 1px 1px #000;
}
.htile:nth-of-type(1) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .6)), url('../img/topsoil-tile.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    border: none;
    grid-column: span 2;
    grid-row: span 2;
}
.htile:nth-of-type(2) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .6)), url('../img/compost-tile.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    border: none;
    grid-column: span 2;  
}
.htile:nth-of-type(3) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .6)), url('../img/gravel-tile.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    border: none; 
    grid-row: span 3;
}
.htile:nth-of-type(4) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .6)), url('../img/clay-tile.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    border: none;    
}
.htile:nth-of-type(5) {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .6)), url('../img/sand-tile.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    border: none;    
}
.htile:nth-of-type(6) {
    grid-column: span 2;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .6)), url('../img/limestone-tile.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    border: none;  
}
.htile:nth-of-type(7) {
    grid-column: span 2;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .6)), url('../img/gardensoil-tile.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    border: none;  
}
.w50 {
    width: 49%;
    margin-right: 2%;
    float: left;
}
.w50:last-of-type {
    margin-right: 0;
}

.footer-container {
    float: left;
    width: 100%;
    box-sizing: border-box;
    background: #111;
}

.footer p {
    padding: 20px 0;
    color: #aaa;
    font-size: 16px;
    margin: 0 0;
}
.footer a {
    color: #eee;
}
.footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.brh {
    display: none;
}

/* SUB PAGES */

.sub-hero-container {
     float: left;
     width: 100%;
     box-sizing: border-box;
     background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, .55)), url('../img/topsoil-hero.jpg');
     background-repeat: no-repeat;
     background-size: cover;
     background-position: center center;
}
.sub-hero {
    padding: 80px 0 70px 0;
}
.sub-hero h1 {
    font-family: 'Roboto Slab', serif;
    color: #fff;
    font-size: 50px;
    line-height: 54px;
    font-weight: bold;
    text-align: left;
    margin: 0 0 0px 0;
}
.sub-content-container {
    float: left;
    width: 100%;
    box-sizing: border-box;
}
.sub-section {
    padding-top: 30px;
    padding-bottom: 30px;
}

.sub-content-container featured-image {
    max-width: 100%;
    margin-bottom: 15px;
}
.sub-content-container h2 {
    font-family: 'Roboto Slab', serif;
    color: #333;
    font-size: 32px;
    line-height: 32px;
    font-weight: bold;
    margin: 0 0 15px 0;
}
.sub-content-container p {
    font-weight: 300;
    font-size: 18px;
    line-height: 32px;
    color: #444;
    margin-top: 0;
}
.sub-content-container .featured-image {
    max-width: 100%;
    margin-bottom: 15px;
}
.sub-content-container ul {
    margin: 30px 0;
    background-color: #f5f5f5;
    padding: 20px;
}
.sub-content-container ul li {
    font-size: 18px;
    line-height: 32px;
    font-weight: 300;
    color: #444;
    list-style-type: none;
    background: url('../img/bullet2.png') 0px 6px no-repeat;
    margin-left: 0px;
    margin-bottom: 5px;
    padding-left: 30px;
}
.sub-content-container ul li:last-of-type {
    margin-bottom: 0;
}
.sub-content-container .contactform {
    padding: 20px;
    background: #f5f5f5;
}
.sub-content-container .contactform h1 {
    margin: 0 0 10px 0;
}

/* calculator */
 
.topsoil-calculator {
    width: 100%;
    margin: auto;
}
.topsoil-calculator h1 {
    font-family: 'Roboto Slab', serif;
    color: #333;
    font-size: 40px;
    font-weight: bold;
    margin: 0 0 0 0;
}
.topsoil-calculator h2 {
    color: #777;
    font-size: 24px;
    font-weight: 300;
    margin: 0 0 20px 0;
}
.topsoil-calculator .shape {
    display: none;
}
.topsoil-calculator .damaterial {
    display: none;
}
.topsoil-calculator .area {
    padding: 20px;
    background: #edede2;

}
.topsoil-calculator .area label {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #7d7d72;
}
.topsoil-calculator .result {
    color: #7d7d72;
    border: none;
    background: transparent;
    text-align: right;
    font-weight: bold;
    font-size: 24px;
}
.topsoil-calculator .areas {
    display: none;
}
.delete-row {
    padding: 0 4px 4px 4px;
    line-height: 0.9em;
}
.topsoil-calculator .area input, .topsoil-calculator .area select {

}

.topsoil-calculator .quotebtn {
    width: 250px;
    display: block;
    padding-bottom: 10px;
    color: #fff;
    font-weight: bold;
    margin: 0 auto;
}

/* QUOTE FORM */

.orderformsection {
    padding: 30px;
    margin-bottom: 15px;
    background: #f0f0f0;
}
.orderformsection .form-group:last-of-type {
    margin-bottom: 0;   
}

/* END QUOTE FORM */






 /* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

 .hidden {
  display: none !important;
}

/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
*    causes content to wrap 1 word per line:
*    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap; /* 1 */
}

/*
* Extends the .visuallyhidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  width: auto;
  white-space: inherit;
}

/*
* Hide visually and from screen readers, but maintain layout
*/

.invisible {
  visibility: hidden;
}

/*
* Clearfix: contain floats
*
* For modern browsers
* 1. The space content is one way to avoid an Opera bug when the
*    `contenteditable` attribute is included anywhere else in the document.
*    Otherwise it causes space to appear at the top and bottom of elements
*    that receive the `clearfix` class.
* 2. The use of `table` rather than `block` is only necessary if using
*    `:before` to contain the top-margins of child elements.
*/

.clearfix:before,
.clearfix:after {
  content: " "; /* 1 */
  display: table; /* 2 */
}

.clearfix:after {
  clear: both;
}

 
/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width : 1220px) {
    .wrapper {
        width: 970px;
    }    
    .top-logo img {
        height: 80px;
        padding: 15px;
    }
    nav {
        margin: 76px 0 0 0;
    }
    nav ul li a {
        font-size: 16px;
        padding: 10px 12px;
    }
    .hero {
        padding: 140px 0 130px 0;
    }
    .hero h1 {
        font-size: 44px;
        margin: 0 0 5px 0;
    }
    .hero h2 {
        font-size: 25px;
    }
    .hero .button, .hero .button2 {
        font-size: 24px;
        padding: 10px 20px;
    }
    .home-content-container {
        padding: 40px 0;
    }
    .home-content-container h1 {
        font-size: 44px;
    }
    .home-content-container h3 {
        font-size: 20px;
    }
    .htiles {
        grid-gap: 10px;
    }
    .htile:nth-of-type(1) {
        grid-row: span 3;
    }
    .htile:nth-of-type(2) {
        grid-column: span 2;
        grid-row: span 3;
    }
    .htile:nth-of-type(3) {
        grid-column: span 2;
        grid-row: span 1;
    }
    .htile:nth-of-type(5) {
        grid-row: span 2;
    }
    .htile:nth-of-type(6) {
        grid-column: span 2;
    }
    .htile:nth-of-type(7) {
        grid-column: span 1;
    }
    .home-content-container h2 {
        font-size: 38px;
    }
    .home-content-container p {
        font-size: 18px;
    }
    footer p {
        font-size: 14px;
    }
    
    /* SUB PAGES */

     .sub-hero {
         padding: 60px 0 60px 0;
     }
     .sub-hero h1 {
         font-size: 50px;
         line-height: 54px;
     }
}

@media only screen and (max-width : 990px) {
    .mmbtn {
        font-size:30px;
        cursor:pointer;
        position: fixed;
        right: 20px;
        top:20px;
        z-index:99998;
        display: inline;
        color: #fff;
    }
    .wrapper {
        width: 748px;
    }
    .header-container {
        height: 90px;
    }
    .top-logo img {
        height: 60px;
    }
    nav ul {
        display: none;
    }
    .hero {
        padding: 120px 0 110px 0;
    }
    .home-content-container h1 {
        font-size: 36px;
    }
    .home-content-container h3 {
        font-size: 16px;
    }
    .htiles {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .htile:nth-of-type(1) {
        grid-row: span 2;
        grid-colum: span 2;
    }
    .htile:nth-of-type(2) {
        grid-column: span 2;
        grid-row: span 2;
    }
    .htile:nth-of-type(3) {
        grid-column: span 2;
        grid-row: span 1;
    }
    .htile:nth-of-type(4) {
        grid-column: span 1;
        grid-row: span 2;
    }
    .htile:nth-of-type(5) {
        grid-row: span 2;
    }
    .htile:nth-of-type(6) {
        grid-column: span 2;
    }
    .htile:nth-of-type(6) {
        grid-column: span 4;
    }
    .htile:nth-of-type(7) {
        grid-column: span 2;
    }
    .home-content-container p {
        font-size: 14px;
        line-height: 20px;
    }
}

@media only screen and (max-width : 768px) {
    .mmbtn {
        top: 74px;
    }
    .top-phone {
        padding: 10px 0;
        width: 100%;
        text-align:center;
        float: left;
        display: inline;
        background: #900;
    }
    .top-phone a {
        color: #fff;
        font-weight: bold;
        font-size: 22px;
        text-decoration: none;
    }
    .top-phone a:hover {
        text-decoration: none;
    }
     .first {
        order: 1;
        margin-bottom: 15px;
    }
    .second {
        order: 2;
    }
    .wrapper {
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
        float: left;
    }
    .top-logo {
        left: 10px;
    }
    .hero {
        padding: 120px 15px 110px 15px;
        text-align: center;
    }
    .hero h1 {
        text-align: center;
    }
    .hero h2 {
        text-align: center;
    }

    .htile:nth-of-type(3) {
        grid-column: span 3;
    }
    .htile:nth-of-type(6) {
        grid-column: span 3;
    }
    .htile:nth-of-type(7) {
        grid-column: span 3;
    }
    .home-section2 .second {
        order: 1;
        margin-bottom: 30px;
    }
    .home-section2 .first {
        order: 2;
    }
    /* SUB PAGES */

    .sub-hero {
        padding: 60px 15px 60px 15px;
    }
    .sub-hero h1 {
        font-size: 40px;
        line-height: 44px;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .htiles {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
@media (max-width: 660px) {
    .htiles {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
@media only screen and (max-width: 576px) {
    
    .top-phone {
        padding: 10px 0;
        width: 100%;
        text-align:center;
        float: left;
        display: inline;
        background: #900;
    }
    .top-phone a {
        color: #fff;
        font-weight: bold;
        font-size: 22px;
        text-decoration: none;
    }
    .top-phone a:hover {
        text-decoration: none;
    }
    .top-logo img {
        height: 50px;
        padding: 10px;
    }
    .hero-container {
        background-position: right top;
    }
    .hero {
        padding: 50px 15px 60px 15px;
    }
    .hero h1 {
        line-height: 44px;
        margin-bottom: 15px;
    }
    .hero h2 {
        line-height: 23px;
    }
    .hero .button {
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 20px;
    }
    .hero .button2 {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
    }
    .hero .button2a {
        margin-bottom: 20px;
    }
    .home-content-container {
        padding: 15px 0;
    }
    .home-content-container h1 {
        line-height: 39px;
    }
    .home-content-container h2 {
        text-align: center;
    }
    .home-content-container p {
        text-align: justify;
    }
    .htiles {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    .htile {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
    .home-section2 .w50 {
        width: 100%;
        margin: 0 0;
    }
    .home-section2 .w50:last-of-type {
        display: none;
    }
    .footer p {
        text-align: center;
        line-height: 20px;
    }
    .brh {
        display: inline;
    }
    
    /* SUB PAGES */

    .sub-hero {
        padding: 30px 15px 30px 15px;
    }
    .sub-hero h1 {
        font-size: 30px;
        line-height: 34px;
        text-align: center;
    }
    .sub-section {
        padding-top: 15px;
        padding-bottom: 15px;
    }
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

 
/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

   @media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}


@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .resicom { height: auto; min-height: auto; max-height: 100%; }
   .htile { width: 48%; float: left; height: 200px; margin-right: 2%; box-sizing: border-box; margin-bottom: 20px;}
   .htile:nth-of-type(2n) {
       margin-right: 0;
   }
}