/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
  text-decoration: none;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

@font-face {
  font-family: Aero;
  src: url(/fonts/Aero.ttf);
  font-display: swap;
}

@font-face {
  font-family: Gilroy-ExtraBold;
  src: url(/fonts/Gilroy-ExtraBold.otf);
  font-display: swap;
}

@font-face {
  font-family: Gilroy-Light;
  src: url(/fonts/Gilroy-Light.otf);
  font-display: swap;
}

body {
	line-height: 1;
}

header {
  align-content: start;
}

ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
  border-collapse: separate;
	border-spacing: 0;
  overflow: hidden;
  border-radius: 15px;
}

body {
    font-family: "Sansation", sans-serif;
    background-color: #27252D;
    overflow-x: hidden;
    list-style: none;
  	margin: 0;
}

.nav-home-link {
  position: relative;
  width: 300px;
  height: 200px;
  display: flex;
  margin: auto;
}

section {
  margin-bottom: 2em;
}

h1 {
  margin: auto;
  color: white;
  text-decoration: none;
  font-size: 3em;
  overflow: visible;
  font-family: Aero;
  text-align: center;
  position: relative;
  z-index: 1;
}

h2 {
  max-width: 80%;
  margin-left: 5%;
  margin-bottom: 0.5em;
  color: #CC0033;
  font-size: 2.5em;
  font-family: Aero;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  word-break: normal;
  overflow-wrap: normal;
}

.inner-h2 {
  margin-left: 0;
}

h3 {
  font-family: Gilroy-ExtraBold;
  padding: 1em 1em 0.2em 1em;
  font-size: 1.5em;
}

h4 {
  font-family: Gilroy-Light;
  padding: 0 0 1em 1.5em;
  font-size: 1em;
}

h5 {
  width: 40%;
}

p {
  font-family: Gilroy-Light;
}

.circle-div {
  width: 8em;
  height: 8em;
  background-color: #CC0033;
  border-radius: 50%;
  align-items: center;
  z-index: -1;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.container {
  background-color: white;
  border-radius: 15px;
  height: 100%;
  margin: auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* RECENT RESULTS //////////////////////////////////////////////////////////////////////////////////////////////////*/

.live-badge {
  display: block;
  background-color: #d32f2f;
  color: white;
  font-weight: bold;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  animation: pulse 1.5s infinite;
  margin-top: 10px;
}

.score-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}


.swipe-wrapper {
  width: 100%;
  overflow-x: hidden; 
  overflow-y: hidden;
}

.swipe-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding: 0 5%;
  scrollbar-width: none;
}

.swipe-container::-webkit-scrollbar {
  display: none;
}

.swipe-item {
  flex-shrink: 0;
  width: 90%;
  scroll-snap-align: center;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.carousel-dots {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #333;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #ccc;
}


@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.win-score {
  color: #CC0033;
  font-weight: bold;
}

.team-logo-small {
  width: 2.5em;
  height: auto;
}

.match-results {
  display: grid;
  justify-content: center;
  text-align: center;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.match-row {
  font-size: 2em;
  text-align: center;
  margin-bottom: 0.5em;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  width: 100%;
}

.team-result-link {
  height: 100%;
}

small {
  color: #3A3A3A;
  font-size: 0.5em;
  display: block;
  font-family: Gilroy-Light;
  width: 100%;
}

.score {
  text-align: center;
  font-size: 0.8em;
  bottom: 20px;
  font-family: Aero;
  color: #BABABA;
  padding: 0 5%;
  width: 4em;
}

img {
  width: 10%;
  height: auto;
}

/*COMPETITION////*/

.competition-grid {
  display: flex;
  max-width: 90%;
  margin: auto auto;
  gap: 1em;
  justify-content: center;
}

.competition-logo {
  display: block;
  width: 4em;
  height: auto;
  padding: 0.3em;
}

/* TEAM GRID //////////////////////////////////////////////////////////////////////////////////////////////////*/

.team-grid {
  display: flex;
  gap: 1em;
  justify-content: flex-start;
  width: 90%;
  padding: 0 5% 2% 5%;
  overflow-x: auto;
}

.team-link {
  color: white;
}

.team-0, .team-1, .team-2 {
  background-color: white;
  border-radius: 20px;
}

.team:hover {
  -webkit-transform: scale(1.05); 
  transform: scale(1.05);
  -webkit-transition: -webkit-transform 0.3s ease; 
  transition: transform 0.3s ease;
}

.teams-logo {
  aspect-ratio: 1 / 1;
  width: 8em;
  object-fit: contain;
  background-color: #fff;
  border-radius: 20px;
  padding: 1em;
  display: block;
  }

  i {
    font-size: 0.9em;
  }

  .league-heading {
  width: 100%;
  display: grid;
}

/* COUNTDOWN ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*/

.countdown {
  position: relative;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.countdown-timer {
  position: relative;
  padding-top: 2vw;
  text-align: center;
  color: #CC0033;
  margin: auto auto 2vw auto;
}

#countdown-timer-days,#countdown-timer-hours,#countdown-timer-minutes,#countdown-timer-seconds {
font-size: 6vw;
padding-bottom: 2vw;
margin-bottom: 4vw;
}


.countdown h2 {
  font-size: 4vw;
  margin: 0;
  text-align: center;
  line-height: 0.4;
 }

.countdown-subtitle {
  font-size: 2.5vw;
  line-height: 0;
  font-weight: lighter;
  margin-top: 2vw;
  margin-bottom: 6vw;
}

ul {
  position: relative;
  display:inline-block;
  margin: 0 auto;
  padding: 0;    
}

li {
  display: inline-block;
  list-style-type: none;
  margin: 0;
  text-align: center;
}

/*UEC///*/

.sub-container {
  margin: auto
}

.bracket-container {
  width: 90%;
  margin: auto;
  background-color: white;
  border-radius: 15px;
  height: 100%;
  margin: auto;
  padding-bottom: 1em;
}


/*TABLES///*/

.ladder-header {
  background-color: white;
  border-radius: 15px;
  width: 90%;
  margin: 1em auto;
}

.season-select {
  padding: 1em;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

td, th {
  border-bottom: 3px solid #CC0033;  /* Keep horizontal dividers */
  overflow-wrap: break-word;
  padding: 6px 4px;
  vertical-align: middle;
  height: 40px;
  line-height: 1.2;
  font-family: Gilroy-Extrabold;
  background-color: white;
  color: black;
}

.ladder-rank, 
.ladder-games, 
.ladder-wins, 
.ladder-draws, 
.ladder-losses, 
.ladder-goals-for, 
.ladder-points,
.ladder-points-for {
  text-align: center;
}

.ladder-team {
  text-align: left;
}

.team-name {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  min-height: 24px;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  hyphens: auto;
}

.team-name span {
  display: inline-block;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: black;
  font-family: gilroy-light;
}

.ladder-table {
  margin: auto auto 2em auto;
  table-layout: auto;
  font-size: 0.7em;
  width: 90%;
}

.ladder-team img {
  width: 45px;
  vertical-align: middle;
  margin-right: 4px;
}
 
.ladder-team span {
  font-size: 1em;
}

tr {
  height: 70px;
  border: none;
}

th {
  background-color: white;
  color: black;
  padding: 8px 4px;
  font-weight: bold;
  text-align: center;
}

table tr:last-child td {
  border-bottom: none;
}

.ladder-table tr:first-child .ladder-rank {
  background: none !important;
  color: inherit !important;
}

.ladder-rank-category {
  padding: 0.1em;
}

/* Rank colours */
.rank-green .ladder-rank-category { background-color: #19d300; }
.rank-blue .ladder-rank-category { background-color: #0055ff; }
.rank-red .ladder-rank-category { background-color: #ff0000; }

/* TOURNAMENT //////////////////////////////////////////////////////////////////////////////////////////////////*/
.notice-text {
  color: #000000;
  text-align: center;
  font-size: 24px;
}

iframe {
  margin: auto;
  display: block;
  width: 80%;
  margin-top: 4vw;
}

.uec-img-temp {
  width: 80%;
  margin: auto;
  display: block;
}

/* TEAM PAGE //////////////////////////////////////////////////////////////////////////////////////////////////*/

.team-header {
  flex-wrap: wrap;
  background-color: white;
  border-radius: 15px;
  margin: 2em auto;
  width: 100%;
  text-align: center;
}

.team-main {
  width: 90%;
  margin: auto;
}

.team-bio {
  display: block;
  color: #000000;
  text-align: center;
  font-family: Gilroy-Light;
  padding-bottom: 0.5em;
}

.team-content {
  display: grid;
  grid-template-columns: 1fr;
}

.teams-container {
  background-color: white;
  border-radius: 15px;
  height: 100%;
  margin: auto auto 1em auto;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

.team-matches {
  margin: auto;
  text-align: center;
}

.match-list {
  list-style: none;
  width: 100%;
  
}

.match-info {
  display: flex;
  justify-content: space-between;
  color: #000000;
}

.gameweek-number {
  padding: 0.5em 1em 0.5em 1em;
    margin: auto;

}

.match-number {
  padding: 0.5em 1em 0.5em 1em;
  margin: auto;
}

.teams-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1em;
  justify-content: space-evenly;
  width: 100%;
  height: auto;
  padding: 0.5em 0;
}

.team-info-home, .team-info-away {
  width: 33%;
}

.score-2 {
  text-align: center;
  flex: 1;
  font-size: 1.25em;
  font-family: Aero;
  color: #BABABA;
  padding: 0 5%;
  width: 100%;
}

.team-logo {
  width: 4.5em;
  height: auto;
  object-fit: contain;
  margin: auto;
  align-self: center;
  background-color: transparent;
}

/* FOOTER //////////////////////////////////////////////////////////////////////////////////////////////////*/

footer {
  color: white;
  text-align: center;
  font-size: 0.5em;
  width: 80%;
  margin: 5em auto 1em auto;
  display: block;
}

/* MEDIA QUERIES //////////////////////////////////////////////////////////////////////////////////////////////////////////*/

@media (min-width: 768px) {
  .team-logo {
    width: 20%;       /* tablet and up */
  }

  .competition-logo {
    width: 8em;
    padding: 0.3em;
  }

  .score-2 {
  font-size: 2.5em;
}

}

@media (min-width: 1200px) {
  .team-logo {
    width: 15%;       /* desktop */
  }

  .competition-logo {
    width: 12em;
    padding: 0.3em;
  }

  .score-2 {
  font-size: 3em;
}

}