/* Google fonts import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

/* Asterisk wildcard selector to override default styles added by the browser */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* General styles*/
body {
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */

header {
    background-color: #0e3386;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    position: fixed;
    z-index: 99;
    box-shadow: 0 2px 2px #262323;
    width: 100%;
}

.logo {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
}

/* Navigation menu */
.menu-toggle {
    display: none;
}
  
.menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 3px;
    color: #fff;
    font-size: 1.5rem;
}
    
nav {
    position: absolute;
    top: 100%;
    left: -100%;
    background-color: #0e3386;
    width: 100%;
    transition: left 0.3s ease;
}
  
nav ul {
    list-style-type: none;
}
  
nav ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.2rem 1rem;
}

/* Highlights active page */
.active {
    border-bottom: 1px solid #fff;
}
  
.menu-toggle:checked ~ nav {
    left: 0;
}

/* Main content*/

main {
    flex: 1 0 auto;
    padding: 0;
    margin-top: 60px;
}

h1 {
    text-align: center;
    font-size: 1.8rem;
}

h2 {
    text-align: center;
    font-size: 1.2rem;
}

.hero-section {
    width: 100%;
    height: 200px;
    overflow: hidden;
    margin-top: 0;
}
  
.hero-image {
    width: 100%;
    height: 100%;
    background: url("../images/wrigley-field-chicago.webp") center / cover no-repeat;
}

/* Footer styles */

footer {
    background-color: #0e3386;
    color: #fff;
    padding: 1rem;
    flex-shrink: 0;
}
  
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
.social-links {
    margin-bottom: 1rem;
    text-align: center;
}
  
.social-links a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0.5rem;
}
  
.footer-info {
    font-size: 0.8rem;
    text-align: center;
}

/* Additional styles for specific pages */

/* Homepage, early days and modern era */
.intro, .history, .overview, .milestones, .newsletter-signup {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

.players ul {
    list-style-type: none;
}

.players ul li {
    padding: 0.5rem 0;
}

.milestones h2 {
    margin-bottom: 1rem;
}
  
.milestones ul {
    list-style-type: none;
    padding-left: 0;
    display: inline-block;
    text-align: left;
}
  
.milestones li {
    margin-bottom: 0.5rem;
}

/* Newsletter page */
.newsletter-page main {
    padding: 0;
}
  
.newsletter-signup {
    max-width: 400px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
.form-group {
    margin-bottom: 1rem;
}
  
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}
  
.form-group input {
    width: 12rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

button[type="submit"] {
    background-color: #0e3386;
    color: white;
    border: 1px solid transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    width: 12rem;
    font-size: 1rem;
    display: inline-block;
    box-sizing: border-box;
}

button[type="submit"]:hover {
    background-color: #ffffff;
    color: #0e3386;
    border-color: #0e3386;
}

/* Media query for tablets and smaller devices (767px and down) */
@media screen and (max-width: 767px) {
/* Highlights active page */
.active {
    color:#0e3386;
    background-color: #fff;
}

}

/* Media queries for tablets and larger (768px and up) */
@media screen and (min-width: 768px) {
/* Navigation menu */
.menu-icon {
    display: none;
}
  
nav {
    position: static;
    width: auto;
    background-color: transparent;
}
  
nav ul {
    display: flex;
}
  
nav ul li {
    border-bottom: none;
    margin-left: 1rem;
}

/* Hero section */
.hero-section {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-top: 0;
}

/* Footer */
.footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
}

.social-links {
    margin-bottom: 0;
}

.footer-info {
    text-align: justify;
}

}

/* Media queries for laptops and desktops (1024px and up) */
@media screen and (min-width: 1024px) {
/* Hero section */
.hero-section {
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-top: 0;
}

/* Footer */
.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.social-links {
    margin-right: 0.2rem;
}

.footer-info {
    margin-left: 0.2rem;
}

}
