﻿@font-face {
    font-family: Nexa Book;
    src: url('fonts/Nexa-Book.woff2') format('woff2'), url('fonts/Nexa-Trial-Book.woff') format('woff'), url('fonts/Nexa-Trial-Book.ttf') format('truetype');
}

@font-face {
    font-family: Nexa;
    src: url('fonts/Nexa-Book.woff2') format('woff2'), url('fonts/Nexa-Trial-Regular.woff') format('woff'), url('fonts/Nexa-Trial-Regular.ttf') format('truetype');
}


@font-face {
    font-family: Nexa Bold;
    src: url('fonts/Nexa-Heavy.woff2') format('woff2'), url('fonts/Nexa-Trial-Bold.woff') format('woff'), url('fonts/Nexa-Trial-Bold.ttf') format('truetype');
}


@font-face {
    font-family: Nexa Heavy;
    src: url('fonts/Nexa-Heavy.woff2') format('woff2'), url('fonts/Nexa-Trial-Heavy.woff') format('woff'), url('fonts/Nexa-Trial-Heavy.ttf') format('truetype');
}

@font-face {
    font-family: Nexa Black;
    src: url('fonts/Nexa-Heavy.woff2') format('woff2'), url('fonts/Nexa-Trial-Black.woff') format('woff'), url('fonts/Nexa-Trial-Black.ttf') format('truetype');
}

html {
    font-size: 85%;
}

body {
    padding: 0;
    margin: 0;
    background-color: rgb(133,58,146);
}

#content {
    background-color: rgb(133,58,146);
    color: white;
    font-family: 'Nexa Heavy';
    font-size: 1.5vw;
    line-height: 34px;
    position: relative;
    line-height: 1.65;
    letter-spacing: -0.28px;
}


/* nav panel { */
div#nav {
    float: left;
    width: 200px;
    background-color: rgb(133,58,146);
}

#nav > div {
    white-space: nowrap;
}

    #nav > div.nav:hover, .pollen #pollen, .weather #weather, .airquality #airquality {
        background-color: #191919;
        border-top: 1px solid #191919;
        border-bottom: 1px solid #191919;
    }

.nav span {
    text-decoration: none;
    color: white;
    line-height: 58px;
    display: block;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
}

.nav {
    font-weight: normal;
    font-size: 17px;
    height: 58px;
}

#src a {
    font-size: 13px;
    color: #828487;
    text-decoration: none;
    line-height: 38px;
    height: 38px;
    display: block;
}

#loc {
    padding: 30px;
    font-size: 24px;
    line-height: 1.21;
}

#loc_city {
    white-space: normal;
}

#loc_zip {
    color: white;
}
/* } END NAV */

/* Forecast Panel { */
.data {
    display: none;
}

.weather #weatherdata, .pollen #pollendata, .airquality #aqdata {
    display: block !important;
}

div.forecast {
    float: right;
    width: 600px;
}

.forecast > .data > div.days {
    float: left;
}

.title {
    padding-top: 1vw;
}
.title.allergens {padding: 0;}

    .title h1 {
        font-size: 24px;
        font-weight: normal;
        text-align: left;
        position: relative;
        line-height: 1.21;
    }

    .title h2 {
        font-size: 20px;
        font-weight: normal;
        text-align: left;
        position: relative;
        line-height: 1.21;
    }

.topallergen {
    font-size: 18px;
    font-family: Nexa;
    font-weight: normal;
    text-align: left;
    position: relative;
    line-height: 0;
    height: 60px;
}

.area {
    position: relative;
    width: 15vw;
}

canvas {
    width: 15vw !important;
    height: 15vw !important;
}

.label {
    color: white;
    position: absolute;
    top: 34%;
    width: 100%;
    text-align: center;
}

.index {
    color: white;
    position: absolute;
    top: -2.5vw;
    width: 100%;
    text-align: center;
}

.day {
    position: relative;
    text-align: center;
}

.scale {
    position: absolute;
    font-size: 1vw;
    color: white;
    top: 220px;
}

    .scale > span {
        padding-left: 60px;
    }
/* } */



/* smart phones { */
@media only screen and (-webkit-min-device-pixel-ratio : 2) and (max-width:767px), only screen and (min-resolution: 2dppx) and (max-width:767px), only screen and (max-width: 640px) {
    #content {
        height: 100% !important;
    }

    #content, #nav, .forecast, .forecast > .data > div, .area {
        width: 100% !important;
    }

        #content > div {
            float: none;
        }

        #nav > div {
            width: 80%;
        }

    #loc {
        border: none !important;
        position: relative;
        padding: 40px 20px;
    }

    #loc_city {
        font-size: 2rem;
        font-size: 7vw;
    }

    #loc_zip {
        font-size: 5rem;
        font-size: 7vw;
        position: absolute;
        line-height: 5rem !important;
        line-height: 8vw !important;
        padding-top: 0px;
    }

    .nav {
        height: 88px;
        font-size: 2rem;
        font-size: 4.5vw;
    }

    #src {
        position: absolute;
        right: 0;
        bottom: 0;
        font-size: 1rem;
        width: 100% !important;
    }

    .forecast > .data > div.days {
        float: none;
        border: none !important;
    }

    h1 {
        font-size: 3rem !important;
        font-size: 7vw !important;
        padding-left: 20px !important;
        text-align: left;
    }

    h2 {
        font-size: 2rem !important;
        font-size: 6vw !important;
        padding-left: 20px !important;
        text-align: left;
    }

    .topallergen {
        font-size: 1.8rem !important;
        font-size: 5vw !important;
        padding-left: 20px !important;
        text-align: left;
    }

    .data > div.days {
        padding-bottom: 50px;
    }

    canvas {
        width: 50% !important;
        height: 50% !important;
        margin-left: 0px;
        margin-top: 6vw !important;
    }

    .area {
        margin: 0 auto;
        text-align: center;
    }

    .label {
        top: 26vw;
    }

    .label, .day {
        font-size: 3rem;
        line-height: 3rem;
        font-size: 6vw;
    }

    .scale, .index {
        font-size: 2rem;
        line-height: 2rem;
        font-size: 4vw;
        line-height: 4vw;
    }

    .scale {
        top: 75% !important;
        text-align: center;
        width: 100%;
        left: 0;
        margin-left: 0px;
    }

        .scale > span {
            padding-left: 12vw !important;
        }

    .index {
        top: 0;
        font-size: 5vw;
    }

    .weather .data > div {
        float: none;
        text-align: center;
        padding-top: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .weather .data img {
        display: inline !important;
    }
}
/* } */

/* Tablet {*/
@media only screen and (max-width: 1023px) and (min-width: 768px), only screen and (max-device-width: 1023px) and (min-width: 768px) {

    .forecast {
        width: 72% !important;
    }

    #nav {
        width: 28% !important;
    }

    #pollendata .days, #aqdata .days {
        width: 33% !important;
    }

    .scale, .index {
        line-height: 1rem;
        font-size: 1vw;
    }

    .day, .index {
        font-size: 18px;
    }

    .label {
        top: 35%;
    }

    .scale {
        top: 68% !important;
        text-align: center;
        width: 100%;
        left: 0;
    }

    .scale > span {
        padding-left: 5vw !important;
    }



    .title h1 {
        font-size: 24px;
    }

    .title h2 {
        font-size: 20px;
    }

}
/* } */

@media only screen and (min-width: 1024px) {
    #content, .data, .title {
        width: 100% !important;
        overflow: hidden;
    }

    .forecast {
        width: 75% !important;
    }

    #nav {
        width: 25% !important;
    }

    #pollendata .days, #aqdata .days {
        width: 33% !important;
    }

    .scale {
        top: 70% !important;
        text-align: center;
        width: 100%;
        left: 0;
    }

        .scale > span {
            padding-left: 5vw !important;
        }

    #weatherdata > div {
        width: 40%;
    }
}
