#wrapper {
    position: relative;
    width: 100%;
    display: table;
}

#top, #bottom {
    left: 0;
}

#middle {
    position: relative;
    width: 100%;
    display: table-cell;
    vertical-align: middle;
    padding: 0;
}

#cards-container {
    display: table;
    width: 100%;
}

.card {
    padding: 25px;
    display: table-cell;
}

.weather-block {
    text-align: center;
    padding: 20px 10px;
    background-color: #f9fbfc;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    max-height: calc(65vh);
}

.weather-block h4 {
    margin-top: 0;
    margin-bottom: 45px;
    font-size: 3.9rem;
    font-weight: 300;
    line-height: 1.1;
}

.weather-block hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0,0,0,.1);
}

.weather-block img {
    width: 75%;
    max-width: 190px;
    height: auto;
}

.weather-block .temperature {
    font-size: 20px;
}

@media (max-width: 400px) {
    #weatherText {
        display: none;
    }
}

@media (max-width: 225px) {
    .card {
        padding: 0;
    }
}

@media (max-height: 600px), (max-width: 230px) {
    #bottom {
        display: none;
    }

    .weather-block {
        max-height: calc(100vh);
    }

    .weather-block h4 {
        margin-bottom: 5px;
        font-size: 2.5em;
    }
}

@media (max-height: 370px) {
    .weather-block h4 {
        font-size: 1.5em;
    }

    .weather-block hr {
        margin: 0;
    }

    .weather-block img {
        max-width: 25px;
    }

    .weather-block .temperature {
        font-size: 15px;
    }
}

@media (max-height: 320px) {
    .weather-block {
        padding: 0;
    }
}
