.extratext2 {
    text-align: center;
    display: none !important;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 100px); 
    grid-template-rows: repeat(4, 100px);
    margin: 0 auto;
    width: 100%; 
    padding: 10px; 
    box-sizing: border-box;
    max-width: 450px;
}

@media (max-width: 768px) {
    .grid-container {
        margin: 0 0 0 -10px;
	padding: 0px;
	grid-template-columns: repeat(4, 95px); 
        grid-template-rows: repeat(4, 95px);
    }
}

#result-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 100px); 
    grid-template-rows: repeat(4, 100px);
    width: 100%; 
    max-width: 450px;
    margin: 0 0 0 -15px
    }

.grid-container input[type="text"], 
.grid-container textarea, 
.grid-container input[type="tel"] {
  font-size: 12px; 
}

.input-active {
    background-color: #D9D187;
}

.extratext3{
text-align: center;
font-size: 11px;
font-style: italic;
margin-top: 20px;
}

.players-row {
margin-bottom: 20px;
}

.antwoorden {
text-align: center;
font-size: 15px;
font-weight: bold;
margin:10px;
}


.player-name-list {
position: absolute;
}


#result-grid-container .grid-item {
background-color: #fff;
}

#result-grid-container .player-photo,
#result-grid-container .player-name-bar {
    display: block;
}

#result-grid-container .input-container {
    position: relative;
}

.answer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.answer-container .player-photo {
    position: absolute;
    width: auto;         
    max-width: 100%;      
    max-height: 100px;    
    height: auto;      
    z-index: 2;
}

.answer-container .player-name-bar {
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
}

#result-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Behoud volledige hoogte */
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 80;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-direction: column;
}

#result-container {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    position: relative; 
    font-size: 1.5rem;
    max-width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: fade-in 1s ease-in-out;
}

    @keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }


  #close-result {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    cursor: pointer;
  }
  .emoji-result {
    font-size: 20px;
    line-height: 1.2;
margin: 5% 0px 5% 0px;
  }
 
 #result-container #share-btn { 
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background-color: #2196F3;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
  }

    #share-btn:disabled {
        background-color: #ddd;
        cursor: not-allowed;
        border-radius: 5px;
    }

    .grid-item {
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #f3f3f3;
        font-size: 12px;
        text-align: center;
        padding: 0;
    }
    
#grid-container > div:nth-child(1), 
#grid-container > div:nth-child(3),
#grid-container > div:nth-child(7), 
#grid-container > div:nth-child(9) {
  border-radius: 5px;
}

.club-label {
    border: 1px solid #ccc;
    position: relative;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    background-color: white; 
    border-radius: 5px; 
    margin:10px;
}

.club-label img {
    width: 75px;
    max-height: 90px;
    padding: 10px; 
    height: auto;
    object-fit: contain;
    cursor: pointer;
}

    .input-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #fff;
    }

    input {
        width: 100%;
        height: 100%;
        border: none;
        text-align: center;
        font-size: 12px;
        padding: 5px;
        z-index: 1;
        border: 0px !important;
    }

    span.player-name-list div {
        font-size: 10px; 
        color: black;
        font-weight: bold;
        display: block;
        white-space: normal;
    }

img.player-photo {
    position: absolute;
    width: auto;         
    height: 100%;
    width: 100%;     
    z-index: 2;
}

    #attempts-container {
        margin-top: 20px;
        text-align: center;
        font-size: 16px;
    }

#show-result-btn {
    display: block;
    margin: 20px auto 20px; 
    padding: 10px; 
    background-color:#2196F3; 
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
}


#give-up-btn {
    display: block;
    margin: 50px auto 20px; 
    padding: 10px; 
    background-color: #f44336; 
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
}

#show-result-btn;
margin: 0px auto 20px !important;
}


    #give-up-btn:disabled {
        background-color: #ddd;
        cursor: not-allowed;
        border-radius: 5px;
    }
.tooltip-container {
    position: relative; 
}
    .tooltip {
        position: absolute;
        background-color: #333;
        color: white;
        padding: 5px;
        border-radius: 5px;
        font-size: 12px;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        display: none;
        z-index: 10;
        margin-top: -10px;
    }

    #timer {
        text-align: center;
        font-size: 17px;
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 10px
    }
    .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        border-radius: 10px;
        backdrop-filter: blur(20px);
	text-align: center;
	opacity: 1;
   	 transition: opacity 1s ease-out;
    }

.overlay.hidden {
    opacity: 0; /* Verberg de overlay door de opacity op 0 te zetten */
    pointer-events: none; /* Voorkom dat de overlay klikbare elementen heeft */
}

.overlay.no-animation {
    transition: none;
}

    .overlay button {
            padding: 20px 20px;
            background-color: #f44336 !important;
            color: white;
            border: none;
            font-size: 16px;
            cursor: pointer;
            border-radius: 5px;
	    width: 125px;
	    margin-left: 10px;
    }

.overlay-text {
        color: white;
        font-size: 16px;
        margin-bottom: 20px;
        text-align: center;
	padding: 5%;
    }
    
.player-name-bar {
    background-color: black;
    color: #55FF55;
    text-align: center;
    font-size: 0.625rem;
    padding: 2px 0;
    width: 100%;
    display: none;  
    position: absolute;  
    bottom: 0; 
    left: 0;  
    z-index: 3;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.player-name-list {
    font-size: 11px !important;
    color: black;
    font-weight: bold;
    display: block;
    max-height: 60px;
    overflow-y: auto;
    text-align: center;
    white-space: normal;
    z-index: 4;
    background-color: rgba(255, 255, 255, 0.8);        
    top: 0;                  
    left: 0;
    right: 0;
    padding: 5px 0;
}

#timer {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

.extratext {
font-size: 15px;
font-weight: bold;
text-align: center;
padding: 20px;
margin: 10% -20px 10% -20px;
background-color: #2196f36b;
}

.extratext1 {
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    margin: 10%;
}

.tijdover {
    font-size: 15px;
}

/* Modal voor 'Toon antwoorden' */
.answers-modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.answers-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    max-height: 70%;
    overflow-y: auto;
    border-radius: 8px;
    max-width: 300px;
}

.close-answers-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-answers-modal:hover,
.close-answers-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.answers-modal-content ul {
    list-style-type: none;
    padding: 0;
}

.answers-modal-content ul li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

#current-score {
margin-top: 15px;
font-size: 16px;
font-weight: bold;
text-align: center;
}

.result-text {
font-size: 15px;
}
