@font-face {
  font-family: 'PixelOperator';
  src: url('./fonts/PixelOperator.ttf');
}

:root {
  --gray: #c0c0c0;
  --dark: #555;
  --light: #ffffff;
  --blue: #66b5e2;
  --hover: #87bfdf;
  --black: #000;
}

/* Bevel system */
.bevel-out {
  border-top: 2px solid var(--light);
  border-left: 2px solid var(--light);
  border-right: 2px solid var(--dark);
  border-bottom: 2px solid var(--dark);
}

.bevel-in {
  border-top: 2px solid var(--dark);
  border-left: 2px solid var(--dark);
  border-right: 2px solid var(--light);
  border-bottom: 2px solid var(--light);
}

.button {
  background: var(--gray);
  padding: 4px 10px;
  cursor: pointer;
  font-family: 'PixelOperator', monospace;
  font-size: 18px;
  color: var(--black);
}

.button:active {
  border-top: 2px solid var(--dark);
  border-left: 2px solid var(--dark);
  border-right: 2px solid var(--light);
  border-bottom: 2px solid var(--light);
  transform: translate(1px, 1px);
}

/* Global */
body {
  font-family: 'PixelOperator', monospace;
  color: white;
  font-size: 24px;
  background: var(--gray);
  padding: 20px;
}

/* Character */
#character {
  position: fixed;
  width: 80px;
  height: 80px;
  left: 100px;
  top: 100px;
}

#cd,
#pc {
  position: fixed;
  width: 80px;
  height: 80px;
  cursor: grab;
  z-index: 50;
  object-fit: fill;
}

#cd {
  left: 300px;
  top: 200px;
}

#pc {
  left: 100px;
  top: 100px;
}

/* Song */
.song {
  cursor: pointer;
  padding: 4px 10px;
}

.song:hover {
  background: var(--hover);
  color: white;
}

/* Player Window */
#player {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gray);
  z-index: 100;
  width: 400px;
  height: 500px;
  box-sizing: border-box;
  padding-bottom: 140px;
  display: none;
}

#player.show {
  display: block;
}

/* Titlebar */
#player-titlebar {
  background: var(--blue);
  color: white;
  padding: 20px 10px;
  font-size: 24px;
}

/* Display */
#display {
  margin: 14px 10px 10px;
  padding: 10px;
  background: var(--blue);
  height: 180px;
  overflow-y: auto;
}

/* Playlist */
#playlist {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
}

#song-title {
  margin: 0;
  color: var(--black);
  font-size: 30px;
  text-align: center;
  letter-spacing: 2px;
}

/* Controls */
#controls {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

/* Close Button */
#close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 8px 12px;
  font-size: 22px;
}
