:root {
  --bg: #fff;
  --bg-panel: #fff;
  --color-headings: #161c2d;
  --color-text-opacity: rgba(22, 28, 45, 0.7);
  --color-text: #161c2d;
  --color-text-base: #161c2d;
  --border: #383f53;
  --theme-panel-color: #7393b3;
  --button-background: #cfdef3;
  --button-border-color: black;
}

[data-theme='dark'] {
  --bg: #1a1a1a;
  --bg-panel: #2b2b2b;
  --color-headings: #fff;
  --color-text-opacity: rgba(255, 255, 255, 0.7);
  --color-text: #fff;
  --color-text-base: #161c2d;
  --border: #ced4da;
  --button-background: #747476;
  --button-border-color: white;
}

[data-theme='light'] .main-header {
  background-image: url('../assets/images/pexels-pixabay-531756.jpg');
}

[data-theme='dark'] .main-header {
  background-image: url('../assets/images/pexels-pixabay-209831.jpg');
}

.theme-panel {
  position: fixed;
  right: 0;
  top: 25%;
  z-index: 100;
  transition: 0.4s;
  transform: translateX(100%);
}

.theme-panel.open {
  transform: translateX(0%);
}

.theme-body {
  background-color: var(--theme-panel-color);
  border: 1px solid var(--border);
  border: transparent;
  max-width: 185px;
  padding: 15px 13px;
  text-align: center;
  border-bottom-left-radius: 25px;
  position: relative;
}
.theme-body > span {
  color: white;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.09px;
  padding-bottom: 8px;
  display: inline-flex;
}

.theme-body .btn-group {
  box-shadow: 0 12px 34px rgba(22, 28, 45, 0.2);
  border-radius: 33px;
  background-color: white;
  overflow: hidden;
  display: flex;
  max-width: 153px;
}

.theme-body .btn-group .switcher-btn {
  background: transparent;
  border: none;
  width: 50%;
  font-size: 11px;
  font-weight: 700;
  height: 42px;
  padding: 15px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.theme-body .btn-group .switcher-btn.active {
  background-color: #ced4e7;
}

.theme-body .theme-tab {
  position: absolute;
  top: 0;
  transform: translateX(-100%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 50px;
  border: 0;
  background-color: var(--theme-panel-color);
  color: white;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
  left: 1px;
}

.theme-tab i {
  font-size: 1rem;
  transition: 0.4s;
  pointer-events: none;
}

.theme-panel.open .theme-tab i {
  transform: scaleX(-1);
}

:root[data-theme='light'] .weather-card {
  background: linear-gradient(to bottom, #cfdef3, #e0eafc);
  color: #000;
}

:root[data-theme='dark'] .weather-card {
  background: linear-gradient(to bottom, #747476, #444647);
  color: #fff;
}
