@import url('https://fonts.googleapis.com/css2?family=Playwrite+DE+LA+Guides&display=swap');




/* Genel stil */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 100px;
    padding-top: 70px;
    background-image: url("https://media.istockphoto.com/id/1063044908/tr/vekt%C3%B6r/h%C3%BCcre-ka%C4%9F%C4%B1t-seamless-modeli-kareli-defter-ya-da-okul-al%C4%B1%C5%9Ft%C4%B1rma-kitab%C4%B1-bo%C5%9F-sayfa-mavi-%C3%A7izgili.jpg?s=612x612&w=0&k=20&c=R-4HquvEt-yTzC0OrxDHpTipHXuTmkmy8I9AijQ8PjA=");

}

.title {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    font-size: 40px;
}

.title div {
    margin: 0 5px;
}

.button-row {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    z-index: 99999;
}
.button-row .btn {
    padding: 0;
    font-size: 16px;
    width: 50%;
    border-radius: 0;
}
/* Ana başlık */
h2 {
    text-align: center;
    margin-top: 20px;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 30px;
    width: 100%;
}

/* Negatif değer girildiğinde kırmızı */
input[type="number"].negative {
    border: 2px solid #e74c3c;
    background-color: #f8d7da;
    color: #e74c3c;
}

/* Pozitif değer girildiğinde yeşil */
input[type="number"].positive {
    border: 2px solid #28a745;
    background-color: #d4edda;
    color: #28a745;
}

/* Tablo düzeni */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 15px;
    text-align: center;
    font-size: 1rem;
}

/* Başlık hücreleri */
th {
    background-color: #4CAF50;
    color: white;
}

/* İç hücreler */
td {
    background-color: #ffffff;
}

/* Giriş kutuları */
input[type="number"] {
    width: 100px;
    padding: 10px;
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    background-color: #f4f4f9;
}

input[type="number"]:focus {
    background-color: #e0e0e0;
}

/* Toplam hücre */
.total-cell {
    font-weight: bold;
    background-color: #f4f4f9;
    color: #333;
}

/* Buton ve form düzeni */
button {
    display: block;
    margin: 30px auto;
    padding: 12px 25px;
    font-size: 1.1rem;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Form stili */
form {
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    background:url("https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Ace_of_spades.svg/1200px-Ace_of_spades.svg.png");
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    background-size: cover;
        min-height: 480px;
        border: 2px solid #000;
    border-radius: 10px;
}

form .mb-3 {
    margin-bottom: 20px;
}

form input[type="text"] {
    padding: 12px;
    font-size: 1.1rem;
    border: none;
    border-radius: 4px;
    width: 100%;
    background-color: #f4f4f9;
    transition: background-color 0.3s ease;
}

form input[type="text"]:focus {
    background-color: #e0e0e0;
}


/* Tur sütunu genişliğini otomatik ayarla */
#scoreTable td:first-child,
#scoreTable th:first-child {
    width: 1%;
    white-space: nowrap;
}

/* İlk sütunun kenarlığını kaldır */
#scoreTable td:first-child,
#scoreTable th:first-child {
    border: none !important;
    background-color: transparent;
}

/* Satır gölgeleri */
#scoreTable tbody tr:not(:last-child):not(:first-child) {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease-in-out;
}

#scoreTable td:first-child {
    color: #888;
    font-weight: bold;
}

.score-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.score-card {
    border-radius: 12px;
    padding: 20px;
    background: #1a1f470a;
    backdrop-filter: blur(5px);
    z-index: 10;
    transition: ease-out 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: url("https://img.pikbest.com/origin/09/26/18/61wpIkbEsTIqW.png!sw800");
    background-size:100px;
    background-repeat:no-repeat;
    background-position: center;

}

.score-card:hover {
    transform: translateY(-2px);
}

.btn-start {
width: 100%;
    border-radius: 50px;
    padding: 0;
    margin: 0;
    height: 50px;
}

.form-label {
    width: 100%;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}

.modal-content {
    border-radius: 12px;
    padding: 20px;
}
.modal-title {
    font-weight: bold;
}

.score-header {
    color: #2e5369;
    text-align: center;
    font-weight: bolder;
    background: #7fd0ff;
    width: fit-content;
    margin: auto;
    border-radius: 50px;
    padding: 4px 10px;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 0;
    font-size: 12px;
}

.score-inputs {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    position: relative;
}

.score-inputs::After {
    content: "";

    width: 100px;
    height: 100%;
    position: absolute;
    left: 40%;
    top: 0%;
    font-weight: bolder;
    background-size: cover;
}

.player-score {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.player-score label {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #666;
    text-align: center;
    font-weight: bolder;
    font-size: 20px;
}

.player-score input {
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    background-color: #f4f4f9;
    text-align: center;
    text-align: center;
    margin: auto;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);

}

.player-score input.positive {
    background-color: #d4edda;
    color: #28a745;
    border: 2px solid #28a745;
}

.player-score input.negative {
    background-color: #f8d7da;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.total-score {
    text-align: center;
    font-weight: bold;
    padding: 15px;
    background-color: #f9f9f9b9;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    position: fixed;
    bottom: 10px;
    left: 2.5%;
    width: 95%;
    z-index: 999;
      border-radius: 100px;
    background-position: center;
    background-size: cover;
        padding: 0;
    height: 60px;
    display: flex;
    color: #fff;
    align-items: center;
    background: #1a1f47;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(15, 21, 53, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.total-score span {
    font-size: 14px;
}

.total-score .alert {
    font-size: 20px;
    font-weight: bolder;
    color: #fff;
}

.total-score .title {
    position: absolute;
    left: -20px;
    top: 20px;
    background: #000;
    color: #000;
    transform: rotate(-90deg);
    font-size: 13px;
    height: 20px;
    width: 60px;
}


/* Mobil uyum için medya sorguları */
@media (max-width: 768px) {
    h2 {
        font-size: 1.5rem;
    }

    .table th, .table td {
        font-size: 0.9rem;
        padding: 12px;
    }

    input[type="number"] {
        width: 80px;
    }

    form {
        padding: 20px;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.3rem;
    }

    .table th, .table td {
        font-size: 0.85rem;
        padding: 10px;
    }

    input[type="number"] {
        width: 70px;
    }

    form {
        max-width: 90%;
        padding: 15px;
    }

    button {
        font-size: 1rem;
    }
}
