.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px;
    /* padding-top: 0px; */
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-wrap: wrap;
    /* max-width: 500px; */
    min-width: 580px;
    height: 100%;
}

.page {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 450px;
}

#dicknballs {
    height: 100%;
    width: 100%;
    z-index: 10000;
}

li {
    list-style: none;
    /* font-size: large; */

    /* font-family: Dansk; */
}

li:hover {
    transform: translateX(2px);
}

.heart {
    position: absolute;
    /* width: 16px;
    height: 16px; */
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10000;
}

.heart.active {
    opacity: 1;
    left: 285px;
    top: 554px;
    /* bottom: 400px; */
}


.spoken {
    margin-top: 15px;
    margin: 20px;
}

.dialogue-box
{
    background : black;
    display: flex;
    image-rendering: pixelated;
    /* padding-top: 15px; */
    /* flex-grow: 1; */
    /* It may not look like it, but dynamic units like `vw` and `%` can
       work like fixed units if everything is proportional to each other */
    width: 530px;
    height: 120px;
    padding-bottom: 20px;
    padding-right: 8px;
    /* padding : 2.78vw; */
    border : var(--border-width) solid var(--clr-fg);
    font-family : "Comicoro"; /* Use any font */
    font-size: 28px;
    /* font-size : 4.44vw; */
    color: var(--clr-fg);
    /* line-height : 6.11vw; */
    margin: auto;
}


.dialogue-portrait
{
    margin: 0px;
    max-width: 128px;
    /* width: 100%; */
    height: auto;
    image-rendering: pixelated;
    padding-left: 5px;
    padding-right: 2px;
    object-fit: contain;
}

.textbox {
    display: flex;
    flex-direction: row;
    
}

.textbox[data-enabled="false"]
{
    transform: scaleY(0);
}

.dialogue-box .arrow
{
    bottom: 56px;
    position: absolute;
    left: 92%;
    /* transform: translateX(-50%); */
    animation: alternate arrow 0.65s steps(2, jump-none) infinite;
}

#opti1 {
    position: relative;
    left: 195px;
    top: 15px;
    white-space: nowrap;
}

#opti2 {
    position: relative;
    left: 26px;
    top: 45px;
    white-space: nowrap;
}

#opti3 {
    position: relative;
    left: 390px;
    top: 29px;
    white-space: nowrap;
}

#opti4 {
    position: relative;
    left: 180px;
    top: 66px;
    color: grey;
    white-space: nowrap;
}

/* 
#opti4:hover {
    color: red;
} */

.dialogue-line
{
    padding-top: 23px;
    width: 100%;
    line-height: 18px;
}

.game {
    display: flex;
    justify-content: center;
    image-rendering: pixelated;
}

iframe {
  width: 542px;
}


@keyframes fun-box
{
    0% { transform : scaleY(0.2); }
    30% { transform: scaleY(0.4); }
    60% { transform: scaleY(1.02); }
    to { transform : none; }
}

@keyframes amazing_performance {
  0% {
    transform: scale(2);
    rotate: -20deg;
  }
  25% {
    transform: scale(0.5);
    rotate: 5deg;
  }
  50% {
    transform: scale(1.1);
  }
  75% {
    transform: scale(0.7);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes shaky_performance {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }

  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}


@keyframes arrow
{
    0% { transform: translate(0px); }

    50% { transform: translate(0, 2px); }

    100% { transform: translate(0, -2px); }
}

@media screen and (max-width: 580px) {
    .container {
        min-width: unset;
        width: 100%;
        /* transform-origin: top center; */
        /* transform: scale(calc(100vw / 500)); */
        height: auto;
    }

    .content {
      padding: 5px;
    }

    #framer {
      width: 100%;
    }

    #framerVideo {
      width: 100%;
    }

    .navbar {
      width: 100%;
    }

    .page {
      width: 100%;
      min-width: unset;
    }

    .t {
      width: 100%;
      min-width: unset;
    }

    .textbox {
      width: 100%;
      min-width: unset;
    }

    .dialogue-portrait{
      height: 100%;
    }

    .dialogue-box {
      width: min(96%, 530px);
      min-width: unset;
      height: unset;
      aspect-ratio: 530/120;
      font-size: clamp(16px, 5vw, 28px);
    }

    .arrow {
      top: 90%;
    }

    .dialogue-line {
      padding-top: 3vw;
    }

    footer {
      width: 96%;
      border-top: none;
    }

    #opti1 {
      top: 10px;
      left: 120px;
    }
    #opti2 {
      top: 28px;
      left: 15px;
    }
    #opti3 {
      top: 13px;
      left: 245px;
    }
    #opti4{
      top: 26px;
      left: 112px;
    }
}

