body {
    font-family: sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
}

.history {
    width: 25%;
    background: #f4f4f4;
    padding: 10px;
    overflow-y: auto;
}

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card {
    background: white;
    padding: 30px;
    width: 60%;
    min-height: 150px;
    box-shadow: 0 0 10px rgba(0,0,0,.2);
}

.buttons {
    margin-top: 20px;
}

button {
    padding: 10px 20px;
    margin: 0 5px;
}

.start-form {
    margin: auto;
}

.card {
    border-radius: 12px;
    position: relative;
}

/* Card header */
.card-type {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 15px;
    opacity: 0.8;
}

/* Card content */
.card-content {
    font-size: 20px;
    line-height: 1.4;
}

/* TYPE COLORS */
.card-task {
    background: #4CAF50; /* green */
    color: #000;
}

.card-rule {
    background: #000;
    color: #fff;
}

.card-question {
    background: #FFEB3B; /* yellow */
    color: #000;
}

.card-fast {
    background: #F44336; /* red */
    color: #fff;
}

.card-vote {
    background: #2196F3; /* blue */
    color: #fff;
}

/* ---------- START SCREEN ---------- */
.start-card {
    width: 400px;
    background: #fff;
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,.2);
}

.start-card h2 {
    margin-bottom: 25px;
}

/* Player input fields */
.player-input {
    width: 100%;           /* full width */
    padding: 16px;         /* bigger height */
    margin-bottom: 15px;   /* vertical spacing */
    font-size: 18px;       /* bigger text */
    border-radius: 12px;   /* rounded corners */
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Focus style */
.player-input:focus {
    outline: none;
    border-color: #2196F3;
}

/* Start button */
.start-button {
    margin-top: 15px;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    background: #2196F3;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.start-button:hover {
    background: #1976D2;
}

.card-counter {
    font-size: 30px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
    /*position: absolute;*/
    top: 12px;
    right: 16px;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: rgba(255,255,255,0.8); /* white for visibility */
    border-radius: 4px;
    transition: width 0.3s ease;
}
