/*
Theme Name: CMW.co.il Official Theme
Theme URI: http://www.binternet.co.il
Author: Lior Broshi, Binternet.co.il
Author URI: http://binternet.co.il/
Description: Official Theme for CMW.co.il
Version: 1.3
*/

/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * 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,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

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

/** General **/
body {
    background-color:#00589E;
    color:white;
    font-size:12px;
}
a { color:white; text-decoration: none; }
.red { color:red; }
.clearboth { clear:both; }
.right { float:right; }
.left { float: left; }
.button {
    background-color: #6f97cf;
    border-bottom: #364a65 2px solid;
    border-left: #b8cce7 2px solid;
    border-right: #364a65 2px solid;
    border-top: #b8cce7 2px solid;
    color: #ffffff;
    font-family: arial, helvetica;
    font-size: 8pt;
    font-weight: bold;
    cursor: hand;
}

#wrap {
    width:780px;
    margin:0 auto;
}
/* Header */
.header {
    height: 126px;
    background-image:url('images/bg-header.png');
    background-repeat:no-repeat;
    background-position: right top;
}
.header .logo {
    float:left;
}
.header form.search {
    position: relative;
    top: 94px;
    right: 137px;
    text-align:right;
    direction:rtl;
}
.header form.search label {
    font-size:12px;
    font-weight:bold;
}
.header form.search input[type="text"] {
    background-color:#7EC4EC;
    border:1px solid black;
    width:90px;
}
.page {
    clear:both;
    margin-bottom: 20px;
}

/** Content **/
.content {
    width: 440px;
}
.home .content {
    width: 430px;
    text-align: justify;
}
.content h1,
.content h3 {
    color:#6F97CF;
    font-weight:bold;
}
.content h1 { font-size:20px; }
.content h2 { font-size:10pt; color:#33ffff;margin:0;padding:0; }

.content.article h1 {
    background-image:url('images/bg_t02.gif');
    color:white;
    font-size:14px;
}
.content.article h2 {
    color:#33ffff;
    font-size:12px;
}
.content.article .image {
    float:left;
    margin:5px 10px 0 0;
    border:1px solid white;
}
.content.article .image img {

}


ul.menu {
    list-style-type: none;
    padding:0;
    margin:0;
    text-align:right;
    direction:rtl;
}
ul.menu.menu-homepage {
    float: right;
    width: 112px;
    margin: 85px 7px 0 0;
}
ul.menu.menu-homepage a {
    font-size:14px;
}
ul.menu li {
    height:20px;
    line-height:20px;
    background-image:url('images/bg_link_off.gif');
    background-repeat:no-repeat;
    text-align:right;
    direction:rtl;
    position:relative;
}
ul.menu li:hover {
    background-image:url('images/bg_link_on.gif');
}
ul.menu li a {
    margin-right: 9px;
    display:block;
    font-size:12px;
    font-weight:bold;
    text-decoration:none;
    font-family:Arial;
}
/* Submenu */
ul.menu li ul.sub-menu {
    position: absolute;
    list-style-type: none;
    left: -125px;
    top: -10px;
    width: 92px;
    display:none;
    z-index:9999;
    background-color:#333;
}
ul.menu li:hover ul.sub-menu {
    display:block;
}
ul.menu li ul.sub-menu li {
    background-image:none;
    width: 132px;
}
ul.menu li ul.sub-menu li:hover {
    background-color:#ddd;
}
/* Sidebar Right */
.sidebar-right {
    float:right;
    width:112px;
    background-image:url('images/bg_right.gif');
    background-repeat: repeat-y;
    font-size:12px;
    margin-right: 7px;
}
.sidebar-right .tbl-newsletter {
    text-align:right;
    margin: 0 auto;
    display: block;
    width: 90px;
    padding: 25px 0;
}
.sidebar-right .tbl-newsletter input {
    width: 90px;
    font-size:11px;
    direction:rtl;
}
.sidebar-right .tbl-newsletter .title {
    font-size:14px;
    font-weight:bold;
    text-align:center;
}
.sidebar-right .tbl-newsletter td strong,
.sidebar-right .tbl-newsletter span {
    font-size:10px;
}
.sidebar-right .facebook-wrap {
    text-align:center;
    margin:0 auto;
    width:75px;
    padding: 17px 0;
}
.sidebar-right form.form-search {
    width:80px;
    margin:0 auto;
    height: 135px;
    display:block;
    text-align:center;
    direction:rtl;
}
.sidebar-right form.form-search label {
    color:black;
}
.sidebar-right form.form-search input[type="text"] {
    color:black;
    background-color:#7EC4EC;
    border:1px solid #000;
    font-size:8pt;
    font-family:Verdana, Geneva, Arial, Helvetica, sans-serif;
    margin-bottom:15px;
    width:80px;
}
.sidebar-right form.form-search select {
    margin-bottom:15px;
    width:80px;
}


/* Sidebar Left */
.sidebar-left {
    float:left;
    width: 200px;
}
.sidebar-left .categories {
    margin-bottom:30px;
}
.gallery ul{
    margin:0px;
    padding:0px;
    list-style-type:none;
}
.gallery li{
    width:185px;
    display:block;
    height:auto;
    float:left;
    text-align:center;
}

.sidebar-left.sidebar-images {
    text-align:center;
}

.sidebar-left .categories h2 {
    text-align:center;
}
.sidebar-left .categories ul {
    list-style-type:none;
}
.sidebar-left .categories ul li {
    background: url('images/chakra07.gif') right no-repeat;
    text-align: right;
    padding-right: 25px;
    margin-bottom: 5px; 
}
.sidebar-left .subcategories {
    width:185px;
    height:145px;
    overflow-x:hidden;
    overflow-y:auto;
}
.sidebar-left .subcategories ul {
    padding:0;
    margin:0;
}

.kristalim h3 {
    background-color:#7098D0;
    font-size: 13px;
    color:white;
    text-align:center;
    font-weight: bold;
}
.kristalim ul {
    height:400px;
    overflow-y:auto;
    padding:0;
    margin:0;
    list-style-type: none;
    text-align:right;
    direction: ltr;
}
.kristalim ul li {
    background-image:url('images/arr.gif');
    background-repeat:no-repeat;
    background-position:right center;
    padding-right:20px;
    /* line-height: 12px; */
    margin-bottom: 7px;
}
.kristalim ul li a {
    font-size:12px;
}
.kristalim a.show-all {
    background-image:url('images/arr02.gif');
    background-position:right center;
    background-repeat: no-repeat;
    width: 181px;
    text-align: right;
    display: block;
    padding-right: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 10px;
}

/** Search Results **/
.search-results h2 span {
    color:white;
}
.search-results .kristalim li {
    line-height: 20px;
    direction: rtl;
}
.search-results .kristalim a {
    font-size:15px;
    font-weight:bold;
}
.search-results .kristalim a:hover {
    color:#6F97CF;
}
.search-results .entry {
    clear:both;
    display:table;
    margin-bottom:20px;
}
.search-results .entry .text {
    float:right;
    width:80%;
}

.text img {
    border-radius:5px;
}
.search-results .entry .text p {
    text-align:justify;
}
.search-results .entry .image {
    float:left;
}
.search-results .entry .image img {
    max-width:62px;
    max-height:96px;
    border:1px solid white;
    margin:10px 0;
}
.content {
    float:right;
    padding-right: 20px;
    direction: rtl;
    font-size: 16px;
    text-align: right;
    font-family: Arial;
    line-height: normal;
}
footer {
    clear:both;
    text-align:center;
    background-image:url('images/bg-footer.png');
    background-repeat:repeat-x;
    height:30px;
    line-height:30px;
    margin:10px 0;
}

/* Search Results */
.search-results h4 {
    background-image:url('images/bg_t02.gif');
    margin:0;
}
.search-results a.read-more { 
    float:left;
    background-image:url('images/ic_next.gif');
    background-repeat:no-repeat;
    width:62px;
    height:15px;
}
.sidebar-left .gallery {
    width:auto;
}
.sidebar-left .gallery a {
    margin-bottom:10px;
    display:block;
}
.gallery {
    width:640px;
}
.gallery img {
    margin:0;
}
.gallery p {
    margin: 0 auto;
    text-align: center;
    direction: rtl;
    width: 140px;
    display: block;
    font-size: 8pt;
    font-weight: bold;
    padding:0 0 10px 0;
    word-wrap:break-word;
}
.gallery-item {
    width: 290px;
    margin: 0px;
    height: 170px;
}


.fbFeedbackContent .post label.desc {
    color:white !important;
}

.pluginFontHelvetica, .pluginFontHelvetica button, .pluginFontHelvetica input, .pluginFontHelvetica label, .pluginFontHelvetica select, .pluginFontHelvetica td, .pluginFontHelvetica textarea {
    color:white !important;
}


/* ==========================================================================
   WordPress Core
   ========================================================================== */

.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}


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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

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

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

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

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

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

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

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

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

.btn-newsletter {
    display: block;
    position: relative;
    left: 10px;
    padding: 10px;
    background-color: #D4A3DA;
    color: white;
    text-align: center;
    width: 77px;
    margin-top: 25px;
    border-radius: 5px;
    font-weight:bold;
}

.btn-vegan {
    background-color: #44AB3B;
}