body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

h3 {
    margin-block-start: 0px;
    padding:0px 10px;
}

#new_task_form {
    padding: 0px 10px;
}

#input-minutes {
    display: none;
    text-align: center;
    background: #000;
    color: #fff;
    opacity: 0.8;
    font-size: min(25vw, 25vh);
    z-index: 2;
}

#paused-message {
    display: none;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: min(20vw, 20vh);
    z-index: 2;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#fill {
    background: #c63;
    position: fixed;
    height: 100%;
    width: 0%;
    z-index: -1;
}

#config,
#task-list {
    display: none;
    position: relative;
    z-index: 4;
    width: 100%;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

.block {
    padding: 10px;
}

.task {
    border-bottom: 1px #999 solid;
    float: left;
    width: 100%;
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.task div {
    float: left;
    padding: 3px;
}

.task .name {
    width: 250px;
    padding-left: 10px;
}

svg {
    width: 100%;
    height: auto;
}

.template {
    display: none;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    border: 0px solid green;
    overflow: hidden;
}

.button {
    padding: 10px 40px;
    font-size: 20px;
    background: #5a6;
    color: #fff;
    border-radius: 6px;
    display: inline-block;
    border: solid 1px #ccc;
}

#task-list .button {
    float: right;
    margin-left: 10px;
    padding: 3px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
}

#tasks {
    max-height: 250px;
    width: 420px;
    overflow-y: scroll;
    box-sizing: border-box;
    padding-bottom: 50px;
}

/* Hide scrollbar for WebKit browsers */
#tasks::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for Firefox */
#tasks {
    scrollbar-width: none; /* Firefox */
}

#task-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f8f9fa; /* Example background color */
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); /* Optional: add a shadow for better visibility */
  }

.button.remove {
    background: #966;
}

.button.start {
    margin-right: 8px;
}

.timer-value-container {
    font-size: min(35vw, 35vh);
}

#timer {
    position: relative;
    z-index: 1;
}

#timer-description {
    position: absolute;
    font-size: min(10vw, 10vh);
    top: 75%;
    text-align: center;
    width: 100%;
}

#toast {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7); /* Example background color */
    color: white; /* Example text color */
    padding: 10px;
    text-align: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 1s ease-in-out;
  }

.icon-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    margin-left: 4px;
    margin-right: 0;
    color: #333;
    position: absolute;
    top: 10px;
    z-index: 10;
}
#settings-button.icon-btn {
    right: 10px;
}
#tasklist-button.icon-btn {
    right: 44px;
}

#gamification-panel {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#points-display {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

#streak-display {
    color: #ff6b35;
    font-weight: bold;
}

.settings-card {
  background: #fff;
  border-radius: 12px;
  /* box-shadow: 0 2px 12px rgba(0,0,0,0.08); */
  padding: 0px 18px;
  max-width: 380px;
  min-width: 240px;
  font-family: inherit;
}

.settings-card h2 {
  font-size: 1.05em;
  margin: 16px 0 10px 0;
  color: #444;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

.settings-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}

.settings-row label {
  flex: 1 0 120px;
  font-size: 0.98em;
  color: #222;
  text-align: left;
  margin-right: 8px;
}

.settings-row input[type='checkbox'],
.settings-row input[type='color'],
.settings-row input[type='file'],
.settings-row input[type='number'] {
  flex: 0 0 auto;
  font-size: 0.98em;
  margin-left: 0;
  text-align: left;
}

.settings-row input[type='number'] {
  width: 60px;
  padding: 2px 6px;
}

.settings-row input[type='color'],
.settings-row input[type='file'] {
  min-width: 0;
}

.settings-row.vertical {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.settings-row.vertical label {
  text-align: left;
  margin-right: 8px;
  margin-bottom: 0;
}

.save-btn {
  background: #5a6;
  color: #fff;
  border-radius: 8px;
  font-size: 1em;
  padding: 10px 0;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  transition: background 0.2s;
}
.save-btn:hover, .save-btn:focus {
  background: #48914a;
  outline: none;
}

.settings-row input[type='number'],
.settings-row input[type='color'],
.settings-row input[type='file'] {
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border 0.2s;
}
.settings-row input[type='number']:focus,
.settings-row input[type='color']:focus,
.settings-row input[type='file']:focus {
  border: 1.5px solid #5a6;
  outline: none;
}

/* Hover controls */
.hover-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

#timer:hover .hover-controls,
#timer.paused .hover-controls {
  opacity: 1;
}

.control-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.control-btn:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}