@media screen and (max-width: 1100px) {
  .bubble p {
    font-size: 0.5rem;
  }

  .bubble:hover p {
    font-size: 0.55rem;
  }

  .main .bubblebox:nth-child(2) {
    width: 40vw;
    height: 35vw;
  }

  .main .bubblebox:nth-child(4) {
    width: 25vw;
    height: 25vw;
  }

  .main .bubblebox:nth-child(6) {
    width: 40vw;
    height: 35vw;
  }

  .main .bubblebox:nth-child(7) {
    width: 40vw;
    height: 35vw;
  }

  .main .bubblebox:nth-child(8) {
    width: 50vw;
    height: 45vw;
  }
}

@media screen and (max-width: 950px) {

  .parallax-1 {
    width: 66%;
    left: 0%;
  }

  .parallax-1.white {
    width: 100vw;
    left: 0%;
  }

  .imagecontainer.moving {
    transform: translate3d(66%, 0%, 0);
  }

  .imagecontainer.movingright {
    transform: translate3d(-100%, 0%, 0);
  }

  .main.moving {
    transform: translate3d(100%, 0%, 0);
  }

  .main.movingright {
    transform: translate3d(-50%, 0%, 0);
  }

  .imagecontainer {
    width: 100%;
  }

  .main {
    width: 66%;
    left: 33%;
  }

      .bubble p {
        font-size: 0.55rem;
    }

    .bubblebox {
      margin-top: 10vh;
    }

    .bubble p:hover {
      font-size: 0.6rem;
    }

    .main .bubblebox:nth-child(2) {
      width: 50vw;
      height: 45vw;
    }

    .main .bubblebox:nth-child(3) {
      width: 45vw;
      height: 40vw;
      left: 30%;
    }

    .main .bubblebox:nth-child(4) {
      width: 30vw;
      height: 30vw;
      left: 10%;
    }

    .main .bubblebox:nth-child(5) {
      width: 45vw;
      height: 30vw;
      left: 30%;
    }

    .main .bubblebox:nth-child(6) {
      width: 50vw;
      height: 45vw;
      left: -10%;
    }

    .main .bubblebox:nth-child(7) {
      width: 45vw;
      height: 40vw;
      left: 15%;
    }

    .main .bubblebox:nth-child(8) {
      width: 60vw;
      height: 55vw;
      left: -20%;
    }

    .main .bubblebox:nth-child(9) {
      width: 40vw;
      height: 35vw;
      left: -10%;
    }

    .main .bubblebox:nth-child(10) {
      width: 35vw;
      height: 35vw;
      left: 40%;
    }

    .main .bubblebox:nth-child(11) {
      width: 50vw;
      height: 50vw;
      left: 20%;
    }

    .main .bubblebox:nth-child(12) {
      width: 35vw;
      height: 30vw;
      left: 40%;
    }

    .main .bubblebox:nth-child(13) {
      width: 30vw;
      height: 28vw;
    
      margin-bottom: 500px;
    }

    .bubblebox.white {
      height: 10vh;
    }

    .textnti {
      columns: 1;
      font-size: 0.6rem;
    }

    .bottomtitle {
      font-size: 1.8rem;
    }
}

@media screen and (max-width: 750px) {
  .bubble p {
    font-size: 0.6rem;
  }

  .bubble p:hover {
    font-size: 0.65rem;
  }
}

/* @media screen and (max-width: 670px) {
  .bubble p {
    font-size: 1rem;
  }

  .bubble p:hover {
    font-size: 1.1rem;
  }
} */

/* 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 580 */

@media screen and (max-width: 580px) {

      .title {
        font-size: 4rem;
      }

      .tutorial {
        font-size: 1.5rem;
      }

      .ending {
        font-size: 1.5rem;
      }

      .alertbox p {
        font-size: 1rem;
        text-shadow: 0px 0px 1.5px rgb(255, 255, 255);
      }

      .alertbox {
        font-size: 1rem;
        top: 150vh;
        text-shadow: 0px 0px 1.5px rgb(255, 255, 255);

      }

      .buttonhide {
        position: fixed;
        top: 12px;

        width: fit-content;
        left: 50vw;
        transform: translate3d(-50%, -50%, 0);
        height: 24px;

        opacity: 1;
        pointer-events: all;
        z-index: 999;
        
        text-align: center;
        font-family: Medway;
        color: transparent;
        text-shadow: 0px 0px 1.5px rgb(255, 255, 255);

        transition: opacity 1s ease-in-out;
      }

      .buttonhide.white {
        opacity: 0;
        pointer-events: none;
      }

      .buttonhide p:hover {
        text-decoration: underline;
        cursor: pointer;
      }

      .parallax-1.hidden {
        opacity: 0;
      }

      .main.hidden {
        opacity: 0;
      }

      body .alertbox:nth-child(4) {
        top: 300vh;
        font-size: 1.5rem;
      }
      
      body .alertbox:nth-child(5) {
        top: 450vh;
        font-size: 2rem;
      }
      
      body .alertbox:nth-child(6) {
        top: 600vh;
        font-size: 3rem;
      }
      
      body .alertbox:nth-child(7) {
        top: 750vh;
        font-size: 4rem;
      }

      .panelleft01 {
        transform: translate3d(0%, -100%, 0);
        left: 0;
        font-size: 0.9rem;
        text-shadow: 0px 0px 1.5px rgb(255, 255, 255);
        width: 90vw;
        padding-left: 24px;
        padding-bottom: 24px;
        padding-left: 5vw;
        padding-right: 5vw;
        height: fit-content;
        border-radius: 5%;
        animation-name: coloranim;
        animation-duration: 5s;
        animation-iteration-count: infinite;
        animation-timing-function: ease-in-out;

        z-index: 1000;
      }

      .panelleft01.white {
        width: 90vw;
      }

      .legend {
        font-size: 0.9rem;
      }

      .imgBox:hover .legend {
        opacity: 100%;
        font-size: 0.95rem;
        text-shadow: 0px 0px 1.5px rgb(255, 255, 255);
      }

      .imgBox:hover .legend.white {
        opacity: 100;
        font-size: 0.95rem;
      }

      .paneltitle {
        width: 80vw;
        font-size: 2.5rem;
        text-shadow: 0px 0px 1.5px rgb(255, 255, 255);
      }

      .panelleft01.white {
        background-color: white;
        box-shadow: 10px 0 50px 70px white;
        animation-name: none;
      }

      .panelleft01.moving {
        transform: translate3d(0%, 0%, 0);
        left: 0;
      }

      .closepanel {
        font-size: 2rem;
        left: 90%;
      }

      .closepanel:hover {
        font-size: 2.1rem;
      }

      .parallax-1 {
        width: 100vw;
      }

      .imagecontainer {
        width: 100vw;
      }

      .imgBox {
        position: relative;
        width: calc(60vw * 1.2);
        height: calc(42vw * 1.2);
      
        transform: translate3d(0%, 0%, 0);
      
        bottom: 12vh;
        margin-left: 15%;
      
        cursor: pointer;
      
        transition: width 1s ease-in-out, height 1s ease-in-out, transform 1s ease-in-out;
      }
      
      .imgBox:hover {
        width: calc(60vw * 1.25);
        height: calc(42vw * 1.25);
      }
      
      .parallax .imgBox:nth-child(2) {
        margin-top: 220px;
        margin-left: 25%;
        width: calc(60vw * 1.1);
        height: calc(42vw * 1.1);
      }
      
      .parallax .imgBox:nth-child(2):hover {
        width: calc(60vw * 1.15);
        height: calc(42vw * 1.15);
      }
      
      .parallax .imgBox:nth-child(3) {
        margin-top: 42vw;
        margin-left: 30%;
        width: calc(60vw * 1);
        height: calc(42vw * 1);
      }
      
      .parallax .imgBox:nth-child(3):hover {
        width: calc(60vw * 1.05);
        height: calc(42vw * 1.05);
      }
      
      .parallax .imgBox:nth-child(4) {
        margin-top: 200px;
        margin-left: 20%;
        width: calc(60vw * 0.9);
        height: calc(42vw * 0.9);
      }
      
      .parallax .imgBox:nth-child(4):hover {
        width: calc(60vw * 0.95);
        height: calc(42vw * 0.95);
      }
      
      .parallax .imgBox:nth-child(5) {
        margin-top: 190px;
        margin-left: 30%;
        width: calc(60vw * 0.8);
        height: calc(42vw * 0.8);
      }
      
      .parallax .imgBox:nth-child(5):hover {
        width: calc(60vw * 0.85);
        height: calc(42vw * 0.85);
      }
      
      .parallax .imgBox:nth-child(6) {
        margin-top: 220px;
        margin-left: 20%;
        width: calc(60vw * 0.7);
        height: calc(42vw * 0.7);
      }
      
      .parallax .imgBox:nth-child(6):hover {
        width: calc(60vw * 0.75);
        height: calc(42vw * 0.75);
      }

      .parallax .imgBox.white {
        width: 80vw;
        height: 70vh;
        left: 10vw;
        margin-left: 0%;
        margin-top: 20vh;
      }

      .parallax .imgBox.white:hover {
        width: 80vw;
        height: 70vh;
      }

      .imgBox.movingright {
        pointer-events: none;
        transform: translate3d(0%, 0%, 0);
      }

      .imagecontainer.moving {
        transform: none;
      }

      .imagecontainer.moving2 {
        transform: translate3d(-100%, 0%, 0);
      }

      .imagecontainer.movingright {
        transform: translate3d(100%, 0%, 0);
      }

      .main.movingright {
        transform: translate3d(-100%, 0%, 0);
      }

      .main {
          width: 100%;
          left: 0%;
      }

      .panelright01 {
        transform: translate3d(0%, -100%, 0);
        left: 0px;
        font-size: 0.9rem;
        text-shadow: 0px 0px 1.5px rgb(255, 255, 255);
        width: 90vw;
        height: 50vh;
        padding-left: 5vw;
        padding-right: 5vw;
        border-radius: 5%;
        animation-name: coloranim;
        animation-duration: 5s;
        animation-iteration-count: infinite;
        animation-timing-function: ease-in-out;

        z-index: 1000;
      }

      .panelright01.white {
        background-color: white;
        box-shadow: 10px 0 50px 70px white;
        animation-name: none;
        width: 100vw;
        transform: translate3d(0%, -100%, 0);
      }

      .panelright01.moving {
        transform: translate3d(0%, 0%, 0);
        left: 0;
      }

      .bubble p {
          font-size: 0.8rem;
          text-shadow: 0px 0px 1.5px rgb(255, 255, 255);
        }

      .bubblebox {
        margin-top: 15vh;
      }

      .main .bubblebox:nth-child(2) {
        width: 65vw;
        height: 60vw;
      }

      .main .bubblebox:nth-child(3) {
        width: 65vw;
        height: 60vw;
        left: 30%;
      }

      .main .bubblebox:nth-child(4) {
        width: 40vw;
        height: 40vw;
        left: 10%;
      }

      .main .bubblebox:nth-child(5) {
        width: 55vw;
        height: 45vw;
        left: 30%;
      }

      .main .bubblebox:nth-child(6) {
        width: 65vw;
        height: 65vw;
        left: 0%;
      }

      .main .bubblebox:nth-child(7) {
        width: 70vw;
        height: 60vw;
        left: 30%;
      }

      .main .bubblebox:nth-child(8) {
        width: 90vw;
        height: 80vw;
        left: 0%;
      }

      .main .bubblebox:nth-child(9) {
        width: 50vw;
        height: 45vw;
        left: -0%;
      }

      .main .bubblebox:nth-child(10) {
        width: 45vw;
        height: 45vw;
        left: 40%;
      }

      .main .bubblebox:nth-child(11) {
        width: 75vw;
        height: 70vw;
        left: 20%;
      }

      .main .bubblebox:nth-child(12) {
        width: 45vw;
        height: 40vw;
        left: 40%;
      }

      .main .bubblebox:nth-child(13) {
        width: 40vw;
        height: 40vw;
      
        margin-bottom: 500px;
      }

      .bubblebox p.white {
        background-color: white;
        border: 12px solid white;
      }

      .bubblebox.white {
        height: 0vh;
      }

      .bubblebox.white:hover {
        height: initial;
        width: initial;
      }
      
      .bubble.white:hover {
        width: 60%;
        height: 50%;
        font-size: 0.9rem;
      }

      .bubble:hover p {
        font-size: 0.9rem;
      }
      
      .bubble.white:hover p {
        text-decoration: underline;
        font-size: 0.9rem;
      }

      .textnti {
        columns: 1;
        font-size: 0.9rem;
        text-shadow: 0px 0px 1.5px rgb(255, 255, 255);
      }

      .bottomtitle {
        font-size: 2.5rem;
        text-shadow: 0px 0px 1.5px rgb(255, 255, 255);
      }

      .buttonwhite {
        font-size: 0.9rem;
        text-shadow: 0px 0px 1.5px rgb(0, 0, 0);
      }

      .buttonwhite:hover {
        font-size: 0.9rem;
      }

      @keyframes coloranim {
        0% {
          box-shadow:
          inset 0 0px 20px  #fff,
          inset 20px 0 40px #f0f,
          inset -20px 0 40px #0ff,
          inset 20px 0 100px #f0f,
          inset -20px 0 100px #0ff,
          0 0 20px #fff,
          -10px 0 40px #f0f,
          10px 0 40px #0ff;
        }
        50% {
          box-shadow:
          inset 0 0px 20px  #0ff,
          inset 20px 0 40px #f0f,
          inset -20px 0 40px #fff,
          inset 20px 0 100px #0ff,
          inset -20px 0 100px #f0f,
          0 0 20px #0ff,
          -10px 0 40px #fff,
          10px 0 40px #f0f;
        }
        100% {
          box-shadow:
          inset 0 0px 20px  #fff,
          inset 20px 0 40px #f0f,
          inset -20px 0 40px #0ff,
          inset 20px 0 100px #f0f,
          inset -20px 0 100px #0ff,
          0 0 20px #fff,
          -10px 0 40px #f0f,
          10px 0 40px #0ff;
        }
      }
}