/* Back button in top left */
.back-button {
    position: fixed;
    top: 22px;
    left: 22px;
    background: #000;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    z-index: 2000;
    border: 2px solid #fff;
    transition: background 0.2s;
}
.back-button:hover {
    background: #222;
}
.moonphase-codeblock {
    color: #fff;
    background: #000;
    font-size: 10px;
    max-width: 100px;
    overflow-x: auto;
    border-radius: 4px;
    padding: 2px 4px;
    margin-top: 2px;
    scrollbar-width: thin;
    scrollbar-color: #000 #000;
}
.moonphase-codeblock::-webkit-scrollbar {
    height: 6px;
    background: #000;
}
.moonphase-codeblock::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 4px;
}
.moonphase-js-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.92);
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 8px 8px 8px 8px;
    min-width: 90px;
    min-height: 110px;
    max-width: 120px;
    max-height: 140px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    position: absolute;
    right: 25px;
    top: 58%;
    transform: translateY(-50%);
    z-index: 2;
    border: 2px solid #a5a2a2;
}
.moonphase-header-js {
    color: #fff;
    font-size: 1em;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}
.moonphase-label-js {
    color: #fff;
    font-size: 0.9em;
    margin-top: 4px;
    text-align: center;
}
.tama-flex-row {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    overflow: visible;
    color: #fff;
    min-height: 180px;
}
.sudoku-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0,0,0,0.92);
    border: 2px solid #fff;
    border-radius: 10px;
    padding: 10px 8px 8px 8px;
    margin-left: 32px;
    min-width: 110px;
    max-width: 140px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.sudoku-header {
    color: #fff;
    font-size: 1em;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}
.sudoku-board {
    border-collapse: collapse;
    margin-bottom: 4px;
}
.sudoku-board td {
    border: 1px solid #fff;
    width: 22px;
    height: 22px;
    padding: 0;
}
.sudoku-board input {
    width: 100%;
    height: 100%;
    background: #222;
    color: #fff;
    border: none;
    text-align: center;
    font-size: 1em;
    outline: none;
}
.sudoku-note {
    color: #aaa;
    font-size: 0.8em;
    margin-top: 2px;
}
.mood-header {
    font-size: 0.85em;
    color: #fff;
    margin-bottom: 4px;
    font-weight: normal;
    letter-spacing: 0.05em;
}
.currently-container {
    position: absolute;
    top: 809px;
    right: 170px;
    width: 195px;
    background: rgba(0,0,0,0.92);
    color: #fff;
    border: 2px solid #fff;
    padding: 4px 6px 2px 6px;
    font-size: 1em;
    z-index: 1000;
    box-sizing: border-box;
    margin-top: 10px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    font-weight: bold;

}
.currently-container h2 {
    font-size: 1.15em;
    margin: 0 0 8px 0;
    color: #000;
    text-align: center;
    letter-spacing: 0.05em;
    background-color: #fff;
}
.banner-image-flip {
    transform: rotate(180deg);
    margin-top: 32px;
}
.button-col img,
.button-col .guestbook-btn {
    margin-bottom: 0;
    display: block;
}
.guestbook-btn {
    background-image: url('decor/extra-buttons/the_forsaken.gif');
    color: #fff;
    padding: 7px 18px;
    cursor: pointer;
    font-family: monospace;
    font-size: 1em;
    transition: background 0.2s;
    width: 88px;
    box-sizing: border-box;
    height: 31px;
}
.guestbook-btn:hover {
    background: #222;
}
.chatbox-embed {
    position: absolute;
    top: 703px;
    left: -20px;
    z-index: 1000;
    border: 2px solid #fff;
    box-sizing: content-box;
    padding: 0;
    width: 185px;
    height: 300px;
    display: inline-block;
    vertical-align: top;
}
.update-log::-webkit-scrollbar {
    width: 8px;
    background: #000;
}
.update-log::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 6px;
}
.update-log {
    scrollbar-width: thin;
    scrollbar-color: #fff #000;
}
.update-log {
    position: absolute;
    top: 534px;
    right: 182px;
    width: 172px;
    min-width: 172px;
    max-width: 172px;
    background: rgba(0,0,0,0.92);
    color: #fff;
    border: 2px solid #fff;
    padding: 10px 6px 8px 6px;
    font-size: 0.97em;
    z-index: 1000;
    box-sizing: border-box;
    margin-top: 10px;
    overflow-wrap: break-word;
    word-break: break-word;
    max-height: 230px;
    overflow-y: auto;
}
.update-log h2, .update-log ul, .update-log li {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}
.update-log h2 {
    font-size: 1.15em;
    margin: 0 0 8px 0;
    color: #fff;
    text-align: center;
}
.update-log ul {
    padding-left: 1.2em;
    margin: 0;
    list-style-type: disc;
}
.update-log li {
    margin-bottom: 0.5em;
    font-size: 0.98em;
}
body {
    background-image: url(https://wallpaperaccess.com/full/3156755.jpg);
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: monospace
}
.sidebar {
    width: 190px;
    background-color: #000;
    color: #fff;
    height: 360px;
    position: absolute;
    box-sizing: border-box;
    overflow-y: visible;
    border: 2px solid #fff;
    flex-shrink: 0;
    top: 167px;
    left: 176px;
}
.sidebar a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 10px 0;
    margin-bottom: 10px;
    border-radius: 4px;
    transition: background 0.2s;
    text-align: center;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 4px;
}
.sidebar a:hover {
    text-decoration: underline;
    background-color: #000;
}
.sidebar header h1 {
    color:#000;
    text-align: center;
}
.sidebar-title {
  margin-bottom: 30px;
  margin-top: -16px;
  color: #fff;
  font-size: 1.3em;
  text-align: left;
}

.background-container {
    position: relative;
    width: 600px;
    height: auto;
    min-height: 900px;
    background-color: #000;
    border: 4px solid #fff;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    padding-top: 160px;
    bottom: -97px;
}
.background-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
    flex: 1 1 auto;
}
.evangelion {
    position: absolute;
    top: 65px;
    left: 10px;
    width: 220px;
    height: auto;
    z-index: 10;
    pointer-events: none;
    border-radius: 20px;
    margin: 0;
    padding: 10px 0;
}
.about-me {
    color: #fff;
    margin-left: 250px;
    margin-bottom: 30px;
    width: 320px;
    margin-top: -107px;
}
.top-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    color: #fff;
    width: 100%;
    max-width: 900px;
    height: 120px;
    text-align: center;
    padding: 20px 0;
    margin: 0 auto;
    border-radius: 0 0 20px 20px;
    border-bottom: 2px solid #fff;
    gap: 30px;
    z-index: 1001;
}
.top-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin: 0;
    width: auto;
    display: block;
    letter-spacing: 0.2em;
}
.music-box {
    position: absolute;
    top: 167px;
    right: 171px;
    width: 170px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    color: #fff;
    z-index: 1000;      
    text-align: center;
    border: 2px solid #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.1em;
}
.music-box button {
    background-color: #1e1e1e;
    border: none;
    color: #fff;
    padding: 4px 0;
    margin: 0 4px;
    cursor: pointer;
    font-size: .85em;
    transition: background 0.2s;
    border: none;
    box-sizing: border-box;
    flex: 1 1 0;
    min-width: 0;
}
.music-box button:hover {
    background-color: #333;
}
.music-box .button-row {
    display: flex;
    gap: 4px;
    margin-top: 10px;
    justify-content: center;
    width: 100%;
}
#top-image {
    position: absolute;
    top: 35px;
    left: 300px;
    z-index: 9999;
    width: 100px;
}
#top-image_1 {
    position: absolute;
    top: 35px;
    right: 300px;
    z-index: 9999;
    width: 100px;
}
.side-image {
    width: 85px;
    height: auto;
}
.visitor-counter {
    position: absolute;
    top: 495px;
    right: 181px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    text-align: center;
    border: 2px solid #fff;
    width: 150px;
}
.todo-container {
    position: absolute;
    top: 539.5px;
    left: 192px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    height: 135px;
    width: 130px;
    border: 2px solid #fff;
    text-align: center;
}
.todo-container h2 {
    margin-top: 0;
    font-size: 1.2em;
    margin-bottom: 10px;   
}
.todo-container ul {
    padding-left: 1.2em;
    list-style-position: outside;
}
.todo-container li {
    margin-bottom: 0.7em;
    margin-left: 0;
    padding-left: 0;
}
.main-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
}
.banner-image {
  display: block;
  width: 100%;
  height: auto;
  margin: -20px 0 0 0;
  padding: 0;
  z-index: 10;
}
.center-webring {
    margin-top: 10px;
    margin-left: 0px;
}

.button-row {
    display: flex;
    flex-direction: row;
    gap: 100px;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 32px;
}

.button-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-label {
    color: #fff;
    font-size: 1em;
    margin-top: 4px;
    text-align: center;
}
.button-share {
    background: rgba(0,0,0,0.92);
    border: 2px solid #fff;
    padding: 10px;
    position: absolute;
    top: 930px;
    left: -197px;
    width: 180px;
    height: 120px;
    text-align: left;
    z-index: 20;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.button-share textarea {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: block;
}
.update-log {
    color: #fff;
    margin-left: 250px;
    margin-bottom: 30px;
    width: 320px;
    position: absolute;
    top: 570px;
}
.mood-badges {
  position: absolute;
  left: 40px;
  top: 62%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.mood-badge {
  background: #000;
  color: #fff;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 1em;
  border: 1px solid #fff;
  min-width: 80px;
  white-space: nowrap;
  display: inline-block;
  text-align: center;
  align-items: center;
  width: 100px;
}
.tama-flex-row {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
  overflow: visible;
  color: #fff;
}
.background-container_1 {
    position: relative;
    width: 800px;
    height: 400px;
    min-height: 400px;
    background-color: #000;
    border: 4px solid #fff;
    margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    padding-top: 160px;
    bottom: -97px;
    color: #fff;
}
.diary-container {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
    color: #fff;
    margin-left: 0;
    margin-bottom: 30px;
    width: 100%;
    padding: 20px;
}
.diary-entries::-webkit-scrollbar {
    width: 8px;
    background: #000;
}
.diary-entries::-webkit-scrollbar-thumb {
    background: #fff;
    border-radius: 6px;
}
.diary-entries {
    scrollbar-width: thin;
    scrollbar-color: #fff #000;
    min-width: 340px;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 24px;
    padding-right: 24px;
    max-height: 400px;
    overflow-y: auto;
}
.diary-main-content {
    flex: 2;
    margin-left: 10px;
    text-align: center;
    margin-top: 10px;
    margin-top: 12px;
    width: 170px;
}
.diary-main-content > * {
    margin-left: -20px;
}
.diary-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  max-width: 160px;
  padding: 0 12px 12px 12px;
  background: rgba(0,0,0,0.85);
  height: 100%;
  margin-top: -43px;
  text-align: center;
  position: relative;
}
.diary-sidebar::after {
  content: "";
  position: absolute;
  top: -56px;
  right: 0;
  width: 2px;
  height: 500px;
  background: #fff;
  z-index: 1;
}
.diary-sidebar .entry-links {
  margin-top: 0;
  padding-left: 0;
  list-style: none;
}
.diary-sidebar .entry-links li {
  margin-bottom: 8px;
}
.diary-sidebar .entry-links a {
  color: #fff;
  text-decoration: underline;
  font-size: 1em;
  transition: color 0.2s;
}
.diary-sidebar .entry-links a:hover {
  color: #888;
}
.diary-sidebar .entry-links a.active {
  color: #888;
}
.diary-date {
    text-align: center;
    margin-left: 0;
}
.music-box-bottom-left {
  position: absolute;
  left: 0px;
  bottom: 140px;
  width: 170px;
  height: 240px;
  min-width: 170px;
}
.music-player-diary-custom {
  position: static;
  right: unset;
  margin-left: auto;
  margin-top: 0px;
  align-self: flex-start;
}
.diary-sidebar-divider {
  width: 2px;
  background: #fff;
    height: 502px;
  min-height: 120px;
    margin: -2px 8px 0 -10px;
  align-self: stretch;
}