/* ── Keypad container ── */
.keypad {
    width: 30%;
    height: 90%;
    border: 2px solid black;
    box-sizing: border-box;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}
 
.top_keypad-style {
    display: flex;
    width: 100%;
    height: 10%;
    justify-content: right;
    border-bottom: 2px solid black;
    box-sizing: border-box;
}

.keypad_title-style {
    display: flex;
    width: 85%;
    height: 100%;
    font-family: sans-serif;
    font-size: 40px;
    justify-content: center;
    align-items: center;
}

.top_keypad_x_button-style {
    display: flex;
    background-color: black;
    justify-content: center;
    align-items: center;
    width: 15%;
    height: 100%;
    border: 4px solid black;
    box-sizing: border-box;
}
/* ── Display row ── */
.keypad-row {
    display: flex;
    width: 100%;
    height: 18%;
    justify-content: space-evenly;
    align-items: center;    
}
 
.display {
    display: flex;
    width: 80%;
    height: 70%;
    justify-content: center;
    align-items: center;
    border: 4px solid black;
    font-size: 40px;
    font-family: sans-serif;
    background-color: #ffffff;
}

.display.wrong_code {
    color: red;
    
}
 
/* ── Individual button ── */
.keypad_btn-style {
    /* 3 columns: (100% - 2 * 4% gap) / 3 ≈ 30.66% */
    width: 20%;
    height: 80%;
    border: 4px solid black;
    background-color: white;
    font-size: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.keypad_btn_invert-style {
    width: 20%;
    height: 80%;
    border: 4px solid black;
    background-color: black;
    color: white;
    font-size: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

