@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body{
  height: 100%;
  width: 100%;
  font-family: "Poppins", sans-serif;  
}
html{
  font-size: 10px;
}
body{
  background-color: #222831;
}
.main{
  padding: 2rem 1.4rem;
}
input{
  font-size: 1.8rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
}
/* =========================
   Add Timer button
========================= */
#add_timer{
  right: 0;
  bottom: 0;
  position: fixed;
  padding: 1rem 1.5rem;
  margin: 2rem;
  border-radius: .5rem;
  font-size: 1.5rem;
  background-color: #393E46;
  color: #fff;
}
/* =========================
   Modal style
========================= */
.modal_buttons .modal_btn{
  width: 11.425rem;
  max-width: 11.425rem;
  display: inline;
  background-color: #222831;
  color: #fff;
  padding: 1.3rem;
  margin: 1rem 0.5rem;
  border-radius: 0.5rem; 
  border: none; 
  font-size: 1.5rem;
}
.modal {
  display: none; 
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}
.modal h2{
  color: #f1f1f1;
  font-size: 2.3rem;
  font-weight: 500;
}
.modal-content {
  background: linear-gradient(230deg, #58A0C8, #34699A);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  width: 300px;
}
.modal_timer input{
  outline: none;
  border: none;
  background-color: #E8FFD7;
  padding: 1rem 2rem;
  margin: 1rem;
}
#timers {
  margin-top: 20px;
}
.timer-box {
  background: #f2f2f2;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
}
.flash{
    animation: flash 1s infinite alternate;
}
@keyframes flash{
    from{background-color: #fec8c8;}
    to{background-color: #ffe6e6;}
}
/* =========================
   TIMER BOX STYLE
========================= */
.countdown_timer {
  background: linear-gradient(135deg, #74b9ff, #a29bfe);
  border-radius: 0.8rem;
  padding: 1.5rem;
  color: #fff;
  margin-top: 2rem;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
  margin-bottom: 2rem;
  transition: transform 0.3s ease;  
}
.countdown_timer:hover {
  transform: translateY(-5px);
}
.timer_head{
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 1.6rem;
  margin-bottom: 3rem;
}
.timer_head span{
  background: #fff;
  color: #6c5ce7;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.3s;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
}
.timer {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.timer span{
  background: linear-gradient(230deg, #1a1a1a, #393E46);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  font-size: 2.8rem;
  margin: 0.5rem;
}
.time-box {
  position: relative;
  display: inline-block;
  flex: 1;                
  max-width: 6rem;        
  min-width: 4rem;        
  text-align: center;
}
.time-box span:first-child {
  background: linear-gradient(135deg, #1a1a1a, #393E46);
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  padding: 10px 12px;
  border-radius: 6px;
  width: 100%;
  text-align: center;
  display: block;
}
.time-box .label {
  position: absolute;
  top: -12px;  
  left: 30%;
  transform: translateX(-50%);
  background: linear-gradient(305deg, #b9b4df, #6c5ce7);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 4px;
  width: 20px;  
  text-align: center;
}
/* =========================
   BUTTONS
========================= */
.buttons{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}
.buttons .main_btn{
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 13px;
  background: #fff;
  color: #6c5ce7;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background 0.3s;
}
.buttons .main_btn:hover {
  transform: scale(1.1);
  background: #ffeaa7;
}
/* =========================
   ANIMATIONS
========================= */
/* Flash when finished */
.flash {
  animation: flash 1s infinite alternate;
}
@keyframes flash {
  from { background-color: #dfe6e9; color: #2d3436; }
  to   { background-color: #ff7675; color: #fff; }
}
/* =========================
   MODAL CUSTOMIZATION
========================= */
#notifyModal .modal-content {
  background: linear-gradient(135deg, #55efc4, #00cec9);
  color: #fff;
  border-radius: 15px;
}
#notifyModal .modal-title {
  font-size: 1.3rem;
  font-weight: bold;
}
#notifyModal .btn-primary {
  background: #6c5ce7;
  border: none;
}
#notifyModal .btn-primary:hover {
  background: #341f97;
}
