/* Global variables defined in :root */
:root {
  --primary: #042026; 
  --secondary: #a67f5d; 
  --tertiary: #d9d2bf;
  --dark: #30312C; 
  --light: #ececec;
  --accent: #401d09;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    font-family: Arial, sans-serif;
    color: var(--dark);
    border-radius: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex-grow: 0;
}

/* Input Styles */
input {
  border: none;
  border-bottom: 2px solid var(--accent);
  background: transparent;
  padding: 10px 5px;
  font-size: 12px;
  color: var(--accent);
  width: 30%;
  transition: 0.3s;
}

input::placeholder {
  color: var(--dark);
}

input:focus {
  outline: none;
  border-bottom: 2px solid #ffffff;
}


/* Navigation Styles */
.main-nav {
    background-color: var(--light);
    border-bottom: 2px solid var(--secondary); 
}

.nav-list {
    list-style-type: none;
    display: flex;
    background-color: var(--tertiary);
}

.nav-list li {
    position: relative;
}

.nav-link {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-family: 'Graduate', Arial, sans-serif;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: var(--tertiary);
}

/* Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    border: 1px solid #ddd;
    top: 100%;
    left: 0;
}

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

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--light);
}

.dropdown-divider {
    border-top: 1px solid #ddd;
}

/* Header Styles */
.site-header {
    margin: 0;
    padding: 0;
}

.header-container {
    /*border-bottom: 2px solid var(--secondary);*/
    background-color: var(--primary);
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
}

.header-left,
.header-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-center {
    flex: 2;
    color: var(--secondary);
    font-family: 'Graduate', serif;
    text-align: center;
}

.header-center h1 {
    margin: 0;
}

/* Main Content */
.main-content {
    margin: 0;
    padding: 0px; 
    max-width: none; 
    flex-grow: 1;
}

/* Bubble */
.bubble {
    padding: 20px; 
    background-color: var(--light); 
    border-radius: 32px; 
    margin: 32px;
}

/* Footer */
.site-footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Pitcher Table */
.pitcher-data-table {
    margin: 20px 0;
    overflow-x: auto;
    width: 100%;
}

.pitcher-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: auto;  
}

.pitcher-data-table th,
.pitcher-data-table td {
    border: 1px solid #ddd;
    padding: 8px 12px;  /* Added horizontal padding */
    text-align: center;
    white-space: nowrap;  /* Prevent wrapping */
}

.pitcher-data-table th {
    background-color: var(--tertiary);
    color: white;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

.pitcher-data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.pitcher-data-table tr:hover {
    background-color: #f0f0f0;
}

.pitcher-data-table td {
    text-align: center;
    vertical-align: middle;
}

/* Download Button */
.download-btn {
    display: inline-block;
    background-color: white;
    color: var(--dark);
    padding: 12px 24px;
    border-radius: 32px;
    text-decoration: none;
    font-size: 16px;
    margin: 10px 0;
    transition: background-color 0.3s;
    font-weight: bold;
}

.download-btn:hover {
    background-color: var(--secondary);
    text-decoration: none;
}

.download-btn-small {
    display: inline-block;
    background-color: var(--light);
    color: var(--dark);
    padding: 8px 16px;
    border-radius: 32px;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.download-btn-small:hover {
    background-color: var(--secondary);
    text-decoration: none;
}

/* Upload Button */
.upload-btn {
    display: inline-block;
    background-color: white;
    color: var(--dark);
    padding: 12px 24px;
    border-radius: 32px;
    text-decoration: none;
    font-size: 16px;
    font-style: bold;
    margin: 8px 0;
    transition: background-color 0.3s;
    justify-content: center;
    font-weight: bold;
    border: none;
}

.upload-btn:hover {
    background-color: var(--secondary);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
    }
    
    .header-container {
        height: auto;
        flex-direction: column;
        padding: 20px 0;
    }
    
    .header-left,
    .header-center,
    .header-right {
        flex: none;
        width: 100%;
        margin: 10px 0;
    }
}