﻿        .calculator-link {
            display: inline-block;
            background: linear-gradient(135deg, #dc2626, #b91c1c);
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 8px;
            font-weight: bold;
            box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
            transition: all 0.3s ease;
        }

        .calculator-link:hover {
            background: linear-gradient(135deg, #b91c1c, #991b1b);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
        }

        .calculator-window {
            position: fixed;
            width: 200px;
            height: 350px;
            background: linear-gradient(135deg, #fecaca, #f87171);
            border: 2px solid #dc2626;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            z-index: 1000;
            display: none;
            overflow: hidden;
        }

        .calculator-header {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
            color: white;
            padding: 8px;
            text-align: center;
            font-weight: bold;
            cursor: move;
            position: relative;
        }

        .close-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: white;
            font-size: 16px;
            cursor: pointer;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .close-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .calculator-display {
            background: #7f1d1d;
            color: white;
            padding: 12px;
            text-align: right;
            font-size: 24px;
            font-weight:bold;
            font-family: 'Courier New', monospace;
            min-height: 24px;
            border-bottom: 1px solid #dc2626;
        }

        .calculator-buttons {
            padding: 8px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 4px;
            height: calc(100% - 100px);
        }

        .calc-btn {
            background: linear-gradient(135deg, #f87171, #ef4444);
            border: 1px solid #dc2626;
            color: white;
            font-size: 24px;
            font-weight: bold;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .calc-btn:hover {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            transform: translateY(-1px);
            box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
        }

        .calc-btn:active {
            transform: translateY(0);
        }

        .calc-btn.operator {
            background: linear-gradient(135deg, #b91c1c, #991b1b);
        }

        .calc-btn.operator:hover {
            background: linear-gradient(135deg, #991b1b, #7f1d1d);
        }

        .calc-btn.clear {
            background: linear-gradient(135deg, #991b1b, #7f1d1d);
            grid-column: span 2;
        }

        .calc-btn.equals {
            background: linear-gradient(135deg, #7f1d1d, #450a0a);
            grid-column: span 2;
        }

        .calc-btn.zero {
            grid-column: span 2;
        }
#BewareNoBIDMAS {
	color:red;
	animation: flashFiveTimes 2.5s steps(1) forwards;
	display:none;
	margin:2px auto;
}
@keyframes flashFiveTimes {
  0%, 20%, 40%, 60%, 80%, 100% {
    opacity: 1;
  }
  10%, 30%, 50%, 70%, 90% {
    opacity: 0;
  }
}