:root {
  --accent: #90465b;
  --accent-secondary: #78384a;
}

@font-face {
  font-family: "vcr_osd_mono";
  src: url("./font/vcr.woff") format("woff"),
       url("./font/vcr.ttf") format("truetype");
}

body {
  background-color: black;
  font-family: "vcr_osd_mono";
  display: flex;
  color: white;

  --sb-size: 0px; 
  font-size: 16px;
  margin: 0; 
  overflow: hidden; 
}

.window .body {
  scrollbar-width: thin; 
  scrollbar-color: var(--accent-secondary) transparent; 
}

.window .body::-webkit-scrollbar {
  width: 5px; 
  height: 5px; 
}

.window .body::-webkit-scrollbar-track {
  background: transparent; 
}

.window .body::-webkit-scrollbar-thumb {
  background: var(--accent-secondary); 
  border-radius: 1px;
}

* {
  margin: 0;
  box-sizing: border-box;
}
div:not(:has(.title)), td, th {
  font-weight:100;
}
.content {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100vw; 
  min-height: 100vh; 
  padding: 0; 
}

#header-logo {
  height: 100px;
  display: flex;
  justify-self: center;
}

.stacked {

  height: 100vh;
  display: flex;
  flex-direction: column;
  width: 30vw;

  margin: 0;
  padding: 0;
}

.stacked:has(.winone) {
  width: 35vw;
  height: 100vh;
}

.stacked .wintwo,
.stacked .winthree {
  flex: unset;
}

.stacked .wintwo {
  height: calc(65vh * 0.65 / 3);
}

.stacked .winthree {
  height: calc(65vh * 2.35 / 3);
}

.window {
  border: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  overflow: hidden;

}

.window.winone {
  width: 35vw;
  height: 65vh;
}

.window.winfour {
  height: 35vh;
}

.window.winfive {
  height: 65vh;
  width: 16vw;
}

.window.winsix {
  height: 65vh;
  width: 19vw;
}

.window .topbar {
  height: 25px;
  background-color: var(--accent);
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
}

.window .title {
  margin: 0;
  position: relative;
  left: 2px;
  top: 2px;
  text-transform: uppercase;
  font-size: 1.125rem;
  width: 97.5%;
}

.window .close {
  margin: 0;
  position: relative;
  top: 2px;
  text-transform: uppercase;
  font-size: 1.125rem;
}

.window .body {
  flex: 1;
  background-color: black;
  scrollbar-color: var(--accent-secondary) transparent;
  scrollbar-width: thin;
}

.window .body::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
.window .body::-webkit-scrollbar-track {
  background: transparent;
}
.window .body::-webkit-scrollbar-thumb {
  background: var(--accent-secondary);
  border-radius: 1px;
}

.window .body #lastfm-tbody td {
  font-size: 0.9375rem;
  padding: 0px 20px 3px 8px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.window .body #lastfm-table tr th {
  padding: 5px 20px 5px 8px;
  text-align: left;
  text-transform: uppercase;
  font-weight: 100;
  font-size: 0.9375rem;
}

.window .body #lastfm-tbody .artist {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window .body #lastfm-tbody .song {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window .body #lastfm-tbody .when {
  width: 90px;
}

.window .body #project-tbody td {
  font-size: 0.9375rem;
  padding: 0px 20px 3px 8px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.window .body #project-table tr th {
  padding: 5px 20px 5px 8px;
  text-align: left;
  text-transform: uppercase;
  font-weight: 100;
  font-size: 0.9375rem;
}

.window .body #project-tbody .about {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window .body #project-tbody .link {
  max-width: 215px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window .body #project-tbody .link a {
  color: white;
}

.window .body #project-tbody .project {
  width: 230px;
}

.now-playing-container {
  display: flex;
  flex-direction: row;
  height: fit-content;
  padding: 10px;
  position: relative;
  align-items: center;
}

.track-info {
  margin-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.track-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 5px;
  color: white;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.track-artist {
  font-size: 1.125rem;
  color: white;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 100%;
}

.album-cover-container {
  display: flex;
  align-items: center;
  height: fit-content;
  flex-shrink: 0;
}

.album-cover {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.visualizer-container {
  flex: 1;
  display: flex;
  align-items: center;
  margin-left: 10px;
}

.visualizer {
  display: flex;
  align-items: flex-end;
  height: 60px;
  width: 100%;
  gap: 2px;
}

.visualizer-bar {
  background-color: var(--accent);
  width: 3px;
  min-height: 2px;
  transition: height 0.1s ease;
}

.playing-status {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 0.875rem;
  color: white;
}

body::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: transparent;
}
body {
  -ms-overflow-style: none; 
  scrollbar-width: none; 
}

button {
  background: black;
  border:1px solid white;
  color:white;
  font-family:"vcr_osd_mono";
  padding:0;
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
    overflow: auto; 
  }
  .window .body {
    overflow: auto;
  }

  .content {
    flex-direction: column;
    align-items: center;
    padding: 0; 
    width: 100%; 
  }

  .stacked {
    width: 100%; 
    height: auto;
    margin: 0; 
  }

  .stacked:has(.winone) {
    width: 100%;
    height: auto;
  }

  .window {
    width: 100%; 
    margin: 0; 
    height: auto;
  }

  .window.winone {
    width: 100%;
    height: auto;
  }

  .window.winfour {
    width: 100%;
    height: auto;
  }

  .window.winfive {
    display: none;
  }

  .window.winsix {
    width: 100%;
    height: 400px;
  }

  .window .topbar {
    height: 20px;
  }

  .window .title,
  .window .close {
    font-size: 1rem;
  }

  .window .body #lastfm-tbody td,
  .window .body #lastfm-table tr th,
  .window .body #project-tbody td,
  .window .body #project-table tr th {
    font-size: 0.8rem;
    padding: 3px 5px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .window .body #lastfm-tbody .artist,
  .window .body #lastfm-tbody .song,
  .window .body #project-tbody .about,
  .window .body #project-tbody .link,
  .window .body #project-tbody .project {
    max-width: none;
    white-space: normal;
  }

  .now-playing-container {
    flex-direction: column;
    text-align: center;
    padding: 10px;
  }

  .album-cover {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
  }

  .track-info {
    margin-left: 0;
    align-items: center;
  }

  .track-title {
    font-size: 1.2rem;
    max-width: 90vw;
  }

  .track-artist {
    font-size: 1rem;
    max-width: 90vw;
  }

  .pfp {
    height: auto !important;
    max-width: 100%;
    display: block;
    margin: 0 auto;
  }

  .stacked > .window {
    height: auto;
    min-height: unset;
  }

  .stacked .wintwo {
    height: auto;
  }

  .stacked .winthree {
    height: auto;
  }

  .chatbox {
    height: 350px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 12px;
  }

  .window .title,
  .window .close {
    font-size: 0.9rem;
  }

  .track-title {
    font-size: 1.1rem;
  }

  .track-artist {
    font-size: 0.9rem;
  }

  .album-cover {
    width: 70px;
    height: 70px;
  }

  .window.winsix {
    height: 300px;
  }
}

.window.winseven {
  flex: 1;
  height: auto;
}
