@font-face {
  font-family: 'Fixedsys Excelsior';
  src: url('FixedsysExcelsior.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Fixedsys Excelsior';
  src: url('FixedsysExcelsior.ttf') format('truetype');
  font-weight: bold;
}
@font-face {
  font-family: 'Fixedsys Excelsior';
  src: url('FixedsysExcelsior.ttf') format('truetype');
  font-style: italic;
}
@font-face {
  font-family: 'Fixedsys Excelsior';
  src: url('FixedsysExcelsior.ttf') format('truetype');
  font-style: italic;
  font-weight: bold;
}

:root {
  --header-image: url('img/nyan.jpg');
  --bg-dark: #008080;
  --bg-panel: rgba(255, 255, 255, 0.15);
  --bg-nav: rgba(6, 80, 185, 0.7);
  --bg-header: #043565;
  --accent: #000;
  --accent-2: #0e99bc;
  --text: #000;
  --text-muted: #333;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: url('https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fserver.wallpaperalchemy.com%2Fstorage%2Fwallpapers%2F92%2Fwindows-xp-wallpaper-bliss-4k-wallpaper.jpeg&f=1&nofb=1&ipt=1abdc8938d98fd62fd9cc8be9e9c183d1792ae86a2acf4c0bbd6986f3cb85a31&ipo=images') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Fixedsys Excelsior', 'FixedSys', monospace;
  color: var(--text);
  line-height: 1.5;
  overflow: hidden;
}

#container {
width: 100%;
max-width: 900px;
height: 95vh;
height: 95dvh;
margin: 2.5vh auto;
margin: 2.5dvh auto;
background: rgba(255, 255, 255, 0.25);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
border: 1px solid rgba(255, 255, 255, 0.6);
border-radius: 8px 8px 4px 4px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.8);
display: flex;
flex-direction: column;
overflow: hidden;
}

#headerArea {
flex-shrink: 0;
}

#headheadheader {
background:linear-gradient(to bottom, rgba(27, 44, 186, 0.8), rgba(78, 150, 236, 0.8));
border-bottom: 1px solid #7a7a7a;
display: flex;
gap: 15px;
list-style: none;
padding: 10px 15px;
margin: 0;
align-items: center;
overflow-x: auto;
}

#headheadheader button {
background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
border: 1px solid #7a7a7a;
padding: 5px 10px;
font-family: inherit;
font-weight: bold;
cursor: pointer;
border-radius: 3px;
white-space: nowrap;
}

#headheadheader li a {
color: var(--accent);
text-decoration: none;
font-weight: bold;
text-shadow: 0 1px 0 rgba(255,255,255,0.5);
white-space: nowrap;
font-size: 14px;
}

#headheadheader li a:hover {
text-decoration: underline;
}

#header {
width: 100%;
height: 120px;
background-color: var(--bg-header);
background-image: var(--header-image);
background-size: cover;
background-position: center;
}

#navbar {
background: rgba(0, 0, 0, 0.1);
width: 100%;
border-bottom: 1px solid rgba(255,255,255,0.3);
}

#navbar ul {
display: flex;
padding: 0;
margin: 0;
list-style: none;
justify-content: space-evenly;
}

#navbar li {
padding: 8px 0;
}

#navbar a {
display: inline-block;
padding: 4px 12px;
color: var(--accent);
font-weight: 800;
text-decoration: none;
}

#navbar a:hover {
    color: #030f40;
}

#main-content {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
padding: 15px;
}

.mode-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

h1 {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 22px;
  flex-shrink: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

.chat-container {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 15px;
  padding-right: 5px;
}

#slop-status {
  min-height: 1.4em;
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

#slop-status.slop-status--error {
  color: #b42318;
}

.chat-container::-webkit-scrollbar { width: 8px; }
.chat-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.1); }
.chat-container::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 4px; }

.container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #0b1a2b;
  border-radius: 8px;
  max-width: 85%;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  border: 1px solid rgba(255,255,255,0.8);
  word-break: break-word;
  flex-shrink: 0;
}

.container.darker {
  background-color: rgba(220, 235, 255, 0.9);
  align-self: flex-end;
  flex-direction: row-reverse;
  text-align: right;
}

.container p {
  margin: 0;
  font-size: 0.95rem;
}

#chat-input-area {
flex-shrink: 0;
display: flex;
flex-direction: column;
gap: 10px;
}

#choicewritedwar {
display: flex;
gap: 10px;
flex-wrap: wrap;
}

#chat-input-area button {
background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
color: #000;
border: 1px solid #7a7a7a;
border-radius: 3px;
padding: 8px 16px;
font-family: inherit;
font-weight: bold;
font-size: 0.95rem;
cursor: pointer;
transition: background-color .2s, color .2s;
text-align: left;
box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,0.3);
}

#chat-input-area button:hover {
background: linear-gradient(to bottom, #e0f0ff, #b0d0f0);
}

.c-inputWrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.a-textWrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.c-textInput {
  width: 100%;
  min-height: 50px;
  resize: none;
  padding: 10px 12px;
  border-radius: 3px;
  border: 1px solid #7a7a7a;
  background-color: #fff;
  color: #000;
  font-family: inherit;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

.c-textInput:focus {
  outline: none;
  border-color: #3c7fb1;
  box-shadow: 0 0 3px rgba(60, 127, 177, 0.5), inset 0 1px 2px rgba(0,0,0,0.1);
}

.msg-actions {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.msg-actions button {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  padding: 0;
  opacity: 0.6;
  transition: 0.2s;
}

.msg-actions button:hover {
  opacity: 1;
  transform: scale(1.1);
}

.btn-report {
  color: #ff4d4d;
  font-weight: bold;
  font-size: 16px !important;
}

.btn-report:hover { color: #ff0000; }

#footer {
background: linear-gradient(to bottom, rgba(211, 213, 234, 0.8), rgba(28, 91, 210, 0.8));
width: 100%;
padding: 10px;
text-align: center;
font-size: 0.8rem;
color: var(--text);
flex-shrink: 0;
border-top: 1px solid rgba(255,255,255,0.5);
}

.hidden { display: none !important; }
.nav-btn.active { text-decoration: underline; color: #0d0662; }

.ai-menu {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 15px;
  margin-top: 15px;
}

.ai-btn-main {
  background: linear-gradient(to bottom, rgba(25, 67, 231, 0.8), rgba(8, 7, 41, 0.8));
  color: #fff;
  border: 2px dashed rgba(255,255,255,0.8);
  border-radius: 8px;
  padding: 15px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ai-btn-main:hover { background: linear-gradient(to bottom, rgba(150, 210, 255, 0.9), rgba(110, 160, 220, 0.9)); border-style: solid; }

.ai-btn-sec {
  background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
  color: #000;
  border: 1px solid #7a7a7a;
  border-radius: 3px;
  padding: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,0.3);
}

.ai-btn-sec:hover { background: linear-gradient(to bottom, #e0f0ff, #b0d0f0); }

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  color: #000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  font-family: 'Fixedsys Excelsior', monospace;
}

.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: #eee; }
.modal-content::-webkit-scrollbar-thumb { background: var(--accent-2); border-radius: 4px; }

.modal-content h2 {
  margin-top: 0;
  color: #0b3d6e;
  font-size: 18px;
  border-bottom: 2px solid #3c7fb1;
  padding-bottom: 10px;
}

.modal-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

.modal-accept-btn {
  width: 100%;
  background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
  color: #000;
  border: 1px solid #7a7a7a;
  padding: 12px;
  font-size: 15px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  text-transform: uppercase;
  margin-top: 10px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,0.3);
}

.modal-accept-btn:hover {
  background: linear-gradient(to bottom, #e0f0ff, #b0d0f0);
}

@media (max-width: 700px) {
  #container {
  height: 100vh;
  height: 100dvh;
  margin: 0;
  border-radius: 0;
  border: none;
  }
  #header {
  height: 80px;
  }
  #headheadheader {
  gap: 10px;
  padding: 8px 10px;
  }
  #headheadheader li a {
  font-size: 12px;
  }
  #headheadheader button {
  font-size: 12px;
  padding: 4px 8px;
  }
  #main-content {
  padding: 10px;
  }
  h1 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  .container {
    max-width: 95%;
    padding: 8px 12px;
  }
  .a-textWrapper {
    flex-direction: column;
    align-items: stretch;
  }
  #btn-send-msg {
  width: 100%;
  margin-top: 8px;
  }
  .ai-btn-main, .ai-btn-sec {
    padding: 12px;
    font-size: 1rem;
  }
  #footer {
  font-size: 0.75rem;
  padding: 8px;
  }
}



.win-modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.win-window {
  background: #f0f0f0;
  border: 1px solid #7a7a7a;
  border-radius: 6px 6px 4px 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  width: 90%;
  max-width: 400px;
  font-family: 'Fixedsys Excelsior', monospace;
  overflow: hidden;
}

.win-title-bar {
  background: linear-gradient(to bottom, #92c8f6, #4a9ce3);
  color: #fff;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 1px 1px 1px #333;
}

.win-btn-close {
  background: #e81123;
  color: #fff;
  border: none;
  width: 22px;
  height: 18px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 2px;
}
.win-btn-close:hover { background: #f1707a; }

.win-content {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #fff;
}

.win-icon {
  background: #0066cc;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  flex-shrink: 0;
}

.win-content p {
  margin: 0;
  font-size: 14px;
  color: #000;
  line-height: 1.4;
}

.win-footer {
  padding: 10px 20px;
  background: #f0f0f0;
  border-top: 1px solid #ccc;
  display: flex;
  justify-content: flex-end;
}

.win-btn-ok {
  background: linear-gradient(to bottom, #f0f0f0, #d0d0d0);
  border: 1px solid #7a7a7a;
  padding: 6px 25px;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  box-shadow: inset 0 1px 0 #fff;
}
.win-btn-ok:hover { background: linear-gradient(to bottom, #e0f0ff, #b0d0f0); }
.win-btn-ok:active { background: linear-gradient(to bottom, #c0d0e0, #a0b0c0); }
