:root {
  --primary-color: #1f1f14/*#2c3e50*/;
  --secondary-color: #D82222/*#3498db*/;
  --background-color: #150B0B/*#ecf0f1*/;
  --secondary-hover-color: #811414;
  --text-color: #cdcdca/*#333*/;
  --spacing-small: 10px;
  --spacing-medium: 20px;
  --border-radius: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: var(--spacing-small);
}

.fullscreen {
  min-height: 100vh;
  overflow: hidden;
  display: flex;
}

.container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: var(--spacing-medium);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.main-duck {
  position: fixed;
  left: 20px;
  top: 20px;
  cursor: pointer;
}

h1 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-medium);
  font-size: 1.8rem;
}

.timer-selector {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-small);
  margin-bottom: var(--spacing-medium);
  width: 300px;
}

.timer-selector button {
  flex-grow: 1;
  padding: var(--spacing-small) var(--spacing-medium);
  background-color: var(--secondary-color);
  color: /*#1f1f14*/var(--text-color);
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 2rem;
  /* max-width: 150px; */
}

.timer-selector button:hover {
  background-color: var(--secondary-hover-color)/*#c9c982/*#2980b9*/;
}

#timerDisplay {
  font-size: 8rem;
  /* margin: var(--spacing-medium) 0; */
  color: #e6e6e4;
  word-wrap: break-word;
}

.timer-display {
  display: flex;
  flex-direction: column;
}

.timer-type, .timer-status {
  font-size: 2rem;
}

.timer-round {
  font-size: 2rem;
}

.controls {
  display: flex;
  justify-content: center;
  gap: var(--spacing-medium);
  flex-wrap: wrap;
}

/* .controls button {
  flex-grow: 1;
  padding: var(--spacing-small) var(--spacing-medium);
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 150px;
}

.controls button:hover {
  background-color: #34495e;
} */

.timer-settings {
  margin-top: var(--spacing-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.timer-settings-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 384px;
}

.timer-settings input, 
.timer-settings select {
  margin: var(--spacing-small) 0;
  padding: var(--spacing-small);
  width: 100%;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
}

/* Tablet and Desktop Styles */
@media screen and (min-width: 768px) {
  body {
    padding: var(--spacing-medium);
  }

  h1 {
    font-size: 2.5rem;
  }

  .timer-selector button,
  .controls button {
    max-width: none;
    /* min-width: 280px; */
    font-size: 2rem;
  }

  #timerDisplay {
    font-size: 14rem;
  }

  /* .timer-settings input, 
  .timer-settings select {
    width: 250px;
  } */

  .timerSettings {
    width: 300px;
  }
}

#myProgress {
  width: 100%;
  background-color: grey;
}

#myBar {
  width: 0%;
  height: 24px;
  background-color: green;
}

.run-animation-progress {
  animation-name: progress;
  animation-timing-function: linear;
}

.run-animation-deprogress {
  animation-name: deprogress;
  animation-timing-function: linear;
}

.hidden {
  display: none;
}

.w-30-left {
  width: 30%;
  display: flex;
  justify-content: left;
  text-transform: uppercase;
  font-weight: 600;
}

.w-30-right {
  width: 30%;
  display: flex;
  justify-content: right;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 2rem;
}

.w-40 {
  width: 40%;
}

@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes deprogress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Large Desktop Styles */
@media screen and (min-width: 1024px) {
  .container {
    max-width: 800px;
  }

  h1 {
    font-size: 3rem;
  }

  #timerDisplay {
    font-size: 22rem;
  }
}

button {
  cursor: pointer;
}

.start-btn,
#continue-btn,
#pause-btn,
#restart-btn {
  padding: 16px 18px 12px 20px;
  border-radius: 8px;
  border: none;
  background: var(--secondary-color)/*#9e9e66/* #9966ff */;
  margin-top: 8px;
}

.start-btn:hover,
#continue-btn:hover,
#pause-btn:hover,
#restart-btn:hover {
  background: var(--secondary-hover-color)/*#49492f/* #9933ff */;
}