/* File - Styles.CSS : Project1.html. */
/* Sebastian Chavez Rivero */
/* ITWP-1050. Creating an External Style Sheet for a Web Page. */


/* White global variable using the root selector. */
:root {
    --white: #ffffff;
  }

/* Universal Selector that applies the box-sizing property to all elements. It helps for consistency. */
  * {
    box-sizing: border-box; /* Set the box-sizing property to border-box for consistent element sizing */
  }

/* Sets the font for the HTML document */
body {
    font-family: Arial, Helvetica, sans-serif;
  }

.header {
    background-image: url("images/baseball_headerimage.jpg"); /* Sets the background image for the header */
    background-size: cover; /* Ensures the background image covers the entire header */
    background-position: center; /* Centers the background image */
    text-align: center; /* Centers the text */
    height: 250px; /* Sets the height of the header */
    background-color: var(--white); /* Uses the global white variable for the background color */
    border-radius: 10px; /* Applies a 10px border radius on all sides */
    box-shadow: inset 0 0 25px black; /* Applies an inset box shadow with 0 offset and a 25px blur */
  }

/* h1 element: Creates 15px of thickness of the padding on all sides. */
h1 {
    color: var(--white);
    padding: 15px;
  }
  
  /* h2 element: Center align the text and removes all padding */
  h2 {
    text-align: center;
    padding: 0;
  }  

  /* Image element style */
img {
    border: 3px double black;  /* Black double border, 3px */
    border-radius: 10px;        /* Rounded corners with 10px radius */
    padding: 5px;               /* Adds 5px padding around the image */
    width: 100%;                /* Makes the image take up the full width */
    height: auto;               /* Maintains the aspect ratio of the image */
  }

/* IDs: awards, info and retired - Align text to the left and set font size to 85% */
#awards, #info {
    text-align: left;
    font-size: 85%;
  }
#retired {  /*Sets the text color to maroon and font weight to bold */
    color: maroon;
    font-weight: bold;
  }

  /* Class: highlights - Aligns text to the left and set font size to 85% */
.highlights {
    text-align: left;
    font-size: 85%;
  }
  
 /* Class: headlines - Sets font size to 85%, font weight to bold, and centers the text */
.headlines {
    font-size: 85%;
    font-weight: bold;
    text-align: center;
  }
/* Added code as instructed, lines 77 to 103. */

/* 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); /* Uses the global white variable for the background color */
    }
    /* 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: Sets padding, centers text alignment, and sets the font size */
.footer_validation {
    padding: 20px;
    text-align: center;
    font-size: 11px;
  }