@import url("https://fonts.googleapis.com/css2?family=Fugaz+One&family=Nunito&display=swap");

/* || RESET */
*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* || VARIABLES */
:root {
  /* COLORS */
  --FONT-COLOR: rgb(252, 232, 232);

  /* STANDARD MARGIN */
  --MARGIN: clamp(1em, 2.5vh, 1.5em) 0;
}

html {
  background-color: var(--BGCOLOR);
}

body {
  display: flex;
  height: 100vh;
  font-family: "ArialRounded", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
}

.pomodoro {
  margin: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.pomodoro-settings {
  display: flex;
  width: 100%;
  justify-content: end;
  margin-bottom: 1rem;
}

/* POMODORO TIMER */
.pomodoro-status {
  display: grid;
  place-content: center;
}

.pomodoro-time {
  font-size: 3rem;
  display: grid;
  place-content: center;
}

.pomodoro-label {
  margin: 1rem 0 0 0;
}

/* Tasks */
.tasks {
  margin-top: 2rem;
  max-width: 300px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  display: flex;
}

.step {
  width: 20px;
  height: 20px;
  background-color: var(--ACTIVE-COLOR);
  margin: 1rem;
  border-radius: 100vh;
}

.step.finished {
  background-color: #fff;
}

p {
  color: var(--FONT-COLOR);
}

.controlles {
  margin: 2rem;
  display: flex;
  width: 100%;
  justify-content: space-evenly;
}

.FlatButton {
  background-color: transparent;
  border: none;
}

.filterWhite {
  filter: invert(100%);
}

.container {
  position: relative;
  width: 300px;
  height: 300px;
}

.element1 {
  position: absolute;
}

.element2 {
  position: absolute;
}

@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

.pie {
  --p: 0;
  --b: 6px;
  --c: var(--ACTIVE-COLOR);
  --w: 300px;
  height: 300px;
  width: 300px;
  display: inline-grid;
  margin: 5px;
  place-content: center;
}

.pie:before,
.pie:after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.pie:before {
  inset: 0;
  background: radial-gradient(farthest-side, var(--c) 98%, #0000) top/var(--b)
      var(--b) no-repeat,
    conic-gradient(var(--c) calc(var(--p) * 1%), #0000 0);
  -webkit-mask: radial-gradient(
    farthest-side,
    #0000 calc(99% - var(--b)),
    #000 calc(100% - var(--b))
  );
  mask: radial-gradient(
    farthest-side,
    #0000 calc(99% - var(--b)),
    #000 calc(100% - var(--b))
  );
}
.pie:after {
  inset: calc(50% - var(--b) - 2px);
  background: var(--c);
  transform: rotate(calc(var(--p) * 3.6deg))
    translateY(calc(50% - var(--w) / 2 - 5px));
  box-shadow: 0 0 3px var(--BGCOLOR);
}

.animate {
  animation: p 1s 0.5s both;
}

.no-round:before {
  background-size: 0 0, auto;
}

.no-round:after {
  content: none;
}

@keyframes p {
  from {
    --p: 0;
  }
}

/* || SETTINGS STYLE */
dialog {
  margin: auto;
  border: none;
  border-radius: 1rem;
}

.settingsDialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgb(238, 238, 238);
}

.settingsDialog-head-title {
  font-size: 15px;
  color: rgb(170, 170, 170);
  text-transform: uppercase;
  font-weight: bold;
  padding: 16px 23px;
  text-align: center;
}

.settingsDialog-head-img {
  opacity: 0.3;
  margin: 0 12px;
}

.settingsDialog-timer {
  padding: 0rem 1rem 1rem 1rem;
  border-bottom: 1px solid rgb(238, 238, 238);
}

.settingsDialog-timer-head {
  font-size: 14px;
  color: rgb(170, 170, 170);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 28px;
  margin-bottom: 10px;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
}

.settingsDialog-timer-head-img {
  width: 16px;
  opacity: 0.3;
  margin-right: 6px;
}

.settingsDialog-timer-time-label {
  color: rgb(85, 85, 85);
  font-weight: bold;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
}

.pomodoro-inputs {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 10px;
}

.input-container {
  display: flex;
  flex-direction: column;
  width: 98px;
}

select,
input {
  border-radius: 6px;
  background-color: rgb(239, 239, 239);
  font-size: 16px;
  padding: 10px;
  box-shadow: none;
  border: none;
  color: rgb(85, 85, 85);
  width: 100%;
  box-sizing: border-box;
}

label {
  display: block;
  font-size: 14px;
  color: rgb(170, 170, 170);
  font-weight: bold;
  margin-bottom: 4px;
}

.input-container-hr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.input-container-hr label {
  width: 100%;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  color: rgb(34, 34, 34);
  font-weight: bold;
}

.settingsDialog-sound {
  padding: 0 1rem 1rem 1rem;
  border-bottom: 1px solid rgb(238, 238, 238);
}

.input-container-hr input {
  width: 70px;
}

.settingDialog-footer {
  min-height: 75px;
  display: flex;
  justify-content: end;
  align-items: center;
}

.SettingsDialog-button {
  margin: auto;
  padding: 0.5rem 3rem;
  background-color: #333;
  color: #fff;
  border: none;
}
