.card-grid {
    display: grid;
}

.acronym-card {
    perspective: 1000px;
    aspect-ratio: 1;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card-front {
    background-color: #007bff;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.card-back {
    background-color: #28a745;
    color: white;
    transform: rotateY(180deg);
    font-size: 16px;
}

.setup-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.scoring-grid {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin: 20px 0;
}

.score-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.score-cell {
    text-align: center;
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.grid-size-controls {
    margin-bottom: 20px;
}

.student-names {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.student-name {
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
}