* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: sans-serif;
    background-color: rgb(0, 0, 0);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Allow scrolling */
    align-items: center;
    position: relative;
    cursor: url(https://cur.cursors-4u.net/games/gam-11/gam1090.png), auto !important;
}

h1 {
    width: 100%;
    height: 100%;
    font-family: Oi; 
    font-size: 100px;
    color: rgba(255, 255, 255, 0);
    text-align: center;
    background-image: url(/img/glitch.gif);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    -webkit-text-stroke-width: 0.1px;
    -webkit-text-stroke-color: rgb(255, 255, 255);
}

.about-me {
    font-size: 1.5em;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #fff;
    margin-top: 20px;
    animation: fadeInUp 1.5s ease-in-out forwards;
    animation-delay: 0.5s;
}

/* Center des-merch-wrapper horizontally and vertically */
.des-merch-wrapper {
    width: 500px;
    height: 500px;
    margin: auto;
    position: relative;
    top: 25vh;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.des-merch-wrapper svg {
    width: 100%;
    height: 100%;
    display: block;
}

.des-merch-wrapper path {
    stroke-dasharray: 5000;
    stroke-dashoffset: 5000;
    animation: draw s linear forwards;
    stroke: url(#animatedGradient);
    fill: none;
    stroke-width: 5;
    stroke-linejoin: round;
    stroke-linecap: round;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.slideSection {
  max-height: 0;
  font-size: 1.2em;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 20px;
  background-color: #4162f3;
  margin-bottom: 10px;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease, padding 0.3s ease;
  -webkit-text-fill-color: #ffffff;
}

.slideSection.open {
  max-height: 500px; /* adjust to fit content */
  opacity: 1;
  padding: 20px;
}

.toggleBtn {
  flex: 1;             /* Buttons share equal width */
  max-width: 140px;    /* Limit max width */
  background-color: #111111;
  color: #fff;
  border: 2px solid #4162f3;
  padding: 6px 12px;   /* Smaller padding */
  font-size: 14px;     /* Smaller font */
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;            /* Smaller gap between icon and text */
  transition: all 0.3s ease;
}

.toggleBtn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.toggleBtn.active svg {
  transform: rotate(180deg);
}

.buttons-wrapper {
  display: flex;
  justify-content: center; /* center horizontally */
  gap: 20px; /* space between buttons */
  margin-bottom: 20px;
}

.sections-wrapper {
  text-align: left;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.miniBtn {
  background-color: #222;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #555;
  border-radius: 6px;
  font-size: 14px;
  transition: background 0.3s ease;
}

.miniBtn:hover {
  background-color: #444;
}


footer {
    margin-top: auto;
    color: #4162f3;
    padding: 10px;
    position: relative;
    z-index: 1; /* Keep footer on top */
}

.heart {
    color: #e25555;
    animation: pulse 1.5s infinite ease-in-out;
    display: inline-block;
        }

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em; /* Smaller title on mobile */
    }
    .about-me {
        font-size: 1em; /* Smaller text on mobile */
    }
    .profile-picture {
        width: 150px; /* Smaller profile picture on mobile */
        height: 150px;
    }
}
.twitch-container {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.twitch-container iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

/* Default: show full logo, hide short version */
.logo-short {
    display: none;
}
.logo-full {
    display: inline;
}

/* Stack buttons, show short logo, and shrink buttons on mobile */
@media (max-width: 768px) {
    .logo-full {
        display: none;
    }
    .logo-short {
        display: inline;
    }

    .buttons-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 12px; /* spacing between buttons */
        width: 100%;
        padding: 0 10px; /* padding so buttons don’t touch edges */
        box-sizing: border-box;
    }

    .toggleBtn {
        width: 100%;        /* full width within wrapper */
        max-width: 280px;   /* max width cap */
        padding: 6px 10px;  /* padding */
        font-size: 13px;    /* font size */
        white-space: normal; /* allow text wrapping */
        word-wrap: break-word;
        box-sizing: border-box;
    }
}
@media (max-width: 768px) {
  .sections-wrapper {
    padding: 0 20px; /* Adds side spacing on mobile */
    text-align: center;
  }

  .slideSection p {
    max-width: 100%;
    font-size: 0.95em;
    line-height: 1.5em;
    text-align: center;
    margin: 0 auto;
  }
}