:root {
  --color-error: #cc0000;
  --color-primary: #3dd9eb;
  --color-secondary: #34495e;
  --color-success: #5cb85c;
  --color-tertiary: #6b7280;
  --color-warning: #ffdf00;
  --color-white: #ffffff;
}

body {
  box-sizing: border-box;
  color: var(--color-tertiary);
  display: flex;
  flex-direction: column;
  font-family: Inter, Arial, Helvetica, sans-serif;
  width: 320px;
}

body * {
  box-sizing: border-box;
}

button {
  align-items: center;
  background-color: var(--color-secondary);
  border: none;
  border-radius: 4px;
  color: var(--color-white);
  display: inline-flex;
  gap: 4px;
  outline: none;
  padding: 2px;
  transition: 0.4s;
}

button:focus,
button:hover {
  background-color: var(--color-white);
  color: var(--color-secondary);
}

footer {
  background-color: var(--color-secondary);
  font-size: 12px;
  height: 4px;
  margin-top: auto;
  text-align: center;
}

header {
  align-items: center;
  background-color: var(--color-secondary);
  color: var(--color-white);
  display: flex;
  font-size: 16px !important;
  height: 48px;
  justify-content: space-between;
  padding: 0 16px;
}

main {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 16px;
}

popup-button {
  border-radius: 4px;
  cursor: pointer;
  display: grid;
  font-size: 14px;
  gap: 16px;
  grid-template-rows: repeat(2, 1fr);
  height: 136px;
  justify-items: center;
  outline: none;
  padding: 8px;
  text-align: center;
  transition: 0.4s;
  width: 100%;
  word-break: break-word;
}

popup-button:focus,
popup-button:hover {
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

popup-button > span {
  align-self: flex-start;
}

popup-button > svg {
  align-self: flex-end;
}

strong {
  font-weight: bold;
}

#power-option {
  color: var(--color-white);
  word-break: break-all;
}

#power-option[data-value='off'] {
  background-color: var(--color-error);
}

#power-option[data-value='on'] {
  background-color: var(--color-success);
}

#rate-option > svg {
  transition: 0.4s;
}

#rate-option:focus > svg,
#rate-option:hover > svg {
  color: var(--color-warning);
  fill: var(--color-warning);
}
