/* style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    background-color: #f0f2f5;
    overflow-y: auto;
    padding: 20px;
}

.container {
    text-align: center;
    padding: 30px;
    width: 100%;
    max-width: 700px;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

label {
    font-size: 20px;
    margin-bottom: 15px;
    display: block;
    color: #555;
}

input[type="text"] {
    padding: 12px;
    font-size: 18px;
    width: 100%;
    max-width: 500px;
    margin-bottom: 25px;
    border: 2px solid #ccc;
    border-radius: 8px;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 ustun */
    gap: 10px;
    margin-top: 20px;
}

#game-board div {
    background-color: #f9f9f9; /* Oldingi fon rangi */
    border: 2px solid #ccc;    /* Oldingi chegara rangi */
    padding: 20px;             /* Oldingi padding */
    font-size: 24px;           /* Oldingi shrift o'lchami */
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    border-radius: 5px;        /* Qo'shimcha: burchaklarni yumaloqlash */
}

#game-board div:hover {
    background-color: #e0e0e0; /* Oldingi hover effekti */
}

button {
    margin-top: 20px;
    padding: 12px 25px;
    font-size: 18px;
    cursor: pointer;
    background-color: #007bff; /* Ko'k rang */
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3; /* Tugma ustiga kelganda to'q ko'k rang */
}

#view-results-btn {
    background-color: #28a745; /* Yashil rang */
}

#view-results-btn:hover {
    background-color: #218838;
}

#exit-btn {
    background-color: #dc3545; /* Qizil rang */
}

#exit-btn:hover {
    background-color: #c82333;
}

#end-screen {
    margin-top: 20px;
}

#end-screen button {
    margin: 5px;
}

#timer {
    margin-top: 20px;
    font-size: 20px;
    color: #333;
}

#result {
    margin-top: 25px;
    font-size: 20px;
    color: #dc3545; /* Qizil rang */
}

/* Jadval uslublari */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

table, th, td {
    border: 1px solid #ddd;
}

th, td {
    padding: 15px;
    text-align: left;
    font-size: 18px;
}

th {
    background-color: #f8f9fa;
}

/* Kichik ekranlar uchun shrift va paddingsni kamaytirish */
@media (max-width: 600px) {
    th, td {
        font-size: 14px;
        padding: 8px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    label, #timer, #result {
        font-size: 16px;
    }
    
    input[type="text"] {
        font-size: 16px;
        padding: 10px;
    }
    
    button {
        font-size: 16px;
        padding: 10px 20px;
    }
    
    #game-board div {
        padding: 15px;
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    #game-board {
        grid-template-columns: repeat(3, 1fr); /* Kichik ekranlar uchun 3 ustun */
    }
}
