body {
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.round-display {
    font-size: 2em;
    font-weight: normal;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    vertical-align: middle;
}

.score-display {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    vertical-align: middle;
}

.name-display {
    font-weight: bold;
    grid-column: span 1;
}

.task-display {
    grid-column: span 2;
    text-align: right;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: 600px;
    width: 90%;
}

.group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.button {
    font-size: 1.5em;
    font-weight: bold;
    padding: 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.button:hover {
    transform: scale(1.05);
}

.button:active {
    background-color: #3e8e41;
}

.button.large {
    grid-column: span 2;
}

.button.medium {
    grid-column: span 1.5;
}

/* Responsive Anpassung */
@media (max-width: 400px) {
    .button {
        font-size: 1.2em;
        font-weight: normal;
        padding: 15px;
    }
}

/* Gruppentrenner */
.group-divider {
    height: 2px;
    background-color: #ccc;
    margin: 10px 0;
}

/* Querformat-Anpassung */
@media (max-height: 400px) {
    .group-divider {
        height: 1px;
        background-color: #ccc;
        margin: 2px 0;
    }
    .button {
        font-size: 1em;
        padding: 10px;
    }    
}

/* Modal für Einrichtungsdialog */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 80%;
    text-align: left;
}

.modal-header {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.input-group input {
    width: 70%;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.modal-footer {
    text-align: right;
}

.modal-footer button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-footer button.nok-btn {
    background-color: #f44336;
    color: white;
    margin-right: 10px;
}

.modal-footer button.ok-btn {
    background-color: #4CAF50;
    color: white;
}

.player-list {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
    max-height: 150px;
    overflow-y: auto;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.player-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

.player-list li input {
    font-size: 1em;
    padding: 5px;
    width: 70%;
    margin-right: 10px;
}

.add-btn {
    background-color: #4CAF50;
    color: white;
}

.remove-btn {
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 0.9em;
}

.settings-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    font-size: 30px;
    font-weight: normal;
    cursor: pointer;
    color: #333;
}

.settings-button:hover {
    font-weight: bold;
}

@keyframes scaleUp {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
  
.scale-effect {
animation: scaleUp 0.9s ease-in-out;
}