/*
    Author: Michael Ramos
    Date: October 5, 2025
    File name: style.css
*/

/* CSS Reset */
body, header, nav, main, footer, img, h1, ul, section, aside, figure, figcaption {
    margin: 0;
    padding: 0;
    border: 0;
}

/*Style rules for images*/
img {
    max-width: 100%;
    display: block;
}

/* Style rule for box sizing applies to all elements*/
* {
    box-sizing: border-box;
}

/*Style Rules for body*/
body{
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color:#333;
}

/*Hide tab-desk class */
.tab-desk,
#menu-links{
    display: none;
}

/*Style Rules for header content*/
header{
    background-color:#0056b3;
    color: #fff;
    padding: 1em 0;
    text-align: center;
}

header h1{
    margin-bottom: 0.5em;
}

/*Style Rules for nav area*/
nav ul{
    list-style-type: none;
}

nav ul li{
    display: inline;
    margin: 0 1em;
}

nav a {
    color: #fff;
    text-decoration: none;
}

/* Style rules for main content */
main {
    padding: 2%;
    background-color: #e5e9fc;
    overflow: auto;
    font-family: 'Roboto', sans-serif;
}

main p {
    font-size: 1.25em;
}

#hero{
    background-color: #e9e9e9;
    padding: 2em;
    text-align:center;
}

#featured-jerseys,
#uniforms,
#equipment{
    padding: 2em;
    text-align: center;
}

.product-grid{
    display: inline-block;
}

.product{
    width: 30%;
    margin-bottom: 2em;
    padding: 1em;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product img{
    max-width: 100%;
    height: auto;
    margin-bottom: 1em;
}

.add-to-cart{
    display: inline-block;
    background-color: #388e3c;
    color: #fff;
    padding: 0.5em 1em;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 0.5em;
}

#contact{
    text-align: center;
}

.tel-link{
    background-color: #373684;
    padding: 2%;
    margin: 0 auto;
    width: 80%;
    text-align: center;
    border-radius: 5px;
}

#contact.email-link {
    color: #4645a8;
    text-decoration: none;
    font-weight: bold;
}

.map{
    border: 5px solid #373684;
    width:90%;
    height: 50%;
}


form #submit{
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    display: block;
    padding: 3%;
    background-color: #b7b7e1;
    font-size: 1em;
}

/*Style Rules for footer*/
footer{
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1em 0;
}

/* Media Query for Tablet Viewport */
@media screen and (min-width: 550px), print {

/* Tablet Viewport: Show tab-desk class, hide mobile class */
.tab-desk {
    display: block;
}

/* Tablet Viewport: Style rule for header content */

header h1{
    margin: 0;
    padding: 0;
    font-size: 2em;
}
span.tab-desk {
    display: inline;
}

/* Tablet Viewport:Style rules for nav area */

nav ul{
    list-style-type: none;
    text-align: center;
}


/* Tablet Viewport:Style rule for map */
.map {
    width: 500px;
    height: 450px;
}

/* Tablet Viewport:Style rule for form element*/
form{
    width: 70%;
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}
}

/*Media Query for desktop styles*/
@media screen and (min-width: 768px), print {
 .product{
        width: 20%;
    }
 
 nav ul li{
     margin: 0 1.5em;
  }   
  
 /* Desktop Viewport:Style rules for nav area */
nav li a {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 1.5em;
    padding-right: 1.5em;
}

nav li a:hover{
    color: #373684;
    background-color: #e5e9fc;
    transform: scale(1.2);
}

/* Desktop Viewport: Style rules for form elements */
.form-grid{
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 20px;
}

.btn{
    grid-column: 1/ span 2;
}
}
