/* ---------------------------------------------- */
/* GRACIAS KENOME POR HABERME ANIMADO EL FONDO!!! */
/* ---------------------------------------------- */

/*
  Este CSS es un quilombo, algún día tengo que ordernarlo, soon™
*/

/* FONTS */
@font-face {
  font-family: "Liberation Mono";
  src: url("../fonts/LiberationMono.ttf");
}

/* BASE AND GENERAL STUFF */
html {
  background-image: url("../gif/stars.gif");
  background-size: 350px;
  background-attachment: fixed;
  font-family: "Liberation Mono";
  font-size: 13px;
  opacity: 100%;
  scrollbar-width: none;
  color: white;
}

* {
	-ms-overflow-style: none;
	overflow: -moz-scrollbars-none;
}

::-webkit-scrollbar {
	display: none;
}

:root {
  --accent: #00EE11;
}

.mfw {
  color: #B8D962;
}

.highlight {
  background-color: white;
  color:black;
  padding: 0.0em 0.1em;
}

.highlight:hover{
  background-color: var(--accent);
}

.spoiler
{
  background-color: #fff;
  color: #fff;
}

.spoiler:hover
{
  background-color: black;
}

.spoiler img {
  filter: blur(20px) grayscale(100%);
}

.spoiler img:hover{
  filter: blur(0px) grayscale(0%);
}

a {
  color: white;
  text-decoration: underline;
  text-decoration-color: white;
}

a:hover{
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

h3 {
  text-align: center;
  font-size: 1.5em;
}


/* SITES*/
.webring, .frens, .my-banner, .my-button{
  text-align: center;
}

.button {
  width: 88px;
  height: 31px;
}

.banner {
  width: 200px;
  height: 50px;
}

/* POSTS */

.posts{
  width: 90%;
  margin: 0em auto;
}

.post {
  margin: 1.5em 0;
}

.post-top {
  width: 100%;
}

.post-top h4{
  padding: 0.25em;
  margin: 0px;
  background: white;
  color: black;
  text-align: center;
}

.post-top a{
  padding: 0.25em;
  margin: 0px;
  background: white;
  color: black;
  text-align: center;
}

.post-top a:hover{
  text-decoration: underline;
  text-decoration-color: black;
}

.post-content {
  border-top-style: solid;
  border-top-color: white;
  border-top-width: 1.5px;
  text-align: center;
}

.post-content p, h4{
  padding: 1em;
  margin: 0;
}

.post-content p, li{
  text-align: left;
  word-wrap: break-word;
}

.op-img {
  width: 35%;
  padding: 0;
  margin: 1em;
  float:left;
}

.content-img{
  width: 95%;
  margin: auto;
}

.quote {
  margin-left: 1.5em;
  margin-right: 1.5em;
  background-color: black;
  color: var(--accent);
  font-style: italic;
}

.quote .author {
  text-align: right;
}

/* MISC STUFF */
.secret_gif {
  position: fixed;
  width: 30px;
  bottom: 0;
  left: 0;
}

.lain {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}


/* NEW LAYOUT */

#container{
  width: 100vw;
  margin: 0 auto;
}

#layout {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
}

#menu {
  max-width: 220px;
  flex-shrink: 0;
  vertical-align: baseline;
}

#main {
  flex: 1;
  vertical-align: baseline;
}

#posts {
  max-width: 240px;
  flex-shrink: 0;
  vertical-align: baseline;
}


.box {
  background-color: black;
  border-style: solid;
  border-color: white;
  border-width: 1.5px;
  margin: 3px;
  padding: 0.15em;
  opacity: 0.9;
}

h2{
  text-align: center;
}

body {
  overflow-x: hidden;
  margin: 0;
  margin-top: 10px;
}

.button {
  height: 31px;
  width: auto;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

#container {
  height: 78vh;
}

#layout {
  display: flex;
  height: 100%;
}

#menu,
#main,
#posts {
  height: 100%;
  overflow-y: auto;
}


/* PAGE */

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  margin-top: 10px;
}

/* CONTAINER */

#container {
  width: 99vw;
  height: calc(100vh - 10px);

  display: flex;
  flex-direction: column;
}

/* HEADER + FOOTER */

#container > .box:first-child {
  flex-shrink: 0;
}

/* MAIN 3-COLUMN AREA */

#layout {
  display: flex;
  flex-direction: row;
  flex: 1;

  min-height: 0; /* important */
}

/* LEFT SIDEBAR */

#menu {
  width: 240px;
  flex-shrink: 0;

  overflow-y: auto;
  min-height: 0;
}

/* CENTER */

#main {
  flex: 1;

  overflow-y: auto;
  min-height: 0;
}

/* RIGHT SIDEBAR */

#posts {
  width: 240px;
  flex-shrink: 0;

  overflow-y: auto;
  min-height: 0;
}

/* BOXES */

.box {
  background-color: black;
  border-style: solid;
  border-color: white;
  border-width: 1.5px;
  margin: 3px;
  padding: 0.15em;
  opacity: 0.9;
  box-sizing: border-box;
}

/* TYPOGRAPHY */

h2 {
  text-align: center;
}

/* BUTTONS */

.button {
  height: 31px;
  width: auto;
}

#menu,
#main,
#posts {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;

    
}

#menu::-webkit-scrollbar,
#main::-webkit-scrollbar,
#posts::-webkit-scrollbar {
    display: none;
}

.box-title {
    color: black;
    background-color: #00EE11;
    margin: 3px;
    text-align: center;
}

.music-player {
    background: black;
    color: white;
    font-family: monospace;
    background-color: black;
    border-style: solid;
    border-color: white;
    border-width: 1.5px;
    margin: 3px;
    padding: 0.15em;
    opacity: 0.9;
}

.player-title {
    text-align: center;
    background: white;
    color: black;
    font-weight: bold;
}

.player-info {
    padding: 5px;
}

.track {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.artist {
    font-size: 12px;
    color: #aaa;
}

.player-controls {
    display: flex;
    gap: 3px;
    padding: 5px;
}

.player-controls button {
    flex: 1;
    height: 22px;

    background: black;
    color: white;
    border: 1px solid white;

    font-family: monospace;
    cursor: pointer;
}

.player-controls button:hover {
    background: white;
    color: black;
}

.progress {
    height: 6px;
    margin: 5px;
    border: 1px solid white;
}

.progress-bar {
    height: 100%;
    width: 40%;
    background: white;
}


.webring-marquee {
    overflow: hidden;
    width: 100%;
}

.webring-track {
    display: flex;
    
    width: max-content;
    animation: scroll-webring 600s linear infinite;
}

.webring-track:hover {
    animation-play-state: paused;
}

.webring-track a {
    flex-shrink: 0;
}

@keyframes scroll-webring {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.webring-marquee {
    overflow: hidden;
    position: relative;
}

.webring-marquee::before,
.webring-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.webring-marquee::before {
    left: 0;
    background: linear-gradient(to right, black, transparent);
}

.webring-marquee::after {
    right: 0;
    background: linear-gradient(to left, black, transparent);
}

.cobweb {
    position: absolute;

    top: 0;
    left: 0;

    width: 120px;

    pointer-events: none;
    z-index: 1000;
    filter: invert(1);
}

/* ==========================
   WINDOW
========================== */

.window {
    position: fixed;

    width: 850px;
    height: 650px;

    left: 100px;
    top: 100px;

    display: flex;
    flex-direction: column;

    background: black;
    color: white;

    border: 1.5px solid white;

    box-sizing: border-box;

    resize: both;
    overflow: hidden;

    z-index: 9999;
}

/* TITLE BAR */

.window-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 4px 8px;

    background: var(--accent);
    color: black;

    font-weight: bold;

    cursor: grab;
    user-select: none;

    flex-shrink: 0;
}

.window-top:active {
    cursor: grabbing;
}

/* BUTTONS */

.window-top button {

    width: 20px;
    height: 20px;

    margin-left: 4px;

    background: black;
    color: white;

    border: 1.5px solid white;

    font-family: inherit;
    cursor: pointer;
}

.window-top button:hover {

    background: white;
    color: black;
}

.window-top button:active {

    background: var(--accent);
    color: black;
}

/* CONTENT */

#window-content {

    flex: 1;

    overflow-y: auto;

    padding: 16px;

    background: black;
    color: white;

    font-family: inherit;
}



/* CONTENT STYLING */

#window-content h1,
#window-content h2,
#window-content h3 {
    margin-top: 1.25em;
}

#window-content p {
    line-height: 1.6;
}

#window-content img {
    max-width: 100%;
    display: block;
    margin: 1em auto;
}

#window-content code {
    background: #111;
    padding: 2px 4px;
    border: 1px solid white;
}

#window-content blockquote {

    border-left: 2px solid var(--accent);

    padding-left: 1em;

    color: var(--accent);

    font-style: italic;
}

.hidden {
    display: none;
}


#main {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(8, 80px);
    gap: 12px;
    align-content: start;
}

.desktop-icon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    cursor: default;
    user-select: none;
    margin: 6px;
}

.desktop-icon img {
    width: 36px;
    image-rendering: pixelated;
}

.desktop-icon span {
    margin-top: 4px;
    color: white;
    text-align: center;
    font-size: 12px;
}

.desktop-icon:hover {
    background: rgba(0, 120, 215, 0.2);
}

.desktop-icon:active {
    background: rgba(0, 120, 215, 0.35);
}

.header-line{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:2rem;
    flex-wrap:wrap;
}

.header-line h1{
    margin:0;
    font-size:2rem;
}

.header-line span{
    font-size:0.8rem;
    color:#888;
    letter-spacing:.08em;
    white-space:nowrap;
}