body {
    align-items: center;
    background-color: #008080;
    background-image: url('https://www.transparenttextures.com/patterns/cubes.png');
    display: flex;
    font-family: "MS Sans Serif", "Courier New", monospace;
    justify-content: center;
    margin: 0;
    min-height: 100vh;
}

*,
*::before,
*::after {
    user-select: none;
}

.window {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
    padding: 2px;
    width: 320px;
}

.window.is-movable {
    position: fixed;
}

.profile-window {
    max-width: calc(100vw - 28px);
}

.guestbook-window {
    display: none;
    flex-direction: column;
    height: 620px;
    left: 50%;
    max-height: calc(100vh - 28px);
    position: fixed;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    max-width: calc(100vw - 28px);
    z-index: 10;
}

.guestbook-window.is-open {
    display: flex;
}

.title-bar {
    align-items: center;
    background: linear-gradient(90deg, #000080, #1084d0);
    color: #fff;
    display: flex;
    font-size: 12px;
    font-weight: bold;
    justify-content: space-between;
    padding: 3px 5px;
    touch-action: none;
    user-select: none;
}

.title-bar-controls button {
    background: #c0c0c0;
    border: 1px solid;
    border-color: #fff #555 #555 #fff;
    cursor: pointer;
    font-size: 9px;
    height: 14px;
    padding: 0;
    width: 16px;
}

.content {
    padding: 20px;
    text-align: center;
}

.avatar-container {
    background: #000;
    border: 2px inset #fff;
    display: inline-block;
    margin-bottom: 15px;
}

.avatar {
    display: block;
    height: 100px;
    image-rendering: pixelated;
    width: 100px;
}

h1 {
    color: #000;
    font-size: 18px;
    letter-spacing: 1px;
    margin: 10px 0;
    text-transform: uppercase;
}

.bio-copy {
    font-size: 12px;
}

.status {
    background: #fff;
    border: 1px inset #808080;
    color: #f00;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 3px;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.link-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    color: #000;
    display: block;
    font-size: 12px;
    padding: 8px;
    text-decoration: none;
    transition: all 0.1s;
}

.link-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
    padding: 9px 7px 7px 9px;
}

.link-btn:hover {
    background: #e0e0e0;
    color: #00f;
    text-decoration: underline;
}

marquee,
.retro-marquee {
    background: #000;
    color: #0f0;
    font-family: "Courier New", monospace;
    font-size: 12px;
    margin-top: 15px;
    padding: 2px;
}

.retro-marquee {
    overflow: hidden;
    white-space: nowrap;
}

.retro-marquee span {
    animation: marquee-scroll 13s linear infinite;
    display: inline-block;
    min-width: 100%;
    padding-left: 100%;
}

.footer-icons {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}

.window-body {
    background: #c0c0c0;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 10px;
}

.form-section {
    background: #fff;
    border: 2px inset #ffffff;
    flex: 0 0 auto;
    margin-bottom: 20px;
    padding: 10px;
}

.field-row-stacked {
    font-size: 12px;
    margin-bottom: 10px;
    text-align: left;
}

.field-row-stacked label {
    display: block;
    margin-bottom: 4px;
}

input,
textarea {
    border: 2px inset #ffffff;
    box-sizing: border-box;
    font-family: "MS Sans Serif", "Courier New", monospace;
    font-size: 12px;
    padding: 4px;
    width: 100%;
}

.form-message {
    color: #800000;
    font-size: 12px;
    min-height: 14px;
    text-align: left;
}

.guestbook-actions {
    margin-top: 5px;
    text-align: right;
}

.guestbook-actions button {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    min-height: 24px;
}

.guestbook-actions button:active {
    border-color: #808080 #ffffff #ffffff #808080;
}

.entry {
    background: #eee;
    border: 1px solid #808080;
    margin-bottom: 10px;
    padding: 10px;
    text-align: left;
}

.entries {
    background: #fff;
    border: 2px inset #ffffff;
    flex: 1;
    min-height: 120px;
    max-height: 100%;
    overflow-y: auto;
    padding: 6px;
}

.entry-header {
    border-bottom: 1px dashed #808080;
    display: flex;
    font-size: 12px;
    font-weight: bold;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 5px;
}

.entry-content {
    color: #333;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 15px;
}

.badges img {
    image-rendering: pixelated;
}

.status-bar {
    background: #c0c0c0;
    display: flex;
    gap: 2px;
    padding-top: 2px;
}

.status-bar-field {
    border: 1px inset #ffffff;
    flex: 1;
    font-size: 11px;
    margin: 0;
    padding: 2px 4px;
}

.blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}
