/*
CSS File for All My CS008 Assignments.
*/
/* 
    Created on : Oct 5, 2020, 12:49:56 PM
    Author     : Anthony Stem
*/

@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');

* {
    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;
    --header-text-color: #3C3744;
    --footer-bg-color: #3C3744;
    --figure-border-type: 0.01em solid black;
    --form-main-color: #FDA50F;
    --input-border-radius: 0.5em;
}

/* ---------- | Main | ---------- */
main {
    background-color: var(--main-bg-color);
    margin: 2em 12em 2em 12em;
    padding: 0.5em 2em 0.5em 2em;
}

h2 {
    text-align: center;  
}

p {
    text-indent: 4em;
}

/* ---------- | 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: var(--header-text-color);
}

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

/* ---------- | 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;
    font-size: 100%;
    /* Transition */
    transition: font-size 0.2s;
}

.navigation-bar > ul > li > a:hover {
    font-size: 120%;
    color: #4D5359;
}

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

/* ---------- | Grid Layout | ---------- */
.grid-layout {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-template-rows: auto;
    grid-template-areas:
        "head head head"
        "environment data money"
        "figures sources sources";
    grid-gap: 1em;
}

.grid-layout > h2 {
    grid-area: head;
    text-align: center;
}

.grid-layout > .environment {
    grid-area: environment;
}

.grid-layout > .data {
    grid-area: data;
}

.grid-layout > .money {
    grid-area: money;
}

.grid-layou > .sources {
    grid-area: sources;
}

.grid-layout > .figures {
    grid-area: figures;
    margin: 0 auto;
}


/* ---------- | Flexbox Layout | ---------- */
/* This works for me and gives me the layout that is exactly what I want, so I see no point in adding anymore flexbox code. */
.flexbox-layout {
    display: flex;
    justify-content: flex-start;
}

/* ---------- | Form Main | ---------- */
.main-form h3 {
    text-align: center;
}


/* ---------- | Form | ---------- */
form p {
    text-indent: 0;
}

.frmJoin {
    display: block;
    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: 1em 2em 0em 2em;
}

.frmJoin fieldset {
    border: none;
    border-bottom: medium solid black;
}

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

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

.frmJoin p {
    /* 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);
    width: 20em;
}

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

.frmJoin [type="range"] {
    width: 20em;
}

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

.frmJoin [type="Submit"] {     
    display: block;
    margin: 2em auto;
    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;
}


/* ---------- | 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: var(--unclicked-link-color);
}

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


/* Main Link Styling */
main a {
    text-decoration: none;
    color: var(--unclicked-link-color);  
}

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

/* Citation Style */
main cite {
    font-size: xx-small;
}

/* Rounded Class */
.rounded {
    border-radius: 1em;
    
}


/* ----- Emissions Data Table ----- */
.emissions-data {
    border: medium solid black;
    border-collapse: collapse;
    width: 80%;
    margin: auto;
}

.emissions-data caption {
    font-weight: bold;
}

.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;
}

/* ---------- | Figures & Images & Media | ---------- */
figure {
    max-width: 24em;
    text-align: center;
    border: var(--figure-border-type);
    padding: 0.2em;
    box-shadow: 0.4em 0.4em black;
}

.main-form > figure {
    margin: auto;
}

img {
    max-width: 100%;
}

video {
    max-width: 20em;
}

/* ---------- | Animation | ---------- */
@keyframes navEquilibrium {
    from {
        font-size: 140%;
    }
    
    40% {
        font-size: 100%;
    }
    
    60% {
        font-size: 120%
    }
    
    to {
        font-size: 100%;
    }
}