/*
   Filename: styles.css
   Author: Farris Qureshi
   Course: ITWP 1050
   Assignment: Project 1 - Miguel Cabrera CSS Styling Sheet
   Description: External style sheet for the Miguel Cabrera web page.
                Contains all CSS rules, classes, and IDs used to format the page.
*/

/* Global Variable - :root selector
   Defines the --white CSS custom property */
:root {
    --white: #ffffff;
}

/* Universal Selector
   Applies box-sizing: border-box to all elements */
* {
    box-sizing: border-box;
}

/* Body Element Selector
   Sets the font family for the entire document */
body {
    font-family: Arial, Helvetica, sans-serif;
}

/* .header Class
   Styles the header div with background image,
   border radius, and inset box shadow */
.header {
    background-color: var(--white);
    background-image: url("/itwp1050/project1_student_files/project1_student_files/images/baseball_headerimage.jpg");
    background-size: cover;
    background-position: center;
    text-align: center;
    height: 250px;
    border-radius: 10px;
    box-shadow: 0 0 25px black inset;
}

/* h1 Element Selector
   Sets text color using white variable and padding */
h1 {
    color: var(--white);
    padding: 15px;
}

/* h2 Element Selector
   Centers text and removes padding */
h2 {
    text-align: center;
    padding: 0;
}

/* img Element Selector
   Applies border, border radius, padding,
   and responsive width/height */
img {
    border: 3px double black;
    border-radius: 10px;
    padding: 5px;
    width: 100%;
    height: auto;
}

/* #awards and #info ID Selectors
   Left-aligns text and sets font size to 85% */
#awards,
#info {
    text-align: left;
    font-size: 85%;
}

/* #retired ID Selector
   Sets text color to maroon and font weight to bold */
#retired {
    color: maroon;
    font-weight: bold;
}

/* .highlights Class Selector
   Left-aligns text and sets font size to 85% */
.highlights {
    text-align: left;
    font-size: 85%;
}

/* .headlines Class Selector
   Sets font size, bold weight, and centers text */
.headlines {
    font-size: 85%;
    font-weight: bold;
    text-align: center;
}

/* Create three unequal columns that floats next to
   each other - W3Schools */
.column {
    float: left;
    padding-top: 10px;
    padding-right: 10px;
    width: 30%;
}

/* Left and right column */
.column.side {
    width: 30%;
    background-color: var(--white);
}

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

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

/* Responsive layout - makes the three columns stack on top of each
   other instead of next to each other */
@media (max-width: 600px) {
    .column.side, .column.middle {
        width: 100%;
    }
}

/* .footer_validation Class Selector
   Pads, centers, and sets font size for footer */
.footer_validation {
    padding: 20px;
    text-align: center;
    font-size: 11px;
}