/* General Body Styles */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1a2a45;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Player Dashboard (Top Center) */
.player-dashboard {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.player-card-container {
    position: relative;
    display: inline-block;
}

/* Player Card */
.player-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
    position: relative;
}

/* Player Info Section */
.player-info h2 {
    font-size: 1.7rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.player-info p {
    color: #00565c;
    margin: 5px 0;
}

#playerName {
    font-weight: bold;
}

#playerPoints {
    font-size: 2rem;
}

/* Buzzer Button */
.buzzer-button {
    background-color: #f7e300;
    color: #1a2a45;
    font-size: 2.5em;
    padding: 20px 40px;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.buzzer-button:disabled {
    background-color: #b0b0b0;
    color: #666666;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    text-shadow: none;
}

.buzzer-button.hit {
    background-color: #920000;
}

.buzzer-button.hit:hover {
    background-color: #c0392b;
}

.buzzer-button:hover {
    background-color: #d8c600;
}

/* Other Players List */
.other-players-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
    padding: 0 20px;
}

.other-player-card {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.other-player-card h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

.stats {
    font-size: 2rem;
    color: #007981;
    margin-bottom: 10px;
    text-align: center;
}

.buzzer-status {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: grey;
    transition: background-color 0.3s ease;
}

.buzzer-status.pressed {
    background-color: red;
}

.text-input {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 12px;
    width: 80%;
    font-size: 1.2em;
    border-radius: 10px;
    border: 2px solid #ddd;
    box-sizing: border-box;
}

.text-input:focus {
    border-color: #f7e300;
    outline: none;
}

#question {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    background-color: #f4f4f4;
    padding: 20px;
    border: 3px solid #2980b9;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    margin: 20px auto 1px auto;
}

.image-box {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 340px;
    margin-left: 20px;
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .player-card {
        width: 100%;
        padding: 15px;
    }

    .image-box {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin: 20px 0 0 0;
    }

    .buzzer-button {
        font-size: 1.2rem;
        padding: 12px 35px;
    }

    .other-player-card {
        width: 200px;
        margin: 8px;
    }
}