body {
   font-family: Arial, sans-serif;
   background-color: #f0f0f0;
   display: flex;
   justify-content: center;
   align-items: center;
   height: 100vh;
   margin: 0;
}

.calculator {
   width: 100%;
   max-width: 600px;
   background-color: #00a2a5;
   padding: 15px;
   border-radius: 15px;
   box-shadow: 0px 0px 15px 0px #000;
   text-align: center;
}

.center {
  margin-left: auto;
  margin-right: auto;
}

h1 {
   color: white;
   font-size: 36px;
}

 input[type=text]:focus {
  background-color: lightblue;
}

input[type=date]:focus {
  background-color: lightblue;
}

input[type=submit]:focus {
  background-color: lightblue;
}

input[type=reset]:focus {
  background-color: lightblue;
}


input[type=text] {
  width: 150px;
  height: 30px;
  margin: 8px 0;
  box-sizing: border-box;
  border-radius: 5px;
  text-align: right;
}

input[type=date] {
  width: 150px;
  height: 30px;
  margin: 8px 0;
  box-sizing: border-box;
  border-radius: 5px;
  text-align: right;
}


input[type=submit] {
  font-family: Arial, sans-serif;
  width: 200px;
  height: 30px;
  margin: 8px 0;
  box-sizing: border-box;
  border-radius: 5px;
}

input[type=reset] {
  font-family: Arial, sans-serif;
  width: 200px;
  height: 30px;
  margin: 8px 0;
  box-sizing: border-box;
  border-radius: 5px;
}

tr {
    height: 30px;
}

#display {
   width: 100%;
   height: 80px;
   font-size: 36px;
   text-align: right;
   padding: 15px;
   margin-bottom: 20px;
   border-radius: 10px;
   border: none;
   background-color: #222;
   color: #fff;
}

.buttons {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 15px;
}

.btn {
   width: 100%;
   padding: 30px;
   font-size: 24px;
   border: none;
   border-radius: 10px;
   background-color: #666;
   color: #fff;
   cursor: pointer;
   transition: background-color 0.2s;
}

.alnright {
    text-align: right;
    width: 150px;
    border: 1px solid;
    border-radius: 5px;
    background-color: lightgrey;
    }

.alnrightinput{
    text-align: right;
    width: 100px;
    }

.alnrightresult {
    text-align: right;
    width: 150px;
    border: 1px solid;
    border-radius: 5px;
    background-color: white;
    }

.alnleft {
    text-align: left;
    width: 200px;
    }

.btn:hover {
   background-color: #555;
}

.operator {
   background-color: #ff9500;
}

.operator:hover {
   background-color: #e68a00;
}

.btn:active {
   background-color: #444;
}

.operator:active {
   background-color: #cc7a00;
}