

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* candidates for a title font */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Forum&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Allan&display=swap'); 

/* simple fonts - khula is big header*/
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Khula:wght@300;400;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');



/* color variables */
:root {
  --accent: #F8FFE5;
  --light-grey: rgb(156, 156, 156);  
  --medium-grey: rgb(80, 78, 78);
  ---green: #2EC4B6;
  ---green-dark: #1e8076;
  ---pantone: #E71D36;
  --tomato: #f06543ff;
  --antiflash-white: #e8e9ebff;
  --alabaster: #e0dfd5ff;
  --onyx: #313638ff;

  -eerie-black: #222222ff;
--white: #ffffffff;
--lapis-lazuli: #1c5d99ff;
--moonstone: #639fabff;
---moonstone-light: rgb(129, 204, 219);

  ---menu-background: #313638ff;
  ---menu-title: rgb(187, 187, 187);
  ---menu-links: rgb(194, 194, 194);
  ---menu-links-hover: #ffffff;
  ---standard-h1: #3f3f3f;
  ---standard-h2: #3f3f3f;
  ---standard-h3: #3f3f3f;
  ---standard-h4: #3f3f3f;
  ---colored-background: rgb(204, 228, 233);
  ---league-table-header: rgb(82, 118, 126);

  ---competition-meta-background: #639fabff;
  ---competition-meta-background-hover: rgb(129, 204, 219);;
  ---competition-meta-color: rgb(235, 235, 235);
  ---competition-meta-color-hover: rgb(245, 245, 245);

  ---dark-button-background: #313638ff;
  
  ---competition-calendar-color: #313638ff;
  ---competition-calendar-background: #639fabff;

  ---competition-calendar-header-background: #313638ff;
  ---competition-calendar-header-color: rgb(245, 245, 245);

}

h1{
  font-family: 'Raleway', sans-serif;
  font-weight: 200;
  color: var(---standard-h1);
  font-size: 60px;
  margin-bottom: 20px;
}

h3 {
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.6px;
  color: var(---standard-h3);
}
h4{
  font-family: 'Lato', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(---standard-h4);

}

p{
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 0.5; 
}

a{
  
  color: rgb(75, 75, 75);
}

embed{
  height: 900px;
}
@media screen and (max-width:993px){
  embed{
    height: 600px;
  }
}
@media screen and (max-width:993px){
  embed{
    height: 300px;
  }
}

html, body {
  margin: 0;
  height: 100%;
  
}

* {
  font-family: "Lato", sans-serif;
  box-sizing: border-box;
}

.page-content{
  width: 100vw;
  margin:0 auto;
  padding-bottom: 2em;
  min-height: 60vh;
}
.page-content-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0em 2em;
}

.nav-container{
  display: block;
  background-color: var(---menu-background);
  height: 100px;
  width: 100vw;
  margin:0;
  padding:0;
}
.top-nav {
 
  display: flex;
  max-width: 1300px;
  margin: 0 auto;
  padding: 1em 2em;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  
}
.top-nav a {
  text-decoration: none;
}
.nav-title{
    /* font-family: 'Fredoka One', cursive; */
    margin: 0px;
    /* font-family: 'Bebas Neue', cursive; */
    /* font-family: 'Forum', san-serif; */
    
    font-family: 'Allan', san-serif;
    font-size: 28px;
    margin: 0px;
    line-height: 1;
   
    color: var(---menu-title);   
}
.nav-title span{
  color: var(---green-dark);
  font-family: 'Allan', san-serif;
  font-size: 42px;
  margin: 0px;
  line-height: 1;
}


body{
  ---menu-links: rgb(194, 194, 194);
  ---menu-links-hover: #ffffff;
  --league-table-header: rgb(82, 118, 126);
  }
  /* Menu */
  .ozmenu ul.ozmenu-nav {
      display: flex;
      align-items: flex-start;
      justify-content:flex-end;
      list-style: none;
      font-family: 'Roboto', sans-serif;
      padding-left: 0px;
  }
  .ozmenu ul.ozmenu-nav>li {
      position: relative;
      float: left;
      width: auto;
  }
  .ozmenu ul.ozmenu-nav>li a:hover{
      color: rgb(221, 221, 221) !important;
  }
  
  .ozmenu ul li .dropdown{
      display:none;
      position: absolute;
      min-width: 200px;
  }
  
  .ozmenu ul.ozmenu-nav>li .nav-dropdown{
      display:inline-block;
      padding:8px 0px 8px 20px;
      vertical-align: middle;
  }
  
  .dropdown-arrow-container{
      align-self: center;
      justify-self: end;
    }
    
    .dropdown-arrow{
      display: inline-block;
      transition: all 0.4s ease; 
      padding-right: 20px;
    }
    .dropdown-arrow svg {
      margin: 0 0.2em;
      fill: var(---competition-meta-color);
      height: .8rem;
      width: .8rem;  
      vertical-align: middle;
    }
    .ozmenu ul.ozmenu-nav .dropdownitem:hover .dropdown-arrow{
      transform: rotate(-180deg) translateY(-25%) translateX(50%);
    }
  
  
  
  @media screen and (min-width: 1281px) {
      .ozmenu ul.ozmenu-nav>li a{
          /* color: #333 !important; */
          color: var(---menu-links);
          font-size: 18px;
          font-weight: 500;
          text-decoration: none;
          padding: 0.4em 1em;
          display: inline-block;
  
          height: 100%;
          position: relative;
      }
  
      .ozmenu ul li.dropdownitem:hover .dropdown{
          display: block;
          position: absolute;
          margin: 0;
          padding: 5px 0px;
          min-width: 220px;
          padding-top: 0px !important;
      }
      .ozmenu ul li.dropdownitem:hover > a{
          border-radius: 8px 8px 0px 0px !important;
      }
      .ozmenu ul li.dropdownitem ul li.dropdownitem:hover > a{
          border-radius: 8px !important;
      }
      .ozmenu ul li.dropdownitem:hover .dropdown .dropdown{
          display: none;
      }
      .ozmenu ul li.dropdownitem .dropdown li.dropdownitem:hover .dropdown {
          padding-left: 16px;
          position: absolute;
          margin: 0;
          padding-top: 0px !important;
          min-width: 200px;
          display: inline-table;
          top: 0 !important;
          left: 100% !important;
          right: auto !important;
      }
    
      .ozmenu ul li.dropdownitem .dropdown .dropdown .dropdown {
          display: none !important;
          visibility: hidden;
      }
      .ozmenu ul li.dropdownitem .dropdown ul {
          
          background-color: #383838;
          float: left;
          padding: 10px;
          border-radius: 0px 8px 8px 8px;
          list-style: none;
        
      }
      
      .ozmenu ul li.dropdownitem ul li a{
          color: var(---menu-links);
          font-weight: 400;
          text-decoration: none;
          padding: 5px 0px;
          float: left;
          width: 100%;
          border-radius: 0px;
          font-size: 20px;
      }
      .ozmenu ul.ozmenu-nav .dropdown ul li a:hover {
          
          color: var(--league-table-header)!important;
          padding-left: 7px;
          transition: all 0.15s ease-out;
      }
      /* Animations */
      .dropdownitem .dropdown{
          animation: translateDown 200ms 0ms ease-in-out forwards;
          transform-origin: top center;
      }
      .dropdownitem .dropdownitem .dropdown {
          transform-origin: top center !important;
          animation: translateX 200ms 0ms ease-in-out forwards !important;
      }
      @keyframes translateDown {
          0% {
              transform: scaleY(0)
          }
          80% {
              transform: scaleY(1.1)
          }
          100% {
              transform: scaleY(1)
          }
      }
      @keyframes translateX {
          0% {
              opacity: 0;
              transform: translateX(-60px);
          }
          80% {
              transform: translateX(-5px);
          }
          100% {
              opacity: 1;
              transform: translateX(0px);
          }
      }
    
  }
  .ozmenu ul.ozmenu-nav .dropdown ul li {
      float: left;
      width: 100%;
  }
  .ozmenu ul.ozmenu-nav .dropdown ul li a{
      padding: 8px 0px;
  }
  .ozmenu ul li.dropdownitem ul li a,
  .ozmenu ul li.dropdownitem ul li .dropdown ul li a {
      border-bottom: 1px dotted #eee;
  }
  .ozmenu ul li.dropdownitem ul li:last-child a,
  .ozmenu ul li.dropdownitem ul li .dropdown ul li:last-child a {
      border-bottom: 0px !important;
  }
  /* Dropdown + Dropdown */
  .ozmenu ul li.dropdownitem ul li a:before,
  .ozmenu ul li.dropdownitem ul li .nav-dropdown ul li a:after{
      display: none !important;
  }
  .ozmenu ul li.dropdownitem ul li .nav-dropdown ul li:last-child a{
      border-bottom: 0px !important;
  }
  .ozmenu ul li.dropdownitem .dropdown ul li.dropdownitem {
      display: inline-block;
      height: 100%;
      position: relative;
      width: 100%;
  }
  /* Responsive Menu */
  .menu-close,
  .menu-open {
      display: none;
  }
  @media screen and (max-width: 1281px) {
    
    .ozmenu ul.ozmenu-nav .dropdown ul li{
      list-style: none;
    }
      .menu-open{
          cursor: pointer;
          color:#333;
          text-decoration: none;
          font-size: 26px;
      }
      .menu-open {
          display: block;
      }
     
      .ozmenu {
          position: relative;
          display: none;
      }
      .ozmenu.active {
          display: block;
      }
      .menu-open {
          margin-top: 30px;
          display: block !important;
          float: right;
      }
      .mobile-menu-active .menu-close {
          display: block !important;
          z-index: 15;
          position: absolute;
          right: 13px;
          left: unset !important;
          top: 0px;
          float: left;
      }
      .ozmenu-nav {
          display: none !important;
      }
      .ozmenu.active .ozmenu-nav {
          display: block !important;
      }
      .ozmenu.active{
          position: fixed;
          left: 0px;
          top: 0px;
          margin-top: 0px !important;
          width: 40%;
          height: 100vh;
          display: flex;
          z-index: 14;
      }
      .ozmenu.active .ozmenu-nav{
          background-color: #fff;
          float: left;
          margin-top: 0px;
          padding: 40px 20px;
          width: 100%;
          height: 100vh;
          overflow: scroll;
          transform-origin: top center !important;
      }
      .ozmenu ul.ozmenu-nav>li{
          width: 100%;
          border-bottom: 1px solid #ddd;
      }
      .ozmenu ul.ozmenu-nav>li .nav-dropdown{
          padding:8px 0px 8px 0px;
          width: auto;
          border-bottom: none;
      }
      .dropdown-arrow{
          display: none;
          float:right;
      }
      .dropdown-arrow svg{
          fill: #0e0e0e;
      }
      .ozmenu ul li .dropdown{
          display:block;
          position: relative;
  
      }
      .ozmenu.active .ozmenu-nav, .menu-close {
          animation: translateX 400ms 0ms ease-in-out forwards !important;
      }
      @keyframes translateX {
          0% {
              opacity: 0;
              transform: translateX(-160px);
          }
          80% {
              transform: translateX(-5px);
          }
          100% {
              opacity: 1;
              transform: translateX(0px);
          }
      }
      .ozmenu ul.ozmenu-nav>li {
          float: left;
          width: 100%;
      }
      .ozmenu ul.ozmenu-nav>li a{
          float: left;
          width: 100%;
          text-decoration: none;
          color: #333;
          padding: 10px 0px;
          border-bottom: 1px solid #ddd;
      }
      .ozmenu ul.ozmenu-nav>li a:hover {
          float: left;
          width: 100%;
          transition: all 0.25s ease-out;
          text-decoration: none;
          padding: 10px 0px;
      }
    
      .ozmenu ul.ozmenu-nav>li:last-child a{
          border-bottom: 0px solid #ddd;
      }
      .ozmenu.active ul li .nav-dropdown.opened + .dropdown ul {
          list-style: none;
          float: left;
          margin-left: 0px;
          padding-left: 7px;
      }
      .ozmenu.active ul li .nav-dropdown.opened + .dropdown ul .dropdown ul {
          padding-left: 15px;
      }
      .ozmenu.active ul li .nav-dropdown.opened + .dropdown{
          display: block;
          position: relative;
          margin: 0;
          padding: 5px 0px;
          min-width: unset;
          padding-top: 0px !important;
          float: left;
      }
      .ozmenu.active ul li.dropdownitem:hover + .dropdown + .dropdown{
          display: none;
      }
      #menu-overlay {
          background-color: rgba(0,0,0,.3);
          float: left;
          display: none;
          width: 100%;
          height: 100vh;
          z-index: 13;
          position: fixed;
          top: 0;
          bottom: 0;
          left: 0;
          right: 0;
      }
      #menu-overlay.show {
          display: block !important;
      }
     
      .menu-button,
      .menu-button::before,
      .menu-button::after {
        display: block;
        background-color: rgb(243, 243, 243);
        position: absolute;
        height: 4px;
        width: 30px;
        transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
        border-radius: 2px;
      }
      
      .menu-button::before {
        content: '';
        margin-top: -8px;
      }
      .menu-button::after {
        content: '';
        margin-top: 8px;
      }
    
      .menu-button-container {
          display:flex; 
          flex-direction: row;
          align-items: center;
          height: 100%;
          width: 30px;
          height: 30px;
          cursor: pointer;      
        }
  
  /* rotate button */
  .menu-button-container.active .menu-button::before {
      margin-top: 0px;
      transform: rotate(405deg);
    }
    .menu-button-container.active .menu-button {
      background: rgba(192, 192, 192, 0);
    }
    
    .menu-button-container.active .menu-button::after {
      margin-top: 0px;
      transform: rotate(-405deg);
    }
  
  }
  @media screen and (max-width: 500px) {
      .ozmenu.active {
          width: 70%;
      }
  }
  @media screen and (max-width: 400px) {
      .ozmenu.active{
          width: 80%;
      }
  }


  /* ### Carousel Styling ###  */

  /* 16:9 aspect ratio - needs to pair down according to media queries or find another solution? */
  .carousel {
    width:100%; /* Container max width is 1200px */
    height: 678px;
    position: relative;
    margin: 50px auto;
  }
  
  .carousel > ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: 200ms opacity ease-in-out;
    transition-delay: 200ms;
  }
  
  .slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  
  .slide[data-active] {
    opacity: 1;
    z-index: 1;
    transition-delay: 0ms;
  }
  
  .carousel-button {
    position: absolute;
    z-index: 2;
    background: none;
    border: none;
    font-size: 4rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .5);
    cursor: pointer;
    border-radius: .25rem;
    padding: 0 .5rem;
    background-color: rgba(0, 0, 0, .1);
  }
  
  .carousel-button:hover,
  .carousel-button:focus {
    color: white;
    background-color: rgba(0, 0, 0, .2);
  }
  
  .carousel-button:focus {
    outline: 1px solid black;
  }
  
  .carousel-button.prev {
    left: 1rem;
  }
  
  .carousel-button.next {
    right: 1rem;
  }

/* ### Spinner ### */
.lds-spinner {
  margin: 0 auto;
  color: var(---green-dark);
  display: block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-spinner div {
  transform-origin: 40px 40px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 37px;
  width: 6px;
  height: 18px;
  border-radius: 20%;
  background: var(---green-dark);
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}


.download-button{
  background-color: var(--onyx);
  color:white;
  border-radius: 5px;
  border: 1px solid #c2c2c2;
  font-size: 16px;
  padding: 20px;
  text-transform: uppercase;
}
.download-button img{
  height: 16px;
  margin: 0px 6px 0px 6px;
}
.download-button:hover{
  background-color: rgb(151, 151, 151);
  color:white;
}
/* ### Table Tabs ### */

/* Style the tab */

#league-tabs{
  margin: 0 auto;
  max-width: 1000px;
}
/* Put variations of the tabs here - maybe put the past results tabs as a grid? */
.tab {
  max-width: 850px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--accent);
  font-weight: 600;
  /* border-radius: 0.4em 0.4em 0em 0em; */
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

/* Style the buttons that are used to open the tab content */
.tab span {
  background-color: rgb(129, 204, 219);;
  /* float: left; */
  border: none;
  /* border-right: 1px solid #ccc; */
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
  border-radius: 0.4em;
  font-size: 18px;
  color:rgb(241, 241, 241);
  margin-bottom: 0.5em;
}

/* .tab span:first-child{
  border-left: 1px solid #ccc;
} */

/* Change background color of buttons on hover */

.tab span:hover {
  background-color: #639fabff;
}

/* Create an active/current tablink class */
.tab span.active {
  background-color: #639fabff;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 6px 12px -2px, rgba(0, 0, 0, 0.3) 0px 3px 7px -3px;
  color: white;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 0.2em 2em;
  /* border: 1px solid #ccc; */
  border-top: none;
  border-radius: 0em 0em 0.4em 0.4em;
}
.tabcontent-active{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.tabcontent {
  animation: fadeEffect 1s; /* Fading effect takes 1 second */
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  from {opacity: 0;}
  to {opacity: 1;}
}



/* ### League Table CSS ### */

 .rwd-table {
	 margin-bottom: 0.4em;
	 min-width: 300px;
   -webkit-font-smoothing: antialiased;
	 text-rendering: optimizeLegibility;
	 color: #444; 
   border-collapse: collapse;
   background: #d4d4d4; 
   color: #2e2e2e;
    border-radius: 0.4em;
    overflow: hidden;
}
.rwd-table .table-title{
  margin:0;
}
 .rwd-table th:first-child, .rwd-table td:first-child {
	 text-align: left;
}
 .rwd-table th, .rwd-table td:nth-child(n+2) {
	 text-align: center;
}
 
.rwd-table tr{
  padding-left: 0.1em;  
  padding-right: 0.1em;  
}
@media (min-width: 480px) {
  .rwd-table th, .rwd-table td {
    padding: 0.6em 1.4em !important;
 }
}
.rwd-table tr td:first-child {  
  min-width: 300px;
}
.rwd-table tr{  
  border: none;
}
.rwd-table tbody tr:nth-child(odd) {  
  background-color: #b3b3b3;
}
.rwd-table tbody tr:nth-child(even) {  
  background-color: #d4d4d4; 
}


 .rwd-table th, .rwd-table td:before {
	 color: var(---league-table-header);
}
 
.league-notes{
  width: 100%;
  max-width: 825px;;
  min-height: 50px;
  /* border: 2px solid rgb(82, 82, 82); */
  border-radius: 5px;
  box-shadow: rgba(67, 71, 85, 0.47) 0px 0px 0.25em, rgba(90, 125, 188, 0.25) 0px 0.25em 1em;
  padding: 12px 15px 3px 15px;
  margin: 15px auto 15px auto;
  color: rgb(49, 49, 49);
  
}
.league-notes h5{
  font-size: 18px;
  margin-top: 5px;
  margin-bottom: 5px;
  color: rgb(92, 92, 92);
}
.league-notes p{
  font-size: 16px;;
}

/* ### League fixture Table CSS ### */
#league-fixtures-container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  
}
#fixtures-control{
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.text-align-center{
  text-align: center;
}
.league-fixture-table{
  
  margin-bottom: 0.4em;
  min-width: 300px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #444; 
  border-collapse: collapse;
  color: #2e2e2e;
   border-radius: 0.4em;
   overflow: hidden;
}
.league-fixture-table .table-title{
 margin:0;
}
.league-fixture-table th:first-child, .league-fixture-table td:first-child {
  text-align: left;
}
.league-fixture-table th, .league-fixture-table td:nth-child(n+2) {
  text-align: center;
}

.league-fixture-table tr{
 padding-left: 0.1em;  
 padding-right: 0.1em;  
}

@media (min-width: 480px) {
  .league-fixture-table th, .league-fixture-table td {
   padding: 0.6em 2.8em !important;
}
}

.league-fixture-table tr{  
 border: none;
 border-bottom: 1px solid rgb(170, 184, 190);
}

.league-fixture-table th, .league-fixture-table td:before {
  color: #639fabff;
}


#division-selector, #team-selector, #date-selector{
  font-size: 16px;
  padding: 0.3em;
  margin-right: 0.5em;
  font-weight: 600;
  color: rgb(83, 83, 83);
}

/* ### Past Results table ### */
.pr-table{
  margin-bottom: 0.4em;
  min-width: 300px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: #444; 
  border-collapse: collapse;
  color: #2e2e2e;
   border-radius: 0.4em;
   overflow: hidden;
}
.pr-table th{
 margin:0;
}
.pr-table th:first-child, .pr-table td:first-child {
  text-align: left;
}
.pr-table th, .pr-table td:nth-child(n+2) {
  text-align: center;
}

.pr-table tr{
 padding-left: 0.1em;  
 padding-right: 0.1em;  
}

@media (min-width: 480px) {
  .league-fixture-table th, .league-fixture-table td {
   padding: 0.6em 2.8em !important;
}
}

.league-fixture-table tr{  
 border: none;
 border-bottom: 1px solid rgb(170, 184, 190);
}

.league-fixture-table th, .league-fixture-table td:before {
  color: #639fabff;
}

.pr-table th, .pr-table td {
  padding: 0.7em 1.4em !important;
}


.pr-table tr{  
border: none;
border-bottom: 1px solid rgb(170, 184, 190);
}

.pr-table th, .pr-table td:before {
 color: #639fabff;
}


/* ### Contact Form ### */

.contact-form-container{
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
}
.contact-form-container form, .contact-form-text{
  width: 50%;
}
.contact-form-text{
  padding: 0em 1.4em;
}
.contact-form{
  padding: 1.2em 2em;
  border-radius: 0.4em;
  font-size: 18px;
  background: var(--moonstone);
}
.contact-form input, .contact-form textarea{
  font-size: 18px;;
  width: 100%;
  padding: 0.6em;
  border-radius: 0.4em;
  border: none;
  margin-bottom: 10px;
  margin-top:3px;
}

#name-error, #email-error, #phone-error, #message-error, #privacy-error{
  color: rgb(145, 3, 3);
  margin: 0px 0px 20px 0px;
  font-size: 16px;
  font-weight: 600;
}

.standard-button{
  font-size: 16px;
  font-weight: 600;
  background-color: var(---dark-button-background);
  color: white;
  padding: 0.5em 1.1em;
  outline: none;
  border: 1px solid grey;
  border-radius: 0.4em;
}
.standard-button:hover{
  filter: brightness(125%);
}

.privacy-container{
  margin-bottom: 0.3em;
  margin-top: 0.3em;
}
#privacy{
  width: 20px;
}
@media screen and (max-width: 768px){
  .contact-form-container{
  flex-direction: column-reverse;
  }
  .contact-form-container form, .contact-form-text{
    width: 100%;
  }
}

/* ### Fixtures CSS ### */
#competitor-container{
    border-radius: 0.4em 0.4em 0em 0em ;
}
.competition-meta{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background-color: var(---competition-meta-background);
  color: var(---competition-meta-color);
  padding: 0.3em 2em;
  border-radius: 0.4em 0.4em 0.4em 0.4em ;
  border-bottom: 1px solid rgb(228, 228, 228);
  cursor: pointer;
  transition: max-height 0.2s ease-out;
  align-items: center;
  /* margin-top: 1px; */
}
.competition-meta.active, .competition-meta:hover {
  background-color: var(---competition-meta-background-hover);
  color: var(---competition-meta-color-hover);
}
.competition-meta.active{
  border-radius: 0.4em 0.4em 0em 0em ;
}
.details-container{
  align-self: center;
  justify-self: end;
}

.details-arrow{
  display: inline-block;
  font-size: 28px;
  transition: all 0.4s ease;   
}
.details-arrow svg {
  margin: 0 0.2em;
  fill: var(---competition-meta-color);
  height: 1.3rem;
  width: 1.3rem;
  vertical-align: middle;
}
.active .details-arrow{
  transform: rotate(180deg) translateY(-25%);
}
.competition-meta h4, .competition-meta h3{
  color: var(---competition-meta-color);
}
.active h4, .active h3, .competition-meta:hover h4, .competition-meta:hover h3{
  color: var(---competition-meta-color-hover);
}
.competition-meta h4{
  justify-self: center;
}


.competitor-container{
  border-left: 1px solid rgb(201, 201, 201);
  border-right: 1px solid rgb(201, 201, 201);
  border-radius: 0em 0em 0.4em 0.4em ;
  /* padding: 0.5em 0.5em; */
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.8s ease-out;
}
.active + .competitor-container{
  border-bottom: 1px solid rgb(201, 201, 201);;
}
.round-information{
  padding: 0em 3em;
}


.teams-container{
  display: flex; 
  flex-direction: row;
  justify-content: space-evenly;
  flex-wrap: wrap;
}
.team-container{
  padding: 0.2em 1em;
  margin: 0.4em;
  min-width: 350px;
}
.team-container h3{
  font-size: 20px;
  margin: 0.6em 0;
}
.team-container p {
  font-size: 16px;
  margin: 0.4em 0;
}

/* CSS for Knockout Cup */
.draw-container{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.draw-container p {
  line-height: 1.1;
  margin:0.4em;
}

/* ### Main Fixture Page ### */
.fixture-links{
  margin: 2em 0em;
  width: 100%;
  padding: 1em;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  
}
.fixture-link-header{
  color: #2EC4B6;
}
.fixture-link-box{
  padding: 1.5em 1em;
  background-color: #727272;
  border-radius: 0.4em;
  color: white;
  margin: 0.4em 0.4em;
  max-width: 200px;
}
.fixture-links{
  text-align: center;
}
.fixture-links a{
  padding: 1.5em 1em;
  background-color: #727272;
  border-radius: 0.4em;
  color: white;
  margin: 0.4em 0.4em;
  max-width: 200px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 600;;
  color: white;
}
@media screen and (max-width: 963px){
  .fixture-links a{
    padding: 1.5em 0.6em;
    font-size: 18px;
  }
} 
.fixture-links a:hover{
  
  background-color: var(--onyx);
}
.competition-calendar{
  margin: 0 auto;
}
.competition-calendar td, th{ 
  padding: 0.5em;
  font-size: 20px;
}

@media screen and (max-width: 962px){
.competition-calendar td, th{
  font-size: 18px;
  padding: 0.3em 0.5em;
}
}
@media screen and (max-width: 769px){
.competition-calendar td, th{
  font-size: 16px;
  padding: 0.2em 0.5em;
}
}
.competition-calendar th{ 
  background-color: var(---competition-calendar-header-background);
  color:var(---competition-calendar-header-color);
  
}
.competition-calendar th:first-child{
  border-radius: 0.4em 0 0 0;
}
.competition-calendar th:last-child{
  border-radius: 0 0.4em 0 0;
}
.competition-calendar td{ 
  background-color: var(---competition-calendar-background);
  color:var(---competition-calendar-color);
  color: rgb(236, 236, 236);
}
.competition-calendar tr:last-child td:first-child{
  border-radius: 0 0 0 0.4em;  
} 
.competition-calendar tr:last-child td:last-child{
  border-radius:0 0 0.4em 0;
} 
.competition-calendar td:nth-child(3){
  text-align: center;
} 

/* ### League Fixtures ### */

#latest-fixtures th{
  color:rgb(82, 118, 126)
}

#latest-fixtures tr{
  color:rgb(82, 118, 126)
}



/* ### Footer ### */
footer{
  background-color: #313638ff;
  color: white;
  padding: 2em 0em;
}
footer h4{
  color:rgb(158, 154, 154);
  margin: 0.6em 0em;
}
.footer-inner{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0em 1em;
  max-width: 1400px;
  margin: 0 auto;
}
.footer-grid{
  display: grid;
  grid-template-areas: "pages fixtures fixtures getintouch getintouch";
  padding: 0em 3em;
  column-gap: 2em;
  flex:1
}

@media screen and (max-width: 1279px){
  .footer-grid{
    grid-template-areas: "pages fixtures fixtures"
                          "getintouch getintouch getintouch";
    row-gap: 2em;
  }
}

.footer-inner a{
  text-decoration: none;
}
.footer-title{ 
/* font-family: 'Fredoka One', cursive; */
    margin: 0px;
    /* font-family: 'Bebas Neue', cursive; */
    /* font-family: 'Forum', san-serif; */
    
    font-family: 'Allan', san-serif;
    font-size: 28px;
    margin-top: 0.5em;
    color: var(---menu-title);  
    line-height: 1;
    padding-left: 1em;
}
.footer-title span{
  color: var(---green-dark);
  font-family: 'Allan', san-serif;
  font-size: 42px;
  margin: 0px;
  line-height: 1;
  align-self: center;
  justify-self: center;
  
}

.footer-links-one{
  grid-area: pages;
}
.footer-links-one-inner{
  display:flex;
  flex-direction: column;
  font-size: 16px;
}
.footer-links-one a{
  margin-bottom: 0.4em;
}
.footer-links-two-inner{
  grid-area:fixtures;
}
.footer-links-two-inner{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 16px;
  column-gap: 1.2em;
  row-gap: 0.6em; 
}
.footer-links-one a, .footer-links-two a{
  text-decoration: none;
  color: white;
}
.button-green{
  font-size: 16px;
  padding:0.7em  1em;
  border-radius: 0.4em;
  border: 1px solid #d8d8d8;
  outline: none;
  background-color: var(---green-dark);
  color:#d8d8d8;
  font-weight: 600;
  letter-spacing: 1.4;
}
.button-green:hover{
  background-color: var(---green);
  color:#ffffff;
}
.get-in-touch{
  grid-area: getintouch;
}
.get-in-touch p{
  font-size: 16px;;
}

.copyright-text{
  font-size: 16px;
  text-align: center;
  color:rgb(102, 99, 99)
}


@media screen and (max-width: 961px){
  .footer-grid{
    grid-template-areas: "pages" 
                          "fixtures"
                          "getintouch";
    row-gap: 2em;
  }
  .footer-links-one-inner{
    flex-direction: row;  
    flex-wrap: wrap;
  }
  .footer-links-one-inner a{
    padding-right: 0.9em;
  }
  .carousel{
    height: 555px;
  }
}
@media screen and (max-width: 799px){
  .footer-inner{
    flex-direction: column;
    align-items: center;
  }
  .footer-inner{
    padding: 0em 0.1em;
  }
  .carousel{
    height: 440px;
  }
  
  #league-tabs .tab{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1em;
    text-align: center;
  }
  #past-result-tabs .tab{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4em;
    text-align: center;
  }
   /* Past results */
   .pr-table th, .pr-table td{
    font-size: 14px;
    padding: 0.6em 0.5em !important;
  }

}

@media screen and (max-width: 600px){
  .footer-links-one-inner a{
    padding-right: 1.8em;
    margin-bottom: 0.8em;
  }
  .footer-links-two-inner{
    display:grid;
    grid-template-columns: 1fr 1fr;
    font-size: 16px;
    column-gap: 1.2em;
    row-gap: 0.6em; 
  }
  .carousel{
    height: 300px;
  }
  .carousel-button {
    font-size: 2.5rem;
   }
}

/* ### General Mobile Media Queries ### */
@media screen and (max-width:599px){
  .page-content-inner{
    padding: 0em 1em;
  }
  h1{
    font-size: 50px;
    margin-bottom: 15px;
  }

  h3 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.6px;
    
  }
  h4{
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(---standard-h4);

  }

  p{
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: 0.5px; 
  }
  .tabcontent{
    padding: 0.2em 0.4em;
  }

  #team-selector-container{
    display:flex;
      flex-direction:column;
      align-items: flex-start;
  }
  #team-selector-container select{
  width: 100%;
  margin-top: 5px;
  text-align: center;

  }
  #team-selector-container select option{
    text-align: center;
  } 
  .league-fixture-table th, .league-fixture-table td{
    font-size: 14px;
    padding: 0.6em 0.5em !important;
  }

  /* Past results */
  .pr-table th, .pr-table td{
    font-size: 12px;
    padding: 0.6em 0.5em !important;
  }

  .competition-meta{
    padding:0.3em 0.4em;
  }
  .competition-meta h3{
    font-size: 18px;
  }
  .competition-meta h4{
    font-size: 14px;
  }

  /* League Tables */
  .rwd-table tr td:first-child {  
    min-width: 180px;
  }
  .rwd-table tr td{
    padding: 0.4em 0.4em !important;
  }
  /* Fixtures Table */
  .fixture-links{
    grid-template-columns: 1fr 1fr;;
  }

  .competition-calendar td, .competition-calendar th{
    font-size: 14px;
  }

  #league-tabs .tab{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    text-align: center;
  }
  #past-result-tabs .tab{
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4em;
    text-align: center;
  }
}

/* ### Small Mobile ### */
@media screen and (max-width: 479px) {

  .pr-table th, .pr-table td {
    padding: 0.7em 0.3em !important;
    font-size: 10px;;
  } 
  .teams-container h3{
    font-size: 16px;
  }
  .teams-container p{
    font-size: 14px;
  }
  .draw-container p{
    font-size: 12px;
    margin-bottom: 0.7em;
  } 
  .competition-meta h3{
    font-size: 16px;
  }
  .carousel{
    height: 230px;
  }
}

/* ### Very Small Mobile ### */
/* Down to 320 on an iPhone SE */
@media screen and (max-width: 400px) {
  .page-content-inner{
    padding: 0em 0.5em;
  }
  .team-container{
    min-width: 280px;
  }

  .rwd-table tr td:first-child {  
    min-width: 150px;
  }

  .rwd-table tr td, .rwd-table tr th{
    font-size: 14px;
  }

    /* competition calendar */
  .competition-calendar tr td, .competition-calendar tr th{
    font-size: 12px;
  }  
  /* footer */
  .footer-links-one-inner{
    flex-direction: column;
  }


}
