/* خطوط Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@700&display=swap');

body {
    font-family: 'Cairo', Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(270deg, #d7c0c0, #2778a7, #48dbfb, #5f27cd, #1dd1a1);
    background-size: 400% 400%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: moveGradient 20s linear infinite;
}
@keyframes moveGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.culc-sec {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.culc-container {
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 8px 32px rgba(60, 72, 88, 0.15);
    border-radius: 24px;
    padding: 32px 24px;
    width: 270px;
}

.displaying {
    display: flex;
    align-items: center;
    overflow-y: hidden;
    overflow-x:auto;
    max-height: 50px;
    background: #eef2ff;
    border-radius: 12px;
    padding: 5px 12px;
    margin-bottom: 18px;
    text-align: right;
    font-size: 2rem;
    color: #3730a3;
    box-shadow: 0 2px 8px rgba(60, 72, 88, 0.07);
}

.btns-container, .btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    justify-content: center;
}

button.num, button.mark {
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.3rem;
    padding: 16px 0;
    width: 58px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(60, 72, 88, 0.07);
}

button.num:hover, button.mark:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    transform: translateY(-2px) scale(1.05);
}

.clear-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 18px;
}

.clear-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    padding: 10px 32px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(60, 72, 88, 0.07);
}

.clear-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px) scale(1.05);
}

h1 {
    display: flex;
    justify-content: center;
    position: relative;
    font-size: 2.2rem;
    color: #e5e5f4;
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(60, 72, 88, 0.07);
}
h1::after{
    content: '';
    position: absolute;
    color: #000; ;
    bottom: -15px;
    width: 110%;
    height: 5px;
}
