* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "title";
    src: url('title_font.ttf') format('truetype');
    font-display: swap;
}

body {
    font-family: 'Happy Monkey', sans-serif;
    padding: 1em;
    background: #FEDCDB;
    color: #333;
    transition: background 0.8s ease, color 0.8s ease;
}
body.blue-theme {
    background:#0d1b2a;
    color:#e0f2ff;
}
body.blue-theme #title {
    color:#e6f4ff;
}
body.blue-theme a {
    color:#66b2ff;
}

/* Ignite button */
#igniteBtn {
    position: relative;
    float: right;
    margin-right: 1vw;
    background:#f191a3;
    color:#fff;
    border:1px solid #eb8093;
    padding:.6rem 1rem;
    border-radius:8px;
    cursor:pointer;
    font-weight:600;
    letter-spacing:.5px;
    z-index:1200;
    transition:background .25s, transform .25s;
}
#igniteBtn:hover {
    background:#e2778b;
    transform:translateY(-2px);
}
body.blue-theme #igniteBtn {
    background:#103552;
    border-color:#1d4d72;
}
body.blue-theme #igniteBtn:hover {
    background:#0b2a42;
}

/* Update status bar in blue theme */
body.blue-theme #status-bar {
    background-color: rgba(16, 53, 82, 0.2);
    border-bottom: 1px solid rgba(29, 77, 114, 0.3);
}

/* Update status bar text in blue theme */
body.blue-theme #status-bar span,
body.blue-theme #status-text {
    color: #66b2ff;
    text-shadow: 0 0 8px rgba(26, 117, 255, 0.4);
}

/* Update status text border in blue theme */
body.blue-theme #status-text {
    border-bottom-color: rgba(26, 117, 255, 0.5);
    font-weight: 600;  /* Slightly bolder for better visibility */
}

/* Burn overlay */
#burn-overlay {
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:0;
    pointer-events:none;
    z-index:1100;
    background:radial-gradient(circle at 50% 20%, rgba(255,200,80,.95) 0%, rgba(255,120,0,.9) 35%, rgba(90,25,0,.85) 70%, rgba(20,10,0,.9) 100%);
    box-shadow:0 0 40px 15px rgba(255,120,0,.55);
    opacity:0;
}
#burn-overlay.burning {
    animation: burnDrop 2.2s cubic-bezier(.6,.05,.2,1) forwards, flicker 1.1s linear infinite;
}
#burn-overlay.flooding {
    height:100vh;
    width:100%;
    animation: floodExpand 2.4s cubic-bezier(.55,.1,.3,1) forwards, waterPulse 1.2s ease-in-out infinite;
    background:radial-gradient(circle at 50% 50%, rgba(160,210,255,.95) 0%, rgba(90,160,240,.9) 35%, rgba(20,70,140,.88) 70%, rgba(5,25,55,.9) 100%);
    box-shadow:0 0 50px 18px rgba(90,160,240,.45);
    opacity:0;
    transform-origin:center;
}
#burn-overlay.line-burning {
    height:100vh;
    opacity:1;
    background:transparent;
}
#burn-overlay.line-burning .char-mask {
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:0;
    background:#000;
    animation: charGrow 3s linear forwards;
}
#burn-overlay.line-burning .fire-line {
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:22px;
    pointer-events:none;
    background:radial-gradient(circle at 50% 50%, rgba(255,240,190,.95) 0%, rgba(255,180,60,.9) 40%, rgba(255,120,0,.85) 65%, rgba(120,40,0,.6) 80%, rgba(60,20,0,0) 100%);
    filter:blur(0.6px);
    mix-blend-mode:screen;
    animation: fireLineMove 3s linear forwards, flicker .9s linear infinite;
}

@keyframes burnDrop {
    0% { height:0; opacity:0; }
    5% { opacity:1; }
    50% { height:55vh; }
    100% { height:100vh; opacity:0; }
}
@keyframes flicker {
    0%,100% { filter:brightness(1) blur(0px); }
    25% { filter:brightness(1.15) blur(1px); }
    55% { filter:brightness(.9) blur(.5px); }
    75% { filter:brightness(1.2) blur(1.2px); }
}
@keyframes floodExpand {
    0% { opacity:0; transform:scale(0); }
    10% { opacity:1; transform:scale(.2); }
    55% { transform:scale(4.5); opacity:1; }
    80% { transform:scale(7); opacity:.95; }
    100% { transform:scale(10); opacity:0; }
}
@keyframes waterPulse {
    0%,100% { filter:brightness(1) saturate(1); }
    40% { filter:brightness(1.15) saturate(1.2); }
    70% { filter:brightness(.95) saturate(.9); }
}
@keyframes charGrow {
    from { height:0; }
    to { height:100%; }
}
@keyframes fireLineMove {
    from { top:0; }
    to { top:100%; }
}

/* Water spray accumulation */
#spray-layer { position:fixed; inset:0; pointer-events:auto; z-index:1150; overflow:hidden; cursor:crosshair; }
/* Circular water drops (enlarged) */
.drop { position:absolute; width:120px; height:120px; border-radius:50%; background:radial-gradient(circle at 40% 38%, rgba(180,230,255,.95) 0%, rgba(110,190,255,.88) 40%, rgba(40,130,230,.78) 70%, rgba(15,70,150,.65) 100%); box-shadow:0 0 38px 14px rgba(120,190,255,.45); mix-blend-mode:screen; animation: dropGrow 2.8s ease-out forwards, dropPulse 3.2s ease-in-out 3s infinite; }
@keyframes dropGrow { 0% { transform:scale(.2); opacity:.0; } 25% { opacity:.85; } 70% { transform:scale(1); opacity:.95; } 100% { transform:scale(1.05); opacity:.98; } }
@keyframes dropPulse { 0%,100% { filter:brightness(1); } 50% { filter:brightness(1.15); } }

/* Drain layer & bubbles */
#water-drain { position:fixed; inset:0; background:linear-gradient(180deg,#5aa9f8 0%, #2d74c7 55%, #0d366f 100%); z-index:1135; animation: drainDown 3.2s ease-in forwards; overflow:hidden; }
@keyframes drainDown { 0% { transform:translateY(0); } 100% { transform:translateY(100%); } }
.bubble { position:absolute; bottom:0; width:18px; height:18px; border-radius:50%; background:radial-gradient(circle at 30% 30%, rgba(255,255,255,.9) 0%, rgba(200,240,255,.55) 60%, rgba(255,255,255,0) 70%); opacity:0; animation: bubbleRise 1.8s ease-in forwards; mix-blend-mode:screen; }
@keyframes bubbleRise { 0% { transform:translateY(0) scale(.4); opacity:0; } 15% { opacity:.9; } 70% { opacity:.85; } 100% { transform:translateY(-140px) scale(1); opacity:0; } }

#aboutme {
    margin-left: 1.5em;
}

.section {
    margin-top: 1rem;
}

.section h1 {
    font-family: 'title', sans-serif;
    font-weight: 50;
    margin-top: 1em;
    margin-bottom: 0.25em;
}

.section ul {
    list-style-type: disc;
    margin-left: 1.5em;
}

.section li {
    margin-bottom: 0.5em;
}

#title {
    font-size: 2.5em;
    padding: 1em;
    margin-bottom: 0.5em;
    text-align: center;
    font-family: 'title', Arial, sans-serif;
}

#hero {
  position: relative;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#mindmap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* raised above hearts */
}

/* Status Bar */
#status-bar {
  position: relative;
  margin-left: 1vw;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-family: 'Happy Monkey', cursive;
  font-size: 14px;
  color: #333;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

/* Top row wrapper holding status bar and ignite button */
#top-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

#ignite-container {
    display: flex;
    align-items: center;
    margin-left: auto; /* push container to the far right of top-row */
}

#status-bar span:first-child {
  font-weight: bold;
  color: #f185a0;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 10px;
}

#status-text-container {
  display: inline-block;
  vertical-align: middle;
  width: 200px;
  margin-left: 5px;
  overflow: hidden;
  position: relative;
  height: 1.4em;
}

#status-text {
  color: #ed88a1;
  font-weight: 500;
  border-bottom: 1px dashed rgba(0, 119, 204, 0.3);
  white-space: nowrap;
}

/* Make sure the text is always on a single line */
#status-bar, #status-text {
  white-space: nowrap !important;
  overflow: hidden !important;
}

/* Smaller screens */
@media (max-width: 768px) {
  #status-bar {
    max-width: 250px;
    padding: 8px 15px;
    font-size: 12px;
  }
}

/* Add a subtle hover effect */
#status-bar:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

#status-text:empty:before {
  content: attr(placeholder);
  color: #888;
  cursor: text;
}

#save-status {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

#save-status:hover {
  background: rgba(0, 0, 0, 0.05);
}

.links {
    width: 3vw;
    height: auto;
    transition: transform 0.3s;
    text-decoration: none; 
    outline: none; 
    border: none;
}
.links:hover {
    transform: scale(1.2);
}

.footerLinks {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}
.footerLinks:hover {
    color: #333;
}

.links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-right: .5rem;
}
.links img {
    display: block;
    width: 60%;
    height: auto;
}

.links:hover {
    transform: scale(1.2);
}

#about-me {
    font-size: 1.2em;
    line-height: 1.5;
}

#summary {
    font-size: 1.2em;
    line-height: 1.5;

}

#projects {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

#projects a {
    display: block;
    border: 1px solid #ddd;
    background-color: #f3a3b1;
    padding: 1em;
    border-radius: 5px;
    flex: 1 1 calc(33.333% - 2em);
    box-sizing: border-box;
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none;
    color: inherit;
}

#projects a:hover {
    background-color: #f3cad1;
    transform: scale(1.05);
}

#projects a h2 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
    font-family: 'title', sans-serif;
}

#projects a h2 span {
    font-size: 0.7em;
    font-family: 'Happy Monkey', sans-serif;
}

/*stack vertically on phone*/
@media (max-width: 768px) {
    #projects a {
        flex: 1 1 100%;
    }
}

#projects p {
    font-size: 0.9em;
    font-family: 'Happy Monkey', sans-serif;
}

body.blue-theme #projects a {
    border-color:#1d3b55;
    background:#13293d;
}
body.blue-theme #projects a:hover {
    background:#163850;
}

footer {
    text-align: left;
    margin-top: 3em;
    font-size: 0.9em;
    color: #666;
}
body.blue-theme footer {
    color:#9cc9e8;
}

#contact {
    font-size: 1.5em;
    margin-top: 2em;
    text-align: center;
}

/* Thin fire line + charred theme */
body.charred { background:#000; color:#eee; }
body.charred a { color:#66aaff; }

#Game {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f191a3;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
}
.button:hover {
    background-color: #ff4d6d;
}

/* game */
#bot {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 65px;
  height: 65px;
  background-color: #f191a3;
  color: white;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  z-index: 1000;
}

#bot:hover {
  background-color: #e2778b;
  transform: scale(1.1);
}

#bot-box {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 300px;
  height: 400px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  animation: popUp 0.3s ease;
}

#bot-header {
  background: #f58599;
  color: white;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: bold;
}

#bot-close {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

#chat-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
}

#chat-input-area {
  display: flex;
  padding: 10px;
  border-top: 1px solid #eee;
  background: white;
}

#chat-input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ddd;
  outline: none;
  font-size: 14px;
}

#chat-input:focus {
  border-color: #f58599;
}

#send-btn {
  margin-left: 8px;
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  background: #f58599;
  color: white;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
}

#send-btn:hover {
  background: #e56f86;
}

.message {
  max-width: 70%;
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 14px;
  word-wrap: break-word;
}

.user-message {
  align-self: flex-end;
  background: #f58599;
  color: white;
}

.bot-message {
  align-self: flex-start;
  background: #f2f2f2;
  color: #333;
}

#chat-messages::-webkit-scrollbar {
  width: 6px;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 3px;
}

@keyframes popUp {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}


/* Floating hearts background */
#hearts-bg { position:fixed; inset:0; overflow:hidden; z-index:0; pointer-events:none; }
.heart { position:absolute; width:var(--h,18px); height:var(--h,18px); background:#ff5d92; transform:rotate(-45deg); transform-origin:center; animation: floatUp linear forwards; opacity:.75; filter:drop-shadow(0 0 4px rgba(255,90,150,.55)); will-change:transform,opacity,top,left; }
.heart:before, .heart:after { content:""; position:absolute; width:var(--h,18px); height:var(--h,18px); background:#ff5d92; border-radius:50%; }
.heart:before { top:calc(-0.5 * var(--h,18px)); left:0; }
.heart:after { left:calc(0.5 * var(--h,18px)); top:0; }
body.blue-theme .heart { background:#4aa8ff; filter:drop-shadow(0 0 4px rgba(90,170,255,.55)); }
body.blue-theme .heart:before, body.blue-theme .heart:after { background:#4aa8ff; }
@keyframes floatUp { 0% { transform:translateY(0) rotate(-45deg) scale(var(--s,1)); opacity:0; } 10% { opacity:.7; } 90% { opacity:.65; } 100% { transform:translateY(-110vh) rotate(-45deg) scale(var(--s,1)); opacity:0; } }