/* ROBOTO FONT */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap");

/* POPPINS FONT */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* ===== Color Variables */
:root {
  --bg-color: linear-gradient(to bottom right, #eeeeee, #e0e3eb);
  --white-color: #ffffff;
  --black-color: #000e1a;
  --orange-color: #ffa500;
  --medium-dark: #333333;
  --light-gray: #cccccc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* ====== Body ====== */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: var(--bg-color);
}

/* ====== Container ====== */
.container {
  max-width: 400px;
  width: 100%;
  border-radius: 30px;
  padding: 20px;
  background: var(--black-color);
  color: var(--white-color);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* ====== display container ====== */
.display-container {
  display: flex;
  flex-direction: column;
  margin-block: 40px 30px;
}

/* ====== History Box ====== */
.history {
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  width: 100%;
  height: 30px;
  text-align: right;
  color: var(--light-gray);
}

/* ====== Display Box ====== */

.display {
  font-size: 50px;
  font-family: "Roboto", sans-serif;
  font-weight: 100;
  height: 70px;
  width: 100%;
  text-align: right;
  outline: none;
  border: none;
  pointer-events: none;
  background: transparent;
  color: var(--white-color);
}
::placeholder {
  color: var(--white-color);
}

/* ====== Buttons ====== */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
}
.buttons button {
  width: 75px;
  height: 75px;
  font-size: 24px;
  font-weight: 300;
  background-color: var(--medium-dark);
  color:var(--white-color) ;
  border: none;
  border-radius: 50%;
  cursor: pointer;


}

.buttons .operator{
   background: var(--orange-color);
}
.buttons .top-operator{
   background: var(--light-gray);
   color: var(--black-color);
}
.buttons button:active{
   transform: scale(0.95);
}
button.value-zero{
   width: calc(50% - 8px);
   border-radius: 50px;
   text-align: left;
   padding-left: 30px;

}

/* ===== Responsive ===== */

@media screen and (max-width:376px) {
   body{
      background: var(--black-color);
   }
   .display{
      font-size: 40px;
   }
   .buttons{
      gap: 10px;
   }
   .buttons button{
      width: 55px;
      height: 55px;
      font-size: 20px;
   }
   .container{
      max-width: 300px;
   }
   button.value-zero{
      width: calc(50% - 8px);
      border-radius: 50px;
      text-align: left;
      padding-left: 30px;
   
   }
   
}