* {
   /* margin: 0px;
    padding: 0px;*/
} 

/*header, section, footer, aside, nav, article, figure, figcaption,
hgroup{
 display: block;
} */

body {
    background-color: white;
    color: #555555;
    /*font-family: Verdana;*/
    font-family: 'Playfair Display', serif;
    width: 700px;
    margin: 15px auto;
}

#contenedor {
    width: 700px;
    margin: 15px auto;
}

#encabezado a {
    float: right;
}

#encabezado hgroup {
    float: left;
    margin: 0px;
    padding: 15px 0px;
    color: brown;
    font-style: italic;
    font-weight: 900;
    font-size: 18px;
    line-height: 1.4;
}

#encabezado hgroup h1 {
    text-shadow: #aaa 3px 3px 5px;
    margin: 0px;
    padding: 0px; 
}

#menu {
    clear: both;
    background: -webkit-linear-gradient(#FFFFFF, #999999);
    background: -o-linear-gradient(#FFFFFF, #999999);
    background: linear-gradient(#FFFFFF, #999999);
    padding: 5px 10px;
    margin: 0px 0px 10px 0px;
    text-align: center;
    border: 1px solid #999999;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: rgb(150,150,150) 5px 5px 10px;
    -webkit-box-shadow: rgb(150,150,150) 5px 5px 10px;
    box-shadow: rgb(150,150,150) 5px 5px 10px;
}   

#menu a {
    text-decoration: none;
    color: brown;
}

#menu ul{
    padding: 0;
    margin: 0;
}

#menu li {
    display: inline-block;
    list-style: none;
   /* margin: 0px;
    padding: 0px;*/
    padding: 5px;
    font: bold 18px 'Playfair Display', serif;
}

.active{
    text-decoration: underline;
}

#contenedor {
   
}

#contenido{
    float: left;
    width: 395px;
    padding: 5px;
}

#contenido h2{
    margin-top: 0;
}

#calculadora{
    font-family: Verdana, Arial, Helvetica, sans-serif;
    color: black;
    text-align: center;
    float: right;
    width: 275px;
    height: 375px;
    border: 1px solid brown;
    padding: 5px;
    margin: 0px 0px 10px 0px;
    -moz-box-shadow: rgb(150,150,150) 5px 5px 10px;
    -webkit-box-shadow: rgb(150,150,150) 5px 5px 10px;
    box-shadow: rgb(150,150,150) 0px 0px 15px;
    background-color: #f4f4f4
}

#calc1{
    padding: 5px;
}

#calc1 h3{
    margin-top: 5px;
    margin-bottom: 5px;
}

#pantalla{
    width: 100%;
    height: 35px;
    text-align: right;
    font-size: 30px;
    padding: 0;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 2px solid #e8e8e8;
}

.flex1{
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: horizontal;
    -moz-box-orient: horizontal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-box-align: start;
    -moz-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
}

#calc2{
    /*padding: 5px;*/
    /*border-top: 1px solid #e8e8e8;*/
    
}

#calc3{
    background-color: #e8e8e8;
    padding: 5px;
    display: flex;
    flex-direction: row;
    align-content: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

.teclado{
    min-width: 50px;
    padding: 5px;
}

.numero{
    font-size: 18px;
}

.teclado:hover{
    background-color: #cccccc;
}

footer {
    clear: both;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #999999;
}