/*
For CS 008 Assignments.
*/
/* 
    Created on : Oct 17, 2020, 11:15:00 AM
    Author     : Antho
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&family=Poppins:wght@300&display=swap');

:root {
    --unclicked-link-color: #0000FF;
    --hover-link-color: #63C5DA;
    --main-bg-color: rgba(200, 200, 200, 0.5);
    --navigation-bg-color: #3C3744;
    --header-text-color: #3C3744;
    --footer-bg-color: #3C3744;
    --figure-border-type: 0.01em solid black;
    --input-border-radius: 0.5em;
    --form-main-color: #FDA50F;
}

* {
    margin: 0;
    padding: 0;
    
    font-family: "Poppins", sans-serif;
}

/* FORM */
.frmJoin {
    max-width: 40em;
    border: 0.2em solid;
    /* Gradient */
    background: radial-gradient(rgba(255, 255, 255, 0.5), rgba(133, 206, 235, 0.5), rgba(0, 191, 255, 0.5)); /* White center, deep sky blue on outside */
    margin: auto;
    padding: 2vh;
}

.frmJoin p {
    text-indent: 0;

}

.frmContactInformation p {
    display: grid;
    grid-template-columns: auto
}

.frmJoin fieldset {
    border: none;
    border-bottom: medium solid black;
    max-width: 100%;
    padding-bottom: 1em;
}

.frmJoin legend {
    font-weight: bold;
    padding-top: 1em;
    padding-bottom: 1em;
    /* Text Shadows */
    text-shadow: 2px 2px var(--form-main-color);
}

.frmJoin label {
    /* Text Shadows */
    text-shadow: 2px 2px var(--form-main-color);
}

.frmJoin [type="text"], [type="email"] {
    border: medium solid black;
    border-radius: var(--input-border-radius);
    max-width: 20em;
}

.frmJoin select {
    border: medium solid black;
    border-radius: var(--input-border-radius);    
}

.frmJoin [type="range"]{
    width: 50%;
}

.frmJoin textarea {
    height: 6em;
    max-width: 100%;
}

.frmJoin [type="Submit"] { 
    display: block;
    margin: 1em auto;
    padding: 0.5em;
    background-color: var(--form-main-color);
    border: 0.2em solid;  
}

.frmJoin > #fldSubmit {
    border: none;
}

/* Indents checkboxes and radio buttons when selected. */
input:checked {
    width: 2em;
}

input[type="text"], textarea {
    width: 100%;
}

/* ---------- | Header | ---------- */
.header {
    border: 1px solid black;
    text-align: center;
    margin: auto;
    background-image: url("../images/banner.jpg");
    background-attachment: fixed;
    background-position: 25% 35%;
    background-repeat: no-repeat;
}

.header h1 {
    text-transform: uppercase;
    padding-top: 4vh;
    padding-bottom: 1vh;
}

.header h2 {
    font-style: italic;
    text-align: center;
    font-size: 80%;
    color: var(--header-text-color);
    padding-bottom: 4vh;
}


/* ---------- | 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;
    max-width: 100%;
    
}

.navigation-bar > ul > li {
    display: inline-block;
    padding: 0 1.25em 0 1.25em;
}

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

.navigation-bar > ul > li > a:hover {
    background-color: #4D5359;
}

.navigation-bar a {
    /* Animation */
    animation: navEquilibrium 0.8s;
}


/* ---------- | Main | ---------- */
article p {
    text-indent: 4em;
}

article p, article ul, article ol {
    line-height: 2em;
}

main {
    margin: 4vh 16vh 4vh 16vh;
    padding: 2vh;
    background-color: var(--main-bg-color);
}

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

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

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

main ul, ol {
    list-style-position: inside;
}

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

.emissions-data {
    margin: 1.5em 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;
}


/* ---------- | Grid Layout | ---------- */
.grid-layout article {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
        "head head"
        ". figure "
        ". sources";
    
    gap: 2em;
}

.grid-layout h2 {
    /*background-color: blue;*/
    grid-area: head;
    text-align: center;
}
.grid-layout figure {
    /*background-color: green;*/
    grid-area: figure;
}

.grid-layout .sources {
    grid-area: sources;
}

.grid-layout * {
    /*background-color: yellow;*/
}


/* ---------- | Figures | ---------- */
figure {
    text-align: center;
    border: thin solid black;
    height: max-content;
    margin: 0 auto;
}

video {
    max-width: 100%;
}

#figure_communitysolarvideo {
    width: 75%;
}

img {
    width: 100%;
}

.rounded {
    border-radius: 1em;
}


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

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

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

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


/* ---------- | Extra Media Query | ---------- */
@media screen and (max-width: 1024px) {
    .grid-layout article {
        grid-template-areas:
            "head head"
            ". figure "
            ". figure"
            "sources . ";        
        gap: 1em;        
    }
    
    main {
        margin-left: 2vh;
        margin-right: 2vh;
    }
}


/* ---------- | Active Page | ---------- */
.activePage {
    font-weight: 900;
}