/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Inter", sans-serif;
  background-color: #f9f9fb;
  color: #333;
  line-height: 1.6;
}

/* Typography */
strong {
  font-size: 1.2rem;
  color: #222;
  font-family: "Courier New", Courier, monospace;
}

/* Banner */
.banner {
  background: linear-gradient(90deg, #6e46e7, #8b66ff);
  color: #fff;
  padding: 10px 16px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.banner a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
}

.close-banner-btn {
  position: absolute;
  right: 1rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Navbar */
.navbar {
  padding: 2rem 1rem 0 1rem;
}

.navbar-sub-heading {
  color: #666;
  margin-top: 0.6rem;
  font-size: 1.1rem;
}

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background-color: #ddd;
  margin: 1rem 0 2rem 0;
}

/* Centered container */
.container-centered {
  max-width: fit-content;
  margin: auto;
}

/* Input section */
.input-container {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.input-container label {
  background-color: #f3f4f6;
  padding: 0 1rem;
  height: 42px;
  display: flex;
  align-items: center;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
}

.input-container input {
  border: none;
  height: 42px;
  width: 100%;
  padding: 0 1rem;
  font-size: 1rem;
  background-color: transparent;
}

.input-container input:focus {
  outline: none;
  background-color: #fdfdfd;
}

/* Input layout */
.user-input-container {
  max-width: 20rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Select box */
.percentage-select-container {
  margin-bottom: 1rem;
}

.percentage-select {
  width: 100%;
  height: 42px;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  padding: 0 0.5rem;
  background-color: #fff;
  border-radius: 6px;
  transition: border-color 0.2s;
}

.percentage-select:focus {
  outline: none;
  border-color: #6e46e7;
}

/* Button */
.calculate-btn {
  height: 42px;
  width: 100%;
  font-family: inherit;
  background-color: #6e46e7;
  color: #fff;
  border-radius: 6px;
  font-size: 1rem;
  border: none;
  transition: background-color 0.3s;
}

.calculate-btn:hover {
  cursor: pointer;
  background-color: #5c3ed0;
}

/* Output text */
.output-text {
  color: #444;
  text-align: center;
  font-size: 1rem;
  margin: 1rem 0;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  margin-bottom: 1rem;
  color: #888;
  font-size: 0.9rem;
}

.footer-link {
  color: #6e46e7;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media screen and (max-width: 480px) {
  .navbar-sub-heading {
    font-size: 0.95rem;
  }

  .banner {
    font-size: 0.9rem;
  }

  .banner p {
    max-width: 30ch;
  }
}

@media screen and (max-width: 800px) {
  .hide-footer {
    display: none;
  }
}
.home-btn {
  background-color: #6e46e7;     /* Purple background */
  color: #fff !important;        /* White text */
  border-radius: 6px;
  padding: 16px 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  transition: background 0.2s;
  border: none;
  display: inline-block;
  margin: 20px 0;
}

.home-btn:hover {
  background-color: #070608;     /* Slightly darker on hover */
  color: #ffe066 !important; 
  border: 3px solid #ffe066;    /* Yellowish text on hover */
} 
body {
      background: yellow ;
}
.app-title {
  background: #23272f;
  color: #ffdd57;
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 2.5rem;
  box-shadow: 0 2px 10px rgba(110,70,231,0.10);
  display: inline-block;
  margin-bottom: 24px;
  margin-top: 30px;
}
@keyframes shake {
  0% { transform: translateX(0);}
  20% { transform: translateX(-10px);}
  40% { transform: translateX(10px);}
  60% { transform: translateX(-10px);}
  80% { transform: translateX(10px);}
  100% { transform: translateX(0);}
}

.shake {
  animation: shake 0.4s;
  color: #e74c3c;
  font-weight: bold ;
  font-size: 1.2rem;
  margin-top: 10px;
}
#error-msg {
  color: #e74c3c;
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
  min-height: 24px; /* To maintain space even when empty */
} 
.centered-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}