.padding-2 {padding:2px;}
.padding-5 {padding:5px;}

.select2-container {
    width: 250px !important;
    margin: 10px 20px 0 20px !important;
}


#newhardwareform input,#newhardwareform textarea,#newhardwareform select {
        width: 80%;
        max-width: 400px;
}
#newhardwareform #featurelist {
        text-align: left;
        width: 80%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
}
#newhardwareform #featurelist input[type="checkbox"] {
        width: auto;
        text-align: left;
        margin-right: 5px;

}
#newhardwareform #featurelist span {
        display: inline-block;
        margin-right: 10px;
}

.hwp_box h1 {
    font-size: 1.8em;
    margin: 0;
    padding: 5px;
    margin-top: 20px;
    margin-bottom: 10px;
}
.hwp_featurebox h1 {
    font-size: 2.2em;
    margin: 0;
    padding: 5px;
    margin-top: 20px;
    margin-bottom: 10px;
}



.hwp_image, .hwp_featureicons, .hwp_description, .hwp_links  {
        padding: 5px;
}

.hwp_introtext {
    max-width: 95%;
}

#hardwarepage_menu {
    font-size: 0.9em;
}


.hwp_description {
    margin-top: 5px;
    font-size: 0.95em;
    max-height: 150px;
    overflow: hidden;
    min-height: 150px;
}

.hwp_edit a {
    text-decoration: none;
}
.hwp_letext {
    font-weight: bold;
}
.hwp_le {
    clear: right;
    float: right;
    margin-right: 10px;

}
.hwp_edit {
    clear: right;
    float: right;
    margin-right: 10px;
    opacity: 0.5;
}

.hwp_featureicons {
    max-width: 90%;
}

.hwp_featureicons img {
    margin-right: 2px;
    max-width: 30px;
    width: 10%;
    image-rendering: auto;
    margin-bottom: 2px;
}



.hwp_links button {
    margin-right: 10px;
    margin-bottom: 10px;
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.8em;
    min-width: 80px;
}

.hwp_buy {


}

.hwp_buy  .red-gradient {
    color: white;
    font-weight: bold;
}

span.hwp_price {
    display: block;
    margin-bottom: 5px;
    margin-top: 5px;
    font-weight: bold;

}

.hwp_image img.responsive {
    width: 98%;
    height: auto;
    margin-left: 1%;
    margin-right: 1%;
    image-rendering: auto;
}

.hwp_partnerlogo img {
    opacity: 1;
}
.hwp_partnerlogo img:hover {
    opacity: 0.5;
}


#hwp_partnerbrand {
    font-size: 0.9em;
    color: gray;
}


.hwp_categoryname {
    display: block;
    text-align: center;
    font-weight: bold;
    color: red;
    margin-top: 20px;
    text-transform: uppercase;
}


.hwp_featurebox .whitebox,  .hwp_box .whitebox {
        max-height: none;
        min-height: auto;
    }
    
.hwp_description {
        max-height: none;
        min-height: auto; 
    }
    
@media only screen and (min-width : 20em) {
    /* tiny */
}    

@media only screen and (min-width : 30em) {
    /*  grid */
}

@media only screen and (min-width: 37.5em) {
    /*  compact grid */
}

@media only screen and (min-width : 48em) {
    /* medium grid */

    
}

@media only screen and (min-width : 56.25em) {
    /* regular grid */
    .hwp_description {
        max-height: 130px;
        min-height: 130px;
        overflow-y: auto;
        margin-bottom: 10px;
    }
    
    .hwp_box .whitebox {
        min-height: 550px;
        max-height: 550px;
    }
}
@media screen and (min-width: 64em) {
    /* inner grid large */
    .hwp_description {
        max-height: 140px;
        min-height: 140px;
        overflow-y: auto;
        margin-bottom: 10px;
    }
    
   .hwp_box .whitebox {
        min-height: 350px;
        max-height: 350px;
    }
}


/* dark mode */
body.darkmode .hwp_featureicons img {filter: invert(1) brightness(0.85);}
body.darkmode .hwp_image img.responsive {filter: drop-shadow(2px 3px 4px #101010);}
body.darkmode .hwp_box a {text-decoration: none;}
body.darkmode .hwp_links .button-black {
    border: 1px solid silver;
    color: silver;
}
body.darkmode .hwp_categoryname {color: #dd6666;}
body.darkmode .hwp_partnerlogo img {filter: invert(1) brightness(0.85);}
body.darkmode .hwp_featurebox a {text-decoration: none;}
body.darkmode .hwp_introtext {background: #2d2e2f; box-shadow: 2px 5px 5px #202020;}


/* dark mode nav bar */
body.darkmode .navbar-default {border-color: #1f2021;}
body.darkmode .addonpage li.dropdown.open a {color: #bdbdbd;}
body.darkmode .dropdown-menu {
    background-color: #4e4e4e;
    color: #bdbdbd;
}
body.darkmode .navbar-default .navbar-nav > .open > a, .navbar-default .navbar-nav > .open > a:hover, .navbar-default .navbar-nav > .open > a:focus {
    background-color: #4e4e4e;
    color: #bdbdbd;
}
body.darkmode .navbar-default .navbar-nav > li > a:hover, .navbar-default .navbar-nav > li > a:focus {
    color: #a5a5a5;
}
body.darkmode .select2-container .select2-choice {
    background-color: #282828;
    background-image: none;
    border: 1px solid #191a1a;
}
body.darkmode .select2-drop {
    background: #282828;
    color: #9f9f9f;
    border: 1px solid #191a1a;
}
body.darkmode .select2-container .select2-choice .select2-arrow {
    border-left: 1px solid #000;
    background: #282828;
    background-image: none;
}

body.darkmode .dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus {
    background-color: #232425;
}

/* dark mode labels */
body.darkmode .primary, body.darkmode .label-primary {background-color: #3988a9;}
body.darkmode .label { color: #e9e9e9;}



@media only screen and (min-width : 68.75em) {
    /* wide grid */
    .hwp_description {
        max-height: 200px;
        min-height: 200px; 
        overflow-y: auto;
    }
    .hwp_box .whitebox {
        min-height: 450px;
        max-height: 450px;
    }
}


@media only screen and (min-width : 81.25em) {
     /* large grid */
    
    .hwp_featurebox .whitebox {
    min-height: 390px;
    max-height: 390px;
    }
    .hwp_box .whitebox {
        min-height: 400px;
        max-height: 400px;
    }
    
    .hwp_description {
        max-height: 140px;
        min-height: 140px; 
        overflow-y: auto;
    }

}