:root {
  font-size: 16px;
}

@media screen and (max-width: 380px) {
  :root {
    font-size: 14px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Roboto Black";
  src: url("./js/Roboto-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  opacity: 1;
  transition: opacity 0.5s ease;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  min-height: 600px;
  --label-bg: #00bbf1;
  --font-color: #104069;
  --line-color: #0e4d80;
  --svg-color: #9ceaff;
  --logo-color: #4a779c;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  width: 100vw;
  height: 100vh;
}

.pc-page-background {
  display: none;
}
.start-page {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #45c8fa;
}

#page-logo {
  display: none;
}
.middle-content {
  display: none;
}

@media (min-width: 520px) {
  .blue-shadow {
    box-shadow: 0px 15px 34px #005b8033, 0px 61px 61px #005b802b,
      0px 138px 83px #005b801a, 0px 245px 98px #005b8008,
      0px 383px 107px #005b8000;
  }
  .orange-shadow {
    box-shadow: 0px 15px 34px #5b351e33, 0px 61px 61px #5b351e2b,
      0px 138px 83px #5b351e1a, 0px 245px 98px #5b351e08,
      0px 383px 107px #5b351e00;
  }
  .purple-shadow {
    box-shadow: 0px 15px 34px #431e5b33, 0px 61px 61px #431e5b2b,
      0px 138px 83px #431e5b1a, 0px 245px 98px #431e5b08,
      0px 383px 107px #431e5b00;
  }
  body {
    min-width: 520px;
  }
  .blue-gradient {
    background: linear-gradient(180deg, #9ceaff 0%, #46d0ff 100%), #6cdaff;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
  }
  .orange-gradient {
    background: linear-gradient(180deg, #ffa946c4 -420.93%, #ffeb9cc4 578.36%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
  }
  .purple-gradient {
    background: linear-gradient(180deg, #a688ff94 -420.93%, #bd9cff94 578.36%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent;
  }
  .blue-background {
    background: linear-gradient(
      180deg,
      rgba(239, 255, 251, 1) 0%,
      rgba(203, 242, 255, 1) 100%
    );
    --label-bg: #00bbf1;
    --font-color: #104069;
    --line-color: #0e4d80;
    --svg-color: #9ceaff;
    --logo-color: #4a779c;
  }
  .orange-background {
    background: linear-gradient(180deg, #fffbef 0%, #fff4d4 100%);
    --label-bg: #ffd858;
    --font-color: #1f243c;
    --line-color: #fcb226;
    --svg-color: #ffa946;
    --logo-color: #3c2c1f;
  }
  .purple-background {
    background: linear-gradient(180deg, #f5f6ff 0%, #f3ebff 100%);
    --label-bg: #b591f9;
    --font-color: #3c2c1f;
    --line-color: #c3aeeb;
    --svg-color: #7446ffb5;
    --logo-color: #2d1f3c;
  }
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    padding: 28px;
    padding-bottom: 40px;
  }
  .start-page {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    max-width: 450px;
    max-height: 864px;
    min-height: 320px;
  }
  .report-page {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    max-width: 450px;
    max-height: 864px;
  }
  .pc-page-background {
    position: initial;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding-left: 60px;
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 864px;
    color: var(--font-color);
    transition: color 0.5s ease;
  }
  .pc-page-background h1 {
    font-size: 72px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--font-color);
  }
  .pc-page-background h2 {
    font-weight: 900;
    font-size: 40px;
    color: var(--font-color);
    margin-top: 6px;
  }
  .pc-page-background .top-content p {
    font-size: 24px;
    background: var(--label-bg);
    color: #fff;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 8px;
    margin-top: 12px;
  }
  .pc-page-background .bottom-content {
    width: 100%;
  }
  .pc-page-background .bottom-content p {
    font-size: 24px;
    font-weight: 900;
    opacity: 0.8;
  }
  .pc-page-background::after {
    content: "";
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--line-color);
  }
  .bg-video {
    width: 100%;
    height: 100%;
    max-width: 450px;
    max-height: 864px;
  }
  .pc-fighting-cyber-crime-svg {
    width: 100%;
    height: auto;
    opacity: 0.5;
    fill: var(--svg-color);
  }
  #page-logo {
    display: block;
    width: 114px;
    height: 22px;
    position: absolute;
    right: 50px;
    top: 40px;
  }
  #page-logo-svg {
    width: 100%;
    height: 100%;
    fill: var(--logo-color);
  }
  .middle-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    opacity: 0;
  }
  #mouse-up-svg,
  #mouse-down-svg,
  #mouse-svg {
    fill: var(--label-bg);
  }
  .mouse-indicator {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }
  .mouse-direction {
    padding-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }
  @media (max-height: 900px) {
    body {
      padding-bottom: 32px;
    }
    .pc-page-background::after {
      height: 4px;
    }
  }
  @media (max-height: 760px) {
    .start-page {
      position: relative;
      overflow: hidden;
      border-radius: 20px;
      max-width: 370px;
      max-height: 640px;
    }
    .report-page {
      position: relative;
      overflow: hidden;
      border-radius: 20px;
      max-width: 370px;
      max-height: 640px;
    }
    :root {
      font-size: 14px;
    }
  }
}

/* Hide native video controls */
video::-webkit-media-controls {
  display: none !important;
}

video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

#message-wrapper {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  z-index: 9999;
  background-color: #000000a1;
  padding: 6px 16px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
