.calculator {
     width: 80px;
     height: 80px;
     z-index: 3;
     display: flex;
     align-items: center;
     justify-content: center;
     position: relative;
     left: 1400px;
     top:500px;
     margin: 20px;
     background-color: white;
     border-radius: 10px;
     padding: 4px;
     color: black;
     cursor: pointer;
     transition: transform 0.3s ease, background-color 0.3s ease;
}

.calculator:hover {
     background-color: rgb(245, 245, 245);
     transform: translateY(-4px);
}

@keyframes lafanimation {
     0% {
          transform: translateY(0px);
     }

     50% {
          transform: translateY(-12px);
     }

     100% {
          transform: translateY(0px);
     }
}

.calc {
     object-fit: cover;
     width: 100%;
     height: 100%;
}

.calculator-panel {
     opacity: 0;
     visibility: hidden;
     width: 320px;
     min-height: 420px;
     z-index: 4;
     position: fixed;
     top: 80px;
     left: 40px;
     background-color: white;
     box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
     border-radius: 18px;
     padding: 16px;
     color: black;
     transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
     display: flex;
     flex-direction: column;
     gap: 12px;
     transform: translateY(-12px);
     pointer-events: none;
     touch-action: none;
}

.calculator-panel.open {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
     pointer-events: auto;
}

.calculator-window {
     display: flex;
     flex-direction: column;
     gap: 12px;
     width: 100%;
}

.calculator-screen {
     min-height: 70px;
     background-color: #222;
     color: #fff;
     border-radius: 14px;
     font-size: 2rem;
     padding: 16px;
     text-align: right;
     word-break: break-all;
}

.calculator-keys {
     display: grid;
     grid-template-columns: repeat(4, 1fr);
     gap: 10px;
}

.calculator-keys button {
     padding: 16px;
     border: none;
     border-radius: 12px;
     font-size: 1.1rem;
     background-color: #f4f4f4;
     cursor: pointer;
     transition: background-color 0.2s ease;
}

.calculator-keys button:hover {
     background-color: #e8e8e8;
}

.calculator-keys button.operator {
     background-color: #ff9f0a;
     color: white;
}

.calculator-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     cursor: move;
     user-select: none;
     touch-action: none;
}

.calculator-header button {
     border: none;
     background: transparent;
     cursor: pointer;
     font-size: 1.3rem;
     color: #333;
}

.calculator-keys button.operator {
     background-color: #ff9f0a;
     color: white;
}

.calculator-keys button.equals {
     background-color: #1e90ff;
     color: white;
}