@font-face {
  font-family: 'Arial-MT';
  src: url("../assets/fonts/Arial-MT.woff");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-width: 480px;
  min-height: 100vh;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  color: #fff;
  text-align: center;
  background-size: cover;
  transition: background-image 1s ease-in-out;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  height: 30vh;
  min-height: 220px;
  padding: 20px;
}

.player {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  width: 20%;
  padding: 10px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.2);
}

.player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.player__settings {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.player__song {
  opacity: .8;
}

.player__timeline,
.player__volume-scale {
  cursor: pointer;
  background: white;
  width: 100%;
  height: 5px;
  border-radius: 10px;
  box-shadow: 0 2px 10px 0 #0008;
}

.player__progress {
  width: 0%;
  height: 100%;
  position: relative;
  border-radius: 10px;
  background: #C5B358;
}

.player__time>span {
  opacity: .8;
}

.player__volume {
  display: flex;
  align-items: center;
  gap: 15px;
}

.player__volume-icon {
  cursor: pointer;
  width: 32px;
  height: 32px;
  opacity: .8;
  background: transparent url(../assets/svg/volume-on.svg) no-repeat center center;
  background-size: 32px 32px;
}

.player__volume-icon:hover {
  opacity: 1;
}

.player__volume-icon.off {
  background-image: url(../assets/svg/volume-off.svg);
}

.player__volume-progress {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 10px;
  background: #C5B358;
}

.player__play-list {
  text-align: left;
}

.player__play-item {
  position: relative;
  padding: 5px;
  padding-left: 30px;
  list-style: none;
  opacity: .8;
  cursor: pointer;
  transition: .3s;
}

.player__play-item:hover {
  opacity: 1;
}

.player__play-item::before {
  cursor: pointer;
  content: url(../assets/svg/play.svg);
  position: absolute;
  left: 0;
  top: 10px;
  zoom: 30%;
  opacity: .8;
}

.player__play-item.off::before {
  content: url(../assets/svg/pause.svg);
  zoom: 30%;
}

.item-active {
  color: #C5B358;
}

.item-active::before {
  content: url(../assets/svg/play-colored.svg);
  zoom: 30%;
}

.off.item-active::before {
  content: url(../assets/svg/pause-colored.svg);
  zoom: 30%;
}

.player__icon,
.slider-icon,
.quote__update-button {
  width: 32px;
  height: 32px;
  background-size: 32px 32px;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: 0;
  outline: 0;
  opacity: .8;
  cursor: pointer;
  transition: .3s;
}

.player__icon:hover,
.slider-icon:hover,
.quote__update-button:hover {
  opacity: 1;
}

.player__icon:active,
.slider-icon:active,
.quote__update-button:active {
  border: 0;
  outline: 0;
  transform: scale(1.1);
}

.play {
  width: 40px;
  height: 40px;
  background-size: 40px 40px;
  background-image: url("../assets/svg/play.svg");
}

.pause {
  width: 40px;
  height: 40px;
  background-size: 40px 40px;
  background-image: url("../assets/svg/pause.svg");
}

.play-prev {
  background-image: url("../assets/svg/play-prev.svg");
}

.play-next {
  background-image: url("../assets/svg/play-next.svg");
}

.weather {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  row-gap: 5px;
  width: 180px;
  min-height: 180px;
  text-align: left;
}

.weather__error {
  margin-top: -10px;
}

.weather__description-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  column-gap: 12px;
}

.weather__icon {
  font-size: 44px;
}

.weather__temperature {
  font-size: 28px;
}

.weather__city {
  width: 170px;
  height: 34px;
  padding: 5px;
  font-size: 20px;
  line-height: 24px;
  color: #fff;
  border: 0;
  outline: 0;
  border-bottom: 1px solid #fff;
  background-color: transparent;
}

.weather__city::placeholder {
  font-size: 20px;
  color: #fff;
  opacity: .6;
}

.main {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 40vh;
  min-height: 260px;
  padding: 20px;
}

.slider-icon {
  position: absolute;
  top: 50%;
  margin-top: -16px;
  cursor: pointer;
}

.slide-prev {
  left: 20px;
  background-image: url("../assets/svg/slider-prev.svg");
}

.slide-next {
  right: 20px;
  background-image: url("../assets/svg/slider-next.svg");
}

.time {
  min-height: 124px;
  margin-bottom: 10px;
  font-family: 'Arial-MT';
  font-size: 100px;
  letter-spacing: -4px;
}

.date {
  min-height: 28px;
  font-size: 24px;
  margin-bottom: 20px;
}

.greeting-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: stretch;
  align-items: center;
  min-height: 48px;
  width: 100vw;
  font-size: 40px;
}

.greeting {
  flex: 1;
  padding: 10px;
  text-align: right;
}

.name {
  flex: 1;
  max-width: 50%;
  padding: 10px;
  font-size: 40px;
  text-align: left;
  color: #fff;
  background-color: transparent;
  border: 0;
  outline: 0;
}

.name::placeholder {
  color: #fff;
  opacity: .6;
}

.footer {
  display: flex;
  align-items: center;
  width: 100%;
  height: 30vh;
  min-height: 160px;
  padding: 20px;
}

.settings {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-self: flex-end;
}

.settings__icon {
  cursor: pointer;
  border: 0;
  background: url("../assets/svg/settings.svg");
  background-size: cover;
  width: 30px;
  height: 30px;
  opacity: 0.8;
}

.settings__icon:hover {
  opacity: 1;
}

.settings__content {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  position: absolute;
  bottom: 0;
  left: 60px;

  padding: 20px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.2);
}

.settings__content.active {
  display: flex;
}

.settings__background {
  margin-bottom: 10px;
}

.settings__background-tag {
  display: block;
  margin: 0 auto;
}

.settings__background>#github:checked~.settings__background-tag {
  visibility: hidden;
}

.settings__hide {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings__radio,
.settings__checkbox {
  cursor: pointer;
  filter: grayscale(100%);
}

.settings__language {
  width: 100%;
  height: 100%;
}

.settings__lang-button {
  cursor: pointer;
  width: 100px;
  height: 20px;
  min-height: 32px;
  background: inherit;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  opacity: .8;
}

.settings__lang-button:hover,
.settings__lang-button.active {
  opacity: 1;
  background: #C5B358;
  border: none;
}

.quote {
  margin: 0 auto;
}

.quote__update-button {
  margin-bottom: 30px;
  background-image: url("../assets/svg/reload.svg");
}

.quote__content {
  min-height: 32px;
}

.quote__author {
  min-height: 20px;
}

@media (max-width: 768px) {
  .time {
    min-height: 80px;
    font-size: 72px;
  }

  .greeting-container {
    min-height: 40px;
    font-size: 32px;
  }

  .greeting {
    padding: 5px;
  }

  .name {
    font-size: 32px;
    padding: 5px;
  }
}