@import url("/wp-content/themes/ark-child/event-display/individual-event-pairings.css");

.lightbox {
    display: none; /* Initially hidden */
    position: fixed; /* Stay in place when scrolling */
    z-index: 1000; /* Ensure it's on top of other content */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if content is long */
    background-color: rgba(0, 0, 0, 0.50); /* Fallback color and opacity */
    color: #ddd; /* Text color */
}

.lightbox-content {  
  display: grid;
  grid-template-columns: min-content 1fr min-content;
  grid-template-rows: 3em 1fr;
  grid-auto-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "lb-title lb-title lb-close"
    "lb-left-nav modal-content lb-right-nav";
    /*background-color: #fefefe;*/
  margin: 15% auto; /* Center vertically and horizontally */
  padding: 10px;
    /*border: 1px solid #888;*/
  width: 90%; /* Adjust as needed */
  position: relative; /* For absolute positioning of the close button */
  h3 {
    color: #ddd;
  }
  @media (min-width: 40em) {
      width: 33%;    
}
}


.lb-title { grid-area: lb-title; }
.lb-close { grid-area: lb-close; }
.lb-left-nav { 
  grid-area: lb-left-nav; 
  align-content: center;
}
.modal-content { grid-area: modal-content; }
.lb-right-nav { 
  grid-area: lb-right-nav;
  align-content: center;
 }

.ff-font-awesome4 {
    font-size: 5em;
    cursor: pointer;
    transform: scaleX(0.66);

}
.close-button {
    color: #aaa;
    position: absolute;
    top: 0;
    /*right: 30px;*/
    font-size: 3em;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.lightbox-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.lightbox-navigation button {
    padding: 8px 15px;
    cursor: pointer;
}

.lightbox-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lightbox-overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6); /* Semi-transparent black */
    z-index: 999; /* Below the lightbox */
}

#modal-content {
    padding: 20px 5px;
}

#modal-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#modal-content th,
#modal-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#modal-content th {
    background-color: #f2f2f2;
}
/*
.pairings-round-container {

    max-height: 545px;
    overflow-y: scroll;
    margin: 0;
    font-family: 'Roboto',Arial,sans-serif;
    scrollbar-color: #f15f0e transparent;
  
    ul {
      counter-reset: index;  
      padding: 0;
    }
  
    li {
      counter-increment: index; 
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 5px 10px;
      box-sizing: border-box;
    }
  
    li + li {
      border-top: 1px solid rgba(255,255,255,0.2);
    }
  }
  
  .board-number{
  width: 100%;
    span {
        color: #162d59;
    
        font-size: 0.7em;
        font-weight: 500;
        text-transform: capitalize;
        
    }
  }
  
  .pairing-container {
    display: grid; 
    width: 100%;
    height: 3em;
    grid-template-columns: 15% 1fr 8% 1fr 15%; 
    grid-template-rows: min-content min-content min-content; 
    gap: 0px 0px; 
  }
  .board-number { grid-area: 1 / 1 / 2 / 2; }
  .white-hdr { grid-area: 1 / 2 / 2 / 3; }
  .Res { grid-area: 1 / 3 / 2 / 4; }
  .black-hdr { grid-area: 1 / 4 / 2 / 5; }
  .b_rtg { grid-area: 2 / 5 / 3 / 6; }
  .result { grid-area: 2 / 3 / 4 / 4; }
  .white-rating { grid-area: 2 / 1 / 3 / 2; }
  .white-fname { grid-area: 2 / 2 / 3 / 3; }
  .black-fname { grid-area: 2 / 4 / 3 / 5; }
  .black-rating { grid-area: 2 / 5 / 3 / 6; }
  .white-points { grid-area: 3 / 1 / 4 / 2; }
  .white-lname { grid-area: 3 / 2 / 4 / 3; }
  .black-lname { grid-area: 3 / 4 / 4 / 5; }
  .black-points { grid-area: 3 / 5 / 4 / 6; }
  
  .board-number, .white-hdr, .black-hdr, .Res, .b_rtg {
    font-size: 0.5em;
    font-weight: 500;
    text-transform: uppercase;
    align-content: end;	
  }
  
  .white-hdr, .black-hdr {
    letter-spacing : 0.3em;
  
  }
  
  .white-hdr {
    text-align: right;
  }
  .black-hdr {
    text-align: left;
  }
  
  .unpaired-container {
  display: grid;
  width:100%;
  line-height: 1em;
  grid-template-columns: 1fr 8% 1fr;
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  padding: 0 5px;
  color: #36aeb3;
  
    .unpaired-player { 
      grid-area: 1 / 1 / 2 / 2;
      font-size: 0.78em;
      font-weight: 500;
      text-align: left;
  
  }
    .unpaired-result { 
      grid-area: 1 / 2 / 2 / 3;
      font-size: 1em;
      font-weight:500;
      text-align: center;
      align-content: center;
      letter-spacing : -0.1em;	
  
  }
    .unpaired-text { 
      grid-area: 1 / 3 / 2 / 4; 
      font-size: 0.78em;
      font-weight: 500;
      text-align: left;
  
  }
  }
  
  .white {
  color: white;
  background-color: var(--color-Light);
  padding: 0 3px;
  align-content: center;
  }
  
  .black {
  color: white;
  background-color: var(--color-Dark);
  padding: 0 3px;
  align-content: center;
  }
  
  .player-name {
    font-size: 0.78em;
    font-weight: 500;
  }
  
  .player-info {
    font-size: 0.6em;
    font-weight: 400;
    
  }
  .white-points { 
    border-radius: 0 0 0 5px;
  }
  
  .white-fname  { 
  border-radius: 0 5px 0 0;
  font-size: 1.1em;
  font-weight:500;
  text-align: right;
  
  }
  
  .white-lname  { 
  text-align: right;
  }
  
  .result, .result-pending { 
  color: #ffffff;
  background: #FD4B60;
  background: linear-gradient(90deg,var(--color-Light) 0%, var(--color-Dark) 100%);
  font-size: 1em;
  font-weight:400;
  text-align: center;
  align-content: center;
  letter-spacing : -0.1em;	
  }
  
  math {
  color: #ffffff;
  font-size: 0.60em;
  font-weight:500;
  text-align: center;
  math-style: normal;
  }
  
  .result-pending:after {
    content: "\e081";
    font-family: 'ff-font-simple-line-icons';
  }
  
  
  .black-fname  { 
  text-align: left;
  }
  
  .black-lname  { 
  text-align: left;
  }
  
  
  
  .black-rating { 
    text-align: right;
  }
  .black-points { 
    border-radius: 0 0 5px 0;    
    text-align: right;
  }
*/  