#contents {
  min-height: 1250px;
}

/* the background-image is set in the php code*/
#contents h4 {
  margin: 15px 20px;
  padding-left: 30px;
  background-position: 5px 15px;
  background-repeat: no-repeat;
  font-size: 15px;
}

#bd-traffic #contents h4 span {
  font-size: 26px;
  text-transform: uppercase;
}

#no-traffic {
  margin: 20px;
  font-weight: bold;
  font-size: 14px;
}

#traffic-source {
  display: block;
  text-align: right;
  margin: 20px;
  font-weight: bold;
}

#traffic-source a {
  color: #333;
}

/*** the country switch ***/
#traffic-country-switch {
  margin: 0 20px;
}


#traffic-country-switch li {
  display: block;
  width: 98px;
  height: 55px;
  margin-right: 15px;
  padding-left: 8px;
  float: left;
  position: relative;
}


#traffic-country-switch li.active {
  background: url(../media/meteo-current-bg.png) no-repeat left -91px;
}

#traffic-country-switch li.active div{
  background: url(../media/meteo-current-bg.png) no-repeat right -91px;
}

#traffic-country-switch a {
  display: block;
  padding: 13px 0 7px 2px;
  height: 26px;
  text-decoration: none;
}

#traffic-country-switch .traffic-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-left: 0;
  background: url(../media/traffic-countrycover.png) no-repeat left -36px;
}

#traffic-country-switch .traffic-cover a {
  margin-left: 7px;
  background: url(../media/traffic-countrycover.png) no-repeat right -36px;
}

#traffic-country-switch .traffic-cover img {
  height: 20px;
}


#traffic-country-switch span {
  text-transform: uppercase;
  font-size: 12px;
  color: #555;
  padding: 5px 0 5px 20px;
  background-position: 0 9px;
  background-repeat: no-repeat;
}

#traffic-country-switch li.active a {
  cursor: default;
}

/*** the legend ***/
#traffic-legend {
  margin: 20px;
}

#traffic-legend h4{
  font-size: 13px;
  color: #555;
  margin: 8px 3px;
  padding: 0;
}

#traffic-legend li {  
  background: url(../media/traffic-pictos.png) no-repeat 0 -600px;
  display: block;
  float: left;
  width: 200px;
  height: 50px;
  margin: 0 10px 10px 0;
  line-height: 40px;
  color: #555;
  font-weight: bold;
}

#traffic-legend img {
  float: left;
  margin: 2px 10px 2px 2px;
  width: 60px;
  height: 35px;
  background-image: url(../media/traffic-pictos.png);
  background-repeat: no-repeat;
}

#traffic-legend img.jam {
  background-position: 0 8px;
}

#traffic-legend img.incident {
  background-position: 0 -97px;
}

#traffic-legend img.works {
  background-position: 2px -196px;
}

#traffic-legend img.wrongway {
  background-position: 0 -296px;
}

#traffic-legend img.news {
  background-position: 0 -397px;
}

#traffic-legend img.misc {
  background-position: 0 -500px;
}


/*** the listing of traffic news ***/
#traffic-list {
  margin: 20px;
}

#traffic-list li {
  background: #f3f3f3;
  border: 1px #ccc solid;
  border-width: 0 1px;
  margin: 20px 0;
  padding: 0;
  display: block;
  font-weight: bold;
  clear: both;
}

.traffic-date {
  float: left;
  width: 80px;
  margin: 10px 10px 0 5px;
}

.traffic-day {
  padding: 0 0 2px 3px;
  border-bottom: 1px #ccc dashed;
}

.traffic-hour {
  padding: 6px 0 25px 3px;
  color: #777;
}

.traffic-type {
  float: left;
  width: 120px;
  background: url(../media/traffic-pictos.png) no-repeat 0 -699px;
  text-align: center;  
}

.traffic-type img {
  background-image: url(../media/traffic-pictos.png);
  background-repeat: no-repeat;
  display: block;
  width: 80px;
  height: 47px;
  margin: 0 auto 8px auto;
}

.traffic-type img.jam {
  background-position: -83px 8px;
  margin: 0 0 8px 9px;
  width:  101px;  
}

.traffic-type img.incident {
  background-position: -125px  -100px;
}

.traffic-type img.works {
  background-position: -125px  -195px;
}

.traffic-type img.wrongway {
  background-position: -125px  -295px;
}

.traffic-type img.news {
  background-position: -125px  -396px;
}

.traffic-type img.misc {
  background-position: -125px -496px;
}

.traffic-type span {
  color: #777;
}

.traffic-info {
  float: left;
  width: 490px;
  margin: 10px 0 10px 10px;
}

.traffic-info h5 {
  font-size: 12px;
  margin: 0 0 8px 0;
}
.traffic-info a {
  color: #333;
  text-decoration: underline;
}

.traffic-info p {
  color: #999;
  line-height: 15px;
}