*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---------------------------------------------------- General Styles */
:root {
    /* Base font size for the entire website */
    font-size: 10px;

    

    --color-primary: #e88328;

    --color-secondary: #FFFFFF;

    --color-tertiary: #FFFFFF;

    --color-quaternary: #000000;

    /* -------------------- Padding */
    /* 
        xL      = extra Large
        L       = Large
        m       = medium
        s       = small
    */
    --padding-xl: calc(2rem + 6vh) calc(2rem + 6vw);
    --padding-l: calc(3rem + 4vh) calc(3rem + 4vw);
    --padding-m: calc(2rem + 2vh) calc(2rem + 2vw);
    --padding-s: calc(1rem + 1vh) calc(1rem + 1vw);


    /* -------------------- Font Size */
    /* 
        L       = Large
        m       = medium
        s       = small
        xs      = extra small
    */

    --font-size-l: calc(1.5rem + 2vw);
    --font-size-m: calc(1rem + 1.5vw);
    --font-size-s: calc(1rem + 1vw);
    --font-size-xs: calc(0.5rem + 0.8vw);


    /* -------------------- Font Families */

    --font-family-main: "Fredoka", sans-serif;
    --font-family-sub: "Nata Sans", sans-serif;
}

body {
    font-family: var(--font-family-sub);
    line-height: 1.5;
}

.container {
    display: grid;

    grid-template-columns: [container-start] 1fr [center-start] repeat(10, [col-start] minmax(min-content, 11rem) [col-end]) [center-end] 1fr [container-end];

    grid-template-rows: repeat(4, min-content);

    background-color: var(--color-primary);
}

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

li {
    list-style: none;
}


/* ****************************************************************** Header */
#main-header {
    background-color: var(--color-secondary);

    grid-column: container-start / container-end;
    padding: var(--padding-s);

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: relative;
}

.main-header__nav {
    width: 80%;
    z-index: 1;

    display: flex;
    justify-content: flex-end;
}

.hamburger {
    z-index: 1;
}

.main-header__nav--links {
    display: flex;

    gap: calc(0rem + 1vw);
    align-items: center;
    
    
}

.main-header__nav--links a {
    font-size: 1.5rem;
    padding: 1.5rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.25s ease-in-out;
    
}

.main-header__nav--links a:hover {
    background-color: var(--color-primary);
    color: var(--color-secondary)
}


/* Submenu Styling */
.submenu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background-color: var(--color-secondary);
  list-style: none;
  border-radius: 0.5rem;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  position: absolute;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  margin-top: 0.5rem;
  z-index: 99;
}

.submenu.open {
  max-height: 500px; /* enough room for items */
  opacity: 1;
}

.submenu li a {
  display: block;
  padding: 0.8rem 1.5rem;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.submenu li a:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}


/* Parent links with submenu */
.has-submenu {
  position: relative;
}

.has-submenu > a {
  position: relative;
  padding-right: 2.5rem;
}

/* Arrow */
.has-submenu > a::after {
  content: "▸";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  transition: transform 0.35s ease;
  color: inherit;
}

.has-submenu.open > a::after,
.has-submenu:hover > a::after {
  transform: translateY(-50%) rotate(90deg);
}

/* Desktop hover open */
@media screen and (min-width: 801px) {
  .has-submenu:hover > .submenu {
    max-height: 500px;
    opacity: 1;
  }
}





/* ****************************************************************** Main Title */
.main-title {
    color: var(--color-secondary);
    grid-column: center-start / center-end;
    padding: var(--padding-s);
    text-transform: uppercase;
    border-left: dashed var(--color-secondary) 4px;
    border-right: dashed var(--color-secondary) 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-l);
}

/* ****************************************************************** Main Content */
.main-content {
    background-color: var(--color-tertiary);
    grid-column: center-start / center-end;
    
    padding: var(--padding-s);

    display: flex;
    flex-wrap: wrap;

    justify-content: space-evenly;

    gap: 3vw;
}

.main-links-style {
	text-decoration: underline;
	font-weight: bold;
}

.main-links-style:hover {
	text-decoration: none;
}

/* -------------------- Main Text Area --------------------- */
.main-content__text-area {
    flex-basis: 43rem;
    flex-grow: 1;

    display: flex;
    flex-direction: column;
    gap: 2rem;

    font-size: var(--font-size-xs);
}


.main-content__text-area-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* BRADCRUMBS */
.breadcrumb {
  list-style: none;
  display: flex;
  gap: 8px; /* Space between items */
}

.breadcrumb li:not(:last-child)::after {
  content: ">"; /* Arrow character */
  margin-left: 8px; /* Space after arrow */
  color: #666; /* Arrow color */
}

/* SCHEDULES */
.main-content__text-area__schedules {
    background-color: azure;
    font-size: var(--font-size-m);

    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-content__text-area__schedules-box {
	display: flex;
	flex-direction: column; /* Stack items vertically */
    
}

.main-content__text-area__schedules-box a {
    background-color: var(--color-secondary);
    border: dashed 2px var(--color-primary);

    display: flex; /* Make the item a flex container */
    justify-content: center; /* Center text horizontally */
    align-items: center; /* Center text vertically */

    padding: var(--padding-s);
}

.main-content__text-area__schedules-box a:hover {
    background-color: var(--color-primary);
    border: dashed 2px var(--color-secondary);
    color: var(--color-secondary);
}


/* Sched */
.schedule-container {
    width: 100%;
    margin: 0 auto;
    overflow-x: auto; /* Enables horizontal scroll on small screens if needed */
}

.sched-head {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    text-transform: uppercase;
    text-align: center;
    padding: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
    font-weight: bold;
}

.opponent-logo img {
    max-width: 40px;
    height: auto;
    display: block;
}

.buy-tickets a {
    display: inline-block;
    padding: 8px 16px;
    background-color: green;
    color: gold;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.buy-tickets img {
    display: none
}

.buy-tickets a:hover {
    background-color: gold;
    color: green;
}

.won {
    color: green;
    font-weight: bold;
}

.lost {
    color: red;
    font-weight: bold;
}

/* -------------------- Main Store --------------------- */        
.store-holder {
    display: flex;
    flex-wrap: wrap;

    justify-content: center;
    gap: 2rem;
}

.store-holder__clickable-div {
    border: solid 2px var(--color-primary);
    display: flex;
    color: var(--color-primary);
    
}

.store-holder__clickable-div:hover {
    border: solid 2px var(--color-quaternary);
    
}

.store-holder__indv-box {
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
    padding: var(--padding-s);

    max-width: 180px;
    height: auto;

    text-align: center;
}

.store-holder__indv-box--img img{
    width: 100%;
    height: auto;
}

.store-product-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    padding: 15px;
    max-width: calc(100% - 20px); /* Adjust for 10px padding on each side of parent */
    margin: 0 auto;
}

.store-product-container {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.store-product-container:hover {
    transform: translateY(-5px);
}

.store-product-container__image {
    width: 100%;
    aspect-ratio: 1 / 1;
}

.store-product-container__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-product-container__content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.store-product-container__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.store-product-container__company {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/*Pagination*/
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
  }
  .pagination li {
    margin: 0 5px;
  }
  .pagination a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #007bff;
  }
  .pagination a:hover {
    background-color: #f0f0f0;
  }
  .pagination .active a {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
  }


/* -------------------- Ticket Individual --------------------- */
.main-content__ticket-deal {
	background-color: var(--color-primary);
    padding: var(--padding-s);
    color: var(--color-secondary);
}

.main-content__ticket-image img {
	width: 100%;
	height: 100%;

	object-fit: cover;
}

.main-content__ticket-info {
	display: flex;
	align-items: center;
    justify-content: space-between;

    border-bottom: var(--color-primary) dashed 4px;
    padding-bottom: 30px;
    
}

.main-content__ticket-info-full-text {
	display: flex;
    flex-direction: column;
    font-size: var(--font-size-s);
}

.main-content__ticket-info-full-text__teamvs {
	font-weight: bold;
    color: var(--color-primary);
}

.main-content__ticket-info-full-text__stadium {
	font-style: italic;
}

.main-content__ticket-info-full-text__date {
	color: var(--color-primary);
}

.main-content__ticket-info-buy {
    font-size: var(--font-size-s);
    font-weight: bold;
}

.main-content__ticket-info-buy a {
	display: inline-block;
    padding: var(--padding-s);
    background-color: green;
    color: gold;
    text-decoration: none;
    border-radius: 4px;
    font-size: var(--font-size-s);
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.main-content__ticket-info-buy a:hover {
	background-color: gold;
	color: green;
}

/*AFF*/
.aff-disc {
	font-size: 12px;
	background-color: #e8e8e8;
	margin: 10px 0;
	padding: 5px;
}

/* -------------------- Main Content Sidebar --------------------- */
.main-content__sidebar {
    background-color: #69360a;

    display: flex;
    flex-direction: column;

    font-size: var(--font-size-xs);  
}

/* -------------------- Main Content Sidebar Box --------------------- */
.main-content__sidebar-box {

    display: flex;
    flex-direction: column;

    justify-content: space-evenly;
}

/* -------------------- Main Content Sidebar Box Ad --------------------- */
.main-content__sidebar-box__ad img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* -------------------- Main Content Sidebar Box Header --------------------- */
.main-content__sidebar-box__header {
    background-color: var(--color-primary);

    color: var(--color-secondary);

    font-size: var(--font-size-xs);

    text-transform: uppercase;

    display: flex;
    justify-content: center;
}

/* -------------------- Main Content Sidebar Schedule Holder --------------------- */
.main-content__sidebar-box__side-schedule-holder {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    padding: 2rem
    
}

/* -------------------- Clickable Div Sidebar Schedule --------------------- */
.main-content__sidebar-box__side-schedule-holder a {
    background-color: var(--color-primary);
    color: var(--color-secondary);

}

.main-content__sidebar-box__side-schedule-holder a:hover {
    background-color: #392d2d;
}

/* -------------------- Main Content Sidebar Box Side Schedule Holder Box --------------------- */
.main-content__sidebar-box__side-schedule-holder__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

/* -------------------- Main Content Sidebar Box Side Schedule Holder Box Date --------------------- */
.main-content__sidebar-box__side-schedule-holder__box-date {
    font-weight: 600;
}

/* -------------------- Main Content Sidebar Box Side Schedule Holder Box Team Vs --------------------- */
.main-content__sidebar-box__side-schedule-holder__teamvs {
    font-weight: 900;
}
/* -------------------- Main Content Sidebar Box Side Schedule Holder Box Time --------------------- */
.main-content__sidebar-box__side-schedule-holder__time {
    font-weight: 600;
}

/* -------------------- Season Tickets --------------------- */
.season-tickets {
    border: dashed 2px var(--color-secondary);
}

/* -------------------- Main Content Sidebar Box Jumpmenu --------------------- */
.main-content__sidebar-box__jumpmenu {
    padding: 1.5rem;
}

select {
      padding: 8px;
      font-size: 1.5rem;
      border-radius: 6px;
      border: 1px solid #ccc;
      width: 100%;
    }

#footer {
    grid-column: center-start / center-end;

    background-color: var(--color-secondary);
}

/* -------------------- Footer --------------------- */
#footer {
    display: flex;
    padding: var(--padding-s);

    

    justify-content: space-between;
    align-items: center;
}

/* Main Footer Nav Links */
.main-footer__nav--links {
    display: flex;
    gap: calc(0rem + 1vw);
    align-items: center;

    font-size: var(--font-size-xs);
}

/* Main Footer Nav Links Link */
.main-footer__nav--links a {
    font-size: 1rem;
    padding: 1.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.25s ease-in-out;
}

.main-footer__nav--links a:hover {
     background-color: var(--color-primary);
    color: var(--color-secondary)
}









/* ********************************* Media Queries****************************************** */
@media screen and (max-width: 800px) {

    /* *__**_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* Hamburger Menu */
    .hamburger {
        height: 5rem;
        width: 5rem;

        position: fixed;
        top: 2.5rem;
        right: 5rem;

        padding: 0.6rem;
        cursor: pointer;
    }

    /* *__**_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* Hamburger Menu Lines */
    .hamburger-line {
        position: absolute;
        background-color: var(--color-primary);
        height: 0.3rem;
        width: 3rem;
		box-shadow: 0 0 2px 2px var(--color-secondary);
    }

    .hamburger-line:first-child {
        width: 5rem;
        top: 0;
        left: 0;
        transition: all 0.35s ease-in-out;
    }

    .hamburger-line:nth-child(2) {
        top: 1rem;
        width: 5rem;
        left: 0;
        transition: all 0.2s ease-in-out;
    }

    .hamburger-line:last-child {
        width: 5rem;
        top: 2rem;
        left: 0;
        transition: all 0.35s ease-in-out;
    }


    /* *__**_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* Toggling Nav Bar */
    .line-1 {
        transform: rotate(45deg) translate(0.3rem, 1.4rem);
        width: 3.5rem !important;
    }

    .line-2 {
        visibility: hidden;
    }

    .line-3 {
        transform: rotate(-45deg) translate(0, -1.15rem);
        width: 3.5rem !important; 
    }

    .block.visible {
        transform: translate(0);
    }


    /* *__**_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_* Nav Links */
    .main-header__nav,
    .main-header__nav--links {
        flex-direction: column;
        justify-content: space-evenly;
        align-items: flex-start;
        gap: 3rem;
    }

    .main-header__nav {
        position: fixed;
        top: 0;
        right: 0;
        padding: 4rem;
        height: 100vh;
        width: 300px;
        background-color: var(--color-secondary);
        transform: translateX(100rem);
        transition: all 0.55s cubic-bezier(1, 0, 0, 1);
    }
	
  .main-header__nav.block.visible {
    transform: translateX(0);
	}
  
  .submenu {
      position: static;
      box-shadow: none;
      width: 100%;
      margin-top: 0;
    }

.submenu {
    position: static;
    box-shadow: none;
    width: 100%;
  }

    /* MAIN TITLE */
    .main-title {
        color: var(--color-secondary);
        grid-column: center-start / center-end;
        padding: var(--padding-s);
        text-transform: uppercase;
        border-left: dashed var(--color-secondary) 4px;
        border-right: dashed var(--color-secondary) 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: var(--font-size-m);
    }

    .main-content__text-area {

        display: flex;
        flex-direction: column;
        gap: 1rem;

        font-size: var(--font-size-s);
    }
	
	/* -------------------- Store Grid --------------------- */
    .store-product-page {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* Smaller min width to fit 4 columns */
        gap: 8px; /* Reduced gap */
        padding: 10px; /* Reduced padding */
        max-width: calc(100% - 20px); /* Account for parent padding */
    }

    /* -------------------- Main Content Sidebar --------------------- */
    .main-content__sidebar {
        flex-basis: 100vh;
        background-color: var(--color-secondary);
        font-size: var(--font-size-s);
    }

    /* -------------------- Main Content Sidebar Box Header --------------------- */
    .main-content__sidebar-box__header {
        background-color: var(--color-primary);

        color: var(--color-secondary);

        font-size: var(--font-size-s);

        text-transform: uppercase;

        display: flex;
        justify-content: center;
    }

    /* -------------------- Footer --------------------- */
    #footer {
        display: flex;
        padding: var(--padding-s);

        

        justify-content: space-between;
        align-items: flex-start;
    }

    /* Main Footer Nav Links */
    .main-footer__nav--links {
        display: flex;
        flex-direction: column;
        gap: calc(1.2rem + 1vw);
        align-items: center;

        font-size: var(--font-size-s);
    }
}

/*600px*/
@media screen and (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    th, td {
    padding: 4px;
    text-align: center;
    border-bottom: 1px solid #ddd;
	}

    thead {
        display: none; /* Hide header on mobile */
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    td {
        position: relative;
        /* padding-left: 50%; */
        border: none;
    }

    td::before {
        content: attr(data-label);
        position: absolute;
        /* left: 10px;
        width: 45%; */
        font-weight: bold;
    }

    .opponent-logo img {
        max-width: 30px;
        margin: auto;
    }

    .buy-tickets a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}


/*601px*/
@media screen and (min-width: 601px) {
    td, th {
        text-align: center;
    }

    .opponent-logo, .buy-tickets {
        text-align: center;
    }
}

/* -------------------- Store Grid --------------------- */
@media (max-width: 480px) {
    .store-product-page {
        grid-template-columns: 1fr; /* Single column for small screens */
        gap: 10px;
        padding: 10px;
    }
}