/* Base styles shared across all pages */

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body {
    margin: 0px;
    background: var(--background-color);
    color: var(--text-color);
    font-family: "Segoe UI", Tahoma, Verdana, sans-serif;
}

h2 {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.4rem;
}

label {
    user-select: none;
    cursor: pointer;
}

select, button {
    padding: 0.5rem;
    border-radius: var(--radius-s);
    border: 1px solid var(--border-color);
    background: var(--grey5-color);
    color: var(--text-color);
    cursor: pointer;
}

select:hover, button:hover {
    background: var(--grey6-color);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Main Container Layout */
.container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    min-height: 100vh;
    box-sizing: border-box;
    overflow: hidden;
    flex-wrap: wrap;
}

#mainContainer {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 0px;
}

#content-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    min-height: calc(100vh - 40px);
    box-sizing: border-box;
    overflow: hidden;
    flex-wrap: wrap;
    width: 100%;
}

.page-header {
    margin-bottom: var(--spacing-2xl);
}

.page-header h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin: 0;
}

/* Responsive adjustments for container */
@media screen and (max-width: 1530px) and (min-width: 1001px) {
    .container {
        justify-content: space-between;
    }
}

@media screen and (max-width: 1000px) {
    /* Remove padding and adjust heights for mobile */
    .container {
        padding: 0;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height - accounts for mobile browser bars */
        overflow: auto; /* Allow scrolling if needed */
    }
    
    /* Adjust content container to account for no mobile header */
    #content-container {
        padding: 0;
        min-height: calc(100vh - 40px);
        min-height: calc(100dvh - 40px);
        overflow: visible;
    }

    /* Adjust content container when mobile header is visible */
    .mobile-header.hidden-during-pregame ~ #content-container {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

@media screen and (max-width: 1000px) and (min-width: 501px) {
    .container {
        flex-direction: column;
        height: auto;
    }
}

@media screen and (max-width: 500px) {
    .container {
        padding: 0; /* Remove padding on small mobile screens */
        gap: 0;
    }
}
