/* GENERAL STYLES */
body {
  background: url("Deco/bg-spook1.png") repeat;
  font-family: "Trebuchet MS", "Century Gothic", "Verdana", sans-serif;
  color: #fff;
  text-align: center;
  cursor: help;
  margin: 0;
  padding: 0;
  animation: fadeIn 1s ease;
}

/* CURSOR FOR LINKS */
a {
  cursor: crosshair;
}

/* FADE IN ANIMATION */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* NAVIGATION */
nav a {
  display: inline-block;
  width: 150px;
  text-align: center;
  padding: 5px;
  margin: 5px;
}

/* MAIN CONTAINER */ .container { 
  width: 1100px; 
  max-height: 90vh;
  margin: 15px auto;
  display: flex; 
  flex-direction: column; 
  background: #E5CCF9; 
  border: 5px double #ff8800; 
  padding: 15px; 
  overflow: hidden; }


/* HEADER */
header img {
  display: block;
  margin: auto;
  border: 4px solid #dda0ff;
}

/* CONTENT LAYOUT */
.content-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 20px;
}

/* SIDEBAR */
.sidebar {
  width: 220px;
  background: #f9f0ff;                   
  font-size: 14px;
  margin-bottom: 20px;
  border-bottom: 2px solid #ff8800;
}

.sidebar h3 {
  background: linear-gradient(to right, #dda0ff, #ffb347);
  color: #fff;
  margin: 0;
  padding: 5px;
  font-weight: bold;
  font-size: 14px;
  text-align: left;
  border-bottom: 2px solid #ff8800;
}

.sidebar a {
  display: block;
  margin: 6px 0;
  padding: 6px;
  background: #dda0ff;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.sidebar a:hover {
  background: #ffb347;
  color: #000;
  text-shadow: 0 0 5px #fff, 0 0 8px #ffb347;
  transform: scale(1.05);
}

/* MAIN CONTENT */
main {
  flex: 1;
  margin: 0 20px;
  background: #E5CCF9;
  border-radius: 10px;
}

main h1 {
  background: linear-gradient(to right, #dda0ff, #ffb347);
  color: #fff;
  margin: 0 -20px 20px -20px; 
  padding: 10px;
  font-size: 18px;
  text-align: left;
  border-bottom: 2px solid #ff8800;
}

.center {
  display: block;
  margin: 25px auto;
}

/* FOOTER */
footer {
  margin-top: 30px;
  font-size: 12px;
  color: #E5CCF9;
}

/* RETRO PLAYER */
.retro-player {
  display: inline-block;
  padding: 10px;
  border: 4px ridge #FF842F;
  border-radius: 12px;
  background: linear-gradient(to bottom, #dda0ff, #ffb347);
  box-shadow: 3px 3px 0px #51356E;
  margin: 15px auto;
  width: 175px; 
}

.retro-player audio {
  width: 100px;
  height: 40px;
  outline: none;
  border-radius: 8px;
  display: none; 
}

audio::-webkit-media-controls-panel {
  background: linear-gradient(to right, #FF842F, #D679FF);
  border-radius: 8px;
}

audio::-webkit-media-controls-play-button {
  background-color: #fff;
  border-radius: 50%;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
  color: #fff;
  text-shadow: 0 0 3px #FF842F;
}

.retro-player .controls {
  display: flex;
  gap: 6px; /* hieman pienempi väli nappeihin */
  justify-content: center;
  margin-top: 10px;
}

.retro-player button {
  display: inline-block;
  background: linear-gradient(to bottom, #ff8800, #dda0ff);
  color: #fff;
  font-weight: bold;
  font-family: "Trebuchet MS", sans-serif;
  text-shadow: 0 0 4px #51356E;
  border: 2px solid #51356E;
  border-radius: 8px; 
  padding: 4px 8px; 
  font-size: 12px; 
  cursor: pointer;
  box-shadow: 1.5px 1.5px 0 #51356E; 
  transition: transform 0.1s, box-shadow 0.1s;
  text-align: center;

  -webkit-appearance: none; /* Chrome/Safari */
  -moz-appearance: none;    /* Firefox */
  appearance: none;          /* Standard */
}

.retro-player button:hover {
  transform: scale(1.1);
  box-shadow: 2px 2px 0 #51356E;
}

.retro-player button:active {
  transform: scale(0.95);
  box-shadow: 1px 1px 0 #51356E;
}

.retro-player #now-playing {
  margin-top: 8px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 0 4px #ff8800;
  font-size: 14px;
}

/* WELCOME POPUP */
.popup {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup-content {
  background: #f9f0ff;
  border: 4px double #ff8800;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 20px #dda0ff;
}

.popup-content h2 {
  font-size: 20px;
  background: linear-gradient(to right, #dda0ff, #ffb347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.popup-content p {
  color: #51356E; 
  font-size: 16px;
  line-height: 1.5;
  margin-top: 10px;
}

.popup button {
  background: #ff842f;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
}

/* SCROLL TO TOP BUTTON */
#scrollTopBtn {
  display: none; /* HIDDEN BY DEFAULT */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 2000;
  border: none;
  outline: none;
  background: linear-gradient(to right, #dda0ff, #ffb347);
  color: #fff;
  cursor: pointer;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 16px;
  box-shadow: 0 0 10px #51356E;
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  transform: scale(1.2);
  background: linear-gradient(to right, #ffb347, #dda0ff);
  
  
}