@font-face {
  font-family: 'Arial-MT';
  src: url("../assets/fonts/Arial-MT.woff"); /* Путь к файлу со шрифтом */
 }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  color: #fff;
  text-align: center;
  background: center/cover, rgba(0, 0, 0, 0.5);
  background-blend-mode: multiply;
  transition: background-image 1s ease-in-out;
}
button {
  background-color: transparent;
  border: 0;
}
button:active, button:focus {
  outline: none;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  column-gap: 30px;
  width: 100%;
  height: 30vh;
  min-height: 220px;  
  padding: 20px;
}
.play-item-name {
  width: 250px;
  display: block;
  margin-left: 26%;
  text-align: start;
}
.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 590px;
  column-gap: 10px;
  margin-bottom: 28px;
  padding-top: 5px;
  padding-bottom: 5px;
}
.play-list {
  text-align: left;
}
.play-item {
  position: relative;
  padding: 5px;
  padding-left: 20px;
  list-style: none;
  opacity: .8;
  cursor: pointer;
  transition: .3s;
}
.play-item:hover {
  opacity: 1;
}
.play-item::before {
  content: "\2713";  
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: 900;
}
.item-active::before {
  color: #C5B358;
}
.player-icon,
.slider-icon,
.change-quote {
  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,
.change-quote:hover {
  opacity: 1;
}
.player-icon:active,
.slider-icon:active,
.change-quote:active {
  border: 0;
  outline: 0;  
  transform: scale(1.1);
}
.play {
  display: block;
  width: 40px;
  height: 40px;
  background-size: 40px 40px;
  background-image: url("../assets/svg/play.svg");
}
.play.small {
  width: 20px;
  height: 20px;
  background-size: 20px 20px;
  margin-right: 10px;
}
.play.none,
.pause.none
.sound-on.none,
.sound-off.none {
  display: none;
}
.pause {
  display: block;
  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");
}
.song-wrapper {
  display: flex;
  align-items: center;
}
.sound-on-btn {
  background-image: url("../assets/svg/sound-on.svg");
}
.sound-on-btn.none {
  background-image: url("../assets/svg/sound-off.svg");
}
.audio-progress {
  background: rgb(255, 255, 255, 0.7);
  border-radius: 8px;
  height: 7px;
  max-width: 220px;
  width: 30vw;
  outline: none;
  -webkit-transition: all 450ms ease;
  transition: all 450ms ease;
  -webkit-appearance: none;
  cursor: pointer;
  color: #fff;
}
.audio-progress::-webkit-slider-thumb,
.audio-volume::-webkit-slider-thumb {
  visibility: hidden;
}
.audio-volume {
  transition: all .5s ease;
    background: -webkit-gradient(
    linear,
    left top,
    right top,
    from(#C5B358),
    color-stop(48%, #C5B358),
    color-stop(48%, #C4C4C4),
    to(#C4C4C4)
  );
  background: linear-gradient(
    to right,
    #C5B358 0%,
    #C5B358 48%,
    #C4C4C4 48%,
    #C4C4C4 100%
  );
  border-radius: 8px;
  height: 7px;
  width: 80px;
  outline: none;
  -webkit-transition: all 450ms ease;
  transition: all 450ms ease;
  -webkit-appearance: none;
  cursor: pointer;
  color: #fff;
}
.weather {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  row-gap: 10px;
  width: 100%;
  max-width: 190px;
  min-height: 70px;  
  text-align: left;
}
.weather-error {
  margin-top: -10px;
}
.description-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  column-gap: 12px;
}
.weather-descr-item {
  display: flex;
  column-gap: 5px;
}
.weather-icon {
  font-size: 44px;
}
.city {
  max-width: 170px;
  width: 100%;
  height: 34px;
  padding: 5px;
  font-size: 20px;
  line-height: 24px;
  color: #fff;  
  border: 0;
  outline: 0;
  border-bottom: 1px solid #fff;
  background-color: transparent;
}
.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: 45vh;
  min-height: 260px;  
  padding: 20px;
}
.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: center;
  align-items: center;
  min-height: 48px;
  width: 100vw;
  font-size: 40px;
}
.greeting {
  flex: 1;  
  padding: 10px;
  text-align: right;
}
.name {
  flex: 1;
  max-width: 45%;
  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;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 25vh;
  min-height: 160px;  
  padding: 20px;
}
.footer-description {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 50px;
}
.change-quote {
  z-index: 14;
  position: relative;
  transition: transform 1s ease;
  margin-bottom: 30px;
  background-image: url("../assets/svg/reload.svg");  
}
.quotes {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.change-quote.rotate {
  transform: rotate(180deg);
}
.quote {
  min-height: 32px;
}

.author {
  min-height: 20px;
}
.visible {
  opacity: 1;
  transition: all .5s ease-in-out;
}
.none {
  opacity: 0;
}
.placeholder {
  opacity: .6;
}
.link a {
  color: rgb(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all .5s ease-in-out;
}
.link a:hover {
  color: #fff;
}
.settings-wrapper {
  display: flex;
  opacity: 0;
  position: absolute;
  bottom: 80px;
  left: 40px;
  max-width: 650px;
  text-align: left;
  padding: 15px;
  border-radius: .2rem;
  width: 100%;
  background-color: rgb(255, 255, 255, 1);
  color: #000;
  z-index: 1;
  transition: all .5s ease-in-out;
}
.settings-wrapper.active {
  opacity: 1;
}
.overlay {
 position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: none;
  opacity: 0;
  transition: all .5s ease-in-out;
}
.overlay.active {
  display: block;
}
.settings-btn {
  position: relative;
  z-index: 15;
  transition: transform 1s ease;
  background-image: url("../assets/svg/settings.svg");  
}
.settings-btn.rotate{
  transform: rotate(180deg); 
}
.settings-general {
  padding-right: 10px;
  flex: 0 1 30%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.settings-general::before {
  content: "";
  position: absolute;
  left: 100%;
  height: 20px;
  top: 0;
  color: black;
  height: 100%;
  border-right: 1px solid rgb(229 227 227);
}
.settings-general-item {
  cursor: pointer;
  margin: 10px 0;
  font-weight: 400;
  color: rgb(63, 63, 63);
}
.settings-general-item.active {
  font-size: 18px;
  font-weight: 700;
}
.language-item {
  display: flex;
  justify-content: space-between;
  padding: 5px;
}
.settings-content,
.photo-content {
  height: 370px;
  display: block;
  flex: 1 1 70%;
  padding-left: 10px;
}
.settings-content.none,
.photo-content.none {
  display: none;
}
.settings-title {
  font-size: 1.375rem;
  
}
.settings-suptitle {
  margin: 3px 0 21px;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.settings-secondtitle {
  margin: 39px 0 13px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
}
.settings-secondtitle::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgb(229 227 227);
}
.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.settings-item-title {
  padding: 11px;
  
}
.settings-item-title::after,
.photo-content-item::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  border-bottom: 1px solid rgb(229 227 227);
}
.photo-content-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  position: relative;
}
.photo-content-item::after{
  bottom: -8px;
}
.tags {
  margin-bottom: 20px;
}
.tag-input {
  font-size: 16px;
  color: #696969;
  width: 100%;
  padding: 5px;
  border: none;
  border-bottom:  1px solid rgb(229 227 227);
}
.tag-input:active,
.tag-input:focus {
  outline: none;
}

/* switch start */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 25px;
}

.switch input {display:none;}
.slider-icon {
  z-index: 15;
  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");
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #a1a1a1;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 17px;
  width: 17px;
  left: 4px;
  bottom: 4px;
  background-color: #fff;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #2fa003;
}
input:focus + .slider {
  box-shadow: 0 0 1px #2fa003;
}
input:checked + .slider:before {
  -webkit-transform: translateX(15px);
  -ms-transform: translateX(15px);
  transform: translateX(15px);
}
/* switch end */

@media (max-width: 768px) {
  .header {
    flex-wrap: wrap;
  }
  .audio-volume,
  .play-list,
  .current-time-box,
  .wind,
  .humidity {
    display: none;
  }
  .play-item-name {
    margin-left: 36%;
  }
  .time {
    min-height: 80px;
    font-size: 72px;    
  }
  .greeting-container {
    min-height: 40px;
    font-size: 32px;
  }
  .greeting {
    padding: 5px;
  }
  .name {
    font-size: 32px;
    padding: 5px;
  }
  .settings-wrapper {
    max-width: 450px;
  }
}
@media (max-width: 500px) {
  .player-controls {
    max-width: 120px;
  }
  .sound-on-btn,
  .audio-progress {
    display: none;
  }
  .play-item-name {
    margin-left: 20%;
  }
  .slider-icon {
    top: 54%;
  }
  .time {
    font-size: 50px;
  }
  .date {
    font-size: 22px;
  }
  .greeting-container {
    font-size: 22px;
  }
  .name {
    max-width: 36%;
    font-size: 22px;
  }
  .settings-wrapper {
    max-width: 290px;
    left: 13px;
  }
  .settings-secondtitle {
    margin: 20px 0 13px;
  }
}