*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


body {
  font-family: 'Poppins', Arial, sans-serif;
  background: linear-gradient(to right, #AE8BA1, #F2ECB6);
  color: #fefefe;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.layer 

.container {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.settings {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 350px;
    margin: 10px auto 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
}



.timer {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 90px;
  font-weight: 700;
  margin: 15px 0;
  word-break: break-all;
}

.work {
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 7px;
    gap: 2px;

}

.work.buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 0;
}

.work.buttons p {
    margin: 0;
    font-size: 18px;
    min-width: 120px;
    text-align: center;
}

.work.buttons button {
    background: #fff;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.work.buttons button:hover {
    background: #f2f2f2;
}

.tbtn {
  padding: 12px 24px;
  font-family: 'Poppins', Arial, sans-serif;
  margin: 8px 6px;
  font-size: 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 4px 24px rgba(174, 139, 161, 0.18);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  font-weight: 600;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,0.25);
  width: 100%;
  max-width: 180px;
}

.tbtn#start {
  background: rgba(39,174,96,0.55);
  border: 1.5px solid rgba(39,174,96,0.25);
}
.tbtn#start:hover {
  background: rgba(39,174,96,0.75);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 32px rgba(39,174,96,0.18);
}

.tbtn#pause {
  background: rgba(243,156,18,0.55);
  border: 1.5px solid rgba(243,156,18,0.25);
  display: none; /* Hidden by default */
}
.tbtn#pause:hover {
  background: rgba(243,156,18,0.75);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 32px rgba(243,156,18,0.18);
}

.tbtn#reset {
  background: rgba(231,76,60,0.55);
  border: 1.5px solid rgba(231,76,60,0.25);
  display: none; /* Hidden by default */
}
.tbtn#reset:hover {
  background: rgba(231,76,60,0.75);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 32px rgba(231,76,60,0.18);
}

p {
  margin-top: 20px;
  font-size: 20px;
  word-break: break-word;
}
@media (max-width: 600px) {
  body {
    padding: 0;
    min-height: 100vh;
  }
  .container {
    padding: 1rem;
    max-width: 98vw;
    border-width: 2px;
  }
  .settings {
    max-width: 98vw;
    padding: 10px;
    gap: 12px;
  }
  .timer {
    font-size: 48px;
    margin: 10px 0;
  }
  .work.buttons p {
    font-size: 15px;
    min-width: 80px;
  }
  .work.buttons button {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
  .tbtn {
    font-size: 15px;
    padding: 10px 10px;
    max-width: 120px;
  }
  p {
    font-size: 16px;
    margin-top: 12px;
  }
}
