body
{
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh; /*100 percent of viewport height*/
    background-color: #ecdbba;
}

#calculator
{
    font-family: Arial, sans-serif;
    background-color: black;
    border-radius: 15px;
    max-width: 500px;
    overflow: hidden;
}

#display
{
    width: 100%;
    padding: 20px;
    font-size: 5rem;
    text-align: left;
    border: none;
    background-color: rgb(28, 28, 28);
    color: white;
}

#keys
{
    display: grid;
    grid-template-columns: repeat(4, 1fr); /*/fractional unit*/
    gap: 10px;
    padding: 25px;
}

button
{
    width: 100px;
    height: 100px;
    border-radius: 50px;
    border: none;
    background-color: #9f9f9f;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
}

button:hover
{
    background-color: #cacaca;
}

button:active
{
    background-color: rgb(227, 227, 227);
}

.operator-btn
{
    background-color: #ec5300;
}

.operator-btn:hover
{
    background-color: #f2691f;
}

.operator-btn:active
{
    background-color: #ff8c4f;
}



/* wrapper stays unrotated + safely inside viewport */
.home-badge-wrap{
  position: fixed;
  top: 70px;    /* IMPORTANT: move it down so rotation won't clip */
  left: 70px;   /* IMPORTANT: move it right so rotation won't clip */
  z-index: 9999;
  text-decoration: none;

  /* gives extra "invisible space" so big images won't get cut */
  padding: 30px;
}

/* actual badge gets the rotation + wiggle */
.home-badge{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  color: #1d1d1d;

  transform: rotate(-45deg);
  transform-origin: center;

  animation: signWiggle 1.1s ease-in-out infinite;
  will-change: transform;
}


/* keep the image from being huge + causing clipping */
.home-badge__img{
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  transform: translateY(-4px);
}

.home-badge__arrow{
  font-size: 26px;
  line-height: 1;
  transform: rotate(10deg);
}

.home-badge__text{
  font-family: "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;

  padding: 6px 12px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.home-badge-wrap:hover .home-badge{
  animation-duration: 0.6s;
  filter: brightness(1.03);
}

@keyframes signWiggle{
  0%, 100% { transform: rotate(-45deg) translateX(0); }
  50%      { transform: rotate(-45deg) translateX(12px); }
}
