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

body {
    background-color: #000;
    color: #fff;
    font-family: 'Arial', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 33.33%;
    height: 100vh;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 33.33%;
    height: 100vh;
    background: linear-gradient(135deg, #4444ff, #0000cc);
    z-index: -2;
}

.scoreboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100vw;
    height: 100vh;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.column {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 40px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.red-column {
    /* Red background already handled by body::before */
}

.center-column {
    background-color: rgba(0, 0, 0, 0.9);
    border-radius: 0;
}

.blue-column {
    /* Blue background already handled by body::after */
}

.team-name {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 60px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.red-column .team-name {
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.blue-column .team-name {
    color: #ffffff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

/* Remove score-container styles as we're not using it anymore */

.score-display {
    font-size: 12rem;
    font-weight: bold;
    text-shadow: 6px 6px 12px rgba(0, 0, 0, 0.8);
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

/* Score display styles are now handled by the main .score-display rule */

.button-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.score-btn {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

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

.up-btn:hover {
    background-color: #45a049;
    transform: scale(1.1);
}

.down-btn {
    background-color: #f44336;
    color: white;
}

.down-btn:hover {
    background-color: #da190b;
    transform: scale(1.1);
}

/* Center section styles are now handled by .center-column */

.round-info {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

/* Timer status styles removed - no longer displaying grey status text */

.round-progress {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    margin-top: 5px;
}

.timer-display {
    font-size: 6rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.control-btn {
    padding: 20px 40px;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

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

.start-stop-btn:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.start-stop-btn.running {
    background-color: #f44336;
}

.start-stop-btn.running:hover {
    background-color: #da190b;
}

.reset-btn {
    background-color: #ff9800;
    color: white;
}

.reset-btn:hover {
    background-color: #e68900;
    transform: scale(1.05);
}

.reset-all-btn {
    background-color: #f44336;
    color: white;
}

.reset-all-btn:hover {
    background-color: #da190b;
    transform: scale(1.05);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .scoreboard-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .column {
        height: auto;
        min-height: 33vh;
        padding: 20px;
    }
    
    .center-column {
        order: -1;
        background-color: rgba(0, 0, 0, 0.9);
        border-radius: 20px;
        margin: 10px;
    }
    
    .team-name {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .score-display {
        font-size: 4rem;
        margin: 20px 0;
    }
    
    .button-group {
        flex-direction: row;
        gap: 15px;
    }
    
    .score-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .timer-display {
        font-size: 2.5rem;
    }
    
    .round-info {
        font-size: 1.5rem;
    }
    
    .control-btn {
        padding: 12px 24px;
        font-size: 1rem;
        min-width: 100px;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .column {
        padding: 30px;
    }
    
    .team-name {
        font-size: 2.5rem;
    }
    
    .score-display {
        font-size: 8rem;
        margin: 30px 0;
    }
    
    .score-btn {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .timer-display {
        font-size: 4rem;
    }
    
    .round-info {
        font-size: 2rem;
    }
    
    .control-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .column {
        padding: 60px;
    }
    
    .team-name {
        font-size: 5rem;
        margin-bottom: 80px;
    }
    
    .score-display {
        font-size: 16rem;
        margin: 60px 0;
    }
    
    .score-btn {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .timer-display {
        font-size: 7rem;
    }
    
    .round-info {
        font-size: 3rem;
    }
    
    .control-btn {
        padding: 20px 40px;
        font-size: 1.5rem;
        min-width: 180px;
    }
}

/* Settings Icon */
.settings-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.settings-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 0;
    max-width: 700px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #333;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.8rem;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
}

.setting-group {
    margin-bottom: 25px;
}

.setting-group label {
    display: block;
    margin-bottom: 10px;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid #555;
    border-radius: 6px;
    background-color: #2a2a2a;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Arial', sans-serif;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.setting-group select {
    cursor: pointer;
}

.setting-group select option {
    background-color: #2a2a2a;
    color: #fff;
    padding: 8px;
}

.time-selector {
    display: flex;
    gap: 15px;
    align-items: center;
}

.time-selector select {
    flex: 1;
    min-width: 0;
}

.modal-footer {
    padding: 25px 30px;
    border-top: 1px solid #333;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-footer .control-btn {
    margin: 0;
    min-width: 120px;
    padding: 12px 20px;
    font-size: 1.1rem;
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .settings-icon {
        top: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .modal {
        width: 98%;
        max-width: none;
        margin: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .modal-footer .control-btn {
        width: 100%;
    }
    
    .time-selector {
        flex-direction: column;
        gap: 8px;
    }
    
    .time-selector select {
        width: 100%;
    }
}
