body {
  margin: 0;
  background: white;
  font-family: codystar.regular;
  font-size: 50px;
}

@font-face {
    font-family: 'codystar.regular';
    src: url('fonts/codystar.regular.ttf');
}

@font-face {
    font-family: 'Courier New';
    src: url('fonts/Courier New.ttf');
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 100vh;
  text-align: center;
  transform: translateY(-30px);
}

.hero h1 {
  margin-bottom: 10px;
  font-size: 90px;
  font-family: 'codystar.regular', sans-serif;
}


.hero img {
  width: 420px;
  max-width: 80%;
  margin-bottom: 30px;
  margin-top: 5px
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 5px
}

menu:hover {
    color: #FF0077;
}

.menu button {
  background: none;
  border: none;

  font-family: Courier New;
  font-size: 20px;

  color: black;
  cursor: pointer;

  transition: color 0.2s ease;
}

.menu button:hover {
  color: #FF0077;
}

.rainbow-frame {
  position: relative;
    display: inline-block;

    width: 420px;
    height: 280px;

    padding: 15px;
    margin-top: -15px;
}

/* animated frame layer */
.frame-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 0;

  background: linear-gradient(
    90deg,
    red,
    brown,
    green,
    blue,
    indigo,
    violet
  );

  animation: rainbowMove 10s linear infinite;
}

/* keep image ABOVE frame */
.rainbow-frame img {
    position: relative;
    z-index: 1;

    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.instagram-link {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);

    font-family: "Courier New", monospace;
    font-size: 18px;
}

.instagram-link a {
    color: black;
    text-decoration: none;
    transition: color 0.2s ease;
}

.instagram-link a:hover {
    background-color: black;
    color: #FF0077;
    cursor: pointer;
}

/* animation */
@keyframes rainbowMove {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

body {
    opacity: 0;
    animation: fadeIn 1.5s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {

  html,
body {
  margin: 0;
  width: 100%;
  min-height: 100dvh;

  overflow-x: hidden;
  overflow-y: auto;

  -webkit-overflow-scrolling: touch;
  }

    body {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero {
    width: 100%;
    min-height: 100dvh;
    box-sizing: border-box;

    transform: translateY(-20px);
}

    .hero h1 {
        font-size: 46px;
        white-space: nowrap;
        margin: 0 0 5px 0;
        line-height: 1;
        margin-bottom: 5px
    }

    .rainbow-frame {
        width: 220px;
        height: 140px;

        padding: 10px;
        margin: 5px 0 15px 0;
    }

    .rainbow-frame img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .menu {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .menu button {
        font-size: 18px;
    }

    .instagram-link {
        position: fixed;
        left: 50%;
        bottom: calc(20px + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        z-index: 99999;
        white-space: nowrap;
    }

    .instagram-link a {
        font-size: 18px;
    }
}
