* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: white;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  font-family: "Roboto", sans-serif;
  height: 100%;
}

body {
  background: radial-gradient(
    circle,
    rgba(2, 0, 36, 1) 0%,
    rgba(29, 16, 64, 1) 64%,
    rgba(32, 20, 33, 1) 100%
  );
  overflow: hidden;
  height: 100%;
}

header {
  display: flex;
  max-height: 100px;
  justify-content: space-between;
  padding-top: 10px;
}

header.no-select select {
  display: none;
}

header .left {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100px;
  border-right: 1px solid gray;
}

header .right {
  height: 100%;
  margin-left: 2rem;
  display: flex;
  align-items: end;
}

.right h1 {
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.right p {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.2;
}

.back-btn {
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: center;
  background-image: url(../icons/left-arrow.png);
  width: 40px;
  height: 40px;
  margin-top: 3rem;
}

body .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: calc(100vh - 350px);
  /* margin-top: 10px; */
}

.rs-control .rs-bg-color {
  background: radial-gradient(
    circle,
    rgba(2, 0, 36, 1) 0%,
    rgba(29, 16, 64, 1) 64%,
    rgba(32, 20, 33, 1) 100%
  );
}

.rs-control .rs-path-color {
  box-shadow: 0 15px 35px 11px rgb(46 44 58 / 60%);
  background-color: #1c182f !important;
}

.rs-tooltip-text {
  font-size: 6rem !important;
}

.rs-handle {
  background-color: #fffdff !important;
  box-shadow: 0 0 60px 0px #fff, 0 0 0px 0px #f0f, 0 0 11px 0px #1d1040;
}

.temp-info {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10%; /* 50px */
  column-gap: 90px;
}

.temp-info .deg {
  font-size: 18px;
}

.temp-info p {
  font-size: 20px;
  margin-left: 7px;
  letter-spacing: 1px;
  margin-top: 4px;
}

.icon {
  width: 25px;
  height: 25px;
}

.inside {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.inside div {
  display: flex;
  gap: 1rem;
  opacity: 0.7;
}

.inside .deg {
  margin-top: 5px;
}

.outside div {
  display: flex;
  gap: 1rem;
  opacity: 0.7;
}

.footer {
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  height: 140px;
}

.footer div {
  width: 8rem;
  height: 8rem;
  background: white;
  margin: 1rem;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-color: transparent;
  background-position: center;
  background-size: 40%;
  border: 3px solid #2d3255;
  cursor: pointer;
}

.footer span {
  text-align: center;
}

.footer span p {
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.2;
}

.footer .snowflake {
  background-image: url(../icons/snowflake.png);
}

.footer .fan {
  background-image: url(../icons/fan.png);
}

.footer .mode {
  background-image: url(../icons/mode.png);
}

.footer .fc {
  position: relative;
}

.mode-status {
  background-repeat: no-repeat;
  background-size: 90%;
  background-position: center;
  position: absolute;
  left: -26px;
  bottom: 24px;
}

.mode-status[mode-level="0"] {
  display: none;
}

.mode-status[mode-level="1"] {
  background-image: url(../icons/sun.png);
}

.mode-status[mode-level="2"] {
  background-image: url(../icons/snowflake.png);
}

.footer .fc::after {
  content: "";
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.2;
  position: absolute;
  bottom: 0;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.5rem;
}

.footer .fc[value="c"]::after {
  content: "°C";
}
.footer .fc[value="f"]::after {
  content: "°F";
}

.rs-border {
  border: 1px solid #5665c9 !important;
}

.rs-control .rs-range-color {
  background-color: #c8ccf0;
}

.rs-tooltip .dot {
  position: absolute;
  font-size: 3rem;
  top: 0rem;
  right: -1rem;
  color: gray;
}

.cntrl {
  display: none;
}

.btn[selected] {
  background-color: #37388a;
  transition: 0.5s;
  box-shadow: 0 0 10px 0px #fff, 0 0 0px 0px #f0f, 0 0 11px 0px #1d1040;
}

.control {
  position: fixed;
  bottom: 140px;
  width: 100%;
  display: none;
  height: 50px;
}

.control.selected {
  display: flex;
}

.control span {
  width: 100%;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 1rem;
  border-bottom: 1px solid gray;
  cursor: pointer;
}

.control span[selected] {
  border-bottom: 3px solid #2081e8;
  color: #2081e8;
  transition: all 0.5s;
}

select {
  appearance: none;
  border: 0;
  outline: 0;
  font: inherit;
  width: 20em;
  height: 3em;
  padding: 0 4em 0 1em;
  background: url(https://upload.wikimedia.org/wikipedia/commons/9/9d/Caret_down_font_awesome_whitevariation.svg)
      no-repeat right 0.8em center / 1.4em,
    linear-gradient(
      to left,
      rgb(255 255 255 / 5%) 3em,
      rgb(255 255 255 / 5%) 3em
    );
  color: white;
  border-radius: 0.25em;
  box-shadow: 0 0 1em 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  margin-top: 1.5rem;
}
select option {
  color: inherit;
  background-color: #320a28;
}
select:focus {
  outline: none;
}
select::-ms-expand {
  display: none;
}

/* tablet mode */
@media (min-width: 768px) {
  .footer {
    display: flex;
    flex-direction: column;
    border-top: none;
    bottom: 0;
    top: 0;
    justify-content: center;
    width: auto;
    left: 1rem;
    right: auto;
    padding-bottom: 0;
    height: auto;
  }

  .temp-info {
    justify-content: center;
    gap: 5rem;
  }

  .control {
    position: fixed;
    bottom: 5rem;
    width: 80%;
    left: 10%;
  }
}

.form-switch {
  display: inline-block;
  cursor: pointer;
}

.form-switch input {
  display: none;
}

.form-switch i {
  position: relative;
  display: inline-block;
  margin-right: 0.5rem;
  width: 46px;
  height: 26px;
  background-color: #e6e6e6;
  border-radius: 23px;
  vertical-align: text-bottom;
  transition: all 0.3s;
}

.form-switch i::before {
  content: "";
  position: absolute;
  left: 0;
  width: 42px;
  height: 22px;
  background-color: #c8ccf0;
  border-radius: 11px;
  transform: translate3d(2px, 2px, 0) scale3d(1, 1, 1);
  transition: all 0.3;
}

.form-switch i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  background-color: #fff;
  border-radius: 11px;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.24);
  transform: translate3d(2px, 2px, 0);
  transition: all 0.2s ease-in-out;
}

.form-switch:active i::after {
  width: 28px;
  transform: translate3d(2px, 2px, 0);
}
.form-switch:active input:checked + i::after {
  transform: translate3d(16px, 2px, 0);
}

.form-switch input:checked + i {
  background-color: #37388a;
}

.form-switch input:checked + i::before {
  transform: translate3d(18px, 2px, 0) scale3d(0, 0, 0);
}
.form-switch input:checked + i::after {
  transform: translate3d(22px, 2px, 0);
}

.switch-box {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  padding-right: 1rem;
  margin-top: 1.5rem;
}

.right-inner {
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100%;
  max-height: 100%;
}

.off {
  opacity: 0.2;
  pointer-events: none;
}

.fancy-spinner {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0000009c;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.fancy-spinner div {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
.fancy-spinner div.ring {
  border-width: 0.5rem;
  border-style: solid;
  border-color: transparent;
  animation: 2s fancy infinite alternate;
}
.fancy-spinner div.ring:nth-child(1) {
  border-left-color: #979fd0;
  border-right-color: #979fd0;
}
.fancy-spinner div.ring:nth-child(2) {
  border-top-color: #979fd0;
  border-bottom-color: #979fd0;
  animation-delay: 1s;
}
.fancy-spinner div.dot {
  width: 20px;
  height: 20px;
  background: #979fd0;
}

.hide {
  display: none !important;
}

.expr-msg {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  line-height: 36px;
}

.go-referrer {
  width: 30px;
  height: 23px;
  background-image: url(../icons/icon-back.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 60%;
  margin-block-start: 0.67em;
  margin-block-end: 0.47em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  margin-left: auto;
  margin-right: auto;
}

.go-referrer.hide {
  display: none;
}

/* .go-referrer span {
  width: 10px;
  height: 10px;
  display: inline-block;
  background-image: url(../icons/arrowthick.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 75%;
} */

@keyframes fancy {
  to {
    transform: rotate(360deg) scale(0.5);
  }
}
