@font-face {
    font-family: "Gomic Sas";
    src: url('/assets/fonts/Comic%20Sans%20MS.ttf') format('truetype');
}
html, body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

img[src$=".gif"] {
    border: 2px solid #c8b004;
}


body {
    position: relative;
    font-family: "Gomic Sas";
    text-align: center;
    color: #ffffff;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
        url('/assets/png/background_1.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    
}

.chan {
    position: fixed;
    top: 0px;
    right: -133px;
    width: 470px;
    z-index: 10;
}

.chan img {
    display: block;
    width: 100%;
    height: auto;
}

.boobs {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-70%, -150%);
    width: clamp(120px, 18vw, 280px);
    pointer-events: none;
}

.boobs img {
    display: block;
    width: 100%;
    height: auto;
}

.nothingness {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-65%, -150%);
    width: clamp(400px, 18vw, 280px);
    pointer-events: none;
    color: #c8b004;
}

.wall {
    position: relative;
    z-index: 1;
    margin: 0;
    height: 100vh;
    width: min(250px, 42vw);
    padding: 30px 40px;
    box-sizing: border-box;
    background: #161616;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wall .mind {
    position: absolute;
    top: calc(50% + 70px);
    left: 0;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #c8b004;
    z-index: 1;
    text-decoration: none;
    border: none;
    background: none;
    pointer-events: none;
    cursor: pointer;
}

.mind button {
    text-decoration: underline;
    pointer-events: auto;
    cursor: pointer;
    color: #c8b004;
    background: none;
    border: none;
    font-size: 50px;
}

.mind .user-role {
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 25px;
    overflow-wrap: anywhere;
    pointer-events: auto;
    cursor: url('/assets/png/chan-cursor.png') 0 0, auto;
}

.bwall {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 80px;
    background: #000000;
    box-sizing: border-box;
    z-index: 0;
    color: hwb(0 0% 0%);
    font-family: 'Times New Roman', Times, serif;
    font-size: 40px;
    cursor: default;
}

.bwall .adult-frame {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 115%;
    object-fit: fill;
    border: none;
    pointer-events: none;
}

/* On narrow screens, content flows vertically instead of overlapping. */
@media (max-width: 900px) {
    html, body { overflow: visible; min-height: 100svh; }
    body { box-sizing: border-box; flex-direction: column; justify-content: flex-start; gap: 24px; padding: 24px 16px; }
    .nothingness, .boobs, .chan, .wall { position: relative; inset: auto; transform: none; flex-shrink: 0; }
    .nothingness { order: 0; width: 100%; max-width: 480px; }
    .nothingness h1 { margin: 0; font-size: clamp(22px, 6vw, 32px); overflow-wrap: anywhere; }
    .boobs { order: 1; width: min(240px, 75vw); }
    .boobs img { box-sizing: border-box; }
    .chan { order: 2; width: min(200px, 55vw); z-index: auto; pointer-events: none; }
    .chan img { max-height: 220px; object-fit: contain; }
    .wall { order: 3; width: 100%; max-width: 420px; height: auto; padding: 24px; align-items: center; gap: 24px; border: 1px solid #62591d; }
    .bwall { position: relative; inset: auto; transform: none; order: 0; width: min(200px, 100%); flex-shrink: 0; font-size: clamp(28px, 8vw, 40px); }
    .wall .mind { position: static; order: 1; width: 100%; height: auto; }
    .mind button, .mind .user-role { min-height: 48px; padding: 8px 24px; font-size: 36px; }
}

.mind .notifications-button {
    align-self: flex-end;
    margin: 12px 12px 0 0;
    padding: 8px;
    min-height: 36px;
    font-size: 14px;
    text-decoration: none;
}
#notifications-dialog {
    box-sizing: border-box;
    width: min(620px, calc(100% - 32px));
    max-height: 80vh;
    padding: 24px;
    overflow: auto;
    background: #161616;
    color: #eee;
    border: 1px solid #c8b004;
    text-align: left;
    font-family: sans-serif;
}
#notifications-dialog::backdrop { background: rgb(0 0 0 / 70%); }
#notifications-dialog h2 { font-size: 22px; }
#notifications-dialog button { cursor: pointer; padding: 8px 12px; }
.notifications-close { float: right; }
#notifications-list { list-style: none; padding: 0; }
#notifications-list li { padding: 16px 0; border-bottom: 1px solid #555; overflow-wrap: anywhere; }
#notifications-list p { margin: 8px 0; white-space: pre-wrap; }
#notifications-list a { color: #c8b004; }
