/* --- PIXEL TERMINAL THEME: RETRO TOP BAR + BASE STYLES --- */

/* Import pixel fonts */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bungee+Shade&display=swap');

@font-face {
    font-family: 'Minecraftia';
    src: url('https://fonts.cdnfonts.com/s/17374/Minecraftia-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Color palette */
:root {
    --terminal-bg: #0B1C05;
    --terminal-green: #B5E61D;
    --terminal-green-light: #d7ff6b;
    --terminal-green-dark: #8fae13;
    --terminal-border: #8fae13;
    --terminal-border-glow: #d7ff6b;
}

/* --- BASE BODY & BACKGROUND --- */

/* --- SITE TITLE --- */
.site-title-16bit {
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 4.2em;
    text-align: center;
    margin: 0.4em 0 0.2em 0;
    letter-spacing: 0.12em;
    line-height: 1.05;
    user-select: none;
    text-transform: uppercase;
    color: #B5E61D;
    text-shadow:
        0 0 10px #d7ff6b,
        2px 2px 0 #000,
        0 2px 0 #8fae13;
    z-index: 100;
    position: relative;
    background: none;
}
.site-title-16bit .title-top,
.site-title-16bit .title-bottom {
    display: block;
    font-size: 1em;
    letter-spacing: 0.13em;
    margin: 0.05em 0 0.05em 0;
    color: inherit;
    text-shadow:
        0 0 10px #d7ff6b,
        2px 2px 0 #000,
        0 2px 0 #8fae13;
}

/* --- HEADER GAP MESSAGE --- */
.header-gap-message {
    text-align: center;
    margin-top: 3.2em;
    margin-bottom: 0.2em;
    font-family: 'Press Start 2P','VT323',monospace;
    color: #B5E61D;
    font-size: 2em;
    text-shadow: 0 0 8px var(--terminal-green-dark);
}

/* --- RETRO TOP BAR WITH TYPEWRITER TOOLTIP --- */
.retro-topbar {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2em;
  background: #183c0a;
  border-radius: 10px;
  border-top: 2px solid #8fae13;
  border-bottom: 2px solid #8fae13;
  box-shadow: 0 0 8px #8fae13, 0 2px 6px #000a;
  padding: 0.3em 0.5em;
  width: 90vw;
  max-width: 800px;
  margin: 0 auto 1.5em auto;
  outline: 2px solid #6b7e3a;
  outline-offset: -4px;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.retro-topbar a {
    color: var(--terminal-bg);
    background: #b5e61d;
    font-family: 'Press Start 2P', 'VT323', monospace;
    font-size: 1.1em;
    text-decoration: none;
    padding: 0.4em 1.1em;
    border-radius: 7px;
    margin: 0 0.1em;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    position: relative;
    outline: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: 0 0 4px #8fae13;
    border: 2px solid #6b7e3a;
    overflow: hidden;
}
.retro-topbar a:hover,
.retro-topbar a:focus {
    background: #d7ff6b;
    color: #183c0a;
    box-shadow: 0 0 12px #b5e61d, 0 0 4px #fff inset;
    border-color: #b5e61d;
}

/* Typewriter animation for link text */
.retro-topbar a .typewriter-title {
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--terminal-bg);
    animation: typing 1.2s steps(20, end), blink-cursor 0.8s steps(1) infinite;
    font-family: inherit;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink-cursor {
    0%, 100% { border-color: var(--terminal-bg); }
    50% { border-color: transparent; }
}

/* --- TOOLTIP BOX WITH FIXED SIZE AND TYPEWRITER --- */
.typewriter-tip {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -3.2em;
    background: #222;
    color: var(--terminal-green-light);
    padding: 0.7em 1.5em;
    border-radius: 8px;
    width: 320px;
    min-height: 2.5em;
    max-width: 320px;
    box-shadow: 0 0 8px #8fae13;
    pointer-events: none;
    z-index: 9999;
    font-family: 'Minecraftia', 'Press Start 2P', 'VT323', monospace;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: pre-line;
    text-align: center;
    overflow: hidden;
}
.typewriter-tooltip:hover .typewriter-tip,
.typewriter-tooltip:focus .typewriter-tip {
    opacity: 1;
}

/* --- BLINKING CURSOR EFFECT FOR TOOLTIP --- */
.terminal-cursor {
    display: inline-block;
    width: 14px;
    background: var(--terminal-green-light);
    animation: blink 1s steps(1) infinite;
    height: 1.2em;
    vertical-align: bottom;
    margin-left: 2px;
    box-shadow: 0 0 8px var(--terminal-green-light);
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .site-title-16bit {
        font-size: 2em;
    }
    .header-gap-message {
        font-size: 1.1em;
        margin-top: 1em;
    }
    .retro-topbar {
        width: 98vw;
        max-width: 98vw;
        gap: 0.5em;
        font-size: 0.9em;
        padding: 0.2em 0;
    }
    .typewriter-tip {
        width: 90vw;
        max-width: 98vw;
        font-size: 0.95em;
    }
}

/* Responsive adjustments for mobile devices */
@media (max-width: 600px) {
  .glow-box,
  .news-section,
  .retro-topbar {
    width: 98vw;
    max-width: 98vw;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }

  .glow-box ul,
  .art-projects-section ul {
    padding-left: 0;
  }

  .glow-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1em auto;
    display: block;
  }

  .welcome-section h2,
  .glow-box h2,
  .glow-box h3 {
    font-size: 1.1em;
    text-align: center;
  }

  audio {
    max-width: 98vw;
  }
}

.nav-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  position: relative;
}
.typewriter-description {
  min-height: 2.5em;
  margin-top: 0.5em;
  width: 220px;
  background: #222;
  color: #d7ff6b;
  border-radius: 8px;
  box-shadow: 0 0 8px #8fae13;
  font-family: 'Minecraftia', 'Press Start 2P', 'VT323', monospace;
  font-size: 1.1em;
  text-align: center;
  padding: 0.7em 1em;
  display: none;
  transition: opacity 0.2s;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}
.nav-btn-wrap:hover .typewriter-description,
.nav-btn-wrap:focus-within .typewriter-description {
  display: block;
  opacity: 1;
}

/* --- GLOW BOX STYLES --- */
.glow-box {
  background: #101d08;
  border: 2px solid #b5e61d;
  border-radius: 12px;
  box-shadow: 0 0 16px 2px #b5e61d55;
  padding: 1.2em 1.5em;
  max-width: 600px;
  margin: 2em auto 1.5em auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- BOARD COMMENTS BOX --- */
.board-comments-box {
  background: #101d08;
  border: 2px solid #b5e61d;
  border-radius: 14px;
  box-shadow: 0 0 20px 2px #b5e61d55;
  padding: 1.8em 2.2em;
  max-width: 900px;
  margin: 2em auto 1.5em auto;
  height: 600px;           /* Increased height */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

/* Slightly bigger and more readable text inside the board */
.board-comments-box .comment {
  font-size: 2rem;
  line-height: 1.5;
  font-family: 'VT323', 'Press Start 2P', monospace;
  color: #d7ff6b;
  padding: 0.5em 1em;
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
  display: flex;
  align-items: flex-start;
}

/* Hide avatars and meta as before */
.board-comments-box .comment .avatar,
.board-comments-box .comment-metadata,
.board-comments-box .comment-edit-link,
.board-comments-box .comment-reply-link {
  display: none !important;
}

/* Make author name stand out and bigger */
.board-comments-box .comment .comment-author {
  font-size: 1.1em;
  font-weight: bold;
  color: #b5e61d;
  margin-right: 1em;
}

/* Style the comment textarea and name input for a homogenous retro look */
.comment-form textarea,
.comment-form input[type="text"] {
  width: 100%;
  max-width: 100%;
  background: #101d08;
  color: #d7ff6b;
  border: 2px solid #b5e61d;
  border-radius: 8px;
  font-family: 'VT323', 'Press Start 2P', monospace;
  font-size: 1.2em;
  padding: 0.7em 1em;
  margin-bottom: 1em;
  box-shadow: 0 0 8px #8fae1355;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form textarea:focus,
.comment-form input[type="text"]:focus {
  border-color: #d7ff6b;
  box-shadow: 0 0 12px #d7ff6b88;
  outline: none;
}

/* Optional: Style the submit button for consistency */
.comment-form input[type="submit"] {
  background: #b5e61d;
  color: #183c0a;
  border: none;
  border-radius: 8px;
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: 1.1em;
  padding: 0.7em 2em;
  cursor: pointer;
  box-shadow: 0 0 8px #8fae13;
  transition: background 0.2s, color 0.2s;
}
.comment-form input[type="submit"]:hover {
  background: #d7ff6b;
  color: #183c0a;
}

/* --- GUESTBOOK TITLE STYLES --- */
.entry-title {
  font-size: 2.2em !important;
  font-family: 'Press Start 2P', 'VT323', monospace !important;
  color: #B5E61D;
  text-align: left;
  margin-left: 1.2em;
  margin-bottom: 0.5em;
}

/* Blog post card style for homepage */
.entry-right {
  background: #101d08;
  border: 2px solid #b5e61d;
  border-radius: 12px;
  box-shadow: 0 0 12px #b5e61d55;
  padding: 1.2em 1.5em;
  margin-bottom: 2em;
}

.entry-title a {
  color: #b5e61d;
  text-decoration: none;
  font-size: 2em;
}

.entry-title a:hover {
  color: #d7ff6b;
  text-decoration: underline;
}

.read-more-link {
  display: inline-block;
  margin-top: 0.7em;
  color: #d7ff6b;
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: 1em;
  text-decoration: underline;
  transition: color 0.2s;
}

.read-more-link:hover {
  color: #b5e61d;
}

.welcome-section h2 {
  font-size: 1.6em;
  font-family: 'Press Start 2P', 'VT323', monospace;
  color: #B5E61D;
  margin-bottom: 0.5em;
}

.glow-box,
.news-section {
  width: 90vw;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Retro glowing audio player */
audio {
  width: 100%;
  max-width: 600px;
  margin: 1.5em auto 2em auto;
  display: block;
  background: #101d08;
  border: 2px solid #b5e61d;
  border-radius: 12px;
  box-shadow: 0 0 16px 2px #b5e61d55;
  padding: 0.5em 0.5em;
  outline: none;
}

/* Glowing border for images */
.glow-img {
  border: 2px solid #b5e61d;
  border-radius: 10px;
  box-shadow: 0 0 18px 4px #b5e61d88, 0 0 2px #d7ff6b;
  background: #101d08;
  padding: 4px;
  max-width: 100%;
  height: auto;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.glow-img:hover {
  box-shadow: 0 0 32px 8px #d7ff6b, 0 0 8px #b5e61d;
  border-color: #d7ff6b;
}

/* Arcade custom audio player */
.arcade-audio-player {
  background: #101d08;
  border: 4px double #b5e61d;
  border-radius: 16px;
  box-shadow: 0 0 24px 6px #b5e61d88, 0 0 4px #d7ff6b;
  padding: 1.2em 1em;
  max-width: 600px;
  margin: 2em auto;
  font-family: 'Press Start 2P', 'VT323', monospace;
  color: #B5E61D;
  text-align: center;
}
.arcade-controls {
  display: flex;
  align-items: center;
  gap: 0.7em;
  justify-content: center;
  flex-wrap: wrap;
}
.arcade-btn {
  background: #b5e61d;
  color: #101d08;
  border: 2px solid #8fae13;
  border-radius: 8px;
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: 1.5em;
  padding: 0.2em 0.7em;
  cursor: pointer;
  box-shadow: 0 0 8px #b5e61d55;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2em;
  min-height: 2.2em;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.05em;
}
.arcade-btn:active {
  background: #8fae13;
  color: #fff;
}
#seekbar {
  width: 120px;
  accent-color: #b5e61d;
  background: #222;
  border-radius: 4px;
  height: 6px;
}
#volume {
  width: 70px;
  accent-color: #b5e61d;
}
#current-time, #duration {
  font-size: 1em;
  color: #d7ff6b;
}

@media (max-width: 600px) {
  .retro-topbar {
    flex-wrap: wrap;
    gap: 0.5em;
    width: 98vw;
    max-width: 98vw;
    font-size: 0.95em;
    padding: 0.2em 0;
  }
  .nav-btn-wrap {
    min-width: 120px;
    flex: 1 1 40%;
    margin-bottom: 0.5em;
  }
  .art-projects-section ul span {
    margin-left: 0 !important;
    display: block;
    word-break: break-word;
    font-size: 0.98em;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
  .art-projects-section ul li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .art-projects-section ul img {
    margin-bottom: 0.5em;
    margin-right: 0;
    width: 90vw;
    max-width: 250px;
    height: auto;
  }
}

