@import url('normalize.css');

body {
    background: #ccc;
    font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
    text-align: center;
}

#wrapper {
    background: white;
    box-shadow: 0 0 10px #888;
    margin: 0 auto;
    text-align: left;
    width: 800px;
}

#header {
  padding-top: 20px;
}

#header-social {
    margin: 0 20px 10px 0;
    text-align: right;
}

.header-social-icons {
    display: inline-block;
    margin-left: 20px;
}

.header-social-icons img {
    height: 19px;
    vertical-align: middle;
}

.header-social-icons span {
    color: #8B0E04;
    font-size: 14px;
    margin-left: 5px;
    vertical-align: middle;
}

#header-tagline {
    font-size: 0;
    overflow: hidden;
}

#header-menu {
    padding: 10px 0 20px 0;
    text-align: center;
}

#header-menu a:link, #header-menu a:visited {
    color: #696A6D;
    text-decoration: none;
}

#header-menu a:hover {
    color: #8B0E04; 
}

#header-menu ul {
    display: inline-block;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    position: relative;
    width: 100%;
}

#header-menu ul li:last-child {
    border-right: 0;
}

#header-menu ul li {
    border-right: 2px solid #696A6D;
    display: inline-block;
    line-height: 20px;
    padding: 0 15px;
    text-align: center;
    width: auto;
}

#header-menu ul li:hover > ul {
    display: block; 
  z-index: 100;
}

#header-menu ul ul {
    background: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, .45);
    display: none;
    padding: 0 0 20px 0;
    position: absolute;
    top: 100%;
    width: 200px;
}

#header-menu ul ul li {
    border-right: 0;
    display: block;
    line-height: 20px;
    margin: 0;
    padding: 15px 0 0 20px;
    position: relative;
    text-align: left;
    width: 100%;
}

#content {
    color: #696A6D;
    font-size: 12px;
    padding: 20px; 
    text-align: justify;
}

#content td {
    padding: 15px;
}

.item-page h2 {
    color: #8B0E04;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 5px;
    text-align: center;
}

.item-page h3 {
    border-bottom: 2px solid #ddd;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 5px;
    margin-top: 30px;
    text-transform: uppercase;
}

#footer-contact {
    background-color: #8B0E04;
    color: #FFF;
    font-size: 9px;
    padding: 6px 0;
    text-align: center;
}

#footer-contact .footer-contact-item {
    border-right: 1px solid #fff;
    display: inline-block;
    padding-right: 10px;
    margin: 0 5px;
}

#footer-contact .footer-contact-item:last-child {
    border-right: 0;
}

#footer-contact a {
    color: #FFF;
    text-decoration: underline;
}

#footer {
    color: #696A6D;
    font-size: 9px;
    font-weight: bold;
    margin-bottom: 0;
    padding: 6px 0;
    text-align: center;
} 

#content a:link, #content a:visited {
    color: #8B0E04;
    font-weight: bold;
    text-decoration: underline;
}
#content a:hover {
    color: #f3f3f3;
}
.clear {
    clear: both;
}
/* contact form */
#rsform_1_page_0 input[type=text], #rsform_1_page_0 textarea {
    margin: 0;
    width: 350px;
}
#rsform_1_page_0 input[type=checkbox] {
    clear: left;
    float: none;
    margin: 0 10px 0 15px;
}
.rsform-block {
    margin: 0 0 2px 0 !important;
}
#rsform_1_page_0 .formControlLabel {
    font-weight: bold;
    padding-right: 15px;
    text-align: left;
    width: 300px;
}
#rsform_1_page_0 .formControls {
    margin-left: 300px;
}
.rsform-block-header {
    margin-bottom: 30px !important;
}
.rsform-block-header .formControlLabel {
    display: none !important;
}
.rsform-block-header .formControlBody {
    text-align: center !important;
    width: 700px !important;
}
.rsform-block-header .formControls {
    margin-left: 0 !important;
}
.rsform-block-contactmethod label {
    float: none;
    margin: 0;
}

/* supplier search */
.ingredientSearchBox {
    border: 2px solid #444444;
    margin: 10px auto;
    width: 350px;
}
.ingredientSearchBox {
    border: 2px solid #444444;
    margin: 10px auto;
    width: 350px;
}
.ingredientSearchBox legend {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
    text-align: center;
}
.ingredientSearchBoxType {
    margin-bottom: 10px;
}
.ingredientSearchBoxType select {
    margin: 5px 0 0 20px;
}
.ingredientSearchResults {
    border: 2px solid #444444;
    font-size: 14px;
    margin: 10px auto;
    text-align: center;
    width: 650px;
}
.ingredientSearchResults legend {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    padding: 5px;
    text-align: center;
}

/* home */

#itemid-435 #content {
    font-size: 0;
    padding: 0;
}

/* principal */

hr {
    background-color: #888;
    border: 0;
    clear: both;
    height: 1px;
    margin: 25px 0;
    padding: 0;
}


#t-principals tr:nth-child(odd) { 
    border-top: 1px solid #eee;
}

#t-principals tr:nth-child(odd) td { 
    padding: 20px 0 15px 0;
}

#t-principals tr:nth-child(even) td { 
    vertical-align: top;
}

#t-principals tr:nth-child(even) td:first-child { 
    padding: 0 10px 20px 0;
    text-align: center;
    width: 250px;
}

#t-principals tr:nth-child(even) td:first-child img { 
    height: auto;
    width: 90%;
}

#t-principals tr:nth-child(even) td:nth-child(2) { 
    padding: 0 0 20px 10px;
}


/* our history */

#itemid-487 #content p {
    padding-left: 90px;
    margin: 0 0 10px 0;
}

#itemid-487 #content table.aboutus-section {
    margin-top: 30px;
    padding-left: 0 !important;
    width: 100%;
}

#itemid-487 #content td {
    padding: 0;
    vertical-align: top;
}

#itemid-487 #content td:first-child {
    width: 65px;
}

#itemid-487 #content td:first-child img {
    margin: 0 !important;
}

#itemid-487 #content td:last-child {
    font-size: 15px;
    padding-top: 5px;
}

#itemid-487 #content td:last-child hr {
    background: #8B0E04;
    margin: 10px 0 0 0;
}

#itemid-487 #content td.aboutus-section-text strong {
    display: block;
    margin-left: 25px;
}

#itemid-487 #content img {
    margin: 10px;
}

/* mobile */

@media (max-width: 900px)
{
    .header-social-icons span {
        display: none;
    }
  
    #content {
        text-align: left;
    }
    
    #footer-contact .footer-contact-item {
        border-right: 0;
        display: block;
        font-size: 12px;
        margin: 4px 0;
        padding: 0;
    }
    
    #wrapper {
        max-width: 100%;
    }
    
    #header-logo img,
    #header-tagline img,
  #itemid-435 .item-page img,
  #itemid-479 .item-page img {
        max-width: 100%;
    }
    
    #itemid-468 .item-page table tr {
        border-bottom: 1px solid #ccc;
        display: block;
    }
    
    #itemid-468 .item-page table tr td,
    #itemid-479 .item-page table tr td {
        display: block;
        padding: 0;
    }
    
    #itemid-468 .item-page table tr td img {
        height: auto;
        max-width: 100%;
    }
    
    /* principal products */
    
    #itemid-479 fieldset {
        max-width: 250px;
    }
    
    #itemid-479 select {
        max-width: 200px;
    }
    
    #itemid-479 .item-page table tr td {
        padding: 20px;
    }
    
    #itemid-479 .item-page table tr td:first-child {
        text-align: center;
    }

    #t-principals tr:nth-child(even) td:first-child { 
        display: block;
        width: 100%;
    }  
    
    #t-principals tr:nth-child(even) td:first-child img { 
        width: 150px;
    }

    /* our history */
    
    #itemid-487 td.aboutus-section-text hr {
        margin: 3px 0 0 0 !important;
    }

    #itemid-487 td.aboutus-section-text {
        font-size: 12px !important;
        padding: 0 !important;
    }

    #itemid-487 #content img {
        height: auto;
        max-width: 100px;
    }
    
    /* contact */
    
    .formControlLabel {
        display: block;
        float: none;
        width: 100%;
    }
    
    .formControls {
        margin: 5px 0 0 0 !important;
    }
    
    .formControls p {
        display: none;
    }
    
    .rsform-block  {
        margin: 0 0 15px 0 !important;
    }
    
    .rsform-block-submit  {
        text-align: center;
    }
    
    /* menu */
    
    /*
    #header-menu:before {
        border: 1px solid #ccc;
        color: #555;
        content: "Menu";
        cursor: pointer;
        margin-bottom: 5px;
        padding: 5px 10px;
    }
    */
    
    #header-menu ul {
        display: block;
    }

    #header-menu ul li {
        border-right: 0;
        display: block;
        margin: 2px 0;
    }

    #header-menu ul ul {
        top: 45px;
        left: 0;
        right: 0;
        margin: 0 auto;
    }
    
    /* footer */
    
    #footer {
        font-size: 12px;
        padding: 20px;
    }
    
}