
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-content h2 {
    font-size: var(--font-size-large);
    font-weight: bold;
    color: var(--text-color-dark);
    margin-bottom: 20px;
}

.display-name-input {
    width: 100%;
    padding: 10px;
    font-size: var(--font-size-medium);
    border: 1px solid #ddd;
    border-radius: 5px;
    color: var(--text-color-dark);
    background-color: var(--background-light-alt);
    box-sizing: border-box;
}

.error {
    border: 2px solid var(--error-color);
}

.error-message {
    color: var(--error-color);
}

.join-button {
    width: 100%;
    padding: 12px;
    font-size: var(--font-size-medium);
    font-weight: bold;
    color: #fff;
    background-color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
}

.join-button:hover {
    background-color: var(--secondary-color);
}

.voting-control-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 100px;
}

.voting-control-buttons {
    background-color: var(--background-light);
    border-radius: 16px;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.start-new-voting-button {
    background-color: var(--black-button-light);
}

.start-new-voting-button:hover {
    background-color: var(--black-button);
}

.participants-container {
    text-align: center;
    margin-top: 20px;
}

.participants-container h2 {
    font-size: var(--font-size-large);
    color: var(--primary-color);
    margin-bottom: 20px;
}

.participants-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
}

.participant {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--font-size-medium);
    color: var(--text-color-dark);
}

.participant-name {
    font-size: var(--font-size-small);
    font-weight: bold;
    color: var(--text-color-dark);
}

.participant-card {
    width: 50px;
    height: 70px;
    background-color: #eaeaea;
    border-radius: 8px;
    margin-bottom: 8px;
}

.participant-card-activated {
    background-color: var(--secondary-color);
    background-image: linear-gradient(45deg, #5A9FE2 25%, transparent 25%, transparent 75%, #5A9FE2 75%, #5A9FE2),
    linear-gradient(45deg, #5A9FE2 25%, transparent 25%, transparent 75%, #5A9FE2 75%, #5A9FE2);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
}

.participant-card-result {
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
}

.voting-interface-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.voting-interface {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 50px;
}

.voting-buttons {
    display: inline-block;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.vote-button {
    padding: 0;
    width: 50px;
    height: 70px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: var(--font-size-medium);
    font-weight: bold;
    display: inline-block;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.vote-button.selected {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.choose-card-label {
    font-size: var(--font-size-small);
    color: #888;
}

.results {
    margin-top: 20px;
    text-align: center;
}

.results h2 {
    font-size: var(--font-size-large);
    color: var(--primary-color);
}

.average-block {
    font-size: var(--font-size-medium);
    color: #888;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.average-label {
    font-size: var(--font-size-small);
    color: #888;
}

.average-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color-dark);
    margin-top: 5px;
}

.votes-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}


.vote {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: var(--font-size-small);
    color: var(--text-color-dark);
}

.vote-card {
    width: 50px;
    height: 70px;
    border: 2px solid var(--text-color-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-medium);
    font-weight: bold;
    color: var(--text-color-dark);
    background-color: #fff;
    margin-bottom: 5px;
}

.vote-count {
    font-size: var(--font-size-small);
    color: var(--text-color-dark);
}

