div.table-wrap {
    display: table;
}

div.table-wrap > span{
    display: table-cell;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

#container {
    position: relative;
}

#preloader {
    position: absolute;
    width: 100px;
    height: 100px;
    left: 50%;
    top: 50%;
    margin-left: -50px;
    margin-top: -50px;
}

#weather-current-window, #weather-forecast-window {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-transition: opacity 0.5s;
    transition: opacity 0.5s;
}

.visible {
    opacity: 1 !important;
}

.weather-location-label {
    width: 100%;
    height: 15%;
    text-align: center;
}

.weather-location-city {
    width: 100%;
    height: 25%;
    text-align: center;
    font-weight: bold;
}

#weather-current-window .weather-image {
    width: 30%;
    height: 60%;
    float: left;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70% auto;
}

#weather-current-window .weather-info {
    width: 70%;
    height: 60%;
    float: left;
    padding: 0;
    margin: 0;
    border-spacing: 0;
    border-collapse: collapse;
}

#weather-current-window .weather-info .value {
    font-weight: bold;
}

#weather-forecast-window .weather-forecast-block {
    width: 100%;
    height: 60%;
}

#weather-forecast-window .weather-forecast-block .column {
    width: 25%;
    height: 100%;
    border-right: 1px solid #FFFFFF;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    float: left;
    text-align: center;
}

#weather-forecast-window .weather-forecast-block .column:last-child {
    border: none;
}

#weather-forecast-window .weather-forecast-block .column .weekday {
    width: 100%;
    height: 15%;
}

#weather-forecast-window .weather-forecast-block .column .symbol {
    height: 40%;
}

#weather-forecast-window .weather-forecast-block .column .temperatures {
    width: 100%;
    height: 20%;
    font-weight: bold;
}

#weather-forecast-window .weather-forecast-block .column .conditions {
    width: 100%;
    height: 25%;
}

nav#controls-right {
    position: relative;
}

nav#controls-right #switch {
    position: absolute;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    display: block;
    background-image: url(../img/weather_switch.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 80% auto;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
}