@import url('https://fonts.googleapis.com/css2?family=UnifrakturCook:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

body {
  background-color: #121212;
  color: #ddd;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  text-align: center;
  user-select: none;

  background-image: url('https://hyndzia.xyz/bkground.gif');
  background-repeat: no-repeat;      /* wyłącza powtarzanie */
  background-size: cover;           /* rozciąga na cały ekran */
  background-position: center;      /* wyśrodkowuje */
  background-attachment: fixed;     /* opcjonalnie – żeby tło było nieruchome przy scrollu */
}
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  /* background: rgba(163, 0, 0, 0.4); */
  border: 5px solid rgba(163, 0, 0, 0.8);
  pointer-events: none;
}

/* animation */
@keyframes ripple-animation {
  to {
    transform: scale(1.3);
    opacity: 0;
  }
}
  /* body::before { */
            /* content: ""; */
            /* top: 0; left: 0; */
            /* width: 100%; */
            /* height: 100%; */
			/* position: fixed; */
            
            /* background-size: cover; */
            /* background-position: center; */
            /* z-index: 10; */
            /* filter: brightness(0.4);  */
        /* } */

        /* body::after { */
            /* content: ""; */
            /* position: fixed; */
            /* top: 0; left: 0; */
            /* width: 100%; */
            /* height: 100%; */
            /* background-color: rgba(0, 0, 0, 0.75); */
            /* z-index: -2; */
        /* } */

.back-link {
      position: fixed;
      top: 15px;
      left: 15px;
      font-family: 'UnifrakturCook', cursive;
      font-size: 1.5rem;
      color: #A30000;
      text-decoration: none;
      background-color: rgba(18, 18, 18, 0);
      padding: 8px 12px;
      border-radius: 8px;
      #box-shadow: 0 0 15px #A30000;
      z-index: 1000;
      cursor: pointer;
      transition: background-color 0.3s ease, color 0.3s ease;
      user-select: none;
	  text-shadow:
			 -2px -2px 0 black,
			  2px -2px 0 black,
			 -2px  2px 0 black,
			  2px  2px 0 black;  

    }

    .back-link:hover {
      background-color: rgba(163, 0, 0, 0.7);
      color: #121212;
	  text-shadow: none;
    }

h1 {
  font-weight: 700;
  font-size: 64px;
  color: #A30000;
  margin-bottom: 15px;
  font-family: 'UnifrakturCook', cursive;
  text-shadow:
			 -2px -2px 0 black,
			  2px -2px 0 black,
			 -2px  2px 0 black,
			  2px  2px 0 black;  
}

form#uploadForm {
  margin-bottom: 15px;
}

form#uploadForm input[type="file"] {
  border: 1px solid #333;
  background-color: #222;
  color: #eee;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

form#uploadForm button {
  background-color: rgba(18, 18, 18, 0);
  border: none;
  color: #A30000;
  font-family: 'UnifrakturCook', cursive;
  text-shadow:
			 -2px -2px 0 black,
			  2px -2px 0 black,
			 -2px  2px 0 black,
			  2px  2px 0 black;  
  font-size: 1.3rem;
  font-weight: 600;
  padding: 8px 15px;
  margin-left: 5px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form#uploadForm button:hover {
   background-color: rgba(163, 0, 0, 0.7);
      color: #121212;
	  text-shadow: none;
}

#fileNames {
  margin-left: 10px;
  color: #ddd;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.85rem; 
}


audio#audioPlayer {
  width: 90%;
  max-width: 600px;
  margin: 15px auto 25px auto;
  outline: none;
  border-radius: 8px;
  background-color: #222;
  box-shadow: 0 0 15px #61dafb44;
  display: block;
}


.player-container {
  display: flex;
  flex-direction: column; 
  align-items: center;   
  margin-bottom: 30px;    
  position: relative;    
}

.plyr {
  background-color: #121212 !important;
  color: #121212 !important;
  border-radius: 8px;
  box-shadow: 0 0 15px #A30000;
  width: 600px;
  max-width: 700px;
  --plyr-color-main: #8B0000;
  --plyr-control-color: #8B0000;
  --plyr-control-color-hover: #B22222;
  --plyr-track-active: #8B0000;
  --plyr-progress-buffer: #4B0000;
  --plyr-video-current-time: #8B0000;

  position: relative;   
  bottom: -66px;          
  z-index: 99999;
  margin: 0;            
}
.plyr__controls {
  background: #222 !important;
  border-top: 1px solid #444 !important;
  padding: 8px 10px;
}

.plyr__control,
.plyr__control--pressed,
.plyr__control:hover,
.plyr__control:focus {
  color: #8B0000;
  background-color: transparent;
  transition: color 0.3s ease;
}

.plyr__control:hover,
.plyr__control:focus {
  color: #B22222;
  outline: none;
}

.plyr__progress--played {
  background-color: #8B0000;
}

.plyr__progress--buffer {
  background-color: #4B0000;
}

.plyr__tooltip {
  background-color: #8B0000;
  color: #fff;
}


.plyr__volume--display {
  color: #8B0000;
}

.plyr__volume--horizontal .plyr__volume-range {
  background: #4B0000;
}

.plyr__volume--horizontal .plyr__volume-range::-webkit-slider-thumb {
  background: #8B0000;
}


.plyr__control svg {
  fill: #8B0000;
}

.plyr__control:hover svg {
  fill: #B22222;
}

.button-with-label, .checkbox-with-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px;
}

.checkbox-with-label {
    margin-top: 5px; 
	font-family: 'UnifrakturCook', cursive; 
	text-shadow:
			 -2px -2px 0 black,
			  2px -2px 0 black,
			 -2px  2px 0 black,
			  2px  2px 0 black;  
    font-size: 1.3rem;                       
    color: #A30000; 
	background-color: rgba(18, 18, 18, 0);	
	transition: background-color 0.3s ease, color 0.3s ease;
	border-radius: 8px;
	padding: 15px 15px;
}

.checkbox-with-label:hover {
	background-color: rgba(163, 0, 0, 0.7);
	color: #121212;
	text-shadow: none;
}

.controls {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  gap: 20px; 
}

.button-with-label {
  display: flex;
  flex-direction: column;
  align-items: center; 
  margin: 10px;
  color: gray;
}
.controls .button-with-label button {
  background-color: rgba(18, 18, 18, 0);
  border: none;
  color: #A30000;
  font-family: 'UnifrakturCook', cursive;
  text-shadow:
			 -2px -2px 0 black,
			  2px -2px 0 black,
			 -2px  2px 0 black,
			  2px  2px 0 black;  
  font-size: 1.3rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.color-btn {
  background-color: rgba(18, 18, 18, 0);
  border: none;
  color: #A30000;
  font-family: 'UnifrakturCook', cursive;
  text-shadow:
			 -2px -2px 0 black,
			  2px -2px 0 black,
			 -2px  2px 0 black,
			  2px  2px 0 black;  
  font-size: 1.3rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.color-btn:hover {
  background-color: rgba(163, 0, 0, 0.7);
  color: #121212;
  text-shadow: none;
}

.controls .button-with-label button:hover {
  background-color: rgba(163, 0, 0, 0.7);
  color: #121212;
  text-shadow: none;
}


.controls label {
  margin-right: 20px;
  cursor: pointer;
}

.controls input[type="checkbox"] {
  margin-right: 5px;
  cursor: pointer;
}

canvas#vis {
  display: block;
  margin: 25px auto 30px auto;
  background-color: #000;
  border-radius: 8px;
  box-shadow: 0 0 20px #A30000;
  max-width: 1100px;
  height: 320px;
  border: 2px solid #A30000;
}

#message {
  font-weight: 600;
  margin-top: 8px;
  min-height: 20px;
  /*color: #ffd700;*/
  color: rgba(0, 0, 0, 0.0);
  display: none;
}

#status {
    position: relative;
	top: -85px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.0); 
    padding: 10px;
    color: #a30000;
    font-size: 17px;
    z-index: 9999;
    border-radius: 1px;
	/* font-family: "Press Start 2P", cursive; */
	font-family: "VST323", monospace;
}

ul#playlist {
  list-style: none;
  max-width: 700px;
  width: 410px;
  padding: 0;
  margin: 0;

  position: fixed;   
  top: 65%;          
  right: 20px;       
  transform: translateY(-50%); 

  border-radius: 13px;
  box-shadow: 0 0 20px #A30000;
  background-color: rgba(33, 33, 33, 0.8);
  border: 2px solid #A30000;
}

ul#playlist button {
    background-color: rgba(2, 158, 25, 0.8);  
    color: #121212;                         
    font-family: 'UnifrakturCook', cursive;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}


ul#playlist button:hover {
    background-color: rgba(2, 158, 25, 0.5);              
    color: #121212;                         
}

ul#playlist button.remove-btn {
    background-color: rgba(163, 0, 0, 0.8);  
    color: #121212;                          
}

ul#playlist button.remove-btn:hover {
    background-color: rgba(163, 0, 0, 0.5);               
    color: #121212;                          
}

ul#playlist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid #333;
  color: #eee;
  font-size: 0.97rem;
  font-family: 'VT323', monospace;
  border-radius: 13px;
}

ul#playlist li.clear-all-btn-container {
    text-align: center;
    margin: 15px 0;
	background-color: rgba(0,0,0,0);
}

ul#playlist li.clear-all-btn-container button.clear-all-btn {
    background-color: rgba(163, 0, 0, 0.8); 
    color: #121212;                        
    font-family: 'UnifrakturCook', cursive;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block; 
    margin-left:30%;	
	margin-bottom:4px;
}

ul#playlist li.clear-all-btn-container button.clear-all-btn:hover {
    background-color: #121212;      
    color: #A30000;                        
}

.song-name {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 15px; 
}

.btn-group {
  flex-shrink: 0;
  display: flex;
  gap: 8px; 
  width: 140px; 
  justify-content: flex-end;
}


/* ul#playlist button:active { */
  /* transform: scale(0.95); */
/* } */

button:active,
form#uploadForm button:active,
.color-btn:active,
.controls .button-with-label button:active,
ul#playlist button:active {
    transform: scale(0.90); 
}


#playlist li {
  transition: background-color 0.3s ease;
}

#playlist li:hover {
  background-color: rgba(163, 0, 0, 0); 
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

#rain-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none; 
}

#progress-container {
    width: 20%;                
    background-color: #222;    
    border-radius: 6px;        
    margin-top: 0x; 	
	magrin-bottom: 20px;
    margin-left: auto;         
    margin-right: auto;
    display: none;            
    opacity: 0;                
    transition: opacity 0.5s ease-in-out;  
    height: 20px;            
}

#progress-bar {
    width: 0%;                 
    height: 100%;              
    background-color: #8B0000; 
    border-radius: 6px;        
    text-align: center;        
    color: #fff;              
    line-height: 20px;        
    transition: width 0.3s ease; 
}

footer {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: #4a4949;
  background: transparent;
  z-index: 0; 
}

#bars-options {
  display: flex;
  flex-direction: column;
  margin-left: -220px;
  position: absolute;
  top: 0;             
  left: 0;
  color: #aaa;
  font-size: 0.9rem;
}

#bars-options label {
  margin-bottom: 5px;
  cursor: pointer;
}

#bars-options input[type="checkbox"] {
  margin-right: 5px;
  cursor: pointer;
}

.effects-container {
    position: relative;    
    margin: 15px 0;         
    width: 100%;            
    display: flex;          
    justify-content: center; 
}

#effects-buttons {
    position: relative;       
    z-index: 10;              
    display: flex;            
    flex-wrap: wrap;          
    gap: 10px;                
    margin: 0;           
}

#effects-buttons button {
    background-color: rgba(18, 18, 18, 0);
    border: none;
    color: #A30000;
    font-family: 'UnifrakturCook', cursive;
    font-size: 25px;
    font-weight: 600;
    padding: 8px 15px;
    margin-left: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, text-shadow 0.3s ease;
}

#effects-buttons button:not(.active):hover {
    background-color: #444;
    color: #121212;
}

#effects-buttons button:hover {
    background-color: #444;
	color: #121212;
	text-shadow: none;
}

@media (max-width: 420px) {
  ul#playlist {
    position: fixed;
    bottom: 10px;              /* przyklejone do dołu */
    left: 50%;                 /* wyśrodkowane */
    transform: translateX(-50%);
    width: 90%;                /* dopasowanie do ekranu */
    max-width: 400px;          /* na wszelki wypadek */
    margin: 0;
    padding: 0;
    z-index: 9999;
	top: 70%;
  }

  ul#playlist li {
    font-size: 1rem;
    padding: 10px 6px;
  }

  ul#playlist button {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
}


