﻿.tenable-container {
    width: 100%;
    height: 100%;
    padding: 55px;
}

.tenable-main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    direction: ltr;
}

.tenable-icon {
    grid-column: span 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top10-image-wrapper {
    pointer-events: none;
    max-width: 400px;
    width: 100%
}

.top10-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#hearts {
    display: flex;
    gap: 4px;
    direction: ltr;
}

.tenable-question-container {
    grid-column: span 2;
    display: flex;
    align-items: start;
    justify-content: start;
}

.tenable-question {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    max-width: 650px;
    width: 100%;
}

.question-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.question-title h1 {
   font-family: DroidBold, Arial;
   font-size: 20px;
   color: #0FB7FF;
}

.question-title p{
    font-family: DroidBold, Arial;
    font-size:24px;
    color:#FFFFFF;
    text-align: center;
}

.board {
  max-width: 431px;
  width: 100%;
  border:1px white solid;
  border-radius: 10px;
  overflow: hidden;
}

.row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4px;
    height: 42px;
    border-bottom: 1px white solid;
    position: relative;
    background-color: #1a247d;
    color: #fff;
}

.row.row-select {
    background-color: #FFFFFF;
    border-bottom: 1px #1a247d solid;
    color: #1A247D ;
}

.row.row-active {
    background-color: #FFFFFF;
    color: #1A247D;
}

.num {
    position: absolute;
    right: 12px;
    font-family: BreeSerif;
    font-size: 32px;
    font-weight: 400;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #FFF;
    opacity: 0.4;
    color: transparent;
}

.num-row-select {
    -webkit-text-stroke-color: #1A247D;
}

.num-row-active {
    -webkit-text-stroke-color: #1A247D;
}

.player-name {
    text-align: center;
    font-family: DroidLight, Arial;
    font-size: 14px;
    opacity: 0.5;
}

.player-name-active {
    font-family: DroidBold, Arial;
    opacity: 1;
}

.player-name-select {
    font-family: DroidBold, Arial;
    opacity: 1;
}

.row:last-child { border-bottom: none; }

.tenable-btn {
    max-width: 431px;
    width: 100%;
    background-color: #0277BD;
    border-radius: 50px;
    height: 40px;
    font-family: DroidBold, Arial;
    font-size: 12px;
    color: #FFFFFF;
}

.tenable-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    width: 100%;
    height: 100%;
}

.tenable-overlay .tenable-popup {
    display: none;
    justify-content: center;
    position: relative;
    max-width: 522px;
    width: 100%;
    height: 346px;
    background: #1A247D;
    border-radius: 10px;
    border: 1px #FFFFFF63 solid;
}

.tenable-overlay .tenable-popup .share-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 12px;
        left: 14px;
        cursor: pointer;
        background-image: url(../Images/GamesIcons/ShareIcon.svg);
        background-size: cover;
        background-color: #1A247D;
        width: 21px;
        height: 21px
}

.share-popup-tenable {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: absolute;
    top: 40px; 
    left: 14px; 
    background: #1A247D;
    border: 1px solid #FFFFFF63;
    border-radius: 10px;
    padding: 12px 8px;
    min-width: 50px;
}

.share-popup-tenable a.icon-fb:before {
    content: "b";
    color: #fff;
}

.share-popup-tenable a.icon-tw:before{
  content: "!";
  color: #fff;
}

.share-popup-tenable a.icon-wapp:before{
  content: "Y";
  color: #fff;
}


.tenable-overlay .tenable-popup .main-popup {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.tenable-overlay .tenable-popup .main-popup .result-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
}

.tenable-overlay .tenable-popup .main-popup .result-row .result-label {
    font-family: DroidBold, Arial;
    font-size: 20px;
    color: #FFFFFF;
}

.tenable-overlay .tenable-popup .main-popup .result-row .circle-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 57px;
    height: 57px;
    border-radius: 50%;
    border: 3px solid #fff;
    font-family:  DroidBold, Arial;
    font-size: 30px;
    color: #FFFFFF;
}

.tenable-overlay .tenable-popup .main-popup .result-row .separator {
   font-family:  DroidBold, Arial;
   font-size: 20px;
   color: #FFFFFF;
}

.tenable-overlay .tenable-popup .main-popup .next-label {
    font-family: DroidLight, Arial;
    font-size: 18px;
    color: #FFFFFF;
}

.tenable-overlay .tenable-popup .main-popup .countdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tenable-overlay .tenable-popup .main-popup .countdown .time-block { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 5px; 

}

.tenable-overlay .tenable-popup .main-popup .countdown .time-block .time-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #FFFFFF;
    border-radius: 10px;
    font-family: DroidBold, Arial;
    font-size: 27px;
    color: #000000;
}

.tenable-overlay .tenable-popup .main-popup .countdown .time-block .time-unit {
    font-family: DroidLight, Arial;
    font-size: 10px;
    color: #FFFFFF;
}

.tenable-overlay .tenable-popup .main-popup .countdown .colon {
    font-family: DroidBold, Arial;
    font-size: 27px;
    color: #fff;
    padding-bottom: 18px;
}

.tenable-overlay .tenable-popup .main-popup .main-btn {
    width: 215px;
    height: 50px;
    background: #fff;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: DroidBold, Arial;
    font-size: 15px;
    color: #000000;
}


@media (max-width:768px) {
    .tenable-main {
     grid-template-columns:1fr;
     padding:55px 55px 20px
    }

    .top10-image-wrapper{
        max-width:160px;
    }

    .tenable-question-container {
        grid-column: span 1;
        align-items: center;
        justify-content: center;
    }
    
    .question-title h1 {
        font-size: 18px;
    }

  .question-title p{
    font-size:18px;
  }

  .num  {
    font-size: 30px;
   }

    .num-row-active {
        font-size: 30px;
    }

    .num-row-select {
        font-size: 30px;
    }
    .tenable-overlay .tenable-popup{
        width:278px;
        height:285px;
    }

    .tenable-overlay .tenable-popup .main-popup .result-row .result-label {
        font-size: 14px;
    }

    .tenable-overlay .tenable-popup .main-popup .result-row .circle-num {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .tenable-overlay .tenable-popup .main-popup .result-row .separator {
        font-size: 14px;
    }

    .tenable-overlay .tenable-popup .main-popup .next-label {
        font-size: 12px;
    }

    .tenable-overlay .tenable-popup .main-popup .countdown .time-block .time-box {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .tenable-overlay .tenable-popup .main-popup .countdown .time-block .time-unit {
        font-size: 8px;
    }

    .tenable-overlay .tenable-popup .main-popup .countdown .colon {
        font-size: 14px;
    }

    .tenable-overlay .tenable-popup .main-popup .main-btn {
        font-size: 12px;
        width:129px;
        height:30px;
    }

    .tenable-container{padding:0}
}

.tenable-feedback {
    display: none;
    margin: 8px auto 4px;
    max-width: 431px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    border-radius: 8px;
    background: rgba(198, 40, 40, 0.08);
    color: #b71c1c;
}

.tenable-feedback.tenable-feedback--error {
    background: rgba(198, 40, 40, 0.1);
    color: #b71c1c;
}

.tenable-btn.tenable-btn--busy {
    opacity: 0.72;
    pointer-events: none;
}

/* Replay board: keep row height when name cell has no text */
.board.board-replay .row .player-name {
    min-height: 1.25em;
}

/* Read-only: user already has submissions for this question */
.tenable-readonly #dropdownList {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.tenable-readonly #playerInput:disabled,
.tenable-readonly #arrowBtn:disabled {
    pointer-events: none;
    cursor: not-allowed;
}

.tenable-readonly .tenable-btn:disabled,
.tenable-readonly #tenable-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.tenable-dropdown-disabled {
    opacity: 0.6;
    pointer-events: none;
    filter: grayscale(0.15);
}

.tenable-dropdown-disabled #playerInput {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.45);
}

.tenable-game-readonly .tenable-question {
    user-select: none;
}

.board .row.row-replay-filled .player-name {
    color: #0FB7FF;
    font-weight: 600;
}