body {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
}

input:focus {
  outline: none;
  border: none;
}

#link--active {
  box-shadow: none;
  background-color: #ffd166;
  box-shadow: 2.5px 2.5px 0 var(--active);
}

@font-face {
  font-family: "digital-7";
  src: url("fonts/digital-7.ttf");
}

.navigation {
  transition: background-color 0.5s ease;
}

.inactive {
  color: rgb(169, 188, 214);
  background: rgb(5, 30, 54);
  transition: background-color 0.5s ease;
}

.active {
  color: #333;
  background: white;

  transition: background-color 0.5s ease;
}

.button-pill {
  font-size: 1.2em;
  border-radius: 40px;
  color: hsl(127, 100%, 57%);
  border: 2px solid hsl(127, 100%, 57%);
}

.timer {
  font-size: 100px;
  font-family: "digital-7";
}

.counter-background {
  background: rgb(1, 47, 99);
}

.hide {
  color: rgb(137, 192, 189);
}

.checkbox {
  opacity: 0;
  position: absolute;
  z-index: 10;
  height: 2rem;
  width: 4rem;
  cursor: pointer;
}

.label {
  width: 50px;
  height: 26px;
  background-color: #111;
  display: flex;
  border-radius: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  position: relative;
  transform: scale(1);
}

.ball {
  width: 20px;
  height: 20px;
  background-color: white;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  transition: transform 0.2s linear;
}

.checkbox:checked + .label .ball {
  transform: translateX(24px);
}

.fa-moon {
  color: pink;
}

.fa-sun {
  color: yellow;
}

button.btn.btn-outline-primary.button-pill.px-3 {
  transition: transform 0.03s;
}

button.btn.btn-outline-primary.button-pill.px-3:hover {
  transform: scale(1.1);
  box-shadow: 1px 1px 12px 7px blue;
}

button.col-auto.bg-dark.button-pill.py-1.px-4.mx-2.inactive {
  transition: transform 0.03s;
}

button.col-auto.bg-dark.button-pill.py-1.px-4.mx-2.inactive:hover {
  transform: scale(1.05);
  box-shadow: 1px 1px 12px 7px rgb(119, 204, 238);
}

.col-auto {
  display: flex;
  align-items: center;
}

.time {
  margin: 0 0.5rem 0 0;
}

.nav {
  display: flex;
  flex-direction: row;
}

#navbarSupportedContent {
  display: flex;
  flex-direction: row;
}

#nav-links {
  display: flex;
  flex-direction: row;
}

#title1 {
  font-weight: 700;
  font-size: 1.3rem;
}

#timer-container {
  margin-top: 0 !important;
}

#custom-timer-form {
  display: flex;
  flex-wrap: wrap;
  min-height: 200px;
  gap: 20px;
}



/* input fiels  */
.form__group {
  position: relative;
  padding: 20px 0 0;
  width: 100%;
  max-width: 180px;
}

.form__field {
  font-family: inherit;
  width: 100%;
  border: none;
  border-bottom: 2px solid #ffffff;
  outline: 0;
  font-size: 17px;
  color: #fff;
  padding: 7px 0;
  background: transparent;
  transition: border-color 0.2s;
}

.form__field::placeholder {
  color: transparent;
}

.form__field:placeholder-shown ~ .form__label {
  font-size: 17px;
  cursor: text;
  top: 20px;
}

.form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 17px;
  color: #ffffff;
  pointer-events: none;
}

.form__field:focus {
  padding-bottom: 6px;
  font-weight: 700;
  border-width: 3px;
  border-image: linear-gradient(to right, #116399, #21f341);
  border-image-slice: 1;
}

.form__field:focus ~ .form__label {
  position: absolute;
  top: 0;
  display: block;
  transition: 0.2s;
  font-size: 17px;
  color: #21f341;
  font-weight: 700;
}

/* reset input */
.form__field:required, .form__field:invalid {
  box-shadow: none;
}


/* button  */

.animated-button {
  position: relative;
  display: inline-block;
  padding: 5px 18px;
  border: none;
  font-size: 16px;
  background-color: inherit;
  border-radius: 100px;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.animated-button span:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #21f341;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.320, 1);
}

.animated-button span:first-child {
  position: relative;
  z-index: 1;
}

.animated-button:hover {
  box-shadow: 0 0 0 5px #21f35960;
  color: #ffffff;
}

.animated-button:active {
  scale: 0.95;
}

.animated-button:hover span:last-child {
  width: 150px;
  height: 150px;
  opacity: 1;
}

/* Footer Styles - Standardized */
.hov {
  width: max(4.5vw, 3rem);
  height: max(4.5vw, 3rem);
  transition: all 0.3s ease;
  position: relative;
}

.hov:hover {
  transform: translateY(-5px) scale(1.1);
  filter: brightness(1.1);
}

.hov:hover .link {
  background: linear-gradient(135deg, #FFD166 0%, #FFC107 100%);
  border-color: rgba(255, 209, 102, 0.8);
  box-shadow: 0 8px 25px rgba(255, 209, 102, 0.4);
  color: #333;
}

.social-links {
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  gap: 20px;
}

li {
  width: max(4.5vw, 3rem);
  height: max(4.5vw, 3rem);
  list-style: none;
  margin: 8px;
}

.link {
  width: 100%;
  height: 100%;
  display: flex !important;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  color: #333;
  font-size: 18px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 209, 102, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.textfooter {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 10px 0;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Style for red heart */
.textfooter .heart {
  color: #ff4757 !important;
  font-size: 1.3rem;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Additional container-fluid styling for footer */
footer {
  margin-top: auto;
  padding-left: 0;
  padding-right: 0;
  color: white !important;
  background: transparent !important;
  max-height: 20px !important;
}

.my-class {
  /* Background color will be set by theme functions */
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-top: 2px solid gray !important; /* Separation border */
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2) !important;
  min-width: 100%;
  padding: 1rem 2rem;
  margin: 0 auto;
  /* max-width: 1400px; */
}

body {
  background:#ffffff !important;
}

.hidden {
  display: none !important;
}

.timer.pulse {
  animation: pulse 0.6s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    transform: scale(1);
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0));
  }

  to {
    transform: scale(1.06);
    filter: drop-shadow(0 0 12px rgba(255, 214, 102, 0.8));
  }
}

/* full-screen confetti layer */
#confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9999;
}

/* single confetti piece */
.confetti {
  position: absolute;
  top: -10vh;
  width: 10px;
  height: 14px;
  opacity: 0.9;
  transform: translateY(-100px) rotate(0deg);
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(120vh) rotate(720deg);
    opacity: 1;
  }
}
/* Progress Bar Styles */
#progress-container {
  width: 100%;
  height: 20px;
  background-color: #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

#progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #21f341, #116399);
  transition: width 0.5s linear;
  border-radius: 10px;
}

/* Dark Mode Styles for Custom Timer */
body.dark-mode {
  color: white;
  background: transparent !important;
}

body.dark-mode .navbar {
  background-color: rgba(0, 0, 0, 0.95) !important;
}

body.dark-mode #title1 {
  color: white !important;
}

body.dark-mode .nav-link {
  color: #003333 !important;
}

body.dark-mode .nav-link:hover {
  color: #ff6b35 !important;
}

body.dark-mode .timer {
  color: #ff6b35 !important;
}

body.dark-mode .active {
  color: #ff6b35 !important;
  background: #191212 !important;
}

body.dark-mode .inactive {
  background: black !important;
  color: white !important;
}

body.dark-mode .buttons {
  border-color: #ff6b35 !important;
  background: rgba(255, 107, 53, 0.2) !important;
  color: #ff6b35 !important;
}

body.dark-mode .buttons:hover {
  background: #ff6b35 !important;
  color: black !important;
}

body.dark-mode .textfooter {
  color: white !important;
}

body.dark-mode .link {
  background-color: #ff6b35 !important;
  color: white !important;
}

body.dark-mode .foot {
  background: rgba(0, 0, 0, 0.95) !important;
}

body.dark-mode .my-class {
  background: rgba(0, 0, 0, 0.95) !important;
}

body.dark-mode footer {
  background: rgba(0, 0, 0, 0.95) !important;
}

body.dark-mode .form__field {
  color: #ff6b35 !important;
  border-bottom-color: #ff6b35 !important;
}

body.dark-mode .form__label {
  color: #ff6b35 !important;
}

body.dark-mode .form__field:focus {
  border-image: linear-gradient(to right, #ff6b35, #ff6b35) !important;
}

body.dark-mode .form__field:focus ~ .form__label {
  color: #ff6b35 !important;
}

body.dark-mode #progress-container {
  background-color: #333 !important;
}

body.dark-mode #progress-bar {
  background: #ff6b35 !important;
}

body.dark-mode .animated-button {
  color: #ff6b35 !important;
  box-shadow: 0 0 0 2px #ff6b3520 !important;
}

body.dark-mode .animated-button:hover {
  box-shadow: 0 0 0 5px #ff6b3560 !important;
  color: #ffffff !important;
}

body.dark-mode .animated-button span:last-child {
  background-color: #ff6b35 !important;
}

/* Navigation links always dark */
.nav-link {
  color: #003333 !important;
}

.nav-link:hover {
  color: #ff6b35 !important;
}
