@import url("https://fonts.bunny.net/css?family=orbitron:400,700");

@font-face {
  font-family: "DigitalNumbers";
  src: url("./DigitalNumbers.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}


body {
  /* font-family: Arial, sans-serif; */
  font-family: "Orbitron", cursive;
  background-color: #f7f7f7;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.calculator {
  background-color: #fff1cb;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 3px 2px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}
.button-container {
  display: flex;
  flex-direction: row; /* ✅ اضافه شد برای افقی بودن */

  width: 100%;
  gap: 10px; /* ✅ فاصله مناسب بین بخش‌ها */
}

.func-button {
  display: flex;
  width: 25%;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.func-button button {
  background-color: #01b1a0;
  width: 100%;
  min-height: 50px;
  font-weight: 700;
  border-radius: 5px;
  cursor: pointer;

  border: none;
  transition: all 0.2s ease-in-out;
  font-family: 'Segoe UI Symbol', 'DejaVu Sans', 'Arial Unicode MS',sans-serif !important;
  
}

.func-button button:hover {
  background-color: #01887a;
  transform: scale(1.05); /* کمی بزرگ‌تر شدن دکمه */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.casual-button {
  width: 75%;
}

.display {
  font-family: DigitalNumbers !important;
  width: 100%;
  padding: 10px 0px 10px 0px;
  margin-bottom: 10px;
  font-size: 2rem;
  text-align: right;
  background-color: #a5a5a5;
  border: none;
  outline: none;
  pointer-events: none; /* غیرقابل کلیک */
  border-radius: 5px;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.row button {
  width: 100%;
  min-height: 50px;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  background-color: #c2e2fa;
  flex: 1;
  border: none;
  transition: all 0.2s ease-in-out; /* نرم‌تر شدن تغییرات */
}

/* .row .row1 button[:first-child]{
  flex:3;
} */

.row1 button {
  background-color: #ff8f8f;
}

.row1 button:first-child:hover {
  background-color: #fc8989;
}
.row1 button:last-child:hover {
  background-color: #fc8989;
}

.row1 button:first-child {
  flex: 4;
}

.row button:hover {
  background-color: #9fcdf6;
  transform: scale(1.05); /* کمی بزرگ‌تر شدن دکمه */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.row button:active {
  transform: scale(0.97);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

.active {
  background-color: #252525 !important;
  transform: scale(0.97);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

button.dif {
  background-color: #b7a3e3;
  font-weight: 400;
}
.dif:hover {
  background-color: #a387db !important;
}

button,
input {
  font-family: "Orbitron", cursive !important;
}

.function-show-btn{
  display: none;
  
}

.function-show-btn:hover {
  background-color: #fc8989 !important;
}

@media (max-width: 600px) {
  .function-show-btn {
    display: inline-block;
  }
  .button-container {
    flex-direction: column-reverse;
    align-items: center;
  }
  .func-button {
    display: none;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 0px;
  }
  .casual-button {
    width: 100%;
  }
  .func-button.show {
    display: flex;
  }
  .row1 button:first-child {
  flex: 2;
}
}
