/* override bootstrap css - START */
.row {
  margin: 0;
}
/* override bootstrap css - END */
.chartContainer {
  width: 100%;
  height: 350px;
  margin: 20px auto 0;
}

.chartButtonPanel {
  display: none;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
}

#windmain,
#directionmain,
#vismain,
#tempmain,
#grassmain,
#mslpmain,
#tidemain {
  display: none;
  margin-left: 4em;
  text-align: left;
}

.c-logo,
.c-logo img {
  height: 80px;
}

.c-wp {
  margin: 20px 0 10px;
  text-align: center;
}
.c-wp div {
  text-align: center;  
}
.c-wp-title {
  margin-bottom: 10px;
  font-size: 150%;
  color: #004B87;
}
.c-wp-remark {
  margin: 10px 0;
}
.c-wp-controls {
  display: table;
  margin: 0 auto;
}
.c-wp-controls a {
  display: table-cell;
}

.c-chart-legend {
  display: none;
}
.c-chart-legend-table {
  min-width: 400px;
  margin: 10px auto;
}
.c-chart-legend-table td {
  text-align: center;
}
.c-chart-legend-table caption {
  font-weight: bold;
}
.c-chart-legend-table--wind-speed td {
  padding-left: 0;
  padding-right: 0;
}

.c-legend-wind-speed {
  min-width: 80px;
  white-space: nowrap;
}
.c-legend-wind-speed-colour {
  display: block;
  width: 100%;
  height: 10px;
}
.c-legend-wind-speed-colour--normal {
  background-color: #00FF00;
}
.c-legend-wind-speed-colour--tropical-depression {
  background-color: #0000FF;
}
.c-legend-wind-speed-colour--tropical-storm {
  background-color: #FF0000;
}
.c-legend-wind-speed-colour--severe-tropical-storm {
  background-color: #FF00FF;
}
.c-legend-wind-speed-colour--typhoon {
  background-color: #FF8C00;
}
.c-legend-wind-speed-description {
  display: block;
  width: 100%;
}

.c-legend-wind-direction-arrow {
  display: inline-block;
  width: 15px;
  height: 20px;
  background: url("../images/ar_legend.png") no-repeat;
}
.c-legend-wind-direction-arrow--east {
  transform: rotate(-90deg);
}
.c-legend-wind-direction-arrow--west {
  transform: rotate(90deg);
}
.c-legend-wind-direction-arrow--south {
  transform: rotate(0deg);
}
.c-legend-wind-direction-arrow--north {
  transform: rotate(180deg);
}
.c-legend-wind-direction-arrow--southeast {
  transform: rotate(-45deg);
}
.c-legend-wind-direction-arrow--southwest {
  transform: rotate(45deg);
}
.c-legend-wind-direction-arrow--northeast {
  transform: rotate(225deg);
}
.c-legend-wind-direction-arrow--northwest {
  transform: rotate(135deg);
}
.c-legend-wind-direction-description {
  display: block;
}

.c-chart-remark p {
  margin: 0 0 1em 4em;
  text-align: left;
}


/* weather information */
.c-weather-info {
  text-align: center;
}
.c-weather-info h1 {
  font-size: 200%;
  font-weight: normal;
  color: #333;
}
.c-weather-info h1 span {
  white-space: nowrap;
}
.c-weather-info h2 {
  font-size: 150%;
  font-weight: normal;
  color: #333;
}
.c-data-table {
  padding: 0 10px;
  margin: 0 auto;
}
.c-data-table table {
  width: 100%;
  table-layout: fixed;
}
.c-data-table caption {
  display: none;
}
.c-data-table th,
.c-data-table td {
  padding: 5px;
  border: 1px solid #CCC;
  vertical-align: top;
  text-align: left;
  font-weight: normal;
}


/* specific rules to screen width at least 1024px (desktop size) */
@media all and (min-width:1023px) {
  .c-data-table {
    width: 50%;
  }
}

/* specific rules to screen width below 768px (mobile size) */
@media all and (max-width:767px) {
  .c-logo,
  .c-logo img {
    width: 250px;
  }
  .c-container {
    padding-top: 40px;
  }
  #titlebar {
    bottom: -40px;
    width: 100%;
    text-align: center;
  }
  #titlebar img {
    max-width: 100%;
  }  
  .row-fluid .xs-span12 {
    width: 100%;
    *width: 99.94680851063829%;
    margin-left: 0;
  }
  .c-chart-legend-table {
    min-width: 300px;
  }
  .c-legend-wind-speed {
    min-width: 60px;
    white-space: nowrap;
    font-size: 75%;
  }
  .c-data-table {
    min-width: 90%;
  }
}

@media all and (max-width: 400px) {
  .c-wp-image img,
  .c-wp-controls img {
    max-width: 100%;
  }
}
