/******************************************
/* CSS
/*******************************************/

/* Box Model Hack */
*{
  box-sizing: border-box;
}
:root {
  --primary-color: #003D23; 
  --accent-color: #A6979C;
  --default-color: seashell;
}
/******************************************
/* LAYOUT
/*******************************************/
img {
  display: block;
  margin: 0 auto;
}

html{
  font-size: 18px;
}

.container {
  display: flex;
  flex-direction: column;
  margin: 1em auto;
  max-width: 420px;
  min-width: 280px;
  text-align: center;
  padding: 0.5em;
  font-family: "roboto", sans-serif;
}

h1 {
  font-size: 2em;
  margin-bottom: 10px;
  color:rgb(64, 51, 79);
}

.time-picker {
  display: flex;
  flex-direction: horizontal;
  justify-content: center;
  align-items: center;
}

input.timer {
  border:none;
  text-align: center;
  margin: 0 auto;
  font-size: 5em;
  width: 60%;
}
@media (max-width: 420px) {
  input.timer  {
    font-size: 2.5em;
    margin: 0.5em auto;
  }
}

#break-time {
  font-size: 3em;
  background-color: var(--default-color);
  opacity: 50%;
}

.color-control {
  margin-top: 1em;
  display: flex;
  justify-content: center;
  gap: 1em;
  font-size: 1em;
  width: 100%;
  margin-inline: auto;
}

.color-control label {
  display: flex;
  justify-content:space-around;
  align-items: center;
}

.color-control input[type="color"] {
  width: 60px;
  height: 30px;
  border: none;
  border-radius: 2px;
  background: none;
  padding: 0;
}

button {
  font-size: 1.5em;
  padding: 0.2em 0.8em;
  margin: 0.5em;
  color: seashell;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity .3s ease-in-out;
}

button:hover{
  opacity: 0.7;;
}

#start {
  background-color: rgb(184, 39, 39);
}
#stop {
  background-color: rgb(43, 111, 43);
}
#reset {
  background-color: rgb(43, 43, 142);
}

/******************************************
/* ADDITIONAL STYLES
/*******************************************/
@keyframes blink {
  0%, 100% { background-color: inherit; }
  50% { background-color: rgba(255, 0, 0, 0.08) }
}

.blink-bg {
  animation: blink 1s ease-in-out infinite;
}

body.break-mode {
  background-color: #1f1f1f;
}

body.break-mode .timer {
  opacity: 100%;
}