
/* Box sizing rules */
:root {
    --background-color: #000;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  /* Remove default margin */
  * {
    margin: 0;
    padding: 0;
    font: inherit;
  }
  
  /* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
  ul[role='list'],
  ol[role='list'] {
    list-style: none;
  }
  
  /* Set core body defaults */
  body {
    height: 100vh;
    height: 100dvh;
    line-height: 1.5;
    background-color: var(--background-color);
    position: relative;
    color: white;
    font-family: helvetica, sans-serif;
    /* background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url(./media/bg.jpg);
    background-size: cover;
    background-position: center;*/
    cursor: url(./baldi.cur), auto;
  
    background-image: url(./media/Weridbaldi.webp);
  }

  html, body {
    overflow: hidden; /* Prevent scrolling */
    touch-action: none; /* Stops touch-based interactions that cause jumps */
}

  
  header {
    position: absolute;
    z-index: auto;
    top: 0;
    left: 0;
  
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    z-index: 99;
  }
  
  .header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    color: white;
  }
  
  .header-logo {
    width: 40px;
  }

  .contract {
    color: black;
  }
  
  
  .grid {
    position: absolute;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 10px;
  
    width: 100%;
  }
  
  #w_button,
  #a_button,
  #s_button,
  #d_button {
    width: 100%;
    cursor: url(./baldi_pointer.cur), pointer !important;
  }

  /* Joystick Styles */
  .joystick-container {
    display: none;
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
  }

  .joystick-base {
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }

  .joystick-stick {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    touch-action: none;
    transition: background 0.1s;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  }

  .joystick-stick:active {
    background: rgba(255, 255, 255, 0.9);
  }

  .show-mobile {
    display: none;
  }

  /* Mobile Notice Modal */
  .mobile-notice-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
  }

  .mobile-notice-overlay.show {
    display: flex;
  }

  .mobile-notice-content {
    background: #1a1a1a;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px 40px;
    text-align: center;
    max-width: 85%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

  .mobile-notice-content p {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
  }

  .mobile-notice-btn {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
  }

  .mobile-notice-btn:hover,
  .mobile-notice-btn:active {
    background: white;
  }
  
  .contract {
    opacity: 0.8;
    /* margin-top: -10px; */
    font-size: 1rem;
    padding: -22px;
    font-family: monospace;
    word-break: break-all;
    max-width: 90vw;
    /* margin-top: -10px; */
    width: 212px;
    position: absolute;
    top: -70px;
    z-index: 99;
    transform: translateZ(11px);
    max-width: 90vw;
    text-align: center;
  
    pointer-events: all;
  }
  
  /*
  a {
    cursor: url(./cursor2.cur), auto;
  }*/
  
  h1 {
    font-weight: 900;
    font-size: 5rem;
    color: white;
    letter-spacing: -2px;
    margin-bottom: 10px;
  }
  
  /* A elements that don't have a class get default styles */
  a:not([class]) {
    text-decoration-skip-ink: auto;
  }
  
  /* Make images easier to work with */
  img,
  picture {
    max-width: 100%;
    display: block;
  }
  
  /* Inherit fonts for inputs and buttons */
  input,
  button,
  textarea,
  select {
    font: inherit;
  }
  
  .top_right {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .bottom_right {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .bottom_left {
    position: absolute;
    bottom: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .radar {
    position: absolute;
    bottom: 0;
    width: 100%;
  }
  
  .wasd {
    width: 300px;
  }
  
  .tv {
    width: 300px;
  }

  .ca {
    display: flex;
    position: absolute;
    top:8px;
    left: 50%;
    background-color: rgba(255,255,255,0.82);
    color: black;
    transform: translate(-50%, 0);
    padding: 6px;
    border-radius: 4px;
    z-index:1500;
  }

  .ca:hover {
    background-color: rgba(255,255,255,0.9);
  }

  #copyBtn {
    
  }
  
  .hero-links {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items:center;
    gap: 20px;
    top: 12px;
  }
  
  .hero-icon {
    width: 42px;
    filter: drop-shadow(2px 2px 3px black);
  }
  
  .hero-stuff p {
    margin-top: 10px;
    margin-bottom: 10px;
  }
  
  .smaller {
    width: 36px;
  }
  
  .column {
    width: 100%;
    width: 33vw;
    width: 33vw;
    display: flex;
    flex-direction: column;
  }
  
  .column img {
    width: 100%;
  }
  
  .column:nth-child(even) {
    margin-top: -50px;
  
    /*animation: down-animation 15s infinite;
    animation-direction: alternate;
  */
  }
  
  
  video {
    object-fit: cover;
    object-position: center;
  }
  
  @keyframes down-animation {
    0% {
      transform: translateY(-0px);
  
    }
  
    100% {
      transform: translateY(-280px);
    }
  
  
  }
  
  .column:nth-child(odd) {
    animation: up-animation 10s infinite;
    animation-direction: alternate;
  }
  
  @keyframes up-animation {
    0% {
      transform: translateY(0px);
  
    }
  
    100% {
      transform: translateY(-220px);
    }
  
  }
  
  .dialog_box {
    opacity: 0;
    position: absolute;
    z-index: 99;
    top: 54px;
    background: #0000007d;
    color: #06d307;
    font-size: 2.5rem;
    font-family: helvetica;
    text-align: center;
    margin: 20px;
    max-width: 20ch;
    line-height: 42px;
  }
  
  .background {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.65;
    justify-content: space-between;
  }
  
  
  
  .set {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    /*overflow: clip;*/
  }
  
  .set img {
    width: 50%;
  }
  
  .set div {
    position: absolute;
    display: block;
    overflow: clip;
  }
  
  .set div:nth-child(1) {
    left: 20%;
    animation: animate 15s linear infinite;
    animation-delay: -7s;
  }
  
  .set div:nth-child(2) {
    left: 50%;
    animation: animate 20s linear infinite;
    animation-delay: -5s;
  }
  
  .set div:nth-child(3) {
    left: 70%;
    animation: animate 20s linear infinite;
    animation-delay: 0s;
  }
  
  .set div:nth-child(4) {
    left: 0%;
    animation: animate 15s linear infinite;
    animation-delay: -5s;
  }
  
  .set div:nth-child(5) {
    left: 85%;
    animation: animate 18s linear infinite;
    animation-delay: -10s;
  }
  
  .set div:nth-child(6) {
    left: 20%;
    animation: animate 15s linear infinite;
    animation-delay: -7s;
  }
  
  .set div:nth-child(7) {
    left: 0%;
    animation: animate 12s linear infinite;
  
  }
  
  .set div:nth-child(8) {
    left: 60%;
    animation: animate 15s linear infinite;
  }
  
  .set2 {
    transform: scale(2) rotateY(180deg);
    filter: blur(2px);
  }
  
  .set3 {
    transform: scale(0.8) rotateX(180deg);
    filter: blur(4px);
  }
  
  @keyframes animate {
    0% {
      opacity: 0;
      top: -10%;
      transform: translateX(20px) rotate(0deg);
    }
  
    10% {
      opacity: 1;
    }
  
    20% {
      transform: translateX(-20px) rotate(45deg);
    }
  
    40% {
      transform: translateX(-20px) rotate(90deg);
    }
  
    60% {
      transform: translateX(20px) rotate(180deg);
    }
  
    80% {
      transform: translateX(-20px) rotate(180deg);
    }
  
    100% {
      top: 110%;
      transform: translateX(-20px) rotate(225deg);
    }
  }
  
  .mouse {
    max-height: 80px;
    width: 80px;
  }
  
  #loader {
    image-rendering: pixelated;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 999;
  
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
  }
  
  .loader-img {
    width: 320px;
    margin-top: 200px;
    margin-left: -60px;
  }
  
  .eyes {
    position: absolute;
  }
  
  .body {
    opacity: 0;
    filter: brightness(0);
  }
  
  .slendercat-wrapper {
    position: relative;
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
  }
  
  /* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
  @media (prefers-reduced-motion: reduce) {
    html:focus-within {
      scroll-behavior: auto;
    }
  
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  
  @media screen and (max-width: 940px) {

    .hide-mobile {
      display: none;
    }

    .show-mobile {
      display: block;
    }

    .joystick-container {
      display: block;
    }

    .column {
      width: 100%;
    }

    h1 {
      font-size: 3rem;
    }

    .background {
      justify-content: space-between;
      align-items: center;
    }

    video {
      height: 100%;
    }

    header {
      width: 100%;
      padding: 12px 12px;
    }

    .tv {
      display:none;
      width: 160px;
    }

    .bottom_left {
      width: 90vw;
      left: 50%;
      transform: translate(-50%, -0%);
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .dialog_box {
      top: 50%;
      transform: translate(-0%, -50%);
    }

  }
  