/***
DEFAULTS
****/

@font-face {font-family: TitlingGothicFBCond-Standard; src: url(https://s3-us-west-2.amazonaws.com/gazdata-assets/2017+election+ballot/assets/fonts/TitlingGothicFBCond-Standard.otf);}
@font-face {font-family: BenetonSans-Regular; src: url(https://s3-us-west-2.amazonaws.com/gazdata-assets/2017+election+ballot/assets/fonts/BentonSans-Regular.otf);}

body{
    font-family: 'BenetonSans-Regular', sans-serif;
    font-weight:400;
    font-size: 100%;
    overflow-x: hidden;
    word-wrap:break-word;
    margin:0;
    padding:0;
}

.displaynone{display:none;}


html{
    -webkit-box-sizing:border-box;
    -moz-box-sizing: border-box;
    box-sizing:border-box;
}
*, *:before, *:after {
    -webkit-box-sizing:inherit;
    -moz-box-sizing: inherit;
    box-sizing:inherit;
}


/***
Specific styles
***/

#topmatter{
    padding:10px 5px;
    display:block;
    position:relative;
    height:auto;
    background-color:white;
border-top:2px solid black;}
#intro{
    display:inline-block;
    width:450px;
    max-width:61%;
    height:auto;
    vertical-align: top;
}
#intro h1{
    margin:0;
    font-family: 'TitlingGothicFBCond-Standard', 'helvetica neue', sans-serif;
    font-size:1.75rem;
    line-height:1.25em;
    font-weight:400;
}


#legend{
    float:right;
    display:inline-block;
    position:relative;
    width:190px;
    height:auto;
    margin:0;
    padding:0;
    vertical-align:top;
}

#legend:after{
      content: "";
  display: table;
  clear: both;
}
#legend ul{
    width:100%;
    margin-top:0;
    margin-bottom:0;
    padding-left:20px;
}
#legend li{
    padding-bottom:5px;
    list-style-type:none;
    font-size:1.5rem;
    line-height:1.25em;
}




.legend-item{
    width:1.25rem;
    height:1.25rem;
    border-radius:100%;
    display:inline-block;

    margin-right:5px;
}





#legend-ns{
    background-color:darkblue;
}
#legend-ip{
    background-color:#EE7600;
}
#legend-a{
    background-color:green;
}
#legend-b{
    background-color:red;
}

#barholder:before{
      content: "";
  display: table;
  clear: both;
}
#barholder{
    margin-top:10px 0;
    height:auto;
    display:block;
    width:100%;
}
#thebar{
    height:40px;
    width:100%;
    display:block;
    border-radius:5px;
}
.progress-entry{
    height:100%;
    margin:0;
    padding:0;
    float:left;
    position:relative;
}
#progress-ns{
    background-color:darkblue;
    border-radius: 5px 0 0 5px;
}
#progress-ip{
    background-color:#EE7600;
}
#progress-a{
    background-color:green;
}
#progress-b{ 
    background-color:red;
    border-radius: 0 5px 5px 0;
}

main{
    padding:15px;
}

#contentlist{
    list-style-type:none;
    margin:0;
    padding:0;
}

#contentlist li{
    margin:10px 0;
}

.promise{
    text-decoration:none;
    font-size:1.2rem;
    line-height:1.25em;
}
.ns{
    color:darkblue;
}
.ns{
    text-decoration-color:darkblue;
}
.ip{
    color:#EE7600;
}
.ip:hover{
    text-decoration-color: #EE7600;
}
.a{color:green;}
.a:hover{
    text-decoration-color: green;
}
.b{color:red;}
.b:hover{
    text-decoration-color: red;
}

.promise:hover{
    text-decoration: underline;
    text-decoration-style: none;
    text-decoration-skip: ink;
}

#legendtitle{
    margin-left:20px;
    margin-bottom:5px;
    border-bottom:2px solid black;
    text-transform:uppercase;
    display:inline-block;
}

#more{
    font-size:1.6rem;
    line-height:1.25em;
    padding:5px 10px;
    outline:none;
    border:0;
    background-color:#68b3da;
    margin:15px auto 0 auto;
    display:block;
    position:relative;
    border-radius:5px;
    cursor:pointer;
    text-transform:uppercase;
}
#more:hover{
    background-color:#41a0d0;

}
#buttonlink{
    text-decoration:none;
}

.barno{
    width:100%;
    text-align:center;
    color:white;
    display:inline-block;
    font-size:1.2rem;
    line-height:1.25em;
    padding-top:8px;
    height:40px;}

/***
Phones
***/
@media only screen and (max-width : 500px) {
    html{
        font-size:12px;
    }

    #topmatter{
        padding:10px;
    }

    #intro{
        width:100%;
        max-width:100%;
    }

    #intro h1{

        font-size:1.8rem;
    }
    #legend{
        width:100%;
        max-width:100%;
        padding-top:15px;
        float:none;
    }

    #legend ul{
        padding-left:0;
        width:100%;
        height:auto;

    }
    #legend li{
        display:inline-block;
        float:left;
        position:relative;
        width:auto;
        height:auto;
        padding-right:15px;
    }

    #legend li:last-child{
        padding-right:0;
    }

    .legend-item {
        margin-right:1px;
    }

    #barholder{
        margin-top:10px;
    }

    #legendtitle{
        margin-left:0;
    }
    main{
        padding:10px 5px;
    }


    
 
}
