/* style.css */

body {
    font-family: 'Roboto', sans-serif;
    background-color: #1c1c1c;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}
.container {
    width: 320px;
}

.calculator {
    background-color: #000000;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* Mode Terang */
.calculator.light-mode {
    background-color: #177ed3;
    color: black;
}

.calculator.light-mode .display {
    background-color: #f1f1f1;
    color: black;
}

.calculator.light-mode .display-input {
    color: black;
    opacity: 1;
}

.calculator.light-mode .btn {
    background-color: #e0e0e0;
    color: black;
}

.calculator.light-mode .btn:hover {
    background-color: #d0d0d0;
}

.calculator.light-mode .operation {
    background-color: #cccccc;
}

.calculator.light-mode .clear {
    color: #ff4e88; /* tetap sama */
}


.display {
    text-align: right;
    color: rgb(5, 4, 4);
    margin-bottom: 20px;
    background-color: #cec5c8;
    border-radius: 10px;
    padding: 20px;

    
}

.display-input {
    font-size: 30px;
    opacity: 0.5;
    color: black;
}

.all-btn {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.btn {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: white;
    background-color: #2a2a2a;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
}


.equal {
    background: linear-gradient(135deg, #ff007f, #ff8c00);
    border-radius: 30px;
    grid-row: span 2; /* membuat tombol = memanjang ke bawah */
    height: 100%;
    align-self: stretch; /* biar memenuhi tinggi cell */
}

.btn:hover {
    background-color: #3a3a3a;
}

.operation {
    background-color: #333;
}

.bright {
    background-color: #333;
}

.clear {
    color: #ff4e88;
}

.dot {
    font-weight: bold;
}

