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

/* Theme Colors */
:root {
  --color-black: #171717;
  --color-black-2: #0f0f0f;
  --color-white: #fff;
  --color-white-2: #eee;
  --color-red: red;
}

body.restrict{
	/*overflow: hidden;
	position: fixed;*/
}

.content.restrict{
	/*overflow: hidden;
	height: auto;
	pointer-events: none;overscroll-behavior: none;*/
}

/*Chrome*/
@media screen and (-webkit-min-device-pixel-ratio:0) {
    input[type='range'] {
      overflow: hidden;
      width: 100%;
      -webkit-appearance: none;
      background-color: #606060;
      cursor: grab;
      height: 4px;
    }
    
    input[type='range']::-webkit-slider-runnable-track {
      height: 4px;
      -webkit-appearance: none;
      color: #fff;
      margin-top: -10px;
    }
    
    input[type='range']::-webkit-slider-thumb {
      width: 10px;
      -webkit-appearance: none;
      height: 4px;
      cursor: ew-resize;
      background: red;
      box-shadow: -80px 0 0 80px red;
    }
}

.volume-button {
  opacity: 0;
  pointer-events: none;
  transition: .8s ease-in-out;
  width: 94px;
  margin: 0 auto 4px;
}
.on .volume-button{
  pointer-events: auto;
  opacity: 1;
}

.now-container{
  display: flex;
  column-gap: 8px;
  opacity: 0;
  pointer-events: none;
  margin: 8px auto 8px;
  align-items: center;
}

.on .now-container{
  pointer-events: auto;
  opacity: 1;
}

.control {
  display: flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(221, 219, 219, 0.1607843137);
  padding: 6px;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.control svg {
  fill: var(--color-white-2);
}

/** FF*/
input[type="range"]::-moz-range-progress {
  background-color: red; 
}
input[type="range"]::-moz-range-track {  
  background-color: #606060;
}
/* IE*/
input[type="range"]::-ms-fill-lower {
  background-color: red; 
}
input[type="range"]::-ms-fill-upper {  
  background-color: #606060;
}
/*** Selection ***/
::selection {
  background-color: var(--color-red);
  color: var(--color-white-2);
}
/*** Selection ***/
::selection {
  background-color: var(--color-red);
  color: var(--color-white-2);
}

/*** Mozilla based browsers ***/
::-moz-selection {
  background-color: var(--color-red);
  color: var(--color-white-2);
}

html {
  color: var(--color-white-2);
  background: var(--color-black);
  font-family: "Ubuntu", sans-serif;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  background: var(--color-black);
  transition: 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 100px 0;
  min-height: 100%;
}
.on {
  background: var(--color-black-2);
}

/*
body:not(.on)::before {
    content: "";
    background: url(https://i0.wp.com/thehorticult.com/wp-content/uploads/2014/06/WildfloweringLA-GIF-thehorticult.gif);
    display: block;
    position: fixed;
    height: 100vh;
    width: 100vw;
    opacity: 0.07;
    pointer-events: none;
    top: 0;
    background-repeat: no-repeat;
    background-size: cover;
}


body::before {
    content: "";
    background: url("https://i0.wp.com/ultrawolvesunderthefullmoon.blog/wp-content/uploads/2016/06/tumblr_o8or0cho431uo586xo4_500.gif?fit=500%2C300&ssl=1");
    display: block;
    position: fixed;
    height: 100vh;
    width: 100vw;
    opacity: 0.07;
    pointer-events: none;
    top: 0;
    background-repeat: no-repeat;
    background-size: cover;
}
*/

.on .logo {
  animation-play-state: running;
}
.on .logo, .on .letter path {
  animation: breathe 3s ease-in-out infinite;
  animation-play-state: running;
  fill: var(--color-red);
}



main {
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  flex-direction: column;
  padding-top: 50px;
}

.FY, .TA {
  display: flex;
  width: 100%;
  max-width: 1440px;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  margin: auto;
  left: 0;
  right: 0;
  transition: 1s ease-in-out;
  z-index: 1;
  //background: linear-gradient(0deg, transparent 10%, var(--color-black-2), transparent 90%);
} 
.FY{
 background: linear-gradient(0deg, transparent, var(--color-black) 80%);
}

.TA{
  background: linear-gradient(0deg, var(--color-black) 20%, transparent);
}
.on .FY{
  background: linear-gradient(0deg, transparent, var(--color-black-2) 80%);
}

.on .TA{
  background: linear-gradient(0deg, var(--color-black-2) 20%, transparent);
}

.FY {
  top: 0;
}

.TA {
  bottom: 0;
}

.letter {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  height: 100px;
  width: 200px;
  max-width: 86px;
  margin: 0 8px;
  cursor: pointer;
}

.letter path {
  display: none;
  fill: var(--color-white);
  transition: 0.25s ease-in-out;
  transform-origin: center center;
  animation: zoomInOut 0.3s ease-in-out infinite;
  animation-play-state: paused;
}
.letter.F .F {
  display: flex;
}
.letter.Y .Y {
  display: flex;
}
.letter.T .T {
  display: flex;
}
.letter.A .A {
  display: flex;
}
.letter rect {
  fill: transparent;
}

@keyframes zoomInOut {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
}
.wave {
  fill: none;
  stroke: var(--color-white-2);
  stroke-miterlimit: 10;
  stroke-width: 4px;
  opacity: 1;
  height: 64px;
  width: 100%;
}

.logo {
  transition: 0.3s ease-in-out;
  margin: 0 20px;
  height: 120px;
  fill: var(--color-white);
  max-width: 120px;
  animation: breathe 4s ease-in-out infinite;
  animation-play-state: paused;
  transform-origin: center center;
  min-width: 120px;
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.05);
  }
}
.button {
  border: solid 1px var(--color-white-2);
  width: 240px;
  height: 240px;
  border-radius: 60px;
  border-radius: 100% 90% 92% 100%/94% 100% 79% 93%;
  display: flex;
  align-items: center;
  overflow: visible;
  justify-content: center;
  cursor: pointer;
  transition: 1s ease-in-out;
  transform: scale(0.9, 1);
  animation: squishing 24s ease-in-out infinite both alternate;
  animation-play-state: paused;
}

.button::before {
  content: "";
  height: 240px;
  width: 240px;
  border-radius: 60px;
  border-radius: 90% 80% 82% 90%/84% 90% 99% 83%;
  display: flex;
  align-items: center;
  overflow: visible;
  justify-content: center;
  cursor: pointer;
  border: solid 1px var(--color-white-2);
  position: absolute;
  transition: 1s ease-in-out;
  transform: scale(1, 0.9) rotate(60deg);
  animation: squishing2 18s ease-in-out infinite both alternate;
  animation-play-state: paused;
}

.button::after {
  content: "";
  height: 240px;
  width: 240px;
  border-radius: 60px;
  border-radius: 80% 90% 92% 80%/94% 80% 89% 93%;
  display: flex;
  align-items: center;
  overflow: visible;
  justify-content: center;
  cursor: pointer;
  border: solid 1px var(--color-white-2);
  position: absolute;
  transition: 1s ease-in-out;
  transform: scale(1, 0.9) rotate(-30deg);
  animation: squishing3 7s ease-in-out infinite both alternate;
  animation-play-state: paused;
}

.button-container {
  transition: 0.2s ease-in-out;
  transform: scale(1);
  -webkit-tap-highlight-color: transparent;
}

.button-container::before {
  content: "";
  height: 240px;
  width: 240px;
  border-radius: 60px;
  border-radius: 90% 80% 82% 90%/84% 90% 99% 83%;
  display: flex;
  align-items: center;
  overflow: visible;
  justify-content: center;
  cursor: pointer;
  border: solid 1px var(--color-white-2);
  position: absolute;
  transition: 1s ease-in-out;
  transform: scale(1, 0.9) rotate(60deg);
  animation: squishing3 32s 2s ease-in-out infinite both alternate;
  animation-play-state: paused;
}

.button-container::after {
  content: "";
  height: 240px;
  width: 240px;
  border-radius: 60px;
  border-radius: 90% 90% 82% 90%/93% 90% 99% 98%;
  display: flex;
  align-items: center;
  overflow: visible;
  justify-content: center;
  cursor: pointer;
  border: solid 1px var(--color-white-2);
  position: absolute;
  transition: 1s ease-in-out;
  transform: scale(1, 0.9) rotate(60deg);
  animation: squishing 23s 1s ease-in-out infinite both alternate;
  animation-play-state: paused;
  pointer-events: none;
  top: 0;
}

.on .button, .on .button::before, .on .button::after, .on .button-container::before, .on .button-container::after {
  animation-play-state: running;
  border: solid 1px var(--color-red);
}

.metaButton {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease-in-out;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  width: fit-content;
}

.metaButton.hide {
  opacity:0;
  pointer-events: none;
}

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

.infoButton {
  color: var(--color-white-2);
  font-weight: 500;
  font-size: 16px;
  border-radius: 0;
  padding: 0;
  margin-top: 24px;
  margin-left: -12px;
  border-bottom: solid 1px transparent;
}

.lyricsButton.metaButton {
  background: rgba(221, 219, 219, 0.1607843137);
  color: var(--color-white-2);
  font-size: 16px;
  margin-top: 8px;
  font-weight: 500;
  border-radius: 4px;
  padding: 4px 8px;
}

.lyricsButton svg {
  width: 12px;
  fill: var(--color-white);
}

.infoButton svg {
  width: 18px;
  fill: var(--color-white);
  margin-right: 5px;
}

.modal {
  background: rgba(55, 55, 55, 0.9098039216);
  /* filter: blur(238px); */
  color: var(--color-white);
  max-width: 520px;
  width: calc(100% - 24px);
  transform: translateY(0);
  opacity: 1;
  transition: all 0.6s ease-in-out;
  position: relative;
}

.overlay.off {
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
}

.overlay {
  width: 100vw;
  height: 100dvh;
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4392156863);
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: all;
  backdrop-filter: blur(5px);
  transition: 0.2s ease-in-out;
}

.overlay::before {
  content: "";
  width: 100vw;
  height: 100dvh;
  position: fixed;
  cursor: pointer;
  top: 0;
  bottom: 0;
  z-index: -1;
}

.overlay.off .modal {
  pointer-events: none;
  transform: translateY(120px);
  opacity: 0;
}

.overlay.off {
  backdrop-filter: blur(0px);
}

.modal .top {
  display: flex;
  justify-content: space-between;
  padding: 12px 42px 12px 12px;
  background: #2c2c2c;
  width: 100%;
  align-items: center;
  position: fixed;
  top: 0;
}

.modal .title {
  font-size: 20px;
}

.modal .artist {
  font-size: 16px;
}

.modal .title, .modal .artist {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: inline-block;
}

@keyframes squishing {
  10%, 40%, 80% {
    transform: scale(1, 0.9);
  }
  0%, 30%, 60%, 100% {
    transform: scale(0.9, 1);
  }
}
@keyframes squishing2 {
  20%, 90%, 40% {
    transform: scale(0.9, 1) rotate(0deg);
  }
  20%, 10%, 30%, 80% {
    transform: scale(1, 0.9) rotate(60deg);
  }
}
@keyframes squishing3 {
  30%, 60%, 20% {
    transform: scale(0.9, 0.9) rotate(0deg);
  }
  20%, 10%, 30%, 80% {
    transform: scale(1, 0.9) rotate(-30deg);
  }
}
#play-icons {
  overflow: visible;
  height: 120px;
  position: absolute;
  margin: 75px auto;
  left: 0;
  right: 0;
  height: 90px !important;
}

#pause {
  opacity: 0;
  fill: var(--color-white-2) !important;
  transition: fill 1s ease-in-out;
}

#play {
  transform: translateX(20px);
  fill: var(--color-white-2) !important;
  transition: fill 1s ease-in-out;
}

.on #pause {
  opacity: 1;
  fill: var(--color-red) !important;
}

.on #play {
  opacity: 0;
  fill: var(--color-red) !important;
}

.content {
  display: flex;
  flex-direction: column;
  max-width: 480px;
  width: 100%;
  align-items: center;
}

.song {
  font-weight: 600;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 97px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}

.artist {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
}

.modal .artist {
  text-align: left;
}

.now {
  font-size: 16px;
  font-weight: 400;
}

.lyrics {
  font-family: monospace;
  /* overflow: hidden; */
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
}

.lyrics pre {
  width: 100%;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-size: 14px;
	padding: 78px 12px 12px;
}

.modal .meta h3 {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: center;
}

.modal::after {
  /* position: absolute; */
  /* content: ""; */
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, transparent, #252525);
  display: block;
  bottom: 0;
  pointer-events: none;
  left: 0;
  right: 0;
  transform: translateY(-40px);
}

.close {
  position: absolute;
  right: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px;
  border-radius: 20px;
  transition: 0.2s ease-in-out;
  cursor: pointer;
}

.modal svg {
  stroke: var(--color-white);
  width: 14px;
  stroke-width: 5px;
}

.info p{
  margin-bottom: 1rem;
}

.info h1{
    color: red;
    font-size: 40px;
    margin-bottom: 5px;
}

/*
.info h1 span{
    color: red;
}
*/

.info p {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.35;

}

.overlayInfo .top {
  background: transparent;
  height: 50px;
}

.modalInfo.modal {
  max-width: 960px;
  /* max-height: 80vh; */
}

.info {
  padding: 80px;
  overflow-y: auto;
  max-height: calc(100dvh - 20px);
  line-height: 1.25;
}

.modal .meta {
  width: 100%;
  margin-right: 20px;
}

.modalInfo.modal h3 {
  width: calc(100% - 20px);
  margin-bottom: 1rem;
}

.credit {
    font-weight: 300;
    margin-top: 40px;
    row-gap: 3px;
    display: flex;
    flex-direction: column;
}

.credit a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border-bottom: solid 1px transparent;
}

.info i{
	font-size: 14px;
	font-weight: 300;
	margin-top: 32px;
	display: block;
}

@media all and (max-width: 780px) {
  .modal {
    top: 12px;
    margin-bottom: 24px;
  }
  .info {
        padding: 16px;
    
    }
  .letter {
    max-height: 80px;
  }
  .logo {
    margin: 0 12px;
    height: 64px;
  }
}
#play-icons {
  transition: 0.2s ease;
}

.button-container #play-icons {
  transform: scale(0.85);
}

.button-container {
  transform: scale(0.95);
}

@media all and (min-width: 1024px){
.info h3 {
  margin-bottom: 1rem;
}
	
	.info h1{
    font-size: 62px;
}
}

@media all and (max-width: 460px) {
	.modal {
    top: 0;
	width: 100%;
    margin-bottom: 0;
		height: 100%;
  }
	.lyrics,.info{
	max-height: 100dvh;}
	.lyrics pre{
		padding: 66px 12px 12px;
	}
  .letter {
    max-width: 32px;
    max-height: 32px;
  }
  .modal .meta .title {
    font-size: 16px;
  }
  .modal .meta .artist {
    font-size: 14px;
  }
}
@media all and (pointer: fine) {
  .letter:hover path {
    animation-play-state: running;
  }
  .close:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  .lyricsButton:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  .infoButton:hover, .credit a:hover {
    border-bottom: solid 1px var(--color-white);
  }
  .button-container:hover #play-icons {
    transform: scale(1);
  }
  .button-container:hover {
    transform: scale(1);
  }
  .on .letter:hover path {
    animation: zoomInOut 0.3s ease-in-out infinite;
  }
  .control:hover {
    background: rgba(255, 255, 255, 0.3);
  }
}
@media all and (pointer: coarse) {
  html {
    scrollbar-gutter: stable;
  }
  .on .button-container #play-icons {
    transform: scale(1);
  }
  .on .button-container {
    transform: scale(1);
  }
}