/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
* {
    -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
}

body {
    -webkit-touch-callout: none;                /* prevent callout to copy image, etc when tap to hold */
    -webkit-text-size-adjust: none;             /* prevent webkit from resizing text to fit */
    -webkit-user-select: none;                  /* prevent copy paste, to allow, change 'none' to 'text' */
    background-color:#E4E4E4;
    background-image:linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
    background-image:-webkit-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
    background-image:-ms-linear-gradient(top, #A7A7A7 0%, #E4E4E4 51%);
    background-image:-webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(0, #A7A7A7),
        color-stop(0.51, #E4E4E4)
    );
    background-attachment:fixed;
    font-family:'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
    font-size:12px;
    height:100%;
    margin:0px;
    padding:0px;
    /*text-transform:uppercase;*/
    width:100%;
}

/* Portrait layout (default) */
.app {
    background:url(../img/logo.png) no-repeat center top; /* 170px x 200px */
    position:absolute;             /* position in the center of the screen */
    left:50%;
    top:50%;
    height:50px;                   /* text area height */
    width:225px;                   /* text area width */
    text-align:center;
    padding:180px 0px 0px 0px;     /* image height is 200px (bottom 20px are overlapped with text) */
    margin:-115px 0px 0px -112px;  /* offset vertical: half of image height and text area height */
                                   /* offset horizontal: half of text area width */
}

/* Landscape layout (with min-width) */
@media screen and (min-aspect-ratio: 1/1) and (min-width:400px) {
    .app {
        background-position:left center;
        padding:75px 0px 75px 170px;  /* padding-top + padding-bottom + text area = image height */
        margin:-90px 0px 0px -198px;  /* offset vertical: half of image height */
                                      /* offset horizontal: half of image width and text area width */
    }
}

h1 {
    font-size:24px;
    font-weight:normal;
    margin:0px;
    overflow:visible;
    padding:0px;
    text-align:center;
}

.event {
    border-radius:4px;
    -webkit-border-radius:4px;
    color:#FFFFFF;
    font-size:12px;
    margin:0px 30px;
    padding:2px 0px;
}

.event.listening {
    background-color:#333333;
    display:block;
}

.event.received {
    background-color:#4B946A;
    display:none;
}

@keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.4; }
    to { opacity: 1.0; }
}
 
@-webkit-keyframes fade {
    from { opacity: 1.0; }
    50% { opacity: 0.4; }
    to { opacity: 1.0; }
}
 
.blink {
    animation:fade 3000ms infinite;
    -webkit-animation:fade 3000ms infinite;
}
/*! 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
   ========================================================================== */


#directions {
  width: 320px ;
  margin-left: auto ;
  margin-right: auto ;
  padding-top: 20px;
  border: solid 2px black;
  /*box-shadow: 5px 5px 5px 5px #fff;*/
  background: #ffffff;
  margin-bottom: 15px;
  margin-top: 15px;
  
}

#directions p {
    margin-top: -10px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: -5px;
}

#directions ol {
    font-weight: bold;
}

#directions li {
    margin: 10px;
}

#directions li span {
    font-weight: normal;
    font-size: 13px;
    padding-right: 20px;
    margin: 3px;
}

#directions2 {
  width: 320px ;
  margin-left: auto ;
  margin-right: auto ;
  padding-top: 20px;
  border: solid 2px black;
  /*box-shadow: 5px 5px 5px 5px #fff;*/
  background: #ffffff;
  margin-bottom: 15px;
  margin-top: 15px;
  
}

#directions2 p {
    margin-top: -10px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    margin-bottom: -5px;
}

#directions2 ol {
    font-weight: bold;
}

#directions2 li {
    margin: 10px;
}

#directions2 li span {
    font-weight: normal;
    font-size: 13px;
    padding-right: 20px;
    margin: 3px;
}



#formData {
  width: 320px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 10px;
  border: solid 2px black;
  /*box-shadow: 5px 5px 5px #fff;*/
  background: #ffffff;
  margin-bottom: 15px;
  
}

#button1 {

  background-color: #02a0fd; /* Blue */
  border: 1px solid black;
  color: white;
  padding: 3px 7px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
}

.note {

  font-size: 12px;
}

.table1 {

  width: auto;
  padding: 20px;
  margin-top: -25px;
  margin-bottom: -40px;
}

.table2 {
    
    width: auto;
    padding: 20px;
    margin-top: -15px;
    margin-bottom: -25px;
    display: none;
}

.table2a {
    
    width: auto;
    padding: 20px;
    margin-top: -20px;
    margin-bottom: -25px;
}

.table3 {
    clear: both;
    padding-top: 5px;
}

.table4 {
  margin-left: -10px;
}

th.thFontSize {
  font-weight: bold;
  font-size: 12.5px;
  
}


.problemTable {
    border-collapse: collapse;
    font-size: 1em;
    margin-left: 20px;
    margin-top: 10px;
    width: 100%;
}
.problemTable em {
    text-decoration: none;
    font-weight: 600;
}


.titleBar {
    background: -webkit-linear-gradient(left, #1792c9 , #11d8d8); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(right, #1792c9, #11d8d8); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(right, #1792c9, #11d8d8); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to right, #1792c9 , #11d8d8); /* Standard syntax */
    color: #FFFFFF;
    font-size: 1.05em;
    font-weight: bold;
    padding: 0.4em 0 0.3em 0.4em;
    width: 98.5%;
}

.titleBar2,
.titleBar3 {
    background: -webkit-linear-gradient(left, #1792c9 , #11d8d8); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(right, #1792c9, #11d8d8); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(right, #1792c9, #11d8d8); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to right, #1792c9 , #11d8d8); /* Standard syntax */
    color: #FFFFFF;
    font-size: 1.05em;
    text-align: center;
    font-weight: bold;
    padding: 0.4em 0 0.3em 0.4em;
    width: 98.5%;
}

.lineDivide1,
.lineDivide2,
.lineDivide3,
.lineDivide4,
.lineDivide5,
.lineDivide6,
.lineDivide7,
.lineDivide8 {
    background: -webkit-linear-gradient(left, #1792c9 , #11d8d8); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(right, #1792c9, #11d8d8); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(right, #1792c9, #11d8d8); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to right, #1792c9 , #11d8d8); /* Standard syntax */
    color: #FFFFFF;
    padding: 0.4em 0 0.3em 0em;
    width: 100%;
}

/* Div Button Wrapper */
.buttonWrap {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
}
/* Div Button Wrapper End */


/* Where user enters their test results */
#table-TestResults {
    border-collapse: collapse;
    width: 100%;
}

#table-TestResultData {
    width: auto;
    margin-left: auto;
    margin-right: auto;

}

#table-TestResults th, 
#table-TestResults td {
    text-align: center;
}
/* END TEST RESULT STYLING */

/*
.center-visual {
    width: 100%;
    margin-left: 175px;
}*/

/*
.color-key {
  float: left;
  margin-left: 25px;
}*/

.colorScale1 span,
.colorScale2 span,
.colorScale3 span,
.colorScale4 span {
  padding-left: 4px;
  font-size: 15px;
}

.colorScale1 {
  border: 2px solid grey;
  /*border-radius: 50%;*/
  width: 18px;
  height: 18px;
  background: #0bd234;
  margin-top: -20px;
  margin-left: 1px;
}

.colorScale2 {
  border: 2px solid grey;
  /*border-radius: 50%;*/
  width: 18px;
  height: 18px;
  background: #fb4d2b;
  margin-top: 1px;
  margin-left: 1px;
}

.colorScale3 {
  border: 2px solid grey;
  /*border-radius: 50%;*/
  width: 18px;
  height: 18px;
  background: #e11818;
  margin-top: 2px;
  margin-left: 1px;
}

.colorScale4 {
  border: 2px solid grey;
  /*border-radius: 50%;*/
  width: 18px;
  height: 18px;
  background: black;
  margin-top: 2px;
  margin-left: 1px;
}


.fixed-size-square-pH,
.fixed-size-square-lowpH,
.fixed-size-square-highpH,
.fixed-size-square-ta,
.fixed-size-square-lowta,
.fixed-size-square-highta,
.fixed-size-square-ch,
.fixed-size-square-lowch,
.fixed-size-square-highch,
.fixed-size-square-sta,
.fixed-size-square-lowsta,
.fixed-size-square-highsta,
.fixed-size-square-fc,
.fixed-size-square-lowfc,
.fixed-size-square-highfc,
.fixed-size-square-tc,
.fixed-size-square-lowtc,
.fixed-size-square-hightc,
.fixed-size-square-br,
.fixed-size-square-lowbr,
.fixed-size-square-highbr,
.fixed-size-square-salt,
.fixed-size-square-lowsalt,
.fixed-size-square-highsalt {
    display: table;
    width: 50px;
    height: 50px;
    background: black;
    margin-right: 10px;
    /*margin-top: 30px;*/
    float: left;
    border: 2px solid grey;
    /*border-radius: 50%;*/
}

.fixed-size-square-pH span,
.fixed-size-square-lowpH span,
.fixed-size-square-highpH span,
.fixed-size-square-ta span,
.fixed-size-square-lowta span,
.fixed-size-square-highta span,
.fixed-size-square-ch span,
.fixed-size-square-lowch span,
.fixed-size-square-highch span,
.fixed-size-square-sta span,
.fixed-size-square-lowsta span,
.fixed-size-square-highsta span,
.fixed-size-square-fc span,
.fixed-size-square-lowfc span,
.fixed-size-square-highfc span,
.fixed-size-square-tc span,
.fixed-size-square-lowtc span,
.fixed-size-square-hightc span,
.fixed-size-square-br span,
.fixed-size-square-lowbr span,
.fixed-size-square-highbr span,
.fixed-size-square-salt span,
.fixed-size-square-lowsalt span,
.fixed-size-square-highsalt span {
    display: table-cell;
    text-align: center;
    padding: 5px;
    vertical-align: middle;
    color: white;
    font-size: 16px;
    font-weight: 700;
}


/* Answer Table (below the input form) */
/* This is the containing DIV for answer table */
.tAnswer {
  width: 320px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 15px;
  padding-top: 10px;
  border: solid 2px black;
  /*box-shadow: 5px 5px 5px #fff;*/
  background: #ffffff;
  margin-bottom: 30px;
}
/* End Answer Table */


body {
    background-image: url("pool-water.jpg");
  /*background-color: #fff;*/
}

h1 {
    color: #30a2ec;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: bold;
}

h4 {
    color: #30a2ec;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    text-shadow: 1px 1px #0e69a5;
    margin-top: -10px;
    margin-bottom: -2px
}

h5 {
  margin-bottom: -10px;
  font-size: 15px;
  text-decoration: underline;
}

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

/* Styling for US Gallons Result */
#gr {
    margin-left: 5px;
}

#gr p {
    text-align: center;
    font-weight: bold;
    font-size: 18;
}

/* End Styling for US Gallons Result */

/* Styling for compared results*/
.compareResults1,
.compareResults2,
.compareResults3,
.compareResults4,
.compareResults5,
.compareResults6,
.compareResults7,
.compareResults8 {
    margin-left: 5px;
    margin-top: 30px;
}
/* End Styling for compared results */

/* Styling for check boxes*/
.checkBoxes {
    margin-left: 5px;
}
/* End Styling for check boxes */

.mainAnswer {
    display: none;
}

#buypH,
#buyAlka,
#buyCal,
#buySta,
#buyChl,
#buyBro,
#buySalt,
#buyalgB1,
#buyalgB1a,
/*#buyalgB2,*/
#buyalgB3,
#buyalgB3a,
#buyalgB4,
#buyalgB5,
#buycloB1,
#buyss1,
#buyss2,
#buyss3,
#buyss4 {
  display: none;
}

#disc p {
   text-align:center;
   font-size:10px;
   color: gray; 
   margin-top: 20px;
}

/* ==========================================================================
   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;
    }
}
