/*-- Font Importing --*/

@import url('https://fonts.googleapis.com/css?family=Sansita');

/*-- Default settings. --*/

* {
    box-sizing: border-box;
}

*:before,
*:after {
    box-sizing: border-box;
}

article,
aside,
footer,
header,
nav,
section,
main,
figcaption,
figure {
    display: block;
}

/*-- General HTML Styling --*/

body {
    margin: 0;
    padding: 0;
    font-family: Helvetica;
    font-size: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Sansita', sans-serif, generic family;
}

/*-- Header --*/

#page_header {
    display: flex;
    background-color: skyblue;
    flex-wrap: wrap;
}

#logo {
    font-size: 5.5em;
    padding: 0.2em 0.2em 0em;
}

.website_name {
    font-size: 2em;
    font-weight: 600;
    align-self: center;
}

/*-- Main --*/

main {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;

    background-image: url("/weather/images/sunny-day-small.jpg");
    background-size: cover;
}

.city {
    color: white;
}

.overview {
    background-color: rgba(200, 200, 200, .6);
    margin: .2em auto;
    border: 1px solid;
    border-radius: 40px;
    text-align: center;
    padding: 0px 1.5em;
    order: 1;
}

.current_conditions {
    background-color: rgba(200, 200, 200, .6);
    margin: .2em auto;
    border: 1px solid;
    border-radius: 40px;
    padding: 0px 1em;
    order: 2;
}

.summary {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
}

.current_emoji {
    font-size: 2em;
}

.hourly {
    background-color: rgba(200, 200, 200, .6);
    margin: .2em auto;
    border: 1px solid;
    border-radius: 40px;
    padding: 0px 1em;
    order: 3;
    display: none;
}

#current_temp {
    font-size: 3em;
}

/*-- Footer --*/

footer {
    margin-bottom: 50px;
    background-color: skyblue;
    padding: 5px;
}

/*-- Navigation Bar --*/

nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(135, 206, 235, 0.9);
    font-size: 0.9em;
}

nav a:link {
    text-decoration: none;
    color: white;
}

nav a:visited {
    text-decoration: none;
    color: ghostwhite;
}

nav a:hover {
    text-decoration: none;
    color: indianred;
    text-shadow: 2px 2px 10px gray;
}

nav a:active {
    text-decoration: none;
    color: darkred;
}

nav ul {
    display: flex;
    justify-content: space-around;
    list-style: none;
    padding: 0;
}

/*-- Desktop Version --*/

@media only screen and (min-width: 730px) {
    nav {
        display: flex;
        position: relative;
        border-top: 3px solid black;
        border-bottom: 3px solid black;
        width: 100%;
    }

    nav li {
        margin: 0px 20px;
        font-size: 1.5em
    }

    main {
        flex-flow: row wrap;
        background-size: cover;
        justify-content: space-around;
        align-items: baseline;
        height: 100%;
    }

    .city {
        flex-basis: 100%;
    }

    .current_conditions {
        order: 1;
        /*        height: 500px;*/
        margin: 20px 0px;

    }

    .overview {
        order: 2;
        /*        height: 500px;*/
        margin: 20px 0px;

    }

    .overview p::before {
        content: "Today's High and Low";
        display: block;
    }

    .hourly {
        width: 300px;
        display: flex;
        flex-flow: row wrap;
        order: 3;
        margin: 20px 0px;
        height: 400px;
        overflow-y: auto;
    }

    .hourly ul {
        align-self: center;
        list-style: none;
    }

    footer {
        margin: 0;
    }
}
