/* Variables */
:root {
    --primary-text-color: #000;
    --primary-bg-color: #2c3e50;
    --light-text-color: #ecf0f1;
    --hover-bg-color: #34495e;
    --main-font-family: 'Montserrat', sans-serif;
    --secondary-text-color: #7f8c8d;
}

/* Reset & Base Styles */
body {
    font-family: var(--main-font-family);
    color: var(--primary-text-color);
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    cursor: pointer;
}


ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

/* Header Styles */
header {
    background-color: var(--primary-bg-color);
    padding: 20px 0;
}

header nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header ul {
    display: flex;
    justify-content: flex-start;
}

header li {
    display: inline-block;
}

header a {
    color: var(--light-text-color);
    padding: 10px 15px;
    transition: background-color 0.3s;
    border-radius: 5px;
}

header a:hover {
    background-color: var(--hover-bg-color);
}

/* Footer Styles */
footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-bg-color);
    padding: 20px 0;
    color: var(--light-text-color);
}

.legal-footer {
    width: 100%;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
}

footer a, footer a:visited, footer a:hover {
    color: var(--light-text-color)
}

/* Main Templating Headers */
h1, h2, h3, h4 {
    margin: 20px 0;
    line-height: 1.2;
    color: var(--primary-bg-color);
    font-weight: bold;
}

h1 {
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
}


h3 {
    font-size: 1.5em;
}

h4 {
    font-size: 1.2em;
}


.header-container {
    display: flex;
    align-items: center;
}

img.h3-image{
    height: 2.5em;
    width: auto;
    margin-right: 10px;
}

p {
    margin-bottom: 1em;
    width: 100%;
}

/* Link Styling for text content only */
p a {
    color: #b80c09; /* Standard blue for unvisited links */
    text-decoration: underline; /* Underline to highlight link on hover/focus */
    font-weight: 600;
}

p a:visited { /* Visited links in sections */
    color: #b80c09; /* Darker shade for better contrast */
    text-decoration: underline; /* Underline to highlight link on hover/focus */
    font-weight: 600;
}

p a:hover {
    color: #b80c09; /* Orange shade for interactivity */
    text-decoration: none; /* Underline to highlight link on hover/focus */
    font-weight: 600;
}


/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: var(--light-text-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

th, td {
    text-align: left;
    padding: 12px 15px;
    border-bottom: 1px solid var(--primary-bg-color);
}

img.td-image{
    height: 2em;
    width: auto;
    margin-right: 10px;
}

th {
    background-color: var(--primary-bg-color);
    color: var(--light-text-color);
    font-weight: bold;
}

tbody tr:hover {
    background-color: var(--hover-bg-color);
    color: var(--light-text-color);
}

/* Enhance responsiveness for tables */
@media screen and (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Enhancements for table header on small screens */
@media screen and (max-width: 768px) {
    th {
        padding: 10px 5px; /* Reduces padding for more compact display */
    }
}
blockquote {
    margin: 20px 0;
    padding: 15px;
    font-style: italic;
    background-color: var(--light-text-color);
    border-left: 4px solid var(--primary-bg-color);
}

pre,
code {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

pre {
    padding: 1em;
    background-color: #eee;
    overflow-x: auto;
}

label.small-uppercase {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--secondary-font-color);
    margin-bottom: 0.25rem;
    font-weight: 700;
  }

.error-message {
    color: #b80c09;
    font-size: 0.85;
    font-weight: 700;
}

.line-1 {
    height: 1px;
    background: #333;
    margin: 20px;
  }

.social-sharing {
    display: flex;
    gap: 10px;
    justify-content: center; /* Center align the buttons */
}

.social-share-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

/* Meta Data */
.meta-container {
    padding: 30px;
    margin-top: 20px; /* Adds space above the metadata */
    border: 1px solid #ccc; /* Light gray border */
    background-color: #f9f9f9; /* Light gray background */
}

.meta-container p {
    font-size: 0.9em; /* Slightly smaller font size */
    color: #666; /* Dark gray text color */
}


.tags:before {
    content: "\1F3F7"; /* Represents a tag icon in Unicode */
    padding-right: 5px;
}

.updated:before {
    content: "\1F4C5"; /* Represents a calendar icon in Unicode */
    padding-right: 5px;
}

/* Main Container Styles */
.container {
    max-width: 1200px;
    align-content: center;
    margin: 20px auto; 
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Image Container */
.img-container {
    display: flex;
    align-items: center;    /* Centers children vertically */
    justify-content: center;/* Centers children horizontally */
    max-height: 100%; /* or set a specific height if you want */
    width: 100%;  /* or set a specific width if you want */
}

/* Optional: If you want your images to not exceed the container's size */
.img-container img {
    max-width: 100%;
    max-height: 500px;
}


/* Intro & Cards Styles */
.intro {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}


/* Mobile-First Cards */
.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: -10px;
}

.card {
    height: 500px;
    width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: #f4f4f4;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    transition: transform .2s ease-in-out;
    margin-bottom: 20px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;  /* Full width of the card */
    height: 400px; /* Fixed height */
    object-fit: cover;
    object-position: center; /* Center the image */
    border-radius: 5px 5px 0 0;
}

.card h3 {
    padding: 15px;
    margin-top: auto; /* Pushes h3 to the bottom */
    color: #2c3e50;
    background: rgba(255, 255, 255, 0.8); /* Optional: makes text more readable on varying backgrounds */
}

.card a {
    color: #2c3e50;
    text-decoration: none; /* Removes underline from links */
}

/* Enhanced styles for larger screens */
@media (min-width: 768px) {
    .card-container {
        flex-direction: row;
        justify-content: center;
        max-width: 80%;
        flex-wrap: wrap; /* Ensures the container can wrap cards onto the next line */
    }

    .card {
        margin-left: 20px;
        margin-bottom: 20px;  /* Consistent margin for spacing between cards */
    }
}

/* Dropdown Styling */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--hover-bg-color);
    min-width: 160px;
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: var(--light-text-color);
    padding: 10px 15px;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Vertical Menu Styles (mobile-first)*/
.menu {  /* Creates the base for the menu in Mobile views */
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.menu-item {
    flex: none;
    text-align: left;
    padding: 10;
    /*width: 100%;*/
}



/* Hamburger Toggle Styles */
.menu-toggle {
    display: flex;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--light-text-color);
}

.menu {
    display: none;
} 

/* Vertical Menu Styles */

@media screen and (min-width: 768px) { /* applies only if screen is wider than 768 */
    .menu-toggle {
        display: none;
    }

    .menu {
        display: flex;
        flex-direction: row;
    }
}


/* Pick 'Em Styles */

div.pick-list {
    display:flex; 
    flex-direction:column;
    padding:30px;
    background-color: var(--light-text-color);
}

div.pick-array{
    display:flex;
    flex-wrap: wrap;
}

div.top-pick {
    display:flex; 
    margin:10px;
}

.pick-header p {
    margin: .4em;
}

.pick-img {
    height: 4em;
    width: auto;
    margin: 5px;
}

.pick-main {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
}

.pick-team {
    flex-basis: 300px; /* Adjust this value to control the width */
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {

    div.top-pick {
        display:flex; 
        margin:10px;
    }


    .pick-img {
        height: 4em;
        width: auto;
        margin: 5px;
    }

    .pick-main {
        font-size: 1rem;
        font-weight: bold;
        text-transform: uppercase;
        margin: 0;
    }

    .pick-team {
        flex-basis: 300px; /* Adjust this value to control the width */
        display: flex;
        align-items: center;
    }
}



/* Bokeh Plots & Selectors */

.bokeh-plot-container {
    width: 100%; /* or a specific width */
    height: 500px; /* ensure this matches your plot's height */
}


.bokeh-plot {
    display: flex;
    justify-content: center;
}


.selectors-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
    gap: 1.5rem;
    padding-left: 25px;
}

.selector-group {
    display: flex;
    flex-direction: column;
}

.selector-group label {
    display: flex;
    white-space: nowrap;
    align-items: center;
}

.selector-group select,
.selector-group input {
    display: block;
    width: 100%;
    padding: 5px;
}

.selector-group select,
.selector-group button {
    margin: 0;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.radio-group {
    display: flex;
    flex-direction: row;
}

.radio-text input[type="radio"] {
    display: none;
}

.radio-text span.radio-item {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    padding: 0.25rem 0.5rem;
    position: relative;
}

.radio-text span.radio-item:hover {
    background-color: #0056b3;
    color: var(--light-text-color);
    border-radius: 0.55rem;
    cursor: pointer;
}

.radio-text input[type="radio"]:checked + span {
    background-color: var(--primary-bg-color);
    color: var(--light-text-color);
    border-radius: 0.55rem;
}

.primary-button {
    width: 60%;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    box-sizing: border-box;
    background-color: var(--primary-bg-color);
    color: var(--light-text-color);
    transition: background-color 0.2s ease-in-out;
    border-radius: 0.55rem;
    margin: 10px 0;
    padding: 10px;
}

.primary-button:hover {
    background-color: #0056b3;
    cursor: pointer;
}

/* New styles for disabled radio item */
.radio-text span.radio-item.disabled {
    background-color: #e0e0e0;
    color: #a0a0a0;
    border-radius: 0.55rem;
    cursor: not-allowed;
}

/* Tooltip styles */
.radio-text span.radio-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 3px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.radio-text span.radio-item[data-tooltip]:hover::after {
    opacity: 1;
}

@media screen and (min-width: 768px) {

    .selectors {
        margin: auto;
        max-width: 80%;
    }

    .selectors-row {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        padding-left: 0;
    }

    .radio-group {
        display: grid;
        grid-auto-flow: column;
        
    }

    .primary-button {
        min-width: 250px;
    }
}


/* Blog Posts & Articles */
.citation, .blog-post-meta, .blog-post-footer p {
    font-size: 0.9em;
    color: var(--secondary-text-color);
}

.citation a, .blog-post-title, .blog-post-content h2, .blog-post-content h3 {
    color: var(--primary-bg-color);
}

.blog-post {
    margin: 20px 0;
}

.blog-post-title {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: bold;
    line-height: 1.4;
}

.blog-post-desc {
    font-size: 1.1em;
    margin: 20px;
    padding: 20px;
    color: #333;
}

.blog-post-content {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
}

.blog-post-content p {
    margin-bottom: 20px;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 20px;
}

.blog-post-content blockquote {
    margin: 20px 0;
    padding: 15px;
    font-style: italic;
    background-color: var(--light-text-color);
    border-left: 4px solid var(--primary-bg-color);
}

.blog-post-meta {
    margin-bottom: 20px;
}

.blog-post-footer {
    border-top: 1px solid #e1e1e1;
    padding-top: 20px;
}

/* Blog Post Headers */
.blog-post-content h1, 
.blog-post-content h2, 
.blog-post-content h3, 
.blog-post-content h4 {
    margin: 20px 0;
    line-height: 1.3;
    font-weight: bold;
    color: #333; /* Slightly darker for a more immersive reading experience */
}

.blog-post-content h1 {
    font-size: 2.2em;
    border-bottom: 2px solid var(--primary-bg-color);
    padding-bottom: 10px;
}

.blog-post-content h2 {
    font-size: 1.8em;
}

.blog-post-content h3 {
    font-size: 1.6em;
    color: var(--secondary-text-color);
    font-style: italic; /* A slight italic style to differentiate from h1 and h2 */
}

.blog-post-content h4 {
    font-size: 1.4em;
    text-transform: uppercase; /* Uppercase for a slightly editorial touch */
}