/* Casio fx-570VN Online - styled and centered */

.casio-fx570vn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.casio-fx570vn {
    width: 416px; /* tăng ~30% so với 320px */
    background: #f5f5f7;
    border-radius: 18px;
    padding: 16px 14px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.casio-header {
    text-align: left;
    margin-bottom: 10px;
}

.casio-brand {
    font-weight: bold;
    font-size: 20px;
}

.casio-model {
    font-size: 15px;
    text-align: right;
    margin-top: -20px;
}

.casio-series {
    text-align: center;
    color: #0070c0;
    font-size: 14px;
    margin-top: 6px;
    margin-bottom: 8px;
}

.casio-screen {
    background: #dfeee0;
    border-radius: 8px;
    padding: 8px 10px;
    border: 1px solid #b4c8b6;
    margin-bottom: 12px;
    min-height: 56px;
    box-sizing: border-box;
}

.casio-screen-sub {
    font-size: 12px;
    min-height: 16px;
    color: #555;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.casio-screen-main {
    font-size: 26px;
    text-align: right;
    font-weight: bold;
    margin-top: 6px;
}

.casio-keyboard {
    margin-top: 8px;
}

.casio-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.casio-key {
    flex: 1;
    margin: 2px;
    height: 44px; /* tăng từ 34px */
    border-radius: 10px;
    border: 1px solid #c7c7c7;
    background: #ffffff;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 1px 1px rgba(0,0,0,0.15);
    outline: none;
}

.casio-key-small {
    font-size: 13px;
}

.casio-key-zero {
    flex: 2;
}

.casio-key-ac {
    background: #ff9c40;
    color: #fff;
    font-weight: bold;
}

.casio-key-del {
    background: #f0c040;
}

.casio-key-equal {
    background: #ff7043;
    color: #fff;
    font-weight: bold;
}

.casio-key-shift {
    color: #e67e00;
}

.casio-key-alpha {
    color: #c00000;
}

.casio-dpad {
    display: flex;
    flex: 3;
    justify-content: center;
    align-items: center;
}

.casio-dpad-middle {
    display: flex;
    flex-direction: row;
}

.casio-dpad-key {
    width: 32px;
    height: 22px;
    margin: 1px;
    border-radius: 6px;
    border: 1px solid #cccccc;
    background: #f5f5f5;
    font-size: 12px;
    cursor: pointer;
}

.casio-key:active,
.casio-dpad-key:active {
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
    transform: translateY(1px);
}
