:root {
      --main-bg-color: #222222;
      --main-accent-color: #AE9966;
      --main-text-color: #333333;
      --main-font-family: 'Avenir';
      --header-font-family: 'Bebas Neue';
}

@font-face {
    font-family: 'Avenir';
    src: url('/widget/fonts/AvenirNextLTPro/AvenirNextLTProRegular/AvenirNextLTProRegular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}


body {
    font-family: var(--main-font-family);

}

.leaderboard-table-top3 {
      table-layout:fixed;
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 102px;
      overflow-y: auto;
      animation: fadeInFromNone 1s;
  }

.total {
  font-size: 12px;
  font-weight: 500;
  width: 15%;
  height: 34px;

}
.pName {
  text-align: left;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 8px;
}

.footer {
  width: 100%;
  color: white;
  position: sticky;
  bottom: 0;
  background-color: #f8f8f8;
  border-top: 1px solid;
  height: 20px;
  }

.position {
  width: 20px;
  font-size: 11px;
}

.flag {
  width: 15%;
  text-align: left;
  padding-right: 5px;
}
  
.explanationsOpen {
  margin-top:5px;
  font-size: 7px;
  /* float: right; */
  margin-right: 15px;
  margin-bottom: 3px;
  display: -ms-inline-flexbox;
  display: inline-flex;
  line-height: 8px;
}
.explainMark {
  margin-left:5px !important;
  color:black;
  font-family: var(--main-font-family);
  font-size: 7px;
}
.explainText {
  margin-top:5px;
  margin-left:5px;
  color:black;
}
#expOpen {
  display:none;
}

#exp {
  display: block;
}

@keyframes fadeInFromNone {
      0% {
          display: none;
          opacity: 0;
      }

      1% {
          display: block;
          opacity: 0;
      }

      100% {
          display: block;
          opacity: 1;
      }
  }

  .tournamentitem {
      display: block;
      background-color: white;
      color: black;
      padding: 0.6em;

      font-size: 0.8em;
      font-weight: 600;
      text-align: left;

      font-style: normal;
      z-index: 9;
      max-height: 50px;
      white-space: nowrap;
      overflow: hidden;
      -o-text-overflow: ellipsis;
      text-overflow: ellipsis;
      cursor: pointer;
      -webkit-animation: fadeInFromNone 1s ease-out;
  }

  .t-name {
      font-weight: bold;
  }

  .topBar {
      width: 100%;
      /*background-color: var(--main-bg-color);*/
      color: var(--main-accent-color);
      position: relative;
      min-height: 50px;
      background: linear-gradient(360deg, #222222, rgb(44 44 44), #3c3c3c);
  }

  .nameWrapper {
    line-height: 14px;
    font-size: 12px;
    padding: 8px;
    font-family: var(--header-font-family);
}

    .tournamentName {
        width: 90%;
        color: white;
        font-weight: 100;
        font-size: 12px;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
        letter-spacing: 1px;
        display: block;
        text-align: left;
    }

    .tourName {
        float: left;
        font-size: 15px;
        font-weight: 700;
        position: relative;
        letter-spacing: 1px;
    }

  .leaderboard-table {
      justify-content: center;
      align-items: center;
      width: 100%;
      height: 70px;
      overflow-y: auto;
  }

  .leaderboard-table tr.leaderboard-table-head {
      background-color: var(--main-bg-color);
  }

  #leaderboard-table-head {
      background-color: var(--main-bg-color) !important;
      color: white;
      height: 10px;
      font-size: 7px;
  }

  table {
      font-size: 7px;
      border-spacing: 0;
      text-align: center;
      width: 100%;
      background-color: white;


  }

  th {
      color: white;
  }

  td {
      border-style: solid;
      border-width: 0.5px;
      border-color: rgba(140, 140, 140, 0);
  }

  /*tr:nth-child(odd) {
      background-color: #f7f7f7;
  }*/

  th {
      position: sticky;
      top: 0;
      z-index: 2;
      background-color: black;
  }

  tr:first-child {
      /*  background-color: rgb(0, 0, 0);*/
  }

  th:last-child {
      border-right: none;
  }

  tr td:last-child {
      border-right: none;
  }

  .flag2,
  .hole2,
  .total2 {
      font-weight: bold;
      color: black;
  }

  /*.pos2{
      font-weight: bold;
      color: black;
      height: 99px;
      background-color: #f8f8f8;;
  }*/

  .name2 {
      text-align: left;
      font-weight: bold;
      color: black;
      height: 5px;
  }

  .tblRow {
    display: grid;
    grid-template-columns: 1fr 1fr 3fr 1fr;
    line-height: 35px;
    background-color: #f8f8f8;
}

.tblRow:nth-of-type(odd) {
    background-color: #f4f4f4;
}
.players {
    display: grid;
}

  .comingsoon_text {
      font-size: 10px;
      color: var(--main-accent-color);
  }

  .comingsoon_date {
      font-size: 9px;
      color: white;
      line-height: 20px;
  }


  .footer {
      width: 100%;
      color: white;
      position: sticky;
      bottom: 0;
      background-color: #f8f8f8;
      border-top: 1px solid;

  }

  .explanationsOpen {
      margin-top: 5px;
      font-size: 7px;
      /* float: right; */
      margin-right: 15px;
      margin-bottom: 3px;
      display: -ms-inline-flexbox;
      display: inline-flex;
      line-height: 8px;
      
  }

  .explainMark {
      margin-left: 5px !important;
      color: black;
      font-family: var(--main-font-family);
      font-size: 7px;
  }

  .explainText {
      margin-top: 5px;
      margin-left: 5px;
      color: black;
  }

  #expOpen {
      display: none;
  }

  #exp {
      display: block;
  }

  .container {
      display: grid;
      grid-template-columns: 50% 50%;
      /*height: 290px;*/
  }

  .action-btn {
    background-color: var(--main-accent-color);
    font-weight: 400;
    border-radius: 27px 27px 27px 27px;
    display: inline-block;
    line-height: 1;
    font-size: 15px;
    padding: 9px 15px;
    color: #fff;
    fill: #fff;
    text-align: center;
    border: none;
    /*transition: all 0.7s;*/
    cursor: pointer;
    position: absolute;
    bottom: 40px;
    left: 50%;
    font-size: 14px;
    transform: translate(-50%, -50%);
    width: 50%;
    text-decoration: none;
  }

  .fantasy-ad-logo {
    position: absolute;
    bottom: 0;
    left: 50%;
    font-size: 18px;
    transform: translate(-50%, -50%);
  }

  .fantasy-ad-text {
    position: absolute;
    top: 27%;
    left: 50%;
    width: 70%;
    font-size: 16px;
    color: white;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

  .fantasy-ad {
    background-image: url('/widget/images/background_small.jpg');
    position: absolute;
    opacity: 0;
   /* visibility: hidden;*/
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background-color: rgba(0,0,0,0.7);*/
    z-index: 2;
    cursor: pointer;
    transition: 1s;
    font-family: 'Bebas Neue';
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .overlay-ad {
    background-image: url('/widget/images/background_small.jpg');
    position: absolute;
    opacity: 0;
    /*visibility: hidden;*/
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background-color: rgba(0,0,0,0.7);*/
    z-index: 0;
    cursor: pointer;
    transition: 1s;
    font-family: 'Bebas Neue';
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: all 1s ease-in-out;
  }
  
  .overlay-ad._active {
    opacity: .9;
    z-index: 10;
   /* visibility: visible;*/
  }

  .overlay-ad > * {
    opacity: .9;
    z-index: 10;
  }
  
  .overlay-ad .action-btn {
    opacity: 1; /* Override the general opacity for the action-btn */
  }

  .overlay-ad._active ~ .click-tournament {
    opacity: 0 !important;  }


  #overlay {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
    z-index: 2;
    cursor: pointer;
    transition: 1s;
    font-family: 'Bebas Neue';
  }
  
  #text{
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 18px;
    color: white;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
  }
  
  #overlay-arrow {
      position: absolute;
      bottom: 6px;
      left: 6px;
      width: 40px;
  }
  .grid {
      position: relative;
    }
  
  
  #overlay-image {
      width: 100%;
      position: absolute;
      left: 0;
      bottom: 0;
      opacity: 0;
      transition: 1s;
      font-family: 'Bebas Neue';
    }
  
    .overlay-fade-in {
      opacity: .9 !important;
      visibility: visible !important;
      transition: opacity 1s;
    }
  
    .overlay-fade-out {
      opacity: 0;
     /* transition: opacity 1s;*/
      transition: fadeOut 1s;
    }

    #switch {
        visibility: hidden;
        position: absolute;
    }
    
    label::after {
        background-image: var(--sort-country);
        content: "";
        width: 14px;
        height: 14px;
        position: absolute;
        border-radius: 70px;
        top: 1.5px;
        left: 2px;
        transition: 0.5s;
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        opacity: .4;
    }
    
    input:checked+label:after {
        left: calc(100% - 20px);
        transform: translateX(-100%);
        opacity: 1;
    }
    
    input:checked+label {
        background-color: var(--main-accent-color);
        opacity: 1;
    }
    
    label:active:after {
        width: 16px;
    }
    
    #switch {
        visibility: hidden;
        ;
    }
    
    label {
        width: 35px;
        height: 17px;
        display: block;
        background-color: #c7c4c4;
        border-radius: 100px;
        cursor: pointer;
        transition: 0.5s;
        box-shadow: 0 0 20px #477a8550;
        position: absolute;
        left: 0;
        margin-left: 5px;
        margin-top: 2px;
    }
    
    input:checked+label:after {
        left: calc(100% - 2px);
        transform: translateX(-100%);
    }
    
    label:active:after {
        width: 16px;
    }

    .click-tournament {
        opacity: 0;
    }

    .grid:hover .click-tournament {
        opacity: 1;
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 2;
        cursor: pointer;
        transition: .5s;
        font-family: 'Bebas Neue';
    }
  
    @keyframes fadeOut {
      0% {
          display: block;
          opacity: 1;
      }
  
      1% {
          display: block;
          opacity: 1;
      }
  
      100% {
          display: none !important;
          opacity: 0;
      }
  }

  @media screen and (min-width: 300px) {
      .tournamentRound {
            font-size: 11px !important;
            transition: 1s;
        }
  }

  @media screen and (max-width: 1600px) and (max-height: 750px) {

      .container {
          height: 370px;
      }

      .pos2 {
          height: 135px;
          background-color: #f8f8f8;
      }

      .tblRow {
          height: 34px;
      }

      .grid {
          height: 185px;
      }

      .gss-widget {
          /*  width: 300px;*/
      }

      .gss-widget-inner {
          /* width: 300px;*/
      }

      .main-container::-webkit-scrollbar {
          display: none;
      }
      
      .main-container {
          overscroll-behavior-y: none;
      }

      #tournaments {
         /* height: 410px;*/
      }

     

  }


  .grid {
    position: relative;
      text-align: center;
      cursor: pointer;
  }

  #a:hover {
    filter: brightness(40%);
    transition: .5s;
  }

  #tour3:hover + #flag-guide3{
    display: block;
}

   /*#flag-guide3 {
    display: none;
    position: absolute;
    color: white;
    top: 0;
    margin-top: 30px;
  }*/
      
  /*#a:hover  #b {
    display:inline-block;
    color: white;
  }
      
  #b {
    display:none;
  }
*/
 /* #tour3:hover .flag-guide {
      transition: .5s;
    display: block;  
    color:rgb(212, 0, 0);
}*/

/*.container {
    position: relative;
    width: 300px;
    height: 200px;
    background-color: #333;
    color: white; 
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
*/
  /* Style for the hidden text */
 /* #hidden-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }*/

  #hidden-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0; /* Hide the text initially */
    pointer-events: none; /* Prevent the text from blocking hover */
    transition: opacity 0.3s ease;
    z-index: 1; /* Ensure the text is above the overlay */
  }

  /* Style for the hidden text when hovering */
  #a:hover #hidden-text {
    opacity: 1; /* Show the text on hover */
  }

  /* Style for the darkened overlay */
  #a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Darkened overlay color */
    opacity: 0; /* Hide the overlay initially */
    transition: opacity 0.3s ease;
  }

  /* Style for the popup text */
  #hidden-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    opacity: 0; /* Hide the text initially */
    pointer-events: none; /* Prevent the text from blocking hover */
    transition: opacity 0.3s ease;
    z-index: 1; /* Ensure the text is above the overlay */
  }

  /* Style for the container element when hovering */
  #a:hover::before {
    opacity: 1; /* Show the overlay on hover */
  }

  /* Style for the popup text when hovering */
  #a:hover #hidden-text {
    opacity: 1; /* Show the text on hover */
  }

  .tournamentRound {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 8px;
}

  .start-date {
      background-color: var(--main-bg-color);
      height: 40%;
      width: 60%;
      border: 3px solid var(--main-accent-color);
      margin-left: auto;
      margin-right: auto;
      margin-top: 10px;
      border-radius: 7px;
  }

  .ACTIVE {
      background-color: #47E61B;
      height: 5px;
      width: 5px;
      border-radius: 50%;
      position: absolute;
      right: -8px;
      top: 0;
      margin-top: 4px;
      -webkit-animation: blinker 3s linear infinite;
      -moz-animation: blinker 3s linear infinite;
      -o-animation: blinker 3s linear infinite;
      animation: blinker 3s linear infinite;
  }

  #toggle-flag {
      margin-left: 5px;
      opacity: 0.7;
      cursor: pointer;
  }

  .last_player {
    border-bottom: 1px #b5b5bc dashed;
  }

  @keyframes blinker {
      0% {
          opacity: 1;
      }

      50% {
          opacity: 0.2;
      }

      100% {
          opacity: 1;
      }
  }

  @-webkit-keyframes blinker {
      0% {
          opacity: 1;
      }

      50% {
          opacity: 0.2;
      }

      100% {
          opacity: 1;
      }
  }

  @-moz-keyframes blinker {
      0% {
          opacity: 1;
      }

      50% {
          opacity: 0.2;
      }

      100% {
          opacity: 1;
      }
  }

  @-o-keyframes blinker {
      0% {
          opacity: 1;
      }

      50% {
          opacity: 0.2;
      }

      100% {
          opacity: 1;
      }
  }