/* Modern Style for GameSec 2026 */

:root {
    --color-primary: #00274c;    /* Michigan Blue */
    --color-secondary: #2f65a7;  /* Arboretum Blue */
    --color-accent: #ffcb05;     /* Maize */
    --color-body: #131516;       /* Puma Black */
    --color-on-dark: #ffffff;    /* White */
    --color-link: #2f65a7;       /* Arboretum Blue */
    --color-link-hover: #9a3324; /* Tappan Red */
    --color-bg-white: #ffffff;   /* White */
    --color-bg-light: #eff0ef;   /* Angell Hall Ash (15%) */
    --color-bg-medium: #dbdcdb   /* Angell Hall Ash (30%) */
}

/* Add side padding and max width to all section containers */
.soft-section, .light-section, .container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-body);
    padding-top: 56px; /* Reduced from 76px to match navbar height */
    width: 100%;
    overflow-x: hidden;
    font-size: 1rem; /* Changes almost all text sizes */
}

/* Navigation */

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: var(--color-primary) !important;
    width: 100%;
    padding: 0.2rem 0.2rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.6rem; /* Menu size*/
    color: var(--color-on-dark) !important;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem; /* Increased from default */
    transition: color 0.3s ease;
    color: var(--color-on-dark) !important;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--color-accent) !important;
}

.gallery-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.gallery-toggle-btn:hover {
    color: var(--color-accent);
    transform: scale(1.05);
}

/* Header with original image */

#header-photo {
    background-image: url('../images/ann-arbor-aerial2.jpg');
    background-size: cover;
    background-position: 50% 15%;
    color: var(--color-on-dark);
    min-height: 375px; /* Adjust this value as needed */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Center text vertically */
    padding-bottom: 2rem;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    width: 100%;
}

/* Remove the overlay */
#header-photo::before {
    display: none;
}

#header-photo h1, #header-photo h2 {
    position: relative;
    z-index: 2;
    color: var(--color-on-dark);
}

#logo-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

#logo-text a {
    color: var(--color-on-dark);
    text-decoration: none;
    transition: transform 0.3s ease;
}

#logo-text a:hover {
    transform: scale(1.05);
}

#slogan {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

#slogan2 {
    font-size: 1.2rem;
    font-weight: 600; /* Increased from 400 to 600 for bolder text */
    opacity: 1; /* Changed from 0.9 to 1 for full opacity */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Content cections */

h1, h2, h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

h2 {
    font-size: 1.4rem;
    font-weight: 600;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
}

h4 {
    font-size: 1.3rem;
    font-weight: 600;
}

h5 {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Cards and sections */

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    width: 100%;
}

/* Images */

img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Links */

a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Lists */

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

ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

/* Tables */

table {
    width: 100%;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
}

th, td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

th {
    background-color: var(--color-primary);
    color: var(--color-on-dark);
    font-weight: 600;
}

.footer {
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-on-dark);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding: 0.9rem 0 0rem 0 !important; /* Reduce bottom padding to 0rem */
}

.footer a {
    color: var(--color-on-dark);
}

.footer a:hover {
    color: var(--color-accent);
}

/* Deadlines section */

.deadlines-section {
    background-color: var(--color-bg-light);
    padding: 1rem 0 0rem 0; /* Reduce bottom padding to 0rem */
    margin-bottom: 2rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
}

.deadline-item {
    text-align: center;
    padding: 0.75rem;
    transition: transform 0.3s ease;
}

.deadline-item:hover {
    transform: translateY(-3px);
}

.deadline-item h3 {
    color: var(--color-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
}

.deadline-item p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-body);
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* Container adjustments for menu, header, deadlines (Bootstrap) */

.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Responsive design */

@media (max-width: 768px) {
    #header-photo {
        padding: 3rem 0;
    }

    #logo-text {
        font-size: 2rem;
    }

    #slogan {
        font-size: 1.4rem;
    }

    #slogan2 {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    .deadlines-section {
        padding: 1rem 0;
    }

    .deadline-item {
        padding: 0.5rem;
    }

    .deadline-item h3 {
        font-size: 1.1rem;
    }

    .deadline-item p {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.4rem;
    }

    .nav-link {
        font-size: 1rem;
    }
}

/* Utility classes */

.text-primary {
    color: var(--color-secondary) !important;
}

.text-secondary {
    color: var(--color-accent) !important;
}

.bg-light {
    background-color: var(--color-bg-light) !important;
}

/* Animations */

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Universal section layout for centered, max-width content */
.section-wrapper {
    max-width: 960px !important;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Clean background variant without a card box */
.soft-section {
    background-color: transparent;
    padding: 0.5rem 1rem;
}

/* Subtle section with light background (optional use) */
.light-section {
    background-color: var(--color-bg-light);
    border-radius: 8px;
    padding: 1rem 1rem 1rem 1rem !important;
    margin-bottom: 1rem;
}

/* Text styling for large blocks of content */
.body-text {
    line-height: 1.7;
    font-size: 1rem;
    color: #333;
}

/* Emphasized section headers */
.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* For menus or footers with centered content inside full-width bars */
.bar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* For the buttons */

/* Container */
.accordion-container {
    margin: 2rem auto;
    padding: 0 0.5rem;
}

/* Accordion button */
.accordion-button {
    width: 100%;
    background-color:var(--color-bg-light) !important;
    border: none;
    border-bottom: 2px solid black;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    gap: 1rem; /* Spacing between icon and text */
}

.accordion-button:hover {
    background-color: var(--color-bg-medium) !important;
}

/* Icon rotation */
.accordion-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.accordion-button.open svg {
    transform: rotate(180deg);
}

/* Accordion content */
.accordion-content {
    background-color: var(--color-bg-light);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    display: none;
    border-radius: 0 0 0.75rem 0.75rem;
    border-top: 1px solid #e5e7eb;
    border-bottom: 2px solid black;
}

/* Active content */
.accordion-content.show {
    display: block;
}

/* List style */
.accordion-content ul {
    list-style: disc;
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}

.accordion-content li {
    margin-bottom: 0.5rem;
  }

/* Custom dropdown menu */
.dropdown-menu {
    background-color: var(--color-primary);
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
    font-size: 1rem; /* Increased from default */
    padding: 0.2rem 0.2rem;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

/* Custom dropdown links */
.dropdown-menu .dropdown-item {
    font-weight: 500;
    font-size: 500;
    padding: 0.2rem 0.5rem;
    color: var(--color-on-dark);
    transition: background-color 0.2s ease;
}

.dropdown-menu .dropdown-item:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border-radius: 0.4rem;
}

/* Sponsors section */
.sponsor-badge{
    display: inline-block;
    vertical-align: middle;
    padding: 3px 10px;
    border-radius: 5px;
    background: var(--color-primary);
    color: var(--color-accent);
    font-size: 0.85em;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.sponsor-tier{
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 15px;
  margin: 20px 0;
}

.sponsor-logos{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}