@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    color: #333;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Ayarlar ve Kontrol Sayfası Stilleri --- */
h1, h2 {
    text-align: center;
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
}

button, a {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    background-color: #e50914;
    color: white;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
}

button:hover, a:hover {
    background-color: #f40612;
}

.control-container {
    text-align: center;
}

.player-control {
    margin-bottom: 20px;
}

.score-display {
    font-size: 4em;
    font-weight: 900;
    margin: 10px 0;
    color: #111;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.score-btn {
    width: 80px;
    font-size: 2em;
    padding: 10px 0;
}
.plus { background-color: #28a745; }
.plus:hover { background-color: #218838; }
.minus { background-color: #dc3545; }
.minus:hover { background-color: #c82333; }

.match-info {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 10px;
}

.extra-buttons {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.extra-buttons button, .extra-buttons a {
    background-color: #6c757d;
    font-size: 16px;
    padding: 12px;
}
.extra-buttons button:hover, .extra-buttons a:hover {
    background-color: #5a6268;
}


/* --- OBS Overlay Stilleri --- */
.overlay-body {
    background: transparent;
    padding: 0;
    margin: 0;
    overflow: hidden; /* Taşmaları engelle */
}

.scoreboard-container {
    position: absolute;
    bottom: 50px; /* Alttan boşluğu buradan ayarlayabilirsiniz */
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 60px;
    background-color: #e50914; /* Ana Kırmızı Renk */
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-weight: 700;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.player-name {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 24px;
    width: 250px;
}
.player-name.p1 {
    justify-content: flex-start;
}
.player-name.p2 {
    justify-content: flex-end;
}

.score {
    font-size: 36px;
    font-weight: 900;
    width: 60px;
    text-align: center;
}

.race-to {
    text-align: center;
    background-color: #fff;
    color: #333;
    height: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.race-to span:last-child {
    font-size: 24px;
    font-weight: 900;
}
