/* Genel Ayarlar */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Rakam Klavyesini Masaüstünde Gizle */
#custom-keypad {
    display: none;
}

/* Grid Düzeni */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 100vh;
    padding: 10px;
    box-sizing: border-box;
}

.grid-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

/* Düğme Tasarımı */
button {
    font-size: 1.2em;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}

#restart-button {
    background-color: #28a745;
}

#restart-button:hover {
    background-color: #218838;
}

.options button {
    font-size: 1.1em;
    padding: 8px 12px;
    margin: 5px;
    background-color: #6c757d;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s ease;
}

.options button:hover {
    background-color: #5a6268;
}

/* Tahmin Geçmişi - Kompakt Tasarım */
.history-area h2 {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 10px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f4f4f4;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.guess-header {
    font-weight: bold;
    color: #007bff;
    flex: 1;
    text-align: left;
}

.guess-result {
    display: flex;
    gap: 3px;
    flex: 3;
    justify-content: flex-start;
}

.guess-result span {
    display: inline-block;
    font-size: 0.9em;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    border-radius: 4px;
    color: white;
}

.correct {
    background-color: #28a745; /* Yeşil */
}

.partial {
    background-color: #ffc107; /* Sarı */
    color: black;
}

.wrong {
    background-color: #6c757d; /* Gri */
    color: white;
}

/* Oyun Kuralları */
.rules h2 {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 10px;
}

.rules ul {
    padding: 0;
    margin: 0;
    list-style: none;
    line-height: 1.5;
}

.rules li {
    margin-bottom: 5px;
    color: #333;
}

/* Rakam Klavyesi */
#custom-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 8px 0;
}

.key {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #007bff;
    color: white;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    height: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.key:hover {
    background-color: #0056b3;
}

/* Giriş ve Düğmeler */
.input-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;


}

.button-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

button {
    font-size: 1em;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

button:active {
    transform: scale(0.95);
}