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

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

body {
  width: 100vw;
  height: 100vh;
  font-family: 'Arial', sans-serif;
  font-size: 16px;
  color: #fff;
  text-align: center;
  background-color:rgba(0, 0, 0, 0.5);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
  transition: background-image 1s ease;
}

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

.player {
  width: 400px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  max-width: 120px;
  width: 50%;
}

.play-list {
  position: absolute;
  top: 140px;
  display: flex;
  flex-direction: column;
  text-align: left;
  z-index: 5;
}

.play-item {
  position: relative;
  height: 40px;
  padding: 12px 0px 0px 40px;
  list-style: none;
  opacity: .7;
  cursor: pointer;
  transition: .3s;
}

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

.play-item::before {
  content: "";  
  position: absolute;
  left: 0;
  top: 5px;
  width: 30px;
  height: 30px;
  background-size: 30px 30px;
  border-radius: 100%;
  background-image: url("../assets/svg/play.svg");
}

.item-active {
  opacity: 1;
}

.item-active::before {
  background-color: #D47011;
}

.item-active.item-btn-pause::before {
  background-image: url("../assets/svg/pause.svg");
}

.player-icon,
.slider-icon,
.change-quote,
.volume-btn {
  width: 32px;
  height: 32px;
  background-size: 32px 32px;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: 0;
  outline: 0;
  opacity: .7;
  cursor: pointer;
  transition: .3s;  
}

.volume-btn {
  width: 25px;
  height: 25px;
  background-size: 25px 25px; 
}

.player-icon:hover,
.slider-icon:hover,
.change-quote:hover,
.volume-btn:hover {
  opacity: 1;
}

.player-icon:active,
.slider-icon:active,
.change-quote:active,
.volume-btn:active {
  border: 0;
  outline: 0;  
  transform: scale(1.1);
}

.volume-btn {
  background-image: url("../assets/svg/volume.svg");
}

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

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

.pause {
  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");
}

.audio-title {
  width: 75%;
  margin: 28px 0px 10px 0px;
  transition: .3s;
}

.progress-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.progress-bar {
  width: 75%;
  height: 12px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  background: #ffffff;
  opacity: .7;
  cursor: pointer;
  transition: 1s;
}

.volume-bar {
  width: 70%;
}

.progress-bar:hover,
.volume-bar:hover,
.volume-bar::-webkit-slider-thumb {
  opacity: 1;
}

.progress {
  height: 12px;
  border-radius: 2px;
  background: #D47011;
  transition: .1s;
}

.duration-timer {
  width: fit-content;
  display: flex;
  gap: 3px;
  font-size: 10px;
}

.volume-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 120px;
  width: 50%;
}

.volume-bar {
  height: 7px;
  -webkit-appearance: none;
  outline: none;
  border: none;
  border-radius: 2px;
  opacity: .7;
  cursor: pointer;
  transition: .3s;
}

.volume-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 100%;
  background-color: #D47011;
  opacity: /7;
  cursor: pointer;
  transition: .3s;
}

.weather {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  row-gap: 5px;
  max-width: 180px;
  width: 40%;
  min-height: 180px;  
  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-icon {
  font-size: 44px;
}

.city {
  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: 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 {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 30vh;
  min-height: 160px;  
  padding: 20px;
}

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

.quote {
  min-height: 32px;
}

.author {
  min-height: 20px;
}

#settings-icon {
  position: absolute;
  left: 20px;
  bottom: 20px;
  height: 20px;
  width: 20px;
  opacity: .6;
  cursor: pointer;
  transition: tranform 0.5s linear;
}

#settings-icon.active {
  z-index: 10;
  opacity: 1;
  transform: rotate(38deg) scale(1.1) ;
}

.settings {
  position: absolute;
  bottom: 58px;
  left: 20px;
  width: 440px;
  max-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 5px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  overflow: auto;
  transition: transform 0.5s ease;
  transform: translate(-150%);
  }

.settings.active {
  z-index: 10;
  transform: translate(0px, 0px);
}

.settings-overlay {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

.settings-overlay.active {
  display: block;
  z-index: 5;
}

.settings-item {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin: 10px 0;
  transition: all 0.3s ease;
}

.settings-item-text {
  padding: 0px 0px 20px 0px;
  word-wrap: break-word;
  color: #ffffff;
  transition: all 0.3s ease;
}

.settings-item input {
  opacity: 0;
  transition: all 0.3s ease;
}

.settings-item label {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.settings p {
  transition: all 0.3s ease;
}

.settings p.active {
  color: #ffffff;
}

.checkmark {
  width: 33px;
  height: 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.4);
}

input[type="radio"]:checked + .checkmark,
input[type="checkbox"]:checked + .checkmark{
  background: #D47011;
}

.checkmark::after {
  position: relative;
  content: "";
  top: 4px;
  left: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: top;
  background: rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease;
}

input[type="radio"]:checked + .checkmark::after,
input[type="checkbox"]:checked + .checkmark::after{
  background: #ffffff;
  transform: translateX(12px);
}

label[for="tags"] {
  color: #ffffff;
  transition: all 0.3s ease;
}

label[for="tags"].hidden {
  visibility: hidden;
}

#tags {
  opacity: 1;
  width: 80%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 20px;
  color: #ffffff;
}

#tags:active,
#tags:focus {
  outline: #D47011 solid 1px;
}

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

.block {
  opacity: 0;
  z-index: -1;
  transition: opacity 1s ease;
}

.active-block {
  opacity: 1;
  z-index: 1;
}

.footer-links {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

.footer-link {
  opacity: 0.7;
  transition: all 0.3s linear;
}

.footer-link:hover {
  opacity: 1;
  transform: scale(1.1);
}

.footer-link:active #rss-icon {
  fill: #D47011;
}

.footer-link:active #github-icon path{
  fill: #D47011;
}

.footer-links time {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1440px) {
  body {
    font-size: 14px;
  }

  .time {
    font-size: 88px;    
  }

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

  .name {
    font-size: 40px;
  }
 .change-quote {
    position: absolute;
    bottom: 100px;
  }

  .quote-container {
    position: absolute;
    bottom: 50px;
    padding: 0px 20px;
  }
}

@media (max-width: 768px) {

  .body {
    font-size: 12px;
  }

  .player {
    width: 300px;
  }

  .audio-title {
    width: 100%;
  }

  .progress-container {
    flex-wrap: wrap;
  }

  .progress-bar {
    width: 100%;
  }

  .duration-timer {
    margin: 10px 0px;
  }

  .play-list {
    top: 155px;
  }

  .weather {
    min-height: 100px;
  }
  
  .time {
    min-height: 80px;
    font-size: 72px;    
  }

  .date {
    font-size: 20px;
  }

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

  .greeting {
    padding: 5px;
  }

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

  .change-quote {
    bottom: 170px;
  }

  .quote-container {
    bottom: 120px;
  }

  .quote {
  padding-bottom: 10px;}
}

@media (max-width: 520px) {

  .body {
  font-size: 0.5vw;
  }

  .player {
    flex-direction: column;
    gap: 20px;
  }

  .audio-title {
    position: absolute;
    top: 170px;
    width: 75%;
  }

  .progress-container {
    position: absolute;
    top: 220px;
    width: calc(100% - 40px);
  }

  .progress-bar {
    width: 75%;
  }

  .duration-timer {
    margin: 0;
  }

  .play-list {
    visibility: hidden;
  }

  .weather {
    position: absolute;
    right: 20px;
  }

  .time {
    font-size: 10vw;    
  }

  .date {
    font-size: 4vw;
  }

  .greeting-container {
    font-size: 6vw;
    flex-direction: column;
  }

  .greeting-container input {
    text-align: center;
  }

   .name {
    font-size: 6vw;
  }

  .settings {
  width: 280px;
  font-size: 12px;
  }
}
