* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tooltip text */
.tooltiptext {
    visibility: hidden; /* Hidden by default */
    width: auto;
    background-color: Aqua;
    color: #fffffff;
    text-align: center;
    font-size: 12px;
    padding: 15px 15px;
    border-radius: 25px;
    position: relative;
    bottom: 30pt;
    right: 200pt;
    border: 1px solid blue;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1; /* Ensure tooltip is displayed above content */
}

/* Show the tooltip text on hover */
.form-group:hover .tooltiptext {
    visibility: visible;
}

/* Buttons */
.btn {
    background: linear-gradient(45deg, DeepSkyBlue , CornflowerBlue );
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.btn-success {
    background: linear-gradient(45deg, #43e97b, #38f9d7);
}

.btn-warning {
    background: linear-gradient(45deg, #fa709a, #fee140);
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
    min-width: 256px;
    min-height: 84px;
}


/* Game Controls */
.game-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}


/* Game Area */
.game-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.game-header {
    text-align: center;
    margin-bottom: 10px;
}

.game-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-info {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    margin-bottom: 10px;
}

.info-item {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Turn Controls */
.turn-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1px;
    flex-wrap: wrap;
}

.timer-btn {
    background: linear-gradient(45deg, #4facfe, #00f2fe);
    border: none;
    color: white;
    padding: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    width: 80px;
    height: 80px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.timer-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(79, 172, 254, 0.6);
}

.timer-btn.stop {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.timer-btn.stop:hover {
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
}

/* Players Table */
.players-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0px;
}

.players-table th {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    /* text-align: center; */
    font-weight: 600;
    border-radius: 10px 10px 0 0;
}

.players-table th:first-child {
    border-radius: 10px 0 0 0;
}

.players-table th:last-child {
    border-radius: 0 10px 0 0;
}

.players-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
    text-align: center;
}

.players-table tr {
    transition: all 0.3s ease;
}

.players-table tr:hover {
    background: rgba(79, 172, 254, 0.1);
}

.player-row.active {
    background: linear-gradient(45deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border-left: 4px solid #ffc107;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.player-row.completed {
    background: rgba(0, 123, 255, 0.1);
    border-left: 4px solid #007bff;
}

/* Time Display */
.time-display {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    padding: 8px 15px;
    background: linear-gradient(45deg, #20bf6b, #01a3a4);
    color: white;
    border-radius: 15px;
    display: inline-block;
    min-width: 70px;
}

.time-display.negative {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* New Game Form */
.new-game-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #4facfe;
    box-shadow: 0 0 10px rgba(79, 172, 254, 0.3);
    outline: none;
}



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

    .game-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .game-info {
        flex-direction: column;
        gap: 15px;
    }

    .turn-controls {
        flex-direction: column;
        align-items: center;
    }

    .players-table {
        font-size: 14px;
    }

    .players-table th,
    .players-table td {
        padding: 10px 8px;
    }

    .time-display {
        font-size: 16px;
        min-width: 70px;
    }
}

@media (max-width: 480px) {
    .game-area,
    .new-game-form {
        padding: 20px 15px;
    }

    .game-title {
        font-size: 24px;
    }

    .timer-btn {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .players-table {
        font-size: 12px;
    }

    .time-display {
        font-size: 14px;
        padding: 6px 10px;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    font-weight: 500;
}

.message.success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.message.error {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}


/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
