/* ========== Global Styles ========== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'IM Fell English', serif;
  line-height: 1.6;
  color: #ECECEB;
  background: #080808 url('https://moribundmurdoch.neocities.org/images/booksbackgroundwavy.gif') repeat;
  background-size: 250px;
  margin: 0;
  padding: 0;
}

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6, p, a, ul, ol, blockquote, code {
  color: #ECECEB;
  font-family: 'IM Fell English', serif;
}

h1 { font-size: 2.5em; margin: 20px 0; }
h2 { font-size: 2em; margin: 18px 0; }
h3 { font-size: 1.75em; margin: 16px 0; }
h4 { font-size: 1.5em; margin: 14px 0; }
h5 { font-size: 1.25em; margin: 12px 0; }
h6 { font-size: 1em; margin: 10px 0; }

p, ul, ol, blockquote {
  margin: 10px 0;
}

blockquote {
  font-style: italic;
  padding-left: 20px;
  border-left: 4px solid #ECECEB;
}

a {
  color: #BEBEBE;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ECECEB;
  text-decoration: underline;
}

code {
  font-family: monospace;
  background: #181818;
  padding: 2px 4px;
  border-radius: 3px;
}

/* ========== Utility Classes ========== */
.small-text { font-size: 0.875em; }
.large-text { font-size: 1.125em; }
.center-text { text-align: center; }

/* ========== Header ========== */
#box1, #header {
  font-family: 'IM Fell English', serif;
}

#header-container {
  font-family: 'IM Fell English', serif;
}

#box1 {
  margin-top: 50px;
}

#header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 170px;
  background: rgba(12, 12, 12, 0.95);
  border: 2px solid #fbfbf9;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(40, 40, 40, 0.8);
  overflow: hidden;
  position: relative;
}

#header img {
  max-height: 130px;
  border-radius: 50%;
  z-index: 2;
}

.overlay-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: auto;
  z-index: 1;
}

/* ========== Navigation ========== */
#linkity {
  position: absolute;
  padding-top: 15px;
  margin-top: 34px;
  top: 3px;
  width: 100%;
  text-align: center;
  line-height: 30px;
  z-index: 2;
}

#linkity a {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(6, 6, 6, 1);
  color: #ECECEB;
  border-radius: 10px 10px 0 0;
  border: 2px solid #fbfbf9;
  letter-spacing: 1px;
  text-transform: capitalize;
  transition: background-color 0.4s, border-bottom 0.4s;
}

#linkity a:hover {
  background: rgba(100, 100, 100, 0.6);
  border-bottom: 1px solid #ECECEB;
}

/* ========== Layout ========== */
.content-wrapper {
  max-width: 1400px;
  margin: 5px auto 0;
  padding: 0 20px 20px;
}

.main-content {
  flex-grow: 1;
  padding: 40px;
  background: #111111;
  border: 2px solid #fbfbf9;
  border-radius: 8px;
}

/* ========== Twitch Section ========== */
.twitch-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.9375rem;
}

.twitch-embed-wrapper {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  flex-wrap: nowrap;
}

@media (max-width: 950px) {
  .twitch-embed-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

.twitch-embed-wrapper iframe,
.twitch-embed-wrapper #twitch-embed {
  max-width: 100%;
}

.twitch-section p {
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: rgba(17, 17, 17, 0.9);
  border-left: 4px solid #fbfbf9;
  border-radius: 4px;
}

/* ========== Music Player ========== */
#musicplayer {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);

  box-shadow:
    0 0 0 2px #111111,
    0 2px 6px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 2px rgba(0, 0, 0, 0.4);

  border-radius: 6px;
  z-index: 9999;
  font-family: 'IM Fell English', serif;
  font-weight: bold;
  padding: 0 12px;
  box-sizing: border-box;
}

/* ========== Song Title ========== */
.songtitle {
  display: block;
  width: 100%;
  max-width: 60%;
  margin: 0 auto;
  padding: 4px 6px;
  font-family: 'IM Fell English', serif;
  font-size: 15px;
  color: #ECECEB;
  background: transparent;
  border: inset 1px gray;
  border-radius: 8px; /* Rounded edges */
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* ========== Controls (Play/Pause) ========== */
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: #ECECEB;
}

.playpause-track {
  padding: 6px 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #ECECEB;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s;
}

.playpause-track:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ========== Seek Bar ========== */
.seeking {
  width: 100%;
  max-width: 75%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 6px;
  background: black;
  border: 1px solid white;
}

input[type=range]::-webkit-slider-thumb {
  height: 30px;
  width: 20px;
  background-image: url('https://file.garden/Zztv0a9yEhr5pmEq/tumblr_40786d3985453eb5412348aad980ac51_3a9a1088_1280%20(1).gif');
  background-size: 25px;
  background-repeat: no-repeat;
  -webkit-appearance: none;
  margin-top: -10px;
  border-radius: 4px;
  transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

/* ========== Volume Slider ========== */
input.volume_slider::-webkit-slider-runnable-track {
  background: transparent;
  filter: drop-shadow(-0.5px 0.5px 0 black);
}

input.volume_slider::-webkit-slider-thumb {
  background-image: url('https://file.garden/Zztv0a9yEhr5pmEq/798d7d72_original.png');
  background-size: 20px;
  background-repeat: no-repeat;
  height: 20px;
  width: 20px;
  margin-top: -8px;
  border-radius: 4px;
  transition: transform 0.2s;
}

input.volume_slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

/* ========== Volume Container ========== */
.slider_container {
  width: 15%;
  display: flex;
  justify-content: center;
  align-items: center;
}

::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 6px;
  box-shadow: inset 0 0 6px #1b1b1b;
}
::-webkit-scrollbar-track {
  background-color: #000;
}

