:root {
    background-image: url("background.png");
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 0;
}

body {
  margin: 0;
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 15px;
  background: rgba(16, 16, 16, 0.88);
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  max-width: 904px;
  margin-left: auto;
  margin-right: auto;
}

#titlebanner {
    width: 100%;
}

#spawnscreen {
    width: 100%;
}

#view-counter {
  position: fixed;
  bottom: 10px;
  right: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
  font-family: sans-serif;
  z-index: 999;
}

#music-prompt {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  z-index: 9999;
}

#music-prompt button {
  margin: 0 10px;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

a {color: #6376ff;}
a:visited {color: #9158db;}
a:hover {color: #63d6ff;}
a:active {color: #00FFFF;}
	
table {
    color: #eee; /* light gray text */
    background-color: #111; /* dark background */
}

table th, table td {
    color: #eee;
    background-color: #111;
}

#player-container {
    background: #222;
    padding: 20px;
    border-radius: 10px;
    max-width: 350px;
    margin: left;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

#controls {
    margin-bottom: 15px;
}

button {
    padding: 8px 14px;
    margin-right: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #0073e6;
    color: #fff;
    font-size: 14px;
}

button.active {
    background: #ff6600;
}

#playlist {
list-style: none;
margin: 0;
padding: 0;
}

#playlist li {
margin: 5px 0;
padding: 8px 10px;
background: #555;
color: #fff;
cursor: pointer;
border-radius: 5px;
display: flex;
justify-content: space-between;
align-items: center;
}

#playlist li .title {
flex: 1;
text-align: left;
}

#playlist li .length {
width: 50px;
text-align: right;
font-size: 0.9em;
color: #ccc;
}

#playlist li.active {
background: #0073e6;
color: #fff;
font-weight: bold;
}

#playlist li.active .length {
font-weight: bold;
color: #fff;
}

.guestbook {
    font-family: sans-serif;
    max-width: 500px;
    background: #171717;
    padding: 20px;
    border-radius: 8px;
    color: #f0f0f0;
}

.guestbook-container {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #333;
    padding: 10px;
    background: #1e1e1e;
    color: #f0f0f0;
}

.guestbook input[type="text"],
.guestbook textarea {
    width: 100%;
    background-color: #171717 !important;
    color: #f0f0f0 !important;
    border: 1px solid #444;
    padding: 8px;
    margin-bottom: 10px;
    font-family: sans-serif;
}

/* Autofill fix for Chrome/Edge */
.guestbook input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #171717 inset !important;
    -webkit-text-fill-color: #f0f0f0 !important;
}

.guestbook textarea::placeholder,
.guestbook input::placeholder {
    color: #aaa;
}

.guestbook input:focus,
.guestbook textarea:focus {
    outline: none;
    border-color: #666;
}

.guestbook button {
    background: #333;
    color: #f0f0f0;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
}

.guestbook button:hover {
    background: #444;
}