@font-face {
    font-family: 'Chalkchalk';
    src: url('ressources/fonts/Chalkchalk-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Pixel Operator';
    src: url('ressources/fonts/PixelOperator.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Pixel Operator', sans-serif;
    background-image: url(ressources/essential/background.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}
.pfp img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #000000;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2);
}

.name {
    font-family: 'Chalkchalk', sans-serif;
}

.pfp {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.pfp p {
    margin: 3px 0;
}

.pfp p + p {
    margin-top: 0px;
    font-size: 0.95em;
}

.randomlinks {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.randomlinks a {
    display: inline-block;
}

.randomlinks img {
    width: 88px;
    height: 31px;
    image-rendering: pixelated;
    border: 1px transparent;
    background: transparent;
}

.randomvideoilike {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.randomvideoilike img {
    width: 100%;
    max-width: 180px;
    border-radius: 8px;
    border: 1px solid rgba(214, 112, 136, 0.9);
    box-shadow: 0 0 14px rgba(214, 112, 136, 0.2);
    filter: sepia(0.25) saturate(160%) contrast(0.95) brightness(0.96);
}

.binary-window {
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(214, 112, 136, 0.9);
    border-radius: 10px;
    color: #D67088;
    font-family: inherit;
}

.binary-window-title {
    margin: 0 0 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.binary-window-text {
    width: 100%;
    min-height: 130px;
    margin: 0 0 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(214, 112, 136, 0.9);
    border-radius: 8px;
    color: #D67088;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.12em;
    resize: none;
    white-space: pre-wrap;
    overflow: hidden;
    word-break: break-word;
}

.binary-status {
    margin: 0;
    font-size: 12px;
    color: #ffb6d2;
}

.fixed-bottom-right {
    position: fixed;
    bottom: 0px;
    right: 0px;
    width: 260px;
    max-width: 40vw;
    height: auto;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    z-index: 999;
    background: rgba(0, 0, 0, 0.35);
}

.randomvideoilike p {
    margin: 0;
    text-align: center;
}

.ascii-art {
    display: inline-block;
    width: auto;
    margin: 0 auto;
    padding: 0;
    white-space: pre;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: 0.80;
    color: #D67088;
    background: none;
    border: none;
    box-shadow: none;
    align-self: center;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.recommendation-gif {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin: 8px auto 0;
    border: 1px solid rgba(214, 112, 136, 0.5);
    border-radius: 8px;
    box-shadow: 0 0 14px rgba(214, 112, 136, 0.15);
}

.randomvideoilike button,
.music-controls button {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid #D67088;
    border-radius: 6px;
    background: transparent;
    color: #D67088;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Pixel Operator', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.randomvideoilike button:hover,
.music-controls button:hover {
    background: rgba(214, 112, 136, 0.08);
}

.randomvideoilike button:disabled,
.music-controls button:disabled {
    opacity: 0.4;
    cursor: default;
}

.music-player {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #D67088;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.9);
    color: #D67088;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.music-player-title {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.music-track {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    min-height: 36px;
}

.music-controls {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.music-controls button {
    flex: 1;
    min-width: 0;
    padding: 6px 0;
    border: 1px solid #D67088;
    border-radius: 6px;
    background: transparent;
    color: #D67088;
    cursor: pointer;
    font-size: 14px;
}

.music-controls button:disabled {
    opacity: 0.4;
    cursor: default;
}

.music-player audio {
    display: none;
}

main {
  display: flex;
  gap: 10px;
  min-height: 100vh;
}

.sidebar-left {
    width: 150px;
    flex-shrink: 0;
    background-color: transparent;
}

.content {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: #000000;
}

.content > .ascii-art-block {
    align-self: center;
    margin-top: auto;
    width: fit-content;
    max-width: 100%;
}

.sidebar-right {
    width: 200px;
    flex-shrink: 0;
    background-color: transparent;
}

.collapsible {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #D67088;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 12px;
    color: #D67088;
}

.collapsible summary {
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    color: #D67088;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}

.collapsible summary::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #D67088;
    transition: transform 0.2s ease;
}

.collapsible[open] summary::after {
    transform: rotate(90deg);
}

.collapsible summary::-webkit-details-marker {
    display: none;
}

.collapsible[open] summary {
    color: #D67088;
}

.collapsible p {
    margin: 10px 0 0;
}

/* Make each inner div look like a separate section/card */
.sidebar-left > div:not(.randomlinks),
.sidebar-right > div,
.content {
    padding: 12px;
    margin: 10px;
    background-color: #000000;
    color: #D67088;
    border: 1px solid #D67088;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.news {
    max-height: 160px;
    overflow-y: auto;
    padding-right: 6px;
}

.news::-webkit-scrollbar {
    width: 8px;
}

.news::-webkit-scrollbar-thumb {
    background: #D67088;
    border-radius: 4px;
}