body {
  margin: 0;
  background-color: #eaeaea;
  padding: 20px;
  background-image: url('images/Background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  font-family: 'MesloLGLDZ Nerd Font', monospace;
}

@font-face {
  font-family: 'MesloLGLDZ Nerd Font';
  src: url('fonts/MesloLGLDZNerdFont-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

h1 {
  color: #3366cc;
  text-align: center;
}

/*Retrotyylinen header*/
.retro-header {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px; 
  line-height: 1.6;
  color: #000;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: radial-gradient(circle at center, #EEAECA 0%, #94BBE9 100%);
  border: 3px solid #fff;
  border-radius: 12px;
  padding: 24px 32px;
  margin-bottom: 20px;

  text-shadow:
    1px 1px 0 #fff,
    2px 2px 0 #000,
    3px 3px 0 rgba(0, 0, 0, 0.2);

  box-shadow:
    0 8px 0 #444,
    0 12px 16px rgba(0, 0, 0, 0.2);
    animation: flicker 2s infinite alternate;
}
/*Välkkyvä efekti headeriin*/
@keyframes flicker {
  0% { opacity: 1; text-shadow: 2px 2px 0 #fff, 4px 4px 0 #f0f, 6px 6px 4px rgba(0,0,0,0.3); }
  100% { opacity: 0.95; text-shadow: 2px 2px 0 #fff, 4px 4px 0 #0ff, 6px 6px 4px rgba(0,0,0,0.3); }
}

 /*Uutta*/
 .container {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  gap: 20px;
}

 .sidebar,
.main-content {
  width: 260px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(200, 200, 255, 0.4);
}

/* Content area - Keskialueen*/
.main-content {
  flex-grow: 1;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}
/*Music player*/
.extra-box {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(200, 200, 255, 0.4);
}

/* Box styles */
section {
  background-color: #fff;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(200, 200, 255, 0.4);
}

/*Link underlines away you go!*/
a {
  text-decoration: none;
}

button {
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  margin-top: 4px;
  color: #333;
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  background: #94BBE9;
  color: #000;
  border: none;
  margin: 6px 0;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #555;
  transition: background 0.2s;
}

button:hover {
  background: #EEAECA;
}

/*Mobiiliystävällinen*/
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: column;
  }

  .main-content {
    padding: 15px;
  }
}

/*Kuvan tyylittely*/
.ame-pic {
  width: 100%;
  max-width: 200px;   
  height: auto;       
  border-radius: 8px;
  display: block;
  margin-bottom: 10px;
}


@font-face {
  font-family: 'MesloLGS Nerd Font Mono';
  src: url('fonts/MesloLGSNF-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.container {
  border-radius: 8px;
  border: 1px solid #a0a0a0;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  overflow: hidden;
}

.page {
  max-width: 1080px;      
  margin: 0 auto;         
  background: #f0f7ff;    
  border: 1px solid #ccc; 
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2); 
  padding: 20px;
}

.main-frame {
  width: 100%;
  height: 100%;
  min-height: 700px;
  border: none;
  border-radius: 12px;
}

.custom-audio-player {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px;
  border-radius: 10px;
  background: #eee;
  width: fit-content;
  max-width: 185px;
  box-sizing: border-box;
}

.custom-audio-player audio {
  display: none; 
}

.custom-audio-player button {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  background: #94BBE9;
  color: #000;
  border: none;
  margin: 6px 0;
  padding: 10px 16px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #555;
  transition: background 0.2s;
}

.custom-audio-player button:hover {
  background: #EEAECA;
}

.custom-audio-player input[type="range"] {
  width: 100%;
  margin: 8px 0;
}

#currentTime {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  margin-top: 4px;
  color: #333;
}

#trackContainer {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-top: 8px;
}

.now-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #333;
  margin-bottom: 2px;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 1.5em;
}

.marquee {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  animation: scrollText 8s linear infinite;
  color: #000;
}

@keyframes scrollText {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.playlist {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  max-width: 100%;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  overflow-y: auto;
  max-height: 100px;
  border-top: 1px dashed #aaa;
}

.playlist li {
  padding: 4px;
  cursor: pointer;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-bottom: 1px dotted #ccc;
}

.playlist li:hover {
  background-color: #EEAECA;
}

.playlist li.active {
  background-color: #94BBE9;
  font-weight: bold;
}

.playlist-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: #333;
  margin-top: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
  border-bottom: 1px solid #aaa;
  padding-bottom: 2px;
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(to right, #eeaeca, #94bbe9);
  border-radius: 4px;
  padding: 6px 0;
}

.song-copyright{
  font-family: 'Press Start 2P', monospace;
  font-size: 6px;
  color: #333;
  margin-top: 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
  border-bottom: 1px solid #aaa;
  padding-bottom: 2px;
  display: block;
  width: 100%;
  text-align: center;
}

.slider-container {
  font-family: 'Press Start 2P', monospace;
  color: #333;
  font-size: 10px;
  user-select: none;
  display: flex;
  flex-direction: column; 
  align-items: center; 
  width: 160px;
}

.slider-container label {
  padding: 5px;
  text-shadow: 1px 1px 0 #333;
  font-size: 1.1em;
}

input[type="range"] {
  width: 100%;
  cursor: pointer;
}

.sidebar h2 {
  margin-top: 0px; 
}