

/* Reset some basic styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background: #f4f4f4;
    color: #333;
    padding-top: 60px;
}

header {
    background: #333;
    color: #fff;
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    box-shadow: 0 4px 2px -2px gray;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

header nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #ff6347;
}

main {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-top: 20px;
}

h1 {
    margin-bottom: 50px!important;
    font-size: 2.5em;
    color: #333;
}

h3 {
    margin-bottom: 20px!important;
}

p {
    margin-bottom: 40px!important;
    font-size: 1.1em;
    color: #666;
}

li {
    margin-left: 30px;
}

footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    box-shadow: 0 -4px 2px -2px gray;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    color: #fff;
    background: #ff6347;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.button:hover {
    background: #e5533d;
}

.container {
    padding: 20px;
}

@media (max-width: 600px) {
    header nav a {
        margin: 0 10px;
    }

    main {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    p {
        font-size: 1em;
    }
}

.container {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
}


#map {
    height: 600px;
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
}

.controls {
    margin-bottom: 20px;
}
.controls .category {
    margin-right: 10px;
}
.controls .country {
    margin-right: 10px;
}
.chart-container {
    display: none;
    margin-bottom: 40px;
    width: 100%;
}
.controls h3 {
    margin-left: 20px;
}



.country, .category {
    margin: 4px;
    background-color: #c5c5c5;
    border-radius: 4px;
    border: 1px solid #fff;
    overflow: hidden;
    float: left;
}

.country label, .category label {
    float: left; line-height: 3.0em;
    width: 8.0em; height: 3.0em;
}

.country label span, .category label span {
    text-align: center;
    padding: 3px 0;
    display: block;
}

.country label input, .category label input {
    position: absolute;
    display: none;
    color: #fff !important;
}
/* selects all of the text within the input element and changes the color of the text */
.country label input + span, .category label input + span {
    color: #fff;
}


/* This will declare how a selected input will look giving generic properties */
.country input:checked + span, .category input:checked + span {
    color: #fff;
    text-shadow: 0 0  6px rgba(0, 0, 0, 0.8);
}


/*
This following statements selects each category individually that contains an input element that is a checkbox and is checked (or selected) and chabges the background color of the span element.
*/

.solar input:checked + span{background-color: #D9D65D;}
.wind input:checked + span{background-color: #29e8ca;}
.coal input:checked + span{background-color: #732d2d;}
.naturalgas input:checked + span{background-color: #40a91c;}
.biomass input:checked + span{background-color: #79a15e;}
.hydrogen input:checked + span{background-color: #4b64cc;}
.oil input:checked + span{background-color: #F75A1B;}

.uk input:checked + span{background-color: #82D44E;}
.ge input:checked + span{background-color: #82D44E;}
.au input:checked + span{background-color: #82D44E;}







section.range-slider {
    position: relative;
    width: 400px;
    height: 35px;
    text-align: center;
    margin: 40px auto;
}

section.range-slider input {
    pointer-events: none;
    position: absolute;
    overflow: hidden;
    left: 0;
    top: 15px;
    width: 400px;
    outline: none;
    height: 18px;
    margin: 0;
    padding: 0;
}

section.range-slider input::-webkit-slider-thumb {
    pointer-events: all;
    position: relative;
    z-index: 1;
    outline: 0;
}

section.range-slider input::-moz-range-thumb {
    pointer-events: all;
    position: relative;
    z-index: 10;
    -moz-appearance: none;
    width: 9px;
}

section.range-slider input::-moz-range-track {
    position: relative;
    z-index: -1;
    background-color: rgba(0, 0, 0, 1);
    border: 0;
}
section.range-slider input:last-of-type::-moz-range-track {
    -moz-appearance: none;
    background: none transparent;
    border: 0;
}
section.range-slider input[type=range]::-moz-focus-outer {
    border: 0;
}

.range-slider input {
    margin-top: 20px!important;
}






