@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');
*{
    margin: 0;
    padding: 0;
    font-family: 'Share Tech Mono', monospace;
    box-sizing: border-box;     /*Evitar problemas com layout */
    
}

body{
    background: linear-gradient(135deg, #e0f7fa, #218dbe);
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
    align-items: center;
}

h1 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 7px; 
    background: linear-gradient(90deg,#00b4d8, #0077b6 );

    /* recorte do background para texto */
    -webkit-background-clip: text;
    background-clip: text;

    /* Torna a cor real das letras transparentes */
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);

}

#calculator{
    border: 2px solid #0077b6;
    width: 500px;
    height: auto; 
    display: flex;
    flex-direction: column;
    background-color: #e3f2fd; 
    padding: 10px;
    gap: 10px;
    border-radius: 10px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4); 
}

#display{
    background-color: #0f4c75; /* Azul escuro */
    width: 100%;
    padding: 15px;
    text-align: end;
    font-size: 28px;
    color: white;
    font-weight: bold;
    border: 2px solid #00b4d8; /* Azul mais claro */
    border-radius: 10px;
}

div.buttons{
    display: flex;
    flex-flow: column nowrap;
    gap: 10px;
   
}

div.primary{
    display: flex;
    gap: 10px;
    justify-content: space-between;
    
}

div.numbers{
    display: flex;
    flex-flow: row wrap;
    gap: 5px;
    justify-content: space-between;
    width: 75%;
    
}

/* 30% porque queremos 3 botões por linha -5px do gap que colocamos na div*/
div.numbers button{
    flex: 1 1 calc(30% - 5px);   
    height: 60px;
    font-size: 20px;
    background-color: #00b4d8; /* Azul claro */
    color: white;
    border: 2px solid #0077b6;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

div.numbers button:hover {
    background-color: #0077b6;
    
}


div.operators{
    display: flex;
    flex-flow: column nowrap;
    gap: 5px;
    width: 20%;
    
}

div.operators button{
    flex: 1;
    font-size: 20px;
    background-color: #1b9c85; /* Verde */
    color: white;
    border: 2px solid #00876c;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

div.operators button:hover {
    background-color: #00876c;
}

div.special{
    display: flex;
    gap: 10px;
}

div.special button{
    height: 50px;
    font-size: 20px;
    background-color: #f89374; 
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;

}

div.special button:hover {
    background-color: #d84315;
}

#clear{
    flex-grow: 1;
}

#backspace {
    width: calc(75% - 5px);
}

@media (max-width: 576px){
    #calculator{
        width: 85%;
    }

    div.numbers, div.operators{
        gap: 10px;
    }

}


























