:root {
    --btn-active: #4CAF50;
    --btn-active-color: white;
    --section-color: #333;
}

body {
    font-family: Verdana, sans-serif;
    margin:0;
    width: 95%;
    margin: 0 auto;
    background-color: rgb(238, 238, 238);
}

.topnav {
    display: flex;
    background-color: var(--section-color);
    border-radius: .6em;
}

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav a:hover {
    background-color: #ddd;
    color: black;
    transition: background-color 250ms ease-in;
    border-radius: .6em;
}

.topnav a.active {
    background-color: var(--btn-active);
    color: var(--btn-active-color);
    border-radius: .6em;
}

.topnav p {
    color: red;
    font-weight: bold;
}

.idw-play-1 {
    top: 90px;
    left: .5em;
}

.idw-play-24 {
    top: 120px;left: .5em;
}

.download-btn {
    background-color: var(--btn-active);
    border: none;
    color: var(--btn-active-color);
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 0px;
    cursor: pointer;
    border-radius: .6em;
}

.tooltip_info {
    padding: .4em;
    background-color: rgba(255,255,255,0.8);
    border-radius: .6em;
}

.tooltip_info h5, h6 {
    margin: 0;
    padding: .5em;
}

.info {
    display: flex;
    justify-content: space-between;
}

.info h5 {
    margin: 0;
    text-align: center;
}

.graphs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: .8fr 1fr .7fr;
    column-gap: .3em;
    row-gap: .3em;
    border-radius: .6em;
}

.gauge, .graph {
    border-radius: .6em;
    background-color: white;
    padding: .2em;
}

#aqi_gauge,
#pm25_gauge,
#co2_gauge,
#temperature_gauge,
#humidity_gauge,
#wind_gauge {
    grid-row: 1/2;
}

#aqi_gauge {
    grid-column: 1/2;
}

#pm25_gauge {
    grid-column: 2/3;
}

#co2_gauge {
    grid-column: 3/4;
}

#temperature_gauge {
    grid-column: 4/5;
}

#humidity_gauge {
    grid-column: 5/6;
}

#wind_gauge {
    grid-column: 6/7;
}

#pm_graph,
#daily_averages_graph {
    grid-row: 2/3;
}

#pm_graph {
    grid-column: 1/5;
}

#daily_averages_graph {
    grid-column: 5/7;
}

#temperature_graph,
#humidity_graph,
#co2_graph,
#wind_graph {
    grid-row: 3/4;
}

#temperature_graph {
    grid-column: 1/3;
}

#humidity_graph {
    grid-column: 3/5;
}

#co2_graph {
    grid-column: 5/6;
}

#wind_graph {
    grid-column: 6/7;
}

footer {
    margin: 0;
    border-radius: .6em;
    padding: .3em;
    background-color: var(--section-color);
}

footer h6 {
    margin: 0;
    color: white;
    text-align: center;
}

.dev_caption {
    text-align: center;
    color: white;
    background-color: var(--section-color);
    border-radius: .6em;
    padding: .5em;
    margin: 0;
}

.hidden {
    display: none;
}

ul.demo {
    margin: 0px 70px;
    padding: 0;
}
  
h3 {
    font-size: 1.0em;
    background-color: #ccc;
    padding: .1em;
}

.mySlides {
    display: none
}
  
img {
    vertical-align: middle;
}
  
/* Slideshow container */
.slideshow-container {
    max-width: 600px;
    position: relative;
    margin: auto;
}
  
/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}
  
/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
  
/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
  
/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 15px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}
  
/* Number text (1/3 etc) */
.numbertext {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}
  
/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}
  
.active, .dot:hover {
    background-color: #717171;
}
  
/* Fading animation */
.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

.btn {
    background-color: DodgerBlue;
    border: none;
    color: white;
    padding: 12px 30px;
    cursor: pointer;
    font-size: 20px;
  }
  
/* Darker background on mouse-over */
.btn:hover {
    background-color: RoyalBlue;
}
  
@-webkit-keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}
  
@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

@media (max-width: 1500px) {
    .graphs {
        grid-template-rows: .6fr .6fr 1fr 1fr .7fr .7fr;
    }

    #aqi_gauge,
    #pm25_gauge,
    #co2_gauge {
        grid-row: 1/2;
    }

    #temperature_gauge,
    #humidity_gauge,
    #wind_gauge {
        grid-row: 2/3;
    }

    #aqi_gauge, #temperature_gauge {
        grid-column: 1/3;
    }

    #pm25_gauge, #humidity_gauge {
        grid-column: 3/5;
    }

    #co2_gauge, #wind_gauge {
        grid-column: 5/7;
    }

    #pm_graph {    
        grid-column: 1/7;
        grid-row: 3/4;
    }

    #daily_averages_graph {
        grid-column: 1/7;
        grid-row: 4/5;
    }

    #temperature_graph,
    #humidity_graph {
        grid-row: 5/6;
    }
    
    #co2_graph,
    #wind_graph {
        grid-row: 6/7;
    }

    #temperature_graph,
    #co2_graph {
        grid-column: 1/4;
    }

    #humidity_graph,
    #wind_graph {
        grid-column: 4/7;
    }
}

@media (max-width: 850px) {
    .graphs {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: .6fr .6fr .6fr 1fr 1fr 1fr 1fr 1fr 1fr;
    }

    #aqi_gauge,
    #pm25_gauge {
        grid-row: 1/2;
    }
    
    #temperature_gauge,
    #humidity_gauge {
        grid-row: 2/3;
    }

    #co2_gauge,
    #wind_gauge {
        grid-row: 3/4;
    }

    #aqi_gauge, #temperature_gauge, #co2_gauge {
        grid-column: 1/2;
    }

    #pm25_gauge, #humidity_gauge, #wind_gauge {
        grid-column: 2/3;
    }

    #pm_graph,
    #daily_averages_graph,
    #temperature_graph,
    #humidity_graph,
    #co2_graph,
    #wind_graph {
        grid-column: 1/3;
    }

    #pm_graph {    
        grid-row: 4/5;
    }

    #daily_averages_graph {
        grid-row: 5/6;
    }

    #temperature_graph {
        grid-row: 6/7;
    }

    #humidity_graph {
        grid-row: 7/8;
    }
    
    #co2_graph {
        grid-row: 8/9;
    }
    
    #wind_graph {
        grid-row: 9/10;
    }
}

/* On smaller screens, decrease text size */
@media only screen and (max-width: 300px) {
    .prev, .next,.text {font-size: 11px}
}
