* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size:0.98rem;
  /* overflow: hidden; */
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden; /* No scrollbars */
  width: 100%;
  height: 100%;
  min-height: 100vh;
}


#home-body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-image: url("/images/background.webp");
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* LEFT */
#home-left {
  width: 20%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
#plant-img {
  width: 100%;
  height: 30%;
}

/* MIDDLE */
#carpet {
  width: 60%;
  height: 80%;
  background-image: url("/images/carpet.webp");
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* TABLE */
#table {
  height: 70%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
#table-img {
  height: 60%;
  position: absolute;
  top: 20%;
  z-index: 1;
}
#table-contents-parent {
  height: 80%;
  /* height: auto; */
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
  z-index: 2;
}

/* BUTTONS (replace links) */
.table-contents-child {
  height: 60%;
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  transition: transform 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.table-contents-child:hover {
  transform: scale(1.3);
}

#contact-info-btn, #portfolio-btn {
  margin-top: 5rem;
}
#contact-info-btn {
  margin-top: 4rem;
  rotate: -45deg;
  padding-right: 2rem;
}

#portfolio-btn {
    margin-right: 1.6rem;
}
#portfolio-btn > div {
  rotate: 30deg;
  padding-right: 4rem;
}
#music-btn {
  display: flex;
  justify-content: flex-start;
  padding-bottom: 5rem;
}
#contact-img {
  height: 35%;
}
#cover-img {
  height: 80%;
  padding-top: 2rem;
}
#portfolio-img {
  height: 60%;
  rotate: 10deg;
}
#computer-img {
  height: 30%;
}
#chair {
  height: 30%;
  z-index: 0;
}
#chair-img {
  height: 100%;
}

/* RIGHT */
#home-right {
  width: 20%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#doggybed-img, #dog-img {
  height: 40%;
  width: 80%;
}
#dog-img {
    cursor: pointer; /* pointer on hover */
  transition: transform 2s linear; /* smooth movement + rotation */
  z-index: 5;
  rotate: 60deg;
}
#dogtoy-img {
  position: relative; /* keep in flow */
  z-index: 4;  
  left: 65%;
  top: 70%;
  width: 30%;
}



/* Slow dancing animation (~80 BPM → 0.75s per beat) */
@keyframes slow-dance {
  0% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(2deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(5px) rotate(-2deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Apply dancing only when playing */
.animated-image.dancing {
  animation: slow-dance 0.75s ease-in-out infinite;
}




/* EXPANDING IMAGE OVERLAY */
#expand-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#expand-image {
  width: 10%;
  height: auto;
  /* border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5); */
  transition: transform 1s ease, width 1s ease, opacity 1s ease;
  transform: scale(0.5);
  opacity: 0;
}

#expand-overlay.active #expand-image {
  width: 60%;
  transform: scale(1);
  opacity: 1;
}

/* Larger expansion just for About Me */
#expand-overlay.active #expand-image.large-expand {
  width: 90%; /* expand more than normal (default 70%) */
  transform: scale(1.1);
}


/* RESET BUTTON LOOK */
button {
  all: unset;
}

/* TEXT */
ul {
  list-style: none;
  font-family: sans-serif;
}

.title {
    text-decoration: underline;
    z-index: 1000;
}

/* Close button in overlay */
#close-overlay {
  position: absolute;
  top: 2rem;
  right: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;

  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;

  z-index: 10000;
  transition: transform 0.2s ease, background 0.2s ease;
  line-height: 1; /* Prevent vertical misalignment */
  padding-bottom: 1px; /* Subtle optical balance */
}

#close-overlay:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.15);
}

/* Next button for portfolio */
#next-btn {
  position: absolute;
  
}

/* Portfolio slideshow arrows */
/* Portfolio arrows (matching your design aesthetic) */
#portfolio-next,
#portfolio-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10001;
  line-height: 1;
  transition: color 0.25s ease, transform 0.25s ease;
}

#portfolio-next:hover,
#portfolio-prev:hover {
  color: #fff;
  transform: translateY(-50%) scale(1.2);
}

#portfolio-next {
  right: 2rem;
}

#portfolio-prev {
  left: 2rem;
}


/* ===== DARK WMP-STYLE MUSIC PLAYER ===== */
#music-player {
  position: fixed;
  bottom: -80px;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(180deg, #1a1a1a 0%, #000 100%);
  border-top: 2px solid #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.6);
  transition: bottom 0.35s ease;
  z-index: 10000;
  font-family: "Segoe UI", sans-serif;
  color: #e0e0e0;
}

#music-player.show {
  bottom: 0;
}

/* Left section */
#music-player .volume-control {
  flex: 0 0 auto;
}

/* Center controls (absolutely centered across full width) */
#music-player .controls {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Right section */
#music-player .now-playing {
  flex: 0 0 auto;
  text-align: right;
}

#music-player.show { bottom: 0; }

#music-player .controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 auto;
}

/* Button base: glossy blue style */
#music-player button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(20, 20, 20, 0.8);
  background: radial-gradient(circle at 30% 30%, #4b6fff, #01092c);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.2), 0 3px 8px rgba(0,0,0,0.6);
  color: #fff;
  font-size: 18px;
  display: inline-block;
  cursor: pointer;
  position: relative;
  padding: 0;
  outline: none;
  transition: all 0.15s ease-in-out;
}

/* Larger play button */
#play-pause-btn {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle at 30% 30%, #5d84ff, #0f2da3);
  border: 1px solid rgba(0, 0, 0, 0.9);
  box-shadow: inset 0 2px 3px rgba(255,255,255,0.3), 0 4px 10px rgba(0,0,0,0.7);
}

/* Hover and active states */
#music-player button:hover {
  transform: translateY(-2px);
  background: radial-gradient(circle at 30% 30%, #6e8cff, #1b37b6);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.3), 0 5px 12px rgba(0,0,0,0.7);
}
#music-player button:active {
  transform: translateY(0);
  background: radial-gradient(circle at 30% 30%, #3854c0, #0f2da3);
  box-shadow: inset 0 3px 5px rgba(0,0,0,0.7);
}

/* Flex centering for icons */
#music-player button {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Icon pseudo-elements */
#prev-btn::before { content: "⏮"; font-size: 20px; }
#play-pause-btn::before { content: "▶"; font-size: 26px; }
#play-pause-btn.playing::before { content: "⏸"; transform: none; }
#next-btn::before { content: "⏭"; font-size: 20px; }

/* Volume slider */
.volume-control input[type="range"] {
  width: 120px;
  accent-color: #0f2da3;
}

/* Now playing text */
.now-playing {
  text-align: right;
  font-size: 0.9rem;
  color: #ccc;
  font-weight: 600;
  min-width: 240px;
}

/* smaller screens: remove title, keep buttons centered */
@media (max-width: 1063px) {
  /* Hide the entire now-playing section */
  .now-playing {
    display: none;
  }

  #music-player { 
    padding: 0 0.8rem; 
  }

  #music-player .controls { 
    gap: 0.4rem; 
    justify-content: center; /* ensure buttons stay centered */
  }

  #prev-btn, #next-btn { 
    width: 42px; 
    height: 42px; 
  }

  #play-pause-btn { 
    width: 54px; 
    height: 54px; 
  }
}

/* further adjustments for really small screens */
@media (max-width: 630px) {
  #music-player .controls {
    gap: 0.3rem;
  }
  #prev-btn, #next-btn {
    width: 38px;
    height: 38px;
  }
  #play-pause-btn {
    width: 48px;
    height: 48px;
  }
  #music-player {
    padding: 0.3rem;
  }
}






/* Smaller appearance for certain portfolio images */
/* #expand-image.small-expand {
  width: 55% !important;
} */

/* Responsive arrow scaling */
@media (max-width: 600px) {
  #portfolio-next,
  #portfolio-prev {
    font-size: 1.8rem;
    width: 2rem;
    height: 2rem;
    right: 1rem;
    left: 1rem;
  }
}



/* RESPONSIVE DESIGN FIXES */
@media (max-height: 700px) {
  * {
    font-size: 0.88rem;
  }
  .table-contents-child {
    width: 25%;
    height: 50%;
  }
}
@media (max-height: 756px) {
  * {
    font-size: 0.92rem;
  }
  .table-contents-child {
    width: 28%;
    height: 48%;
  }
}

@media (max-width: 940px) {
  .table-contents-child {
    width: 28%;
    height: 48%;
  }
}

@media (max-width: 840px) {
    .table-contents-child {
    width: 28%;
    height: 48%;
  }
}

@media (max-width: 700px) {
  * {
    font-size: 0.82rem;
  }  
  #home-left, #home-right {
    width: 15%;
  }
  #carpet {
    width: 85%;
  }
  #chair-img {
    height: 85%;
  }
  #plant-img {
    height: 15%;
  }
  #doggybed-img, #dog-img {
    height: 20%;
    width: 120%;
  }
}
@media (max-width: 550px) {
  * {
    font-size: 0.75rem;
  }
  #home-left, #home-right {
    width: 20%;
  }
  #carpet {
    width: 80%;
    height: 60%;
  }
  #table {
    width: 100%;
  }
  #table-img {
    height: 40%;
    top: 30%;
  }
  #table-contents-parent {
    height: 70%;
  }
  #cover-img {
    height: 100%;
  }
  #plant-img {
    height: 14%;
  }
  #doggybed-img, #dog-img {
    height: 20%;
    width: 100%;
  }
}



@media (max-width: 472px) {
  * {
    font-size: 0.65rem;
  }
  #plant-img {
    height: 12%;
  }
  #doggybed-img, #dog-img {
    height: 15%;
  }
}

@media (max-width: 440px) {
  * {
    font-size: 0.60rem;
  }
  #contact-info-btn {
    padding-right: 1.5rem;
  }
  #contact-img {
    height: 33%;
  }
  #portfolio-img {
    height: 55%;
  }

}

@media (max-width: 410px) {
  #table-img {
    height: 35%;
    top: 35%;
  } 
  #plant-img {
    height: 10%;
  }
  #doggybed-img, #dog-img {
    height: 12%;
  } 
}


@media (max-width: 350px) {
    /* #table-img {
    height: 32%;
    top: 32%;
  }  */
  #plant-img {
    height: 8%;
  }
  #doggybed-img, #dog-img {
    height: 10%;
  } 
}

@media (max-width: 350px) {
  * {
    font-size: 0.5rem;
  }
  #carpet {
    height: 50%;
    width: 90%;
  }
  #table {
    width: 80%;
  }
  #table-img {
    height: 30%;
    top: 38%;
  }
  #table-contents-parent {
    height: 70%;
    width: 80%;
  }
  #table-contents-child {
    justify-content: center;
  }
  #portfolio-btn {
    margin-right: 0.5rem;
  }
}
@media(max-width: 315px) {
  * {
    font-size: 0.66rem;
  }
  #carpet {
    height: 60%;
    width: 90%;
  }
  #table {
    width: 80%;
  }
  #table-img {
    height: 30%;
    top: 38%;
  }
  #table-contents-parent {
    height: 80%;
    width: 110%;
  }
  #table-contents-child {
    height: 15%;
    justify-content: center;
    width: 25%;
  }
  #cover-img {
    height: 60%;
  }
  #contact-img {
    height: 30%;
  }
  #portfolio-btn {
    margin-right: 0;
  }
}
