html,body,#wrapper {
    height:100%;
    margin:0;
    padding:0;
    overflow: hidden;
    background: #ffffff;
}

#wrapper {
    position: relative;
    width: 100%;
    display: table;
}

#top, #bottom {
    position:absolute;
}

#top {
    width:100%;
    background:grey;
    text-align: center;
}

#middle {
    width: 100%;
    display: table-cell;
    vertical-align: middle;
}

#cards-container {
    display: table;
    width: 100%;
}

#bottom {
    bottom:0;
    height:50px;
    width:100%;
    background:grey;
    text-align: center;
    line-height: 50px;
}

#top span {
    color: #f5f5f5;
    font-family: Calibri, serif;
    font-size: 45px;
}

#bottom span {
    color: #f5f5f5;
    font-family: Calibri, serif;
    font-size: 25px;
}

.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: 4.5rem;
    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;
    }

    #top span {
        font-size: 25px;
    }

    .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 img {
        max-width: 25px;
    }

    .weather-block .temperature {
        font-size: 15px;
    }
}

@media (max-height: 320px) {
    .weather-block {
        padding: 0;
    }
}