:root {
    --color-bg: #f2f2f7;
    --color-card: #ffffff;
    --color-btn-number: #ffffff;
    --color-btn-function: #d4d4d4;
    --color-btn-operator: #ff9f0a;
    --color-text: #000000;
    --color-text-operator: #ffffff;
}

* {
    margin: 0;
    padding: 0;
}

body {
    background: #f2f2f7;
}

.calc-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


.card-calculator {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
    max-width: 370px;
    min-height: 600px;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 10px solid rgba(31, 30, 30, 0.1);
}

.decorative-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.decorative-buttons .circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.decorative-buttons .circle-1 {
    background: #FD5754;
}

.decorative-buttons .circle-2 {
    background: #FEBB40;
}

.decorative-buttons .circle-3 {
    background: #34C848;
}

.web-viewr {
    flex: 1;
    background: rgb(230, 233, 235);
    border-radius: 6px;
    padding: 5px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(31, 30, 30, 0.1);
}

.web-viewr a {
    font-size: 0.8rem;
    color: rgb(61, 63, 65);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.screen-calculator {
    background: linear-gradient(135deg, #1a1a1a, #000000);
    width: 100%;
    min-height: 150px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 1.25rem 1.5rem;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.screen-calculator .screen-expression {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
    min-height: 1.2rem;
    letter-spacing: 0.02em;
}

.screen-calculator .screen-result {
    font-size: 3rem;
    font-weight: 200;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    transition: font-size 0.2s ease;
}

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

.btn-calc {
    border: none;
    height: 60px;
    font-size: 1.3rem;
    border-radius: 50%;

    transition: all 0.3s ease;
}

.btn-calc:hover{
    background: rgb(205, 208, 212);
}

.btn-function {
    background: #ff9f0a;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-function:hover {
    background: #c2790c;
}

.btn-number {
    color: #000000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-operator {
    background: #ff9f0a;
    color: #ffffff;
}

.btn-operator:hover {
    background: #c2790c;
}

.btn-zero {
    grid-column: span 2;
    width: 100%;
    border-radius: 40px;
    text-align: left;
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .calc-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 1rem;
    }

    .card-calculator {
        margin: 0 auto;
    }
}