/* 
Styles.css
By: Jordan Winburn
ITWP 1050
Module 3's Project 1: Design the CSS file for a baseball website.
*/

/*First, we create global variable "white" with the value of the color white.*/
:root 
{
    --white: white;
}

/*Second, we use the universal selector (*) to set all applicable elements to the same border-box sizing.*/
* {
    box-sizing: border-box;
}

/*Third, we use the body selector to set the body tag's font family to the specified value.*/
body 
{
    font-family: Arial, Helvetica, sans-serif;
}

/*Fourth, we create a class called "header" which will affect the "header" class items only back in the HTML document.*/
.header 
{
    background-color: var(--white);
    background-image: url("images/baseball_headerimage.jpg");
    background-size: cover;
    background-position: center;
    text-align: center;
    height: 250px;
    border-radius: 10px;
    box-shadow: 0px 0px 25px black inset;
}

/*1st Checkpoint*/

/*First, we change the color of all text contained in an h1 tag to our global variable for white, and then we give all h1 tags a padding of 15 pixels
on all four sides.*/
h1
{
    color: var(--white);
    padding: 15px;
}

/*Next, we align the text inside of all h2 tags to the center alignment, along with having 0 pixels of padding on all four sides.*/
h2 
{
    text-align: center;
    padding: 0px;
}

/*Then, we'll select the images in our HTML file and give them a custom three-pixel double black border with a radius of ten pixels, along
with a padding of five pixels. Next, the image itself is scaled to have its full width and an automatically-selected height.*/
img 
{
    border: 3px double black;
    border-radius: 10px;
    padding: 5px;
    width: 100%;
    height: auto;
}

/*Now, we'll change all elements tagged with BOTH awards and info by changing their text-alignment to the left and their font size to
85% of the default.*/
#awards, #info
{
    text-align: left;
    font-size: 85%;
}

/*We'll change the elements tagged with the retired tag to a maroon text color with bold font weighting.*/
#retired 
{
    color: maroon;
    font-weight: bold;
}

/*Now we'll change elements that are part of the highlights class by changing their text alignment to left and their font size to 85% of
the default.*/
.highlights 
{
    text-align: left;
    font-size: 85%;
}

/*We will also change the elements inside of the headlines class by, again, setting a bold font weighting and text size of 85% of the default, as
well as changing the text to a center alignment.*/
.headlines 
{
    font-size: 85%;
    font-weight: bold;
    text-align: center;
}

/*Finally, I'll be inserting this template code from the project instructions.*/

/*This will create three UNEQUAL columns (using the column class and its elements) that "float" next to eachother.*/
.column {
    float: left;
    padding-top: 10px;
    padding-right: 10px;
    width: 30%;
}

/*For the left and right column.*/
.column.side {
    width: 30%;
    /*Step sixteen says to add a declaration here to make the background color our global CSS variable.*/
    background-color: var(--white);
}

/*For the middle column.*/
.column.middle {
    width: 40%;
}

/*Supposed to "clear floats after the columns".*/
.row:after {
    content: "";
    display: table;
    clear: both;
}

/*Creates a "responsive" layout, which will make the three columns stack on top of eachother instead of floating next to each other.*/
@media (max-width: 600px) {
    .column.side, .column.middle {
        width: 100%;
    }
}

/*The last step is to change the elements inside the footer_validation class by giving the class twenty pixels of padding, changing the
text alignment to center, and changing the font size to eleven pixels.*/
.footer_validation {
    padding: 20px;
    text-align: center;
    font-size: 11px;
}

/*2nd Checkpoint, end of CSS work.*/