/* Calculator Styles */
.calculator-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: system-ui, sans-serif;
}

.calculator-container h1 {
    color: #000000;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2.5rem;
}

.display {
    width: 100%;
    height: 60px;
    font-size: 28px;
    padding: 12px 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: white;
    border-radius: 8px;
    background-color: #2c3e50;
    border: 2px solid #34495e;
    margin-bottom: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    font-weight: bold;
    letter-spacing: 1px;
}

#calculator {
    padding: 24px;
    width: 320px;
    gap: 12px;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 2px solid #444;
    background: black;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.button {
    padding: 0;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(145deg, #ff4757, #ff3742);
    border-radius: 12px;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    user-select: none;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    background: linear-gradient(145deg, #ff5722, #ff4757);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.button.number {
    background: linear-gradient(145deg, #74b9ff, #0984e3);
}

.button.number:hover {
    background: linear-gradient(145deg, #81ecec, #00b894);
}

.button.operator {
    background: linear-gradient(145deg, #fd79a8, #e84393);
}

.button.operator:hover {
    background: linear-gradient(145deg, #fdcb6e, #e17055);
}

.button.equals {
    background: linear-gradient(145deg, #00b894, #00a085);
}

.button.equals:hover {
    background: linear-gradient(145deg, #55a3ff, #2d96ff);
}

/* Special styling for zero button to make it wider */
.button.zero {
    width: 128px; /* Takes up two button widths plus gap */
}

.back-to-site {
    margin-top: 30px;
}

.back-to-site a {
    color: white;
    text-decoration: none;
    background-color: rgba(255,255,255,0.2);
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: bold;
}

.back-to-site a:hover {
    background-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 480px) {
    #calculator {
        width: 280px;
        padding: 16px;
    }
    
    .button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .button.zero {
        width: 108px;
    }
    
    .display {
        font-size: 24px;
        height: 50px;
    }
    
    .calculator-container {
        padding: 20px 10px;
    }
    
    .calculator-container h1 {
        font-size: 2rem;
    }
}