html {
  --background-color: white;
  --text-color: black;
  --meter-foreground-color: red;
  --meter-background-color: #ccc;
  --meter-volume-color: green;
  --button-background-color: red;
  --button-active-color: #f55;
  --button-text-color: black;
  --settings-background-color: #333;
  font-size: 16px;
}

html.dark {
  --background-color: #222;
  --text-color: white;
  --meter-foreground-color: rgb(163, 0, 0);
  --meter-background-color: #3a3a3a;
  --meter-volume-color: rgb(0, 88, 0);
  --button-background-color: rgb(122, 122, 122);
  --button-active-color: rgb(66, 66, 66);
  --button-text-color: rgb(206, 206, 206);
  --settings-background-color: #333;
}

body {
  background: var(--background-color);
}

svg {
  overflow: visible;
}

.center {
  display: flex;
  justify-content: center;
}

.container {
  position: relative;
}

.info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

p,
button,
label {
  font-family: 'Inter', sans-serif;
  color: var(--button-text-color);
}

.meter {
  position: relative;
  margin: 1em;
}

.meter-foreground {
  fill: var(--meter-foreground-color);
  position: absolute;
  left: 0;
  top: 0;
}

.meter-background {
  fill: var(--meter-background-color);
}

.meter-volume {
  fill: var(--meter-volume-color);
  position: absolute;
  left: 0;
  top: 0;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
}

.modal-content {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

button {
  background: var(--button-background-color);
  transition: background 0.25s ease-out;
  border: none;
  padding: 1.5em;
  border-radius: 100%;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.7rem;
  height: 6.8em;
  width: 6.8em;
  margin: 1em;
}

button svg {
  margin-bottom: 0.5em;
}

#controls {
  display: flex;
}

#muteButton .feather-mic {
  display: none;
}

#muteButton .unmute {
  display: none;
}

#muteButton.muted {
  background: var(--button-active-color);
}

#muteButton.muted .feather-mic {
  display: initial;
}

#muteButton.muted .feather-mic-off {
  display: none;
}

#muteButton.muted .unmute {
  display: initial;
}

#muteButton.muted .mute {
  display: none;
}

#settingsModal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
}

.settingsContent {
  max-width: 300px;
  width: 100%;
  background: var(--settings-background-color);
  padding: 2em;
  margin: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.setting {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 1.2rem;
}

input[type='checkbox'] {
  width: 20px;
  height: 20px;
}

#saveSettingsButton {
  margin-top: 4em;
  margin-bottom: 0;
}
