@font-face {
    font-family: calculadora;
    src: url(./fonte/digital-7\ \(mono\ italic\).ttf);
}

/* --- ESTILO DA NAVBAR (MENU SUPERIOR) --- */
.navbar {
    position: fixed;
    width: 100%;
    z-index: 999;
    padding: 15px 0;
    background: #2e4f3e !important; /* Verde Musgo Fixo */
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
}

.navbar .max-width {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .logo a {
    color: #fff;
    font-size: 35px;
    font-weight: 600;
}

.navbar .logo a span {
    color: #76ff03 !important;
}

.navbar .menu li {
    list-style: none;
    display: inline-block;
}

.navbar .menu li a {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.navbar .menu li a:hover {
    color: #76ff03 !important;
}

/* --- ESTRUTURA E FUNDO DA PÁGINA --- */
section.home {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000000;
    min-height: 100vh;
    padding-top: 80px;
}

/* --- ESTILO DA CALCULADORA E VISOR --- */
#visor {
    font-family: calculadora, monospace;
    font-size: 32px;
    width: 170px;
    height: 40px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 10px auto;
    padding: 5px 10px;
    background: linear-gradient(rgb(80, 235, 126), rgb(240, 136, 253));
    border: 2px solid rgb(235, 234, 234);
    border-radius: 3px;
    box-shadow: -1px -1px 0 1px white;
    box-sizing: border-box;
}

#dots {
    display: none;
}

#painel {
    width: 100%;
    text-align: right;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none; /* Esconde scrollbar no Firefox */
}

#painel::-webkit-scrollbar {
    display: none; /* Esconde scrollbar no Chrome/Safari */
}

#calculadora {
    width: 210px;
    margin: 0 auto;
    background: rgb(54, 54, 54);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgb(179, 177, 177);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    box-sizing: content-box;
}

/* --- BOTÕES DA CALCULADORA --- */
.buttonArea {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(4, 42px);
    grid-template-rows: repeat(5, 42px);
    grid-gap: 6px;
    padding: 10px 0;
    box-sizing: border-box;
}

/* Botões padrão em cor branca */
.buttonArea button {
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #ffffff;
    color: #333333;
    transition: background 0.1s ease;
}

.buttonArea button:active {
    background-color: #dddddd;
}

/* Botões especiais verde (0 e =) */
.buttonArea .botao:nth-last-child(2) {
    grid-column: 4;
    grid-row: 4 / 6;
    border: 1px solid rgb(179, 177, 177);
    box-shadow: -1px -1px 2px 1px rgb(238, 237, 237);
    background: rgb(0, 255, 115);
    color: #000;
}

.buttonArea .botao:nth-last-child(3) {
    grid-column: span 2;
    border: 1px solid rgb(179, 177, 177);
    box-shadow: -1px -1px 2px 1px rgb(238, 237, 237);
    background: rgb(0, 255, 128);
    color: #000;
}

.buttonArea .botao:nth-last-child(2):active, 
.buttonArea .botao:nth-last-child(3):active {
    background: rgb(0, 200, 90);
}
