@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: #000;
  color: #95ffe3;
  font-family: 'Press Start 2P', monospace;
  margin: 0;
  overflow-x: hidden;
}

#clouds, #rain {
  position: fixed;
  width: 100vw; 
  height: 100vh;
  top: 0; 
  left: 0;
  pointer-events: none;
  z-index: 0;
}

header{
  font-family:'Press Start 2P', monospace;
  font-size:1.2rem;
  letter-spacing:0px;
  color:#caf3ec;
  text-align:center;
  margin:28px 0 38px;
  position:relative;      
  text-shadow:
      0 0 8px  #34fcd8,
      0 0 12px #34fcd8,
      0 0 20px #34fcd8;
  animation: flicker 3s infinite steps(1,end);
}

@keyframes flicker{
  0%,18%,22%,25%,53%,57%,100% {opacity:1;}
  20%,24%,55%                 {opacity:.35;}
}

.main-wrapper {
  display: flex;
  justify-content: center;
  gap: 32px;
  align-items: flex-start;
  width: calc(100% - 32px);
  max-width: 1200px;
  margin-inline: auto;
  z-index: 1;
  position: relative;
}

.center-panel {
  flex: 1;
  min-width: 0;
  max-width: 725px;
  display: flex;
  flex-direction: column;
  gap: 45px;
}

/* NEW: Right side container to hold both right-panel and clock-section */
.right-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
  width: 433px;
  min-width: 0;
}

.section-box {
  background: rgba(22,22,30,0.92);
  border: 2px solid #306372;
  border-radius: 9px;
  box-shadow: 0 0 16px #106077ad;
  padding: 24px 20px 18px 20px;
  margin-bottom: 0;
  font-size: 14px;
  color: #d6ffe9;
  position: relative;
  backdrop-filter: blur(8px);
}

.section-box h2 {
  color: #2affaf;
  font-size: 1.22rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  margin-top: 0;
  overflow-wrap: anywhere;
}

.section-box .emoji {
  font-size: 1.22em;
  vertical-align: middle;
}

.section-box ul, .section-box ol {
  margin-left: 30px;
}

.section-box.blog {
  border-color: #ffb13e;
  box-shadow: 0 0 18px #df771ead;
}

.section-box.blog h2 {
  color: #ffaa30;
}

.avatarframe {
  float: left;
  margin-right: 18px;
  border: 2px solid #10e7be;
  border-radius: 7px;
  background: #242a33;
  width: 86px; 
  height: 86px;
  box-shadow: 0 0 12px #34fcd8;
}

.avatarframe img {
  display: block;
  width: 82px; 
  height: 82px;
  object-fit: cover;
  border-radius: 6px;
  margin: 2px;
}

.right-panel {
  width: 257px;
  min-width: 180px;
  background: rgba(15,15,20,0.91);
  border: 2.5px solid #35ff5c;
  border-radius: 11px;
  padding: 17px 15px 2px 13px;
  font-size: .99rem;
  box-shadow: 0 0 18px #0ff4c6ad;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: fit-content;
  position: relative;
}

.stars-title {
  display: flex;
  align-items: center;
  color: #3ef6e2;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.17rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 0 8px #1ff;
  user-select: none;
}

.stars-title .star-emoji {
  font-size: 1.15em;
  margin-right: .5em;
  user-select: none;
}

.stars-list {
  font-family: 'Press Start 2P', monospace;
  list-style: none;
  margin: 0 0 28px 0;
  padding: 0;
  line-height: 1.7;
  color: #fff;
  flex: 1 1 auto;
  user-select: none;
}

.stars-list li {
  margin: 0 0 4px 0;
  display: flex; 
  align-items: center;
  font-size: .99em;
}

.stars-list a {
  color: #45adff;
  text-decoration: none;
  transition: color .14s;
}

.stars-list a:hover {
  color: #16ffc6;
}

.alive-status {
  color: #3bff00;
  margin-top: 10px;
  margin-bottom: 2px;
  font-size: 1.15rem;
  text-align: center;
  text-shadow: 0 0 9px #44ff00, 0 2px #101;
  font-family: 'Press Start 2P', monospace;
  border-top: 2px solid #118f3933;
  padding-top: 16px;
  letter-spacing: 1.5px;
  user-select: none;
}

/* UPDATED: Clock section styling to match your theme */
.clock-section {
  width: 257px;
  min-width: 180px;
  background: rgba(15,15,20,0.91);
  border: 2.5px solid #35ff5c;
  border-radius: 11px;
  padding: 17px 15px 17px 13px;
  font-size: .99rem;
  box-shadow: 0 0 18px #0ff4c6ad;
  backdrop-filter: blur(10px);
  height: fit-content;
  position: relative;
}

.clock-title {
  display: flex;
  align-items: center;
  color: #3ef6e2;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.17rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-shadow: 0 0 8px #1ff;
  user-select: none;
  justify-content: center;
}

.clock-content {
  text-align: center;
}

#live-clock {
  font-size: 1.5rem;
  color: #3bff00;
  font-family: 'Press Start 2P', monospace;
  text-shadow: 0 0 9px #44ff00, 0 2px #101;
  letter-spacing: 2px;
  margin: 15px 0;
  user-select: none;
}

.timezone {
  font-size: .8rem;
  color: #3ef6e2;
  font-family: 'Press Start 2P', monospace;
  opacity: 0.8;
  user-select: none;
}

@media (max-width: 950px) {
  .main-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .center-panel {
    width: 100%;
    max-width: none;
  }
  
  .right-side {
    align-items: center;
    width: 100%;
  }
  
  .right-panel, .clock-section {
    width: 100%;
    min-width: 0; 
    max-width: 725px;
    margin: 0 auto 5vh;
  }
}

p,
li {
  line-height: 1.55em;
}



.terminal-section {
    width: min(433px, 100%);
    min-width: 0;
    max-width: 100%;
    background: rgba(15,15,20,0.95);
    border: 2.5px solid #35ff5c;
    border-radius: 11px;
    padding: 17px 15px 17px 13px;
    font-size: .99rem;
    box-shadow: 0 0 18px #0ff4c6ad;
    backdrop-filter: blur(10px);
    height: fit-content;
    position: relative;
    z-index: 100; /* Keep above the cat */
}

.terminal-output {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: #000;
    border: 1px solid #35ff5c;
    border-radius: 5px;
    padding: 10px;
    height: 120px;
    overflow-y: auto;
    font-family: 'Press Start 2P', monospace;
    font-size: .7rem;
    line-height: 1.6;
    margin-bottom: 10px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #35ff5c #000;
    overflow-wrap: anywhere;
    word-break: break-word;
    box-sizing: border-box;
}

.terminal-output > div {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.terminal-output::-webkit-scrollbar {
    width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #000;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: #35ff5c;
    border-radius: 4px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid #35ff5c;
    border-radius: 5px;
    padding: 8px;
}

.terminal-input {
    background: transparent;
    border: none;
    color: #3ef6e2;
    font-family: 'Press Start 2P', monospace;
    font-size: .7rem;
    outline: none;
    flex: 1;
    margin-left: 5px;
    min-width: 0;
}

.terminal-input::placeholder {
    color: rgba(62, 246, 226, 0.5);
}

@media (max-width: 600px) {
  header {
    margin: 22px 16px 28px;
    font-size: clamp(0.72rem, 3.5vw, 1rem);
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .main-wrapper {
    width: calc(100% - 24px);
    gap: 18px;
  }

  .section-box {
    padding: 18px 14px;
    font-size: 13px;
  }

  .section-box h2 {
    font-size: clamp(0.82rem, 4vw, 1.05rem);
    letter-spacing: 1px;
    line-height: 1.7;
  }

  .section-box ul,
  .section-box ol {
    margin-left: 20px;
    padding-left: 8px;
  }

  .right-panel,
  .clock-section,
  .terminal-section {
    padding: 16px 13px;
  }

  .stars-title,
  .clock-title {
    font-size: clamp(0.85rem, 4vw, 1.05rem);
    letter-spacing: 1px;
  }

  #live-clock {
    font-size: clamp(0.9rem, 5vw, 1.3rem);
    letter-spacing: 1px;
  }

  .terminal-title {
    overflow-wrap: anywhere;
  }

  .terminal-input-line {
    flex-wrap: wrap;
  }

  .terminal-prompt {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .terminal-input {
    flex-basis: 100%;
    margin: 8px 0 0;
    font-size: 0.65rem;
  }
}
