body {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  background-color: #F5F5F5;
  margin: 0;
  padding: 0;
}
.timers-container {
  margin: 0 auto;
  max-width: 800px;
  padding: 20px;
  background-color: #FFFFFF;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14),
              0 3px 1px -2px rgba(0, 0, 0, 0.12),
              0 1px 5px 0 rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

h1 {
  text-align: center;
  font-size: 34px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
  margin-top: 26px;
  margin-bottom: 16px;
}
h2 {
  font-size: 23px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.87);
  margin: 8px 4px;
}

.timer-form {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.timer-form label {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.87);
}

.timer-form input[type="number"],.timer-form input[type="text"] {
  width: 75%;
  margin-right: 0px;
  padding: 8px 6px 8px 14px;
  border: 1px solid rgba(0, 0, 0, 0.23);
  border-radius: 4px;
}

#timers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10px;
  background-color: #E0E0E0;
  border-radius: 4px;
  box-shadow: 0 5px 8px -6px rgba(0,0,0,.35);
}

.timer.expired {
  background-color: #BDBDBD;
}

.timer.warning {
  background-color: #FFCDD2;
}


.timer-label {
  font-weight: 500;
  font-size: 18px;
  color: rgba(0, 0, 0, 0.87);
  margin-right: auto;
}

.timer-duration {
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 26px;
  margin-right: auto;
}

.delete-timer-btn, .pause-timer-btn {
  background-color: #F44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 6px 12px;
  font-size: 14px;
  text-transform: uppercase;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}
.pause-timer-btn {margin-right:23px;margin-left:11px}
.pause-timer-btn.paused {
  background-color: #4CAF50;
}

.pause-timer-btn.yellow {
  background-color: #ff9600;
}
.timer-form input[type="text"]{
    width: 89%;
    margin-right: 10px;
    margin-bottom: 10px;
  }
/* Media queries */

@media (max-width: 768px) {
  .timers-container {
    max-width: 100%;
    padding: 10px;
  }

  .timer-form {
    flex-direction: column;
    margin-bottom: 10px;
  }
  .timer-form input[type="number"] {
    width: 54%;
    margin-right: 0;
    margin-bottom: 10px;
    padding-left: 10px;
  }
  .timer-form input[type="text"]{
    width: 85%;
    margin-right: 10px;
    margin-bottom: 10px;
  }
  .timer-form label {
    width: 100%;
  }

  .grid-container {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    text-align: center;
    width: 100%;
    }
    
    .div1 { grid-area: 1 / 1 / 2 / 2; }
    .div2 { grid-area: 2 / 1 / 3 / 2; }
    .div3 { grid-area: 1 / 2 / 2 / 3; }
    .div4 { grid-area: 2 / 2 / 3 / 3; }
    .div5 { grid-area: 1 / 3 / 2 / 4; }
    .div6 { grid-area: 2 / 3 / 3 / 4; }
    .div7 { grid-area: 1 / 4 / 2 / 5; }
    .div8 { grid-area: 2 / 4 / 3 / 5; }
    .div9 { grid-area: 3 / 1 / 4 / 2;margin-top: 9px;margin-right:5px;text-align:right;}
    .div10 { grid-area: 3 / 2 / 4 / 3;margin-top:5px;text-align:left;}
    .div11 { grid-area: 3 / 3 / 4 / 5; }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
    margin-top: 30px;
  }
    h2 {
    font-size: 20px;
  }

  .timer-label {
    font-size: 16px;
  }

  .timer-duration {
    font-size: 26px;
  }

  .delete-timer-btn, .pause-timer-btn {
    padding: 4px 8px;
  }
}
#add-timer-btn {
  background-image: linear-gradient(to right, #4caf50, #81c784);
  color: white; 
  border: none; 
  border-radius: 4px;
  cursor: pointer;
  padding: 10px 15px;
  font-size: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#add-timer-btn:hover {
  background-image: linear-gradient(to right, #388e3c, #66bb6a);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#add-timer-btn:focus {
  outline: none; 
  box-shadow: 0 0 0 2px #81c784;
}
@media (min-width: 769px) {
.grid-container {
display: grid;
grid-template-columns: 2fr repeat(3, 1fr);
grid-template-rows: repeat(2, 1fr);
grid-column-gap: 0px;
grid-row-gap: 0px;
text-align: center;
width: 100%;
}

.div1 { grid-area: 1 / 1 / 2 / 2; }
.div2 { grid-area: 2 / 1 / 3 / 2; }
.div3 { grid-area: 1 / 2 / 2 / 3; }
.div4 { grid-area: 2 / 2 / 3 / 3; }
.div5 { grid-area: 1 / 3 / 2 / 4; }
.div6 { grid-area: 2 / 3 / 3 / 4; }
.div7 { grid-area: 1 / 4 / 2 / 5; }
.div8 { grid-area: 2 / 4 / 3 / 5; }
.div9 { grid-area: 2 / 5 / 3 / 6; padding: 13px 8px;}
.div10 { grid-area: 2 / 6 / 3 / 7; padding-top: 9px;}
.div11 { grid-area: 2 / 7 / 3 / 8; padding-left: 22px;}
}
.time-display {
  display: flex;
  align-self: end;
  justify-content: center;
}

.number-input,.timer-input {
  width: 100%;
  padding: 10px;
  margin: 4px 0 20px;
  text-align: center;
  font-size: 16px;
}
.timer.expired {
  background-color: #CCCCCC; 
  color: #333333; 
  outline: 1px solid #BBBBBB; 
}
.timer.expired::before {
  content: "⏰";
  margin-right: 5px;
  font-size: 20px;
}
.timer.expired .timer-label, .timer.expired .timer-duration {
  color: inherit;
}

.timer.expired .pause-timer-btn,.timer.expired .toggle-alarm-btn {
display: none;
}
.alarm-toggle-btn {
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.alarm-toggle-btn.on {
  background-color: #4caf50;
  color: white;
}

.alarm-toggle-btn.off {
  background-color: #E51C0B;
  color: white;
}
.toggle-alarm-btn{
  border:0;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}
.shortcut-btn{
  margin: 7px 3px 2px;
  padding: 6px 10px;
  border:1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
}
.shortcut-btn:hover {
  border:1px solid #333;
}
#shortcuts-container{
  margin-bottom: 10px;
}