/*
CSS For CS008 Lab Assignments.
*/
/* 
    Created on : Sep 13, 2020, 2:40:48 PM
    Author     : Antho
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

/**********************************************/
/******************* ALL **********************/
/**********************************************/
* {
    font-family: "Open Sans", sans-serif;
}

:root {
    --unclicked-link-color: #0000FF;
    --hover-link-color: #63C5DA;
    --main-bg-color: rgba(235, 235, 235, 0.5);
    --navigation-bg-color: #3C3744;
    --footer-bg-color: #3C3744;
    --figure-bg-color: rgb(250, 250, 250);
    --figure-border-type: 0.01em solid black;
}


/**********************************************/
/******************* HEADER *******************/
/**********************************************/
.header {  
    background-image: url("../images/banner.jpg");
    background-position: 0% 21%;
    margin: 0;
    padding: 1em 0 2em 0;
}

.header > h1 {
    text-transform: uppercase;
    text-align: center;
    color: #3C3744; /* Black */
}

.header > h2 {
    font-style: italic;
    text-align: center;
    font-size: 80%;
    color: #3C3744;
}


/******************************************************/
/******************* NAVIGATION BAR *******************/
/******************************************************/
.navigation_bar > ul {
    background-color: var(--navigation-bg-color); 
    color: #FFFFFF;
    list-style-type: none; 
    text-align: center; 
    margin: 0;
    padding: 1.25em 0 1.25em 0;
    
}

.navigation_bar > ul > li {
    display: inline-block;
    width: 12em;
    padding: 0 1.25em 0 1.25em;
}

.navigation_bar > ul > li > a {
    text-decoration: none; 
    color: #FFFFFF;
}

.navigation_bar > ul > li > a:hover {
    color: #4D5359;
}


/********************************************/
/******************* MAIN *******************/
/********************************************/
main {
    line-height: 1.5em;
    margin: 2em 16em 2em 16em;
    padding: 0.5em 2em 0.5em 2em;
    background-color: var(--main-bg-color);
}

main a {
    text-decoration: none;
    color: var(--unclicked-link-color);  
}

main a:hover {
    color: var(--hover-link-color);
    font-weight: bold;
}

main cite {
    font-size: xx-small;
}

main li:nth-child(odd) {
    background-color: rgba(010, 010, 010, 0.5);
}

main li:nth-child(even) {
    background-color: rgba(200, 200, 200, 0.5);
}

.rounded {
    border-radius: 1em;
}


/***** HOME *****/
/* SECTION #1: SAVE THE ENVIRONMENT */

.main_index h2 {
    text-align: center;
}

.main_index p {
    text-indent: 4em;
}

#figure_powerplant {
    float: right; 
    background-color: var(--figure-bg-color);
    max-width: 100%;
    border: var(--figure-border-type);
}

#figure_powerplant > figcaption {
    text-align: center;
    max-width: 30em;
}

#figure_powerplant > img {
    max-width: 100%;
}

/* Table */
.emissions_data > caption {
    font-weight: bold;
}

.emissions_data {
    margin: auto;
    width: 80%;
    border: medium solid black;
    border-collapse: collapse;
}
.emissions_data tr, th, td {
    border: thin solid black;
}

.emissions_data tr:nth-child(odd) {
    background-color: rgba(010, 010, 010, 0.5);
}

.emissions_data tr:nth-child(even) {
    background-color: rgba(200, 200, 200, 0.5);
}

#table_source {
    text-align: center;
}


/* SECTION #2: SAVE MONEY */
#figure_solarpanelsonroof {
    float: right;
    background-color: var(--figure-bg-color);
    max-width: 40em;
    text-align: center;
    border: var(--figure-border-type);
}

#figure_solarpanelsonroof > img {
    max-width: 100%;
}

#ul_savings > li {
    padding: 0 20em 0 0;
}

/***** GOING SOLAR? *****/
.main_gosolar p {
    text-indent: 4em;
}

.main_gosolar > h2 {
    text-align: center;
}

#figure_badroof {
    max-width: 22em;
    float: left;
    background-color: var(--figure-bg-color);
    text-align: center;
    border: var(--figure-border-type);
}

#figure_badroof > img {
    max-width: 100%;
}

#figure_communitysolarvideo {
    display: block;
    margin: auto;
    text-align: center;
    max-width: 30em;
}

#figure_communitysolarvideo > video {
    max-width: 30em;
}


/**********************************************/
/******************* FOOTER *******************/
/**********************************************/
.footer {
    background-color: var(--footer-bg-color);
    text-align: center;
    position: relative;
    bottom: 0;
    margin: 2em 0 0 0;
    padding: 1.25em 0 1.25em 0;
}

.footer > p {
    font-style: italic;
    text-decoration: none;
    color: #FFFFFF;
}

.footer a {
    text-decoration: none;
    color: #0000FF;
}

.footer a:hover {
    color: var(--hover-link-color);
    font-weight: bold;
}

/**********************************************/
/******************** FORM ********************/
/**********************************************/
.main_form h2 {
    text-align: center;
}

.main_form h3 {
    text-align: center;
}

.frmJoin {
 display: block;
 margin: auto;
 max-width: 40em;
}

.frmJoin > fieldset  {
    border: 0.2em solid;
}

#btnSubmit {    
    display: block;
    margin: 2em auto;
    background-color: #FDA50F;
    border: 0.2em solid;
}

#fldSubmit {
    border: none;
}

#ranSliderField {
    
}

#ranInterest {
    width: 20em;
}

#figure_solarmission {
    margin: auto;
    background-color: var(--figure-bg-color);
    max-width: 40em;
    text-align: center;
    border: var(--figure-border-type);
}

#figure_solarmission > img {
    max-width: 100%;
}