body { margin:0; padding:0; }
#map { position:absolute; top:72px; bottom:0; width:74%; }

body.nosidebar #markerinfo {
    display: none;
}

body.nosidebar #map {
    right: 0;
    width: 100%;
}
    
/* Styling for  Header */
/********************************************/
/********************************************/

div#saip-banner {
/*    text-align: center;*/
    position: absolute;
    background-color: #F4F7F8;
    width: 100%;
    height: 72px;
}

div#saip-banner h3{
  font-family: 'Lato';
  margin-top: 19px;
  display: inline-block;
  margin-left: 14%;
}

img#logo{
  margin-left: 2.1%;
  margin-top: 11px;
  height: 65%;
}

/* Styling for 'BLOG' button */
/********************************************/
#blog_button{
    color: #8BA1A6;
    display:inline-block;
    font-family: 'Lato', sans-serif;
    font-size:.9em;
    font-weight:normal;
    text-decoration:none;
    text-align: center;
    margin-top: 25px;
    width: 100px;
    float: right;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

@media only screen and (min-width: 1100px) {
    #blog_button{
        font-size:.9em;
        margin-right: 1%;
        margin-top: 25px;
    }

    body.nosidebar div#saip-banner h3 {
      display: inline-block !important;
      font-family: 'Lato';
      margin-top: 19px;
      display: inline-block;
      margin-left: 14%;
    }

    body.nosidebar #blog_button {
      display: none;
    }
}

/* Styling for LEGEND */
/********************************************/
/********************************************/


@media only screen and (min-width: 200px) {
  p#instructions {
    display: none;
  }

  div#legendcontainer hr {
    display: none;
  }

  #legendcontainer{
    display: block;
    height: auto;
    padding-left: 5px;
    padding-right: 5px;
    font: normal 5px 'Lato', sans-serif;
    width: auto;
    position: absolute;
    right: 1%;
    top: -5px;
  }

  #legend-ui li {
    list-style-type: none;
    font:9px 'Montserrat', sans-serif;;
  }

  #legend-ui li ul.legend {
    display: inline-block;
    padding-left: 0px;
    margin-left: -35px;
    margin-top: -2px;
  }

  #markerinfo {
    position: absolute; top: 72px; right: 0;
    bottom: 0; width: 40%; background:#fff; color: #000;
    padding: 1px;
    border-left: 3px solid #fff;
    font-family: 'Lato';
  }

  #markerinfo2 {
    width: 100%;
  }

  #markerinfo2 iframe#iframe {
      height: 555px;
      width: 100%;
  }

  #markerinfo2 div.cycle {
      margin-top: -20px;
      margin-left: 0%;
  }

  #markerinfo2 div.cycle a.next{
      color: #3990A3;
      height: 16px;
      display:inline-block;
      font-family:'Lato';
      font-size:10px;
      font-weight:bold;
      text-decoration:none;
      margin-left: 5px;
  } 

  #markerinfo2 div.cycle a.next1{
      color: #3990A3;
      height: 16px;
      display:inline-block;
      font-family:'Lato';
      font-size:10px;
      font-weight:bold;
      text-decoration:none;
      margin-left: 0%;
  }    

  #markerinfo2 div.cycle a.prev{
      color: #3990A3;
      height: 16px;
      display:inline-block;
      font-family:'Lato';
      font-size:10px;
      font-weight:bold;
      text-decoration:none;
  }


  /* Sidebar button */
  #sidebarbuttoncontainer {
    background: #3990A3;
    width: 13px;
    padding-left: 2px;
    margin-left: 90%;
    -webkit-border-radius: 3px;
  }

  #sidebarbutton {
      text-decoration: none;
      color: #fff;
      padding left: 4px;
      font-family: 'Lato';
      font-size: large;
      line-height: 20px;
      margin-left:-.5px;
  }

  #poverty_button {
    display: inline-block;
    position: relative;
    width: 70%;
    border-color: #7AB6CC;;
    border-radius: 3px;
    font-size: 10px;
    text-align: center;
    color: #fff;
    background: #3990A3;
  }

  #poverty_button:hover {
    color: #000;
  }


  #buttoncontainer.active{
      display: none;
    }


  #buttoncontainer {
      border-radius:3px;
      display:inline-block;  
      position: absolute;
      top: 5px;
      right:25px;
      width: 15%;
  }

  #buttonCloser {
    text-decoration: none;
  }


  #buttoncontainer {
    border-radius:1px;
    display:inline-block;
    color:#000;
    font-family:'Lato';
    font-size:15px;
    font-weight:bold;
    padding:4px;
    text-decoration:none;
    position: absolute;
    margin-right: 5%;
    }   

    body.nosidebar #buttoncontainer {
      left: 35%;
      display: inline-block;
      width: auto;
    }   

    /*Camden*/
    #legend-ui li ul.legend li.camdenSetback span.keycolor {
      display: none;
    }

    /*Toledo*/
    #legend-ui li ul.legend li.og_sharples span.keycolor {
      display: none;
    }
    #legend-ui li ul.legend li.schools span.keycolor {
      display: none;
    }

    li.og_sharples {
      display: none;
    }

    li.schools {
      display: none;
    }

    li.camdenSetback {
      display: none;
    }
}
@media only screen and (min-width: 700px) {
    p#instructions {
      display: block;
      margin-top: 0px;
      font-size: 11px;
      margin-left: -3px;
  }

  div#legendcontainer hr {
    display: block;
    margin-left: -11px;
    margin-top: -10px;
  }

  #markerinfo2 div.cycle a.next{
      font-size:18px;
      margin-left: 35px;
  } 

  #markerinfo2 div.cycle a.next1{
      font-size:18px;
      margin-left: 44.5%;
  }    

  #markerinfo2 div.cycle a.prev{
      font-size:18px;
  }
  body.nosidebar #buttoncontainer {
    display: inline-block;
    left: 80%;
    width: 200px;
  }  
}
@media only screen and (min-width: 600px) {

  #legendcontainer{
    display: block;
    border: 1px solid #3887BE;
    height: auto;
    padding-left: 10px;
    padding-right: 0px;
    font: normal 13px/18px 'Lato', sans-serif;
    width: 200px;
    position: absolute;
    left: 1%;
    bottom: 5%;
    top: auto;
    background: white;
  }

  #legend-ui li {
    list-style-type: none;
    font:13px/18px 'Montserrat', sans-serif;;
  }

  #markerinfo {
    width: 23%; 
    padding: 20px;
  }

  #markerinfo2 {
    width: 120%;
    margin-left: -8%;
  }

  #markerinfo2 iframe#iframe {
      height: 555px;
      width: 95%;
      margin-top: 20px;
  }

  #markerinfo2 div.cycle {
      margin-top: -20px;
      margin-left: 12%;
  }

  #markerinfo2 div.cycle a.next{
      color: #3990A3;
      height: 16px;
      display:inline-block;
      font-family:'Lato';
      font-size:16px;
      font-weight:bold;
      text-decoration:none;
      margin-left: 5px;
  } 

  #markerinfo2 div.cycle a.next1{
      color: #3990A3;
      height: 16px;
      display:inline-block;
      font-family:'Lato';
      font-size:16px;
      font-weight:bold;
      text-decoration:none;
      /*margin-left: 44.5%;*/
  }    

  #markerinfo2 div.cycle a.prev{
      color: #3990A3;
      height: 16px;
      display:inline-block;
      font-family:'Lato';
      font-size:16px;
      font-weight:bold;
      text-decoration:none;
  }


  /* Sidebar button */
  #sidebarbuttoncontainer {
    background: #3990A3;
    width: 13px;
    padding-left: 2px;
    margin-top: -15px;
    margin-left: 90%;
    -webkit-border-radius: 3px;
  }

  #sidebarbutton {
      text-decoration: none;
      color: #fff;
      padding left: 4px;
      font-family: 'Lato';
      font-size: large;
      line-height: 20px;
      margin-left:-.5px;
  }

  #poverty_button {
    display: inline-block;
    position: relative;
    margin: 6px auto;
    width: 90%;
    border-color: #7AB6CC;;
    border-radius: 3px;
    font-size: 12px;
    text-align: center;
    color: #fff;
    background: #3990A3;
  }

  #poverty_button:hover {
    color: #000;
  }


  #buttoncontainer.active{
      display: none;
    }


  #buttoncontainer {
      border-radius:3px;
      display:inline-block;  
      position: absolute;
      top: 5px;
      right:25px;
      width: 15%;
  }

  #buttonCloser {
    text-decoration: none;
  }


  #buttoncontainer {
    border-radius:1px;
    display:inline-block;
    color:#000;
    font-family:'Lato';
    font-size:15px;
    font-weight:bold;
    padding:4px;
    text-decoration:none;
    position: absolute;
    margin-right: 5%;
  }

/*  body.nosidebar #buttoncontainer {
    display: inline-block;
    left: 80%;
    width: 200px;
  } */ 

  body.nosidebar div#saip-banner h3 {
    display: none;
  }

  /*Camden*/
  #legend-ui li ul.legend li.camdenSetback span.keycolor {
    display: inline-block;
    background-image: url('icons/camdenSetback.png');
    background-color:white;
    background-size: 15px;
    background-repeat:no-repeat;
    background-position: center;
    width: 15px;
    height: 12px;
    margin-left: -4px;
  }

  /*Toledo*/
  #legend-ui li ul.legend li.og_sharples span.keycolor {
    display: inline-block;
    background-image: url('icons/og_sharples.png');
    background-color:white;
    background-size: 15px;
    background-repeat:no-repeat;
    background-position: center;
    width: 15px;
    height: 12px;
    margin-left: -4px;
  }
  #legend-ui li ul.legend li.schools span.keycolor {
    display: inline-block;
    background-image: url('icons/schools.png');
    background-color:white;
    background-size: 15px;
    background-repeat:no-repeat;
    background-position: center;
    width: 15px;
    height: 12px;
    margin-left: -4px;
  }

  li.og_sharples {
    display: inline-block;
  }

  li.schools {
    display: inline-block;
  }

  li.camdenSetback {
    display: inline-block;
  }
}

#legend-ui {
    list-style: none;
}

ul#legend-ui li {
    list-style: none;
}

/*#legend-ui li ul.legend {
    background: #FFF;
    display: inline-block;
    padding-left: 0px;
    margin-left: -35px;
    margin-top: -2px;
}*/

/*#legend-ui li {
    list-style-type: none;
    font:13px/18px 'Montserrat', sans-serif;;
}*/

#legend-ui li ul.legend span.keycolor {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 10px;
}


/*Legend Colors*/
/********************************************/

#legend-ui li ul.legend li.legendTitle span.keycolor {
    width: 0px;
    margin-left: -15px;
}

#legend-ui li ul.legend li.zerotoTen span.keycolor {
    background-color:#eff3ff;
}
#legend-ui li ul.legend li.tentoTwenty span.keycolor {
    background-color:#bdd7e7;
}
#legend-ui li ul.legend li.twentytoThirty span.keycolor {
    background-color:#6baed6;
}
#legend-ui li ul.legend li.thirtytoFourty span.keycolor {
    background-color:#3182bd;
}
#legend-ui li ul.legend li.fourtyPlus span.keycolor {
    background-color:#08519c;
}

#legend-ui li ul.legend li.concentratedPoverty span.keycolor {
    background-color:#E94849;
}

#legend-ui li ul.legend li.highPoverty span.keycolor {
    background-color:#d77027;
}

/*Button to Return to the Story*/
/********************************************/
/*#poverty_button {
  display: inline-block;
  position: relative;
  margin: 6px auto;
  width: 90%;
  border-color: #7AB6CC;;
  border-radius: 3px;
  font-size: 12px;
  text-align: center;
  color: #fff;
  background: #3990A3;
}

#poverty_button:hover {
  color: #000;
}


#buttoncontainer.active{
    display: none;
  }


#buttoncontainer {
    border-radius:3px;
    display:inline-block;  
    position: absolute;
    top: 5px;
    right:25px;
    width: 15%;
}*/

/*Story sidebar*/
/********************************************/

/********************************************/

/*#markerinfo {
    position: absolute; top: 72px; right: 0;
    bottom: 0; width: 23%; background:#fff; color: #000;
    padding: 20px;
    border-left: 3px solid #fff;
    font-family: 'Lato';
}*/

        
body.nosidebar #map .leaflet-control-container .leaflet-top {
    left: 10px;
}

        /*Styling for popup*/
.popup {
    text-align: center;
}


/* Styling for layer definition popups*/
.popup{
    position:relative;
    width:200px;
    margin-left: 265px;
    margin-top: 120px;
    font-family: 'Lato';
    font-size:13px;
    padding:10px;
    background-color:#F3F8F8;
    border:2px solid #FFF;
    z-index:100000000000000000;
    }
    

div.leaflet-popup-content-wrapper {
    overflow: auto;
}
