:root{
    --bg-dark: #181a1b;
    --bg-purp: #4f407b;
    --bg-light: #fffef1;
    --red: #db2020;
}

body{
    font-size: 16px;
    padding: 0;
    margin: 0;
    background-color: var(--bg-dark);
    background-image: url("https://neocities.org/img/heartcat.png");
    background-size: 30px;
    backdrop-filter: blur(1px);
    font-family: 'Courier New', Courier, monospace;
}

h1, h2, h3, h4, h5{
  font-family: "Special Elite", system-ui;
  font-weight: 400;
  font-style: normal;
}

h1:hover,
h2:hover,
h3:hover:not(#my-site *),
h4:hover,
h5:hover,
h6:hover,
p:hover,
li:hover,
dt:hover,
dd:hover,
blockquote:hover,
q:hover,
sub:hover {
  background-color: var(--bg-purp) !important;
  color: var(--bg-light);
}

a{
  text-decoration: none;
}

.grid{
    max-width: 1400px;
    min-width: 1200px;
    margin: auto;
    margin-top: 0;
    margin-bottom: 0;
    display: grid;
    height: 100vh;
    min-height: 900px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 470px);
}

.grid-item{
    border: 3px solid var(--bg-dark);
    padding: 2rem;
    background-color: var(--bg-light);
}

.grid-item img{
    max-width: 100%;
}

h2{
    margin-top: 0;
}

.red-x {
  position: absolute;
  font-size: 18px;
  color: rgba(234, 51, 74, 1); /* Initial red color */
  opacity: 1;
  transform: translate(0, 0) rotate(0deg);
  pointer-events: none;
  z-index: 1000;
}

/* Subscriptions */
#subscriptions{
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    position: relative;
    background-color: var(--bg-dark);
    color: var(--bg-light);
}
#subscriptions #piracycool{
  max-width: 100px;
  position: absolute;
  top: 440px;
  right: 20px;
  transform: rotate(10deg);
  z-index: 99;
}
#subscriptions .container{
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 1rem;

}
#subscriptions h3{
  position: absolute;
  top: 50%;
  transform: translate(0px, -50px) rotate(-5deg);
  z-index: 9;
  background-color: var(--bg-dark);
}

#subscriptions .marquee-container {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  width: 396px; /* Your container width */
  font-size: 0; /* Eliminate whitespace between inline elements */
  margin: 0.5rem;
}
#subscriptions .marquee img {
  height: 300px;
  max-width: none;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

#subscriptions .marquee-track {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  padding: 0;
}

#subscriptions .marquee {
  display: inline-block;
  margin: 0;
}


.sub-option::before,
.sub-option::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 4px;
    background-color: var(--red);
    opacity: 0; /* Start invisible */
    transform-origin: center center;

    /* Define COMMON animation properties here */
    animation-name: crossOutSimple; /* Or crossOut if you used the scaling one */
    animation-duration: 8s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    /* Default delay is 0s */
    animation-delay: 0s;
}

/* Rotate the lines */
.sub-option::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.sub-option::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.sub-option:nth-child(1)::before,
.sub-option:nth-child(1)::after {
    animation-delay: 0.5s; /* Start slightly later */
}

.sub-option:nth-child(2)::before,
.sub-option:nth-child(2)::after {
    animation-delay: 1.5s; /* Start later */
}

.sub-option:nth-child(3)::before,
.sub-option:nth-child(3)::after {
    animation-delay: 2.5s; /* Start even later */
}

/* Option 4: Delay for both ::before and ::after */
.sub-option:nth-child(4)::before,
.sub-option:nth-child(4)::after {
    animation-delay: 3.5s; /* Start last */
}

@keyframes crossOutSimple {
    0% { opacity: 0; }
    10% {opacity: 0;}
    50% { opacity: 1; }
    90% {opacity: 0;}
    100% { opacity: 0; }
}

#subscription-options {
    width: 100%;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    padding: 1rem;
    box-sizing: border-box;
}

/* Individual Subscription Option */
.sub-option {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid #eee;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 150px;
    background-color: rgba(255, 254, 241, 0.7);
    color: var(--bg-purp);
}

.sub-option img {
    max-width: 90px;
    max-height: 70px;
    margin-bottom: 0.5rem;
}

.sub-option p {
    margin: 0;
    font-size: 1.1em;
}

    #pstream{
        display: flex;
        gap: 4rem;
        background-color: var(--bg-dark);
        border-radius: 20px;
        margin: 0.5rem;
        border: solid 3px #8288fe;
    }

    #pstream-logo{
        color: #8288fe;
        transform: translate(3rem, 3rem) scale(6);
        pointer-events: none;
        padding-left: 1rem;
        padding-right: 1.1rem;
    }

    #pstream ul{
      font-size: 22px;
      list-style: none;
      padding-left: 1rem;
      color: var(--bg-light);
    }
    .purple-heart {
      position: absolute;
      font-size: 16px;
      opacity: 1;
      transform: translate(0, 0) rotate(0deg) scale(1);
      pointer-events: none;
      z-index: 1000;
      color: #8288fe; /* Use the CSS variable for color */
    }
    #couchpotato{
      display: block;
      position: absolute;
      bottom: 0;
      right: 0;
      padding: 0.5rem;
      width: 180px;
      color: var(--bg-dark);
      background-color: #dcd869;
      border: solid 3px #929045;
    }

/* meta */
    #meta{
        position: relative; /* Crucial for absolute positioning of children */
        overflow: hidden; /* Hide logos before they start falling */
        background: rgb(236,130,254);
        background: linear-gradient(180deg, rgba(236,130,254,1) 0%, rgba(246,72,99,1) 50%, rgba(115,0,255,1) 100%);
    }

    .trash-can {
        position: absolute;
        bottom: 5px; /* Small gap from the very bottom */
        right: 5%;
        width: 60px; /* Adjust size as needed */
        height: auto;
        z-index: 1; /* Ensure trash can is visually above logos if overlap needed */
      }
      
      .logo {
        position: absolute;
        width: 40px; /* Adjust logo size */
        height: auto;
        opacity: 0; /* Start invisible */
        /* Initial position above the container */
        transform: translateY(-100px);
      
        /* Animation properties */
        animation-name: fallIntoTrash;
        animation-duration: 2.1s; /* Total time for one fall cycle */
        animation-timing-function: cubic-bezier(.32,.05,.72,.82);
        animation-iteration-count: infinite; /* Repeat forever */
      }
      
      /* --- Positioning and Staggering Delays --- */
      
      .logo.instagram {
        right: 35%; 
        animation-delay: 0s; /* Starts immediately */
      }
      
      .logo.threads {
        right: 30%; 
        animation-delay: 0.75s; /* Starts slightly later */
      }
      
      .logo.facebook {
        right: 18%; 
        animation-delay: 1.5s; /* Starts even later */
      }
      
      
      /* --- Keyframes for the Falling Animation --- */
      
      @keyframes fallIntoTrash {
        0% {
            /* Start above the container and invisible */
            top: -60px; /* Initial position */
            opacity: 0;
            transform: rotate(0deg); /* Initial rotation */
          }
          20% {
            /* Become visible near the top */
            opacity: 1;
            /* top value implicitly changes based on timing function */
             transform: rotate(0deg);
          }
          50%{
            right: 7%;
            transform: rotate(15deg);
          }
          99% {
            /* Fall to just above the trash can, stay upright */
            /* Adjust '310px' based on calculation: */
            /* container_height - trash_bottom_offset - trash_height - logo_height - small_gap */
            /* Example: 400px - 5px - 80px (estimated trash) - 40px - 5px = 270px */
            /* Let's aim slightly higher than the final landing for the 90% mark */
            opacity: 1;
          }
          100% {
            /* Land 'in' the trash can area, tilt slightly, and disappear */
            /* Adjust '355px' based on calculation: */
            /* container_height - trash_bottom_offset - logo_height */
            /* Example: 400px - 5px - 40px = 355px */
            top: 85%; /* Final vertical position */
            opacity: 0; /* Disappear */
            
            right: 7%;
            transform: rotate(-45deg); /* Tilt using transform */
          }
      }
      #beeper{
        position: relative;
        display: flex;
        padding: 0;
        align-items: center;
        border-radius: 20px;
        padding-right: 1rem;
        background: rgb(72,95,246);
        background: linear-gradient(90deg, rgba(130,136,254,1) 0%, rgba(72,95,246,1) 50%, rgba(0,212,255,1) 100%);
        color: #FFF;
      }

      z-top{
        z-index: 9999999;
      }

      #beeper p{
        padding: 0;
        margin: 0;
      }
      #meta q{
        display: block;
        text-align: center;
        width: 100%;
        border-left: 4px solid var(--red);
        background-color: #d27979;
        color: #FFF;
      }
      #beeper img{
        width: 90px;
        height: 90px;
        object-fit: cover;
        border-radius: 20px;
        margin-right: 1rem;
      }
      #meta-nth-last{
        width: 70%;
      }

      #beeper-button{
        display: block;
        padding: 0.5rem;
        width: 100px;
        margin: 1rem;
        margin-left: 3rem;
        transform: rotate(5deg);
      }

/* twitter */
      #twitter{
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        -webkit-box-shadow: inset 0px 0px 71px 0px rgba(0,0,0,0.75);
        -moz-box-shadow: inset 0px 0px 71px 0px rgba(0,0,0,0.75);
        box-shadow: inset 0px 0px 71px 0px rgba(0,0,0,0.75);
        background: rgb(255,255,255);
        background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(254,223,130,1) 17%, rgba(235,139,55,1) 60%, rgba(255,55,55,1) 100%);
      }
      #elon-salute-img{
        position: absolute;
        right: -120px;
        bottom: 0;
        width: 600px;
        transform: rotate(-25deg);
        pointer-events: none;
      }
      #dead-twitter-img{
        position: absolute;
        right: -30px;
        top: -20px;
        width: 200px;
        transform: rotate(15deg);
        pointer-events: none;
      }
      #delete-twitter{
        display: block;
        margin: auto;
        pointer-events: all;
      }
      #frame-4:hover #frame-4-bg{
        fill: #dcd869 !important;
      }
      svg text{
        cursor: default;
      }
      #twitter h2{
        margin-bottom: 0;
      }
      #twitter sub{
        margin: 0;
      }
      #twitter sub a{
        text-decoration: underline;
        color: #0168d5;
      }
      #twitter sub a:hover{
        background-color: #fff;
      }

      #flames{
        mix-blend-mode: lighten;
        min-width: 700px;
        position: absolute;
        right: -4px;
        top: -4px;
        opacity: 0;
        animation: flames-flicker 3s infinite;
        pointer-events: none;
      }
      @keyframes flames-flicker {
        0%{
          opacity: 0;
        }
        50%{
          opacity: 1;
        }
        100%{
          opacity: 0;
        }
      }

      .sparkle {
        position: absolute;
        font-size: 16px;
        color: yellow;
        opacity: 1;
        transform: scale(1);
        pointer-events: none;
        z-index: 1000;
      }

      .blue-sparkle {
        position: absolute;
        font-size: 12px;
        opacity: 1;
        transform: translate(0, 0);
        pointer-events: none;
        z-index: 1000;
      }

      #twitter p{
        width: 250px;
        z-index: 99;
      }

/* Neocities */
#neocities{
    position: relative;
    background-color: #f49b31;
    overflow: hidden;
}
      #neocities-cat{
        width: 50px;
        position: absolute;
        display: block;
        bottom: 0;
        right: 0;
      }
      #neocities-Logo{
        width: 200px;
        position: absolute;
        top: 5px;
        right: 5px;
        transform: rotate(10deg);
      }
    .statement-citation{
        padding-left: 1rem;
        margin-top: 0;
        &::before{
            content:"\2013  ";
        }
    }
    #more-info{
      position: absolute;
      width: 140px;
      display: block;
      padding: 0.5rem;
      text-align: center;
      transform: rotate(-5deg) translate(450px, 0px);
    }

    #neocities .marquee-container {
      overflow: hidden;
      width: 100%;
      position: relative;
      max-height: 180px;
    }
    
    #neocities .marquee {
      display: flex;
      width: max-content;
      animation: marquee-scroll 20s linear infinite;
    }
    
    #neocities .marquee a {
      display: block;
      margin: 0 0.5rem;
    }
    
    #neocities .marquee img {
      height: 180px;
      width: auto;
      display: block;
    }

    #neocities .marquee:hover{
      animation-play-state: paused;
    }
    
    /* Animation Keyframes */
    @keyframes marquee-scroll {
      0% {
        transform: translateX(0%);
      }
      100% {
        transform: translateX(-50%);
      }
    }
    
    

    #delete-twitter-gif{
      position: absolute;
      top: 30px;
      left: 400px;
      transform: rotate(5deg);
    }

    #my-site{
      display: flex;
      position: absolute;
      background-color: var(--bg-light);
      height: 150px;
      width: 150px;
      right: 20px;
      bottom: 150px;
      padding: 1rem;
      flex-direction: column;
      justify-content: flex-end;
      transform: rotate(80deg);
      transform-origin: bottom right;
      transition: transform 150ms ease;
      cursor: pointer;
    }
    #my-site h3{
      margin: 0;
      text-decoration: underline;
    }
    #my-site:hover{
      transform: translate(-40px, 7px) rotate(80deg);
    }



.flashy-button{
  color: var(--bg-dark);
  background-color: #dcd869;
  border: solid 3px #929045;
  animation: blinkyButton 1s infinite;
}
.flashy-button:hover{
  animation: blinkyButtonHover 400ms forwards;
}
@keyframes blinkyButton {
  0%{
    color: var(--bg-dark);
    background-color: #dcd869;
    border: solid 3px #929045;
  }
  50%{
    color: var(--bg-light);
    background-color: #929045;
    border: solid 3px #dcd869;
  }
  0%{
    color: var(--bg-dark);
    background-color: #dcd869;
    border: solid 3px #929045;
  }
}
@keyframes blinkyButtonHover{
  to{
    color: var(--bg-light);
    background-color: #929045;
    border: solid 3px #dcd869;
  }
}

.sub-option:hover{
    animation: shake-rotate 30ms infinite;
}


@keyframes shake-rotate {
    0% { transform: translateX(0) rotate(0deg); }
    10% { transform: translateX(-5px) rotate(-5deg); }
    30% { transform: translateX(5px) rotate(5deg); }
    50% { transform: translateX(-5px) rotate(-3deg); }
    70% { transform: translateX(3px) rotate(3deg); }
    90% { transform: translateX(-2px) rotate(-1deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

/* neocities */
      #neocities{
        grid-column: span 2;
      }