:root {
  --tw-gradient-from: #1e8fd5;
  --tw-gradient-to: #008566;
  --tw-gradient-stops: var(--tw-gradient-from),var(--tw-gradient-to,rgb(30 143 213/0));
}

/* Site wide classes */
html {
    margin: 0;
    height: 100%;
  }
  
  body {
    min-height: 100%;
    background-color: #f9f9f9;
    flex-direction: column;
  }

  .top-menu-title {
      background: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
      color: white !important;
  }

  .blurry-text {
    color: transparent;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    transition: ease-in-out all 500ms;
    cursor: zoom-in;
  }

 .blurry-text:hover {
    color: inherit;
    text-shadow: none;
  }
  
  div.pusher {
    flex: 1;
    background-color: #f9f9f9 !important;
  }
  .hidden.menu {
    display: none;
  }
  
  .environment-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    margin: 0;
    text-align: left;
    z-index: 999;
    cursor: pointer;
  
    text-align:center;
    font-size:12px;
    padding:5px;
    letter-spacing:2px;
    font-weight:bold;
    background-color:#a00;
    color:#FFF;
  }
  
  .feedback-popup {
      position: fixed;
      border: 1px solid #ccc;
      bottom: 0;
      left: 2em;
      margin: 0;
      width: 10em;
      text-align: left;
      z-index: 999;
      padding: 0.5em 0.75em;
      border-radius: 5px;
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      border-bottom: 0;
      background: #fff;
      font-weight: bold;
      cursor: pointer;
  }
  
  .feedback-popup span:hover {
    text-decoration: underline;
  }
  
  .feedback-icon {
    right: 0.75em;
    position: absolute;
  }
  
  /* Footer */
  .footer.segment {
    padding: 5em 0em;
  }
  
  .pointer {
    cursor:pointer;
  }

  .sidebar-logo {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
    padding: 60px;
  }
  
  /* Homepage Master Header Queries */
  .masthead.splash-container {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
    height: 100vh !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .masthead.splash-container-content {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh !important;
    min-height: -webkit-fill-available;
  }

  .masthead img.image-logo {
    height: 200px;
    width: 200px;
  }
  
  .masthead img.image-logo, h1.landing-title, .masthead div.landing-buttons {
    display:none;
  }
  
  .masthead .ui.menu .ui.button {
    margin-left: 0.5em;
  }
  .masthead h1.ui.header {
    font-size: 4em;
    font-weight: normal;
    text-shadow: 1px 1px 0 rgba(0,0,0,.35), 1px 1px 5px rgba(0,0,0,.5);
  }
  .masthead h2 {
    font-size: 1.7em;
    font-weight: normal;
  }
  
  .masthead {
    margin-bottom: 30px;
  }
  
  .secondary.pointing.menu .toc.item {
    display: none;
  }
  
  .ui.secondary.pointing.menu .active.item, .ui.secondary.pointing.menu .active.item:hover {
    border-color: teal !important;
  }
  
  .status-panel {
    display:none;
  }
  
  .sidemenu-tournament-mobile {
    display: none !important;
  }

  .sidemenu-tournament a.item.active, .sidemenu-tournament a.item:hover {
    background-color: #009c95 !important;
    color: white !important;
  }

  .sidemenu-tournament-mobile a.item.active, .sidemenu-tournament-mobile a.item:hover {
    background-color: white !important;
    color: #009c95 !important;
  }

  .sidemenu-tournament-mobile a.item {
    margin-bottom: 20px !important;
  }

  .sidemenu-tournament-mobile a.item i {
    margin: 0 !important;
  }
  
  .sidemenu-tournament a.item.active:not(.disabled)::after, .sidemenu-tournament a.item:not(.disabled):hover::after {
    position: absolute;
    content: "";
    top: 0;
    right: -34px;
    width: 0;
    height: 0;
    display: inline-block;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 18px solid#009c95;
    border-right: 18px solid transparent;
  }

  table.table-tournaments thead tr th {
    border-left:none !important;
  }
  
  .status-icon, .keyword-container div.label {
    cursor: pointer;
  }
  
  .ui.disabled.button {
    box-shadow: 0 0 0 1px rgba(34,36,38,.15) inset !important;
  }

  .mobile-only {
    display: none;
  }

  .computer-only {
    display: inline-block;
  }

  .flex-column {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
  }

  .flex-column span {
    display: flex !important;
    flex-direction: row !important;
  }

  .ui.table-groups > tbody > tr > td, .ui.table-groups > thead > tr > th {
    padding: 1px !important;
    width: 200px !important;
    height: 53px !important;
  }

  .ui.table-groups > tbody > tr > td:first-child {
    border-top: none !important;
  }

  .ui.table-groups > thead:not(.full-width) > tr > th:first-child {
    background-color: #f9fafb !important;
    box-shadow: -.1em -.2em 0 .1em #f9fafb !important;
  }

  .ui.table-groups > tbody > tr > td > div.input > input[type="text"] {
    width: 50px !important;
  }

  .ui.table-groups > tbody > tr > td.score {
    text-align: center;
  }

  .ui.table-groups > tbody > tr > td.score > div.input > input {
    text-align: center !important;
  }

  .ui.table-groups > tbody > tr > td.disabled div {
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr); 
    padding: 0 15px; 
    text-align:center; 
    font-size: 10px;
  }

  .ui.table-knockouts > tbody > tr > td, .ui.table-groups > thead > tr > th {
    padding: 1px !important;
    height: 53px !important;
  }

  .ui.table-knockouts > tbody > tr > td > div.input > input[type="text"] {
    width: 50px !important;
  }

  .ui.table-knockouts > tbody > tr > td:nth-child(3) {
    text-align: right !important;
  }
  .ui.table-knockouts > tbody > tr > td:nth-child(4) {
    text-align: left !important;
  }

  .ui.table-knockouts > tbody > tr > td.score {
    text-align: center;
  }

  .ui.table-knockouts > tbody > tr > td.score > div.input > input {
    text-align: center !important;
  }

  .ui.table-knockouts > tbody > tr > td.disabled div {
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr); 
    padding: 0 15px; 
    text-align:center; 
    font-size: 10px;
  }

  .ui.table-knockouts > thead > tr > th.score {
    width: 60px;
    text-align: center !important;
  }

  .ui.table-knockouts > tbody > tr > td {
    text-align: center !important;
  }

  .ui.table-knockouts > tbody > tr > td > span {
    text-align: center !important;
    width: 150px !important;
    display: inline-block;
  }

  .team-gallery {
    display:flex; 
    flex-direction:row; 
    gap:5px; 
    flex-wrap:wrap; 
    justify-content:center;
    max-width: 600px;
    margin: 0 auto;
    padding: 10px
  }

  .team-gallery:empty {
    padding: 0;
  }

  .team-bundle a {
    overflow: auto !important;
  }
  
  .finalist {
    position: relative;
  }

  .player-name {
    display: block;
  }

  .top-menu-avatar {
    width: 20px !important;
    height: 20px !important;
  }

  .user-menu {
    padding: 10px !important;
  }

  .menu-username {
    font-size: 1rem;
  }

  .winner-trophy {
    font-size: 20px;
    position: absolute;
    top: 20px;
    left: -30px;
  }

  .ui.sortable.table > thead > tr > th:first-child {
    /* pointer-events: none; */
  }

  .ui.sortable.table > thead > tr > th:nth-child(2) {
    border-left: none;
  }

  .show-tournament input:disabled {
    opacity: 1 !important;
    border: none !important;
    width: 25px !important;
    background-color: #eee !important;
  }

  .ui.sidebar {
    touch-action: pan-y;
  }
  
  /* Media Queries */
  @media only screen and (max-width: 768px) {
    /* .ui.fixed.menu {
      display: none !important;
    } */
    .secondary.pointing.menu .item:not(.user-menu),
    .secondary.pointing.menu .menu {
      display: none;
      color: white;
    }
    .secondary.pointing.menu .toc.item {
      display: block;
    }
    .menu-username {
      color: white;
    }
    .masthead.segment {
      min-height: 350px;
    }
    .masthead h1.ui.header {
      font-size: 2em;
      margin-top: 1.5em;
    }
    .masthead h2 {
      margin-top: 0.5em;
      font-size: 1.5em;
    }
    .ui.table:not(.unstackable) > thead {
      display: none !important;
    }
    .ui.table:not(.unstackable) > tbody tr td.hideable {
      display: none !important;
    }
    .mobile-only {
      display: inline-block;
    }
    .computer-only {
      display: none;
    }
    .sidebar-logo {
      display: none !important;
    }
    .mobile-overflow-x {
      overflow-x: scroll;
    }
    .ui.table-knockouts > tbody > tr > td > span {
      text-align: center !important;
      width: 100px !important;
      display: inline-block;
    }
    .winner-trophy {
      font-size: 20px;
      position: absolute;
      top: 20px;
      left: 30px;
    }
    .drop-group {
      padding: 1em 2px !important;
    }
    .ui.table-groups > tbody > tr > td > div.input > input[type="text"] {
      width: 25px !important;
      padding: 0 !important;
      font-size: 0.9rem !important;
      background-color: white !important;
      width: 15px !important;
      text-align: center !important;
    }
    .ui.table-groups > tbody > tr > td > div.team-summary {
      display: flex;
      flex-direction: column;
    }
    .ui.table-groups > tbody > tr > td > div.team-summary span:nth-child(3),
    .ui.table-groups > tbody > tr > td > div.team-summary span:nth-child(4) {
      display: none;
    }
    .tournament-fields {
      flex-wrap: nowrap !important;
    }
    .masthead.splash-container-content {
      background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
      background-attachment: fixed;
      background-position: center;
      background-repeat: no-repeat;
      height: 100% !important;
    }
    .masthead {
      background: linear-gradient(to bottom right, var(--tw-gradient-stops)) !important;
    }
  }

  /* Tablet */
  @media only screen and (max-width: 992px) {
    .sidemenu-tournament-mobile {
      display: flex !important;
    }
  }
  
  
  @media only screen and (max-width: 768px) {
    .masterhead {
      padding: 2em !important;
    } 
  
    .feedback-popup {
      display:none;
    }
  }
  
  @media only screen and (max-width: 321px) {
    .masterhead {
      padding: 0.1em !important;
    } 
  }

  @media only screen and (display-mode: standalone) {
    .logged-in-standalone {
      padding-top: 36px !important;
    }

    body {
      height: 100vh !important;
    }
  }
  