/* HPE v10 */

@font-face {
  font-family: "MetricHPE";
  src: url("../font/MetricHPE-App-Thin.d6a33814982d.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-family: "MetricHPE";
  src: url("../font/MetricHPE-App-ThinItalic.c38b57001e21.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
}

@font-face {
  font-family: "MetricHPE";
  src: url("../font/MetricHPE-App-Regular.05af6bb091ea.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "MetricHPE";
  src: url("../font/MetricHPE-App-RegularItalic.4829cfd9f925.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "MetricHPE";
  src: url("../font/MetricHPE-App-Semibold.1affe44373de.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "MetricHPE";
  src: url("../font/MetricHPE-App-SemiboldItalic.c72043aaba2b.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "MetricHPE";
  src: url("../font/MetricHPE-App-Bold.fd35b63f2599.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "MetricHPE";
  src: url("../font/MetricHPE-App-BoldItalic.53c9cc9af29e.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
}

body {
  color: black;
  background-color: white;

  /* Force footer to bottom on short content */
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: flex-start;

  * {
    font-family: "MetricHPE", "Helvetica Neue", sans-serif !important;
  }

  > * {
    max-width: 100%;
    overflow-x: hidden;
  }

  &:has(.navbar) {
    padding-top: 73px;

    @media (max-width: 768px) {
      padding-top: 115px;
    }
  }

  &.formpage-body {
    padding-top: calc(73px + 40px);

    @media (max-width: 768px) {
      padding-top: calc(115px + 15px);
    }
  }
}

h1 {
  font-size: 38px;
  line-height: 100%;
  font-weight: bold;
  margin: 0;
  padding: 0;
  @media (max-width: 768px) {
    font-size: 30px;
  }
}

h2 {
  font-size: 32px;
  line-height: 100%;
  font-weight: bold;
  margin: 0;
  padding: 0;
  @media (max-width: 768px) {
    font-size: 25px;
  }
}

h3 {
  font-size: 26px;
  line-height: 100%;
  font-weight: bold;
  margin: 0;
  padding: 0;
  @media (max-width: 768px) {
    font-size: 20px;
  }
}

p,
ul,
ol,
a,
label {
  font-size: 20px;
  line-height: 130%;
  font-weight: normal;

  @media (max-width: 768px) {
    font-size: 18px;
  }
}

footer {
  padding: 10px 40px;
  margin-top: auto;

  @media (max-width: 768px) {
    margin-top: 30px;
    font-size: 16px;
    padding: 15px;
    text-align: center;
  }
}

.block-columns {
  display: flex;
  gap: 50px;
  padding: 0 40px;

  .block-left_column > .block-content,
  .block-right_column > .block-content {
    display: flex;
    flex-direction: column;
    gap: 15px;

    @media (max-width: 768px) {
      gap: 15px;
    }
  }

  .block-right_column {
    min-width: 40%;

    .block-image,
    .block-video {
      margin: 20px 0;
      text-align: center;
      position: relative;

      &:only-child {
        margin: 0;
      }

      img,
      video {
        width: 100%;
        height: auto;
        background-color: #dddddd;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        @media (max-width: 768px) {
          padding: 15px;
        }
      }
    }
  }

  @media (max-width: 768px) {
    flex-direction: column;
    gap: 20px;
  }
}

body:has(.navbar):has(> .block-columns) {
  .block-right_column {
    > .block-content:nth-child(2) {
      padding: 0;
      display: block;
      margin: 0;
      padding: 0;
      text-align: left;
      border-bottom: 1px solid #fff;

      ul {
        display: flex;
        justify-content: space-between;
        width: 100%;
        list-style: none;
        padding: 15px 0;
      }
    }
    > .block-content:nth-child(3) {
      padding-top: 20px;
      a {
        display: block;
        width: 100%;
        background: #fff;
        border-radius: 50px;
        padding: 13px;
        text-align: center;
        color: #01a982;
        text-decoration: none;
        border: 2px solid #01a982;
        font-size: 22px;
        font-weight: 500;
      }
    }
  }
}

.uppy-Root {
  .uppy-Dashboard-inner {
    background-color: #fff;
    border: none;
    border-radius: 20px;
    width: 100% !important;

    .uppy-Dashboard-innerWrap,
    .uppy-Dashboard-AddFiles,
    .uppy-Dashboard-dropFilesHereHint {
      border-radius: 17px;
    }
  }
  .uppy-DashboardTab {
    border-bottom: none;
  }
  .uppy-Webcam-permissons p {
    font-size: 16px !important;
    margin-top: 15px;
    color: #777 !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
  }
}

.block-form {
  fieldset {
    border: none;
    max-width: 100%;
    padding: 0;

    legend {
      display: none;
    }
  }
  form {
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    > div:has(input[type="text"]),
    > div:has(input[type="email"]),
    > div:has(input[type="password"]),
    > div:has(input[type="tel"]),
    > div:has(select) {
      label {
        display: none;
      }
    }

    > div {
      display: flex;
      flex-direction: row-reverse;
      flex-wrap: wrap;
      align-items: flex-start;
      width: 100%;
      padding-bottom: 6px;
      gap: 10px;
      max-width: 100%;

      &:has(.uppy-Root) {
        flex-direction: row;
        justify-content: center;
      }

      .errorlist {
        order: 3;
        width: 100%;
        font-size: 93%;
        padding: 0;
        margin: 0;
        color: red;
        li {
          list-style: none;
        }
      }

      label {
        color: #fff;
        order: 99;
        flex: 1;
      }

      input[type="text"],
      input[type="email"],
      input[type="password"],
      input[type="tel"],
      select {
        width: 100%;
        border: none;
        padding: 15px;
        font-size: 18px;
      }

      select {
        width: calc(100% + 15px);
      }

      input[type="checkbox"] {
        order: 999;
        padding-right: 20px;
      }
    }

    > div:has(input[type="checkbox"]) {
      padding-top: 15px;
      > :nth-child(2) {
        margin-top: 5px;
        margin-right: 5px;
      }
      a {
        color: #fff;
      }
    }

    [type="submit"] {
      margin: 20px auto 0;
      display: inline-block;
      background-color: #01a982;
      border: 2px solid #01a982;
      border: none;
      color: #fff;
      cursor: pointer;
      font-size: 22px;
      font-weight: 500;
      padding: 15px 30px;
      width: 100%;
      border-radius: 50px;
    }
  }
}

body.home-body {
  footer {
    text-align: center;
  }
  > .block-content {
    padding: 5vw;
    max-width: 920px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 25px;

    @media (min-width: 768px) {
      min-height: 80vh;
      justify-content: center;
    }

    h2 {
      font-size: 64px;
    }
    h3 {
      font-size: 40px;
      font-weight: 500;
    }
    p {
      font-size: 30px;
    }

    @media (max-width: 768px) {
      padding: 30px 15px;
      h2 {
        font-size: 36px;
      }
      h3 {
        font-size: 28px;
        font-weight: 500;
      }
      p {
        font-size: 20px;
      }
    }

    ul {
      display: flex;
      list-style: none;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 100px;
      padding: 20px 0;

      @media (max-width: 600px) {
        gap: 20px;
      }

      li {
        background: #01a982;
        padding: 5px 30px 10px;
        border-radius: 50px;

        a {
          display: flex;
          align-items: center;
          gap: 8px;
          font-size: 34px;
          line-height: 100%;
          font-weight: 500;
          color: #fff;
          text-decoration: none;
        }

        a::after {
          content: "";
          display: block;
          width: 60px;
          height: 24px;
          background-image: url("../img/white_logo.1132a5a63a41.png");
          background-size: contain;
          background-repeat: no-repeat;
          background-position: center bottom;
        }
      }
    }
  }
}

.page-header {
  color: white;
  padding: 60px 40px;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: auto;
  background: linear-gradient(90deg, #500ad2, #c51162, #ff8c00);

  .block-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .details {
    padding-top: 50px;
  }

  .company {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
  }

  @media (max-width: 768px) {
    padding: 30px 15px;
  }
}

body.gamepage-body {
  > div:not(.game-header):first-of-type {
    padding: 0;
  }
  .content-area {
    padding: 20px;
    margin: 20px;

    a {
      border-color: #ff9900;
      display: inline-block;
      padding: 10px 25px;
      background-color: #ff9900;
      color: #000;
      border-radius: 4px;
      clear: both;
    }

    table {
      background: #fff;
      border-collapse: collapse;
      border: none;
      /* border-radius: 10px; */
      margin: 20px 0;
      width: 100%;
      border-color: transparent;
      color: #000;

      td,
      th {
        border: 1px solid #ddd;
        text-align: left;
        padding: 6px;
        border-radius: 10px;
      }
    }
  }
}

.tabs-container {
  display: flex;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  background-color: #eeeeee;

  .tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 20px 0;
    border-bottom: 1px solid #ddd;
    font-family: Arial, sans-serif;
    width: 100%;
    background-color: #eeeeee;
  }

  .tabs.grey {
    background-color: #eee;
  }

  .tab {
    padding: 15px 20px 15px;
    cursor: pointer;
    color: #999;
    font-size: 18px;
    margin-bottom: -1px;
    border-bottom: 1px solid transparent;
    line-height: 100%;
    text-align: center;

    a {
      color: #999;
      text-decoration: none;
    }
  }

  .tab.active {
    color: #01a982;
    border-bottom-color: #01a982;
    a {
      color: #01a982;
    }
  }

  @media (max-width: 768px) {
    .tabs {
      padding: 10px 0 0;
      gap: 5px;
    }
    .tab {
      font-size: 16px;
      line-height: 110%;
      padding: 8px 25px 15px;
    }
  }
}

.intermediate-content {
  background-color: #eee;
  color: #000;

  > .block-content {
    padding: 40px 0;

    .block-right_column {
      /* max-width: 60%; */
      /* width: 60%; */
      /* flex: 1 1 60%; */
    }
  }

  @media (max-width: 768px) {
    padding: 15px;
    > .block-content {
      padding: 15px 0;
    }
  }
}

.games-area {
  background-color: #eee;
  padding: 40px;
  color: #000;

  @media (max-width: 768px) {
    padding: 15px;
  }
}

.activities-area {
  background-color: #fff;
  color: #000;
  padding: 40px;
}

.games-area,
.activities-area {
  span b {
    font-size: 22px;
  }

  .completed-overlay {
    height: 100%;
    display: flex;

    img {
      height: 70%;
      padding: 5px;
      filter: drop-shadow(0 0 0.75rem white);
    }
  }
}

#answers-section .answer-option,
.modal .modal-content {
  color: black;
}

#answers-section .feedback-section {
  .wrong::after {
    content: "⊗";
    color: #c54e4b;
    padding-left: 0.2em;
  }
  .correct::after {
    content: "✓";
    color: #008567;
    padding-left: 0.2em;
  }
  h2 {
    padding-bottom: 1em;
  }
}

.gradient-border {
  height: 5px;
  background: linear-gradient(90deg, #6a11cb, #c51162, #ff8c00);
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  border-radius: 3px;
}

#tab-content {
  width: 100%;
  background-color: #fff;
  color: #000;
}

.intermediate-content:has(.block-columns) + #tab-content {
  padding: 40px;
  @media (max-width: 768px) {
    padding: 15px;
  }
}

.leaderboard {
  text-align: center;
  font-family: Arial, sans-serif;
  padding: 40px;
}

.total-points {
  font-size: 96px;
  line-height: 100%;
  font-weight: 700;
  color: #01a982;
}

.label {
  font-size: 24px;
  color: black;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 20px;
}

.stat {
  text-align: center;

  .score {
    font-size: 96px;
    font-weight: 700;
  }
}

@media (max-width: 768px) {
  .leaderboard {
    padding: 26px 15px 30px;
  }
  .compute,
  .storage,
  .total-points {
    font-size: 54px;
    line-height: 100%;
  }
  .label {
    font-size: 20px;
  }
}

.ranking-section {
  background: #eeeeee;
  color: #000;
  padding: 40px;

  p {
    font-size: 34px;
    font-weight: bold;
  }

  @media (max-width: 768px) {
    padding: 30px 15px;
    text-align: center;
    p {
      font-size: 24px;
    }
  }
}

.progress-bar-container {
  margin-top: 10px;
  position: relative;
}

.progress-bar {
  height: 30px;
  background: linear-gradient(90deg, #6a11cb, #c51162, #ff8c00);
  border-radius: 0;
  position: relative;
}

.rank-indicator {
  position: absolute;
  color: white;
  top: -4px;
  text-shadow: 0px 0px 2px rgba(0, 0, 0);
  transform: translateX(50%) scale(4, 3);
}

.progress-labels {
  display: flex;
  font-size: 14px;
  color: #555;

  @media (max-width: 768px) {
    font-size: 10px;
  }

  span {
    padding-top: 5px;
    text-align: center;
  }

  span:nth-child(1) {
    width: 10%;
  }

  span:nth-child(2) {
    width: 25%;
  }

  span:nth-child(3) {
    width: 50%;
  }

  span:nth-child(4) {
    width: 25%;
  }
}

.bracket-group {
  width: 100%;
  position: relative;
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
}

/* Hide the original brackets */
.bracket {
  display: none;
}

.section {
  position: relative;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: black;
  padding-top: 0;
  margin-top: 5px;
  line-height: 1;

  @media (max-width: 768px) {
    font-size: 11px;
    line-height: 8px;
  }
}

/* Adjust specific sections */
.section.top {
  width: 10%;
}

.section.upper {
  width: 15%;
}

.section.middle {
  width: 50%;
}

.section.lower {
  width: 25%;
}

/* Create the bracket effect with text characters */
.section::before {
  content: "└──";
  position: absolute;
  left: 0;
  top: 0;
  font-family: monospace;
  font-size: 14px;
}

.section::after {
  content: "──┘";
  position: absolute;
  right: 0;
  top: 0;
  font-family: monospace;
  font-size: 14px;
}

@media (max-width: 768px) {
  .section::before {
    content: "└─";
  }
  .section::after {
    content: "─┘";
  }
  .section.top {
    display: none;
  }
  .section.upper {
    width: 25%;
  }
}

.leaderboard-card {
  background: #f7f7f7;
  border-radius: 8px;
  padding-top: 30px;
  color: black;
  margin: 40px;
}

.leaderboard-header {
  background: #01a982;
  color: white;
  padding: 10px 10px 10px 50px;
  font-size: 48px;
  font-weight: 500;
  border-radius: 100px 0 0 100px;
  margin: 0 0 20px 40px;
}

.leaderboard-content {
  display: flex;
  justify-content: space-around;
  padding: 15px;
}

.leaderboard-column {
  width: 40%;
  font-size: 32px;
  font-weight: 500;
  li {
    padding-bottom: 10px;
    font-weight: 500 !important;
  }
}

.leaderboard-column .leader-points {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.leaderboard-column p {
  margin: 5px 0;
  font-size: 16px;
}
.username {
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

@media (max-width: 768px) {
  .leaderboard-card {
    margin: 0;
    border-radius: 0;
  }
  .leaderboard-header {
    font-size: 22px;
    padding: 5px 5px 5px 25px;
    margin: 0 0 7px 15px;
  }
  .leaderboard-content {
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 40px;
  }
  .leaderboard-column {
    width: 100%;
    font-size: 18px;
    padding-left: 20px;

    li {
      padding-bottom: 6px;
    }
  }
}

.username {
  font-weight: bold;
}

.points {
  flex-shrink: 0;
}

.highlight {
  color: #01a982;
}

.subheading {
  font-size: 16px;
  font-weight: bold;
  text-align: left;
}

.floating-text {
  font-size: 18px;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.8);
  text-align: right;
}

.description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.grid-item {
  background: white;
  color: black;
  padding: 20px;
  border-radius: 8px;
  border: #01a982 1px solid;
  border-top-width: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;

  h2,
  h3,
  h4 {
    font-size: 18px;
    line-height: 100%;
    font-weight: bold;
    margin: 0;
  }

  h4 {
    height: 2rem;
  }

  p {
    font-size: 18px;
    line-height: 100%;
    padding-bottom: 8px;
  }

  div.thumbnail {
    width: 100%;
    height: 140px;
    content: "";
    display: block;
    background-color: #fff;
    background-size: cover;
    border: 7px solid #fff;
  }

  a {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: #fff;
    background-color: #01a982;
    border-radius: 20px;
    padding: 7px 13px;
    text-decoration: none;
    font-size: 14px;
    line-height: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;

    &::after {
      content: "";
      display: block;
      width: 32px;
      height: 15px;
      background-image: url("../img/white_logo.1132a5a63a41.png");
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
    }
  }

  &.compute {
    border-color: #7630ea;
  }
  &.storage {
    border-color: #ff8300;
  }
}

.demo-section {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 20px;
  padding: 40px;
  background: #eee;
}

.demo-text {
  flex: 1;
  /* Allow it to take up available space */
  max-width: 40%;
  h2 {
    padding: 20px 0;
  }
}

.demo-title {
  font-size: 24px;
  font-weight: bold;
}

.demo-description {
  font-size: 18px;
  line-height: 26px;
  color: #555;
}

.demo-video {
  flex: 1;
  /* Allow it to take up available space */
  max-width: 100%;
  text-align: center;
  position: relative;
}

.video-container {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.video-thumbnail {
  width: 100%;
  display: block;
  border-radius: 8px;
  transition: opacity 0.3s ease-in-out;
}

.video-thumbnail:hover {
  opacity: 0.8;
}

.play-button {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: white;
  padding: 10px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.video-caption {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
}

.resource-accordion {
  li {
    padding-bottom: 10px;
  }
}

body.sign-up-body {
  .block-form form > div .errorlist {
    color: white;
  }
}

.sign-up-container {
  display: flex;
  width: 90%;
  margin-left: 5%;
  .left {
    flex: 1;
    padding: 50px;
    color: white;
  }

  .left h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .left p {
    font-size: 18px;
    line-height: 1.6;
  }

  .right {
    flex: 1;
    padding: 40px;
    border-radius: 8px;
    max-width: 450px;
  }

  .right h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: white;
  }

  .right p {
    font-size: 14px;
    color: darkgray;
    margin-bottom: 20px;
  }

  .input-box {
    width: -webkit-fill-available;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
  }

  .checkbox-container {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-top: 15px;
    color: white;
  }

  .checkbox-container p {
    color: white;
  }

  .checkbox-container input {
    margin-right: 8px;
  }

  .checkbox-container p a {
    color: #008c4e;
    text-decoration: none;
  }

  .create-account {
    margin-top: 20px;
    padding: 14px;
    background-color: #008c4e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    text-align: center;
    width: 100%;
    display: block;
  }

  .create-account:hover {
    background-color: #006837;
  }
}

body.login-body,
body.sign-up-body,
body.forgot-password-body,
body.reset-link-sent-body,
body.reset-password-body,
body.password-changed-body {
  .block-content {
    a {
      color: white;
    }

    a:visited {
      color: #cccccc;
    }
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 4px solid #ddd;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 5px 40px 0;
  height: 73px;
  gap: 30px;
  overflow: visible;

  .profile-menu {
    justify-self: end;
  }

  .navbar-logo img {
    height: 50px;
  }

  .nav-links {
    display: flex;
    margin: 0;
    gap: 20px;
  }

  .nav-links a {
    display: block;
    text-decoration: none;
    color: #000;
    padding: 0;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 14px;
    border-bottom: 4px solid transparent;
    padding: 0;
    text-align: center;
    gap: 10px;

    @media (max-width: 768px) {
      font-size: 13px;
    }
  }

  .nav-links a.active {
    border-bottom-color: #01a982;
  }

  .nav-links div {
    cursor: pointer;
    color: black;
    padding: 10px 15px;
    border-radius: 5px;
  }

  .nav-links div:hover,
  .nav-links div.active {
    background: #f4f4f4;
  }

  /* Profile menu */
  .profile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
  }

  .profile-menu button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    @media (max-width: 768px) {
      font-size: 13px;
      padding: 0;
    }
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-radius: 5px;
  }

  .profile-menu button:hover + .dropdown-content,
  .profile-menu .dropdown-content:hover {
    display: block;
    z-index: 100;
  }

  .dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
  }

  .dropdown-content a:hover {
    background-color: #f1f1f1;
  }

  @media (max-width: 768px) {
    flex-wrap: wrap;
    height: 115px;
    gap: 0;
    padding: 15px 15px 0;

    nav {
      order: 3;
      width: 100%;
      background: rgba(255, 255, 255, 0.1);
      overflow-x: scroll;
      overflow-y: hidden;

      .nav-links {
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        position: relative;
        top: 0;
        left: 0;
        background: transparent;
        gap: 2px;
      }
    }
  }
}

.games-played-container {
  text-align: center;
  padding: 20px;
  .carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
  }

  .games-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    display: flex;
    width: 800px;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .games-wrapper::-webkit-scrollbar {
    display: none;
  }

  .games-list {
    display: flex;
    gap: 15px;
    padding: 10px 0;
  }

  .game-card {
    min-width: 250px;
    max-width: 250px;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    margin: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: white;
  }

  .game-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .play-btn {
    background: rgba(255, 255, 255, 0.8);
    color: black;
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    margin-top: 10px;
    border-radius: 5px;
  }

  .scroll-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .scroll-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
  }

  .scroll-btn.left {
    left: -50px;
  }

  .scroll-btn.right {
    right: -50px;
  }

  @media (max-width: 900px) {
    .scroll-btn.left {
      left: 10px;
    }

    .scroll-btn.right {
      right: 10px;
    }
  }
}

.question-madlib {
  max-width: 1000px;
  padding: 2rem;

  p {
    margin-bottom: 1.5rem;
  }

  .blank {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    margin: 0 0.25rem;
    border-bottom: 2px solid #01a982;
    cursor: pointer;
    min-width: 80px;
    text-align: center;
  }

  .blank.active {
    background-color: #d1ffd1;
    border-color: #01a982;
    color: #01a982;
  }

  .word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    background-color: #eee;
  }

  .word-bank h4 {
    flex: 1 1 100%;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #000;
  }

  .word-bank button {
    all: unset;
    cursor: pointer;
    color: #01a982;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s;
  }

  .word-bank button:hover:not(:disabled) {
    color: #01a982;
    border-bottom: 1px dashed #01a982;
  }

  .word-bank button:disabled {
    color: #aaa;
    cursor: not-allowed;
    border-bottom: none;
  }

  .submit-btn {
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #01a982;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
  }

  .submit-btn:hover {
    background-color: #4ba684;
  }
}

@media (max-width: 768px) {
  .block-columns {
    flex-wrap: wrap;
    padding: 0;

    .block-left_column,
    .block-right_column {
      width: 100%;
    }
  }
}

.formpage-body {
  .block-columns {
    max-width: 1200px;
  }
  .block-left_column,
  .block-right_column {
    padding: 0 15px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

.hpe-brand {
  background: #01a982 !important;
  color: #ffffff;
}

.hpe-purple {
  background: #7630ea !important;
  color: #ffffff;
}

.hpe-teal {
  background: #00e8cf !important;
  color: #000000;
}

.hpe-blue {
  background: #0d5265 !important;
  color: #ffffff;
}

.hpe-red {
  background: #c54e4b !important;
  color: #ffffff;
}

.hpe-orange {
  background: #ff8300 !important;
  color: #000000;
}

.hpe-yellow {
  background: #fec901 !important;
  color: #000000;
}

.hpe-gradient {
  background: linear-gradient(90deg, #6a11cb, #ff8c00) !important;
  color: #ffffff;
}

.hpe-gray {
  background: #f7f7f7;
  color: black;

  .block-columns .block-content {
    h2,
    h3,
    h4 {
      color: #01a982;
    }
  }
}

body.games-body {
  color: #000;
  .tabs-container {
    background: #eee;
  }
  .activities-area {
    background: #fff;
  }
}

body.dashboard-body {
  .tabs,
  #tab-content {
    background: #fff;
  }
}

body.resources-body {
  .tabs-container {
    background: #eee;
  }
  .demo-section {
    h2 {
      color: #000;
    }
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  &.hidden {
    display: none;
  }

  .modal-content {
    background: white;
    color: black;
    padding: 2rem;
    border: 3px solid #00c48c;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;

    .close-button {
      position: absolute;
      top: 0.5rem;
      right: 0.75rem;
      font-size: 1.5rem;
      cursor: pointer;
    }
  }
}

.jeopardy-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: #eee;
  border-radius: 6px;

  @media (max-width: 768px) {
    display: block;
  }

  table {
    border-collapse: separate;
    border-spacing: 1rem;
    text-align: center;
  }

  th {
    background-color: #6800e3;
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    text-transform: capitalize;
    /* min-width: 150px; */
    width: 25%;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  }

  td {
    color: #000;
    background-color: #fff;
    border: 2px solid #00c48c;
    padding: 1.5rem 2rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s, transform 0.2s;
    font-weight: bold;
    font-size: 1.2rem;
  }

  td:hover {
    color: #fff;
    border-color: #6800e3;
    background-color: #6800e3;
    transform: scale(1.05);
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  }

  td.answered {
    color: #fff;
    border-color: #d1d1d1;
    background-color: #d1d1d1;
    cursor: auto;
  }

  td.answered:hover {
    transform: unset;
    box-shadow: unset;
  }

  .game-actions {
    margin-top: 2rem;
    text-align: center;
  }

  .game-actions button {
    padding: 0.75rem 1.5rem;
    background-color: #00c48c;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1rem;
  }

  .game-actions button:hover {
    background-color: #4ba684;
  }

  .question-display h2 {
    margin-top: 0;
    font-size: 1.5rem;
  }

  .question-display h4 {
    color: #6800e3;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
  }

  .answer-option {
    display: flex;
    align-items: center;
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    position: relative;
    text-align: left;
  }

  .answer-option:has(input:checked) {
    background-color: #6800e3;
    color: #fff;
  }

  .answer-option:hover {
    color: #fff;
    border-color: #6800e3;
    background-color: #6800e3;
  }

  .answer-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
  }

  .form-actions button {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 20px;
    background-color: #01a982;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
  }

  .form-actions button.cancel {
    color: #4ba684;
    background-color: #eee;
  }
}

.block-accordion {
  padding: 10px 0px;
  .block-header {
    background: #eeeeee;
    color: #000;
    padding: 10px 20px;
    position: relative;
    cursor: pointer;
    font-size: 24px;
    font-weight: 400;

    &::after {
      width: 10px;
      height: 10px;
      content: "+";
      font-weight: bold;
      /* position: absolute; */
      /* right: 20px; */
    }
    &.open {
      margin-bottom: 7px;
      background: #01a982;
      color: #fff;
      &::after {
        content: "-";
        font-weight: bold;
      }
    }
  }
  .block-accordion_content {
    .block-content {
      margin: 0px;
      padding: 10px 20px;
      background: #fff;
      border: 1px solid #01a982;
      border-radius: 1px;
      color: #000;
      font-size: 24px;
      font-weight: 400;

      a {
        color: #000;
      }
    }
  }
}

/* Style the image that comes before a block with a YouTube link */
.block-image + .block-content a[href*="youtube"],
.block-image + .block-content a[href*="youtu.be"] {
  position: relative;
}

.sidebar {
  background-color: #fff;
  color: black;
  padding: 20px;
  width: 300px;
  border-right: 3px solid #eee;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;

  h1 {
    font-size: 22px;
    margin-bottom: 5px;
  }

  h2 {
    font-size: 20px;
    margin: 5px 0 20px;
  }
  > h1,
  > h2 {
    color: #00c48c;
  }
}

.sidebar .intro {
  margin-top: 10px;
}

.sidebar .intro p {
  font-size: 18px;
  line-height: 1.4;
  margin-top: 10px;
}

.sidebar .intro h1 {
  margin-top: 20px;
}

.sidebar .intro ul {
  margin: 10px 0;
  padding-left: 20px;
}

.sidebar .score-box {
  background: white;
  border-radius: 6px;
  color: black;
  display: flex;
  flex-direction: column;
  flex: 1;

  p,
  div.note {
    font-size: 18px;
    line-height: 1.4;
    margin-top: 10px;
  }

  > p:first-child {
    display: none;
  }
  > p:nth-child(2) {
    margin-top: 30px;
    order: 2;
    display: flex;
    flex-direction: column;
    border: 2px solid #00c48c;
    border-radius: 8px;
    font-size: 24px;
    padding: 15px;
    font-weight: 500;

    &::before {
      content: "Score";
      display: block;
      font-weight: 400;
    }
  }
  > .save-button {
    order: 3;
    background: #f7f7f7;
    border: none;
    display: inline-flex;
    width: 180px;
    margin: auto auto 0;
    text-align: center;
    justify-content: center;
    padding: 8px 14px;
    background: #eee;
    color: #00c48c;
    font-size: 17px;
    font-weight: bold;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;

    &:active {
      color: white;
      background-color: #00c48c;
    }

    &:not(:active) {
      transition: background-color 1s, color 1s;
    }
  }
}

.sidebar .sidebar-play-button {
  margin-top: 30px;
  padding: 6px 40px;
  border: 2px solid white;
  background: #00c48c;
  color: white;
  font-size: large;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;
}

.sidebar .mobile-play-box {
  display: none;
}

/* Hide sidebar by default on small screens */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    transform: translateX(-100%);
    min-height: auto;
    border-right: none;
    text-align: center;
    color: white;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar h1 {
    margin-top: 50px;
  }

  .sidebar .mobile-play-box {
    display: block;
    justify-items: center;
    text-align: center;
  }

  .mobile-play-box p {
    margin-top: 50px;
    text-align: center;
  }

  .sidebar ul {
    list-style-position: inside;
  }

  .score-bar {
    display: flex;
    margin-bottom: 20px;
    justify-content: space-between;
    align-items: center;
    background-color: #b32eff;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: bold;
  }
}

.game-layout {
  flex-grow: 1;

  .results-container {
    a {
      border-color: #01a982;
      background-color: #01a982;
      color: #fff;
      border-radius: 20px;
    }

    .hints-used ul {
      display: flex;
      gap: 20px;
      justify-content: center;
      padding: 0;
      li {
        list-style: none;
      }
    }
  }
}

.gamepage-body {
  .game-layout {
    flex-wrap: nowrap;
  }

  .main-content {
    max-width: 100%;

    .jeopardy-container {
      overflow-x: scroll;

      table {
        width: 100%;
        max-width: 100%;
      }
    }
  }
}

.jeopardy-mobile {
  display: none;
}

@media (max-width: 1200px) {
  .jeopardy-container table {
    display: none;
  }

  .jeopardy-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;

    .score-bar {
      background-color: #6800e3;

      .save-button {
        color: #000;
      }
    }
  }

  .mobile-category {
    border: 2px solid #6800e3;
    border-radius: 12px;
    padding: 1rem;
    background: #eee;
  }

  .mobile-category h3 {
    text-align: center;
    color: #6800e3;
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }

  .mobile-questions {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    grid-template-rows: repeat(2, auto); /* 2 rows */
    gap: 0.5rem;
    justify-items: center;
  }

  .mobile-question {
    padding: 1rem;
    font-size: 1rem;
    font-weight: bold;
    background-color: #fff;
    border: 2px solid #01a982;
    border-radius: 6px;
    width: 100%;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  }

  .answered {
    color: #fff;
    border-color: #d1d1d1;
    background-color: #d1d1d1;
    transform: unset;
    box-shadow: unset;
  }
}

.block-accordion {
  padding: 10px 0px;

  .block-header {
    background: #eeeeee;
    color: #000;
    padding: 10px 20px;
    position: relative;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    font-weight: 400;
    align-items: center;
    gap: 10px;
    justify-content: space-between;

    &::after {
      width: 20px;
      height: 22px;
      content: "+";
      font-weight: bold;
      /* position: absolute; */
      /* right: 20px; */
      text-align: center;
      font-size: 24px;
      line-height: 24px;
    }
    &.open {
      margin-bottom: 7px;
      background: #01a982;
      color: #fff;
      &::after {
        content: "–";
        font-size: 28px;
        line-height: 20px;
        font-weight: bold;
      }
    }

    @media (max-width: 768px) {
      font-size: 18px;
    }
  }
  .block-accordion_content {
    .block-content {
      margin: 0px;
      padding: 10px 20px;
      background: #fff;
      border: 1px solid #01a982;
      border-radius: 1px;
      color: #000;
      font-size: 24px;
      font-weight: 400;

      a {
        color: #000;
      }
      @media (max-width: 768px) {
        font-size: 18px;
      }
    }
    table {
      background: #fff;
      border-collapse: collapse;
      border: 1px solid #ddd;
      border-radius: 10px;
      margin: 20px 0;

      th,
      td {
        text-align: left;
        padding: 4px 6px;
        border: 1px solid #ddd;
      }
      th {
        font-weight: bold;
        background: #000;
        color: #fff;
        padding: 15px 10px;
      }
    }
  }
}

body.activity {
  .block-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    padding: 0 4vw;

    .block-left_column {
      flex: 1;
      max-width: 50%;
      img {
        width: 100%;
        height: auto;
        max-width: 100%;
        @media (min-width: 768px) {
          padding-top: 85px;
        }
      }
    }

    .block-right_column {
      flex: 1;
      padding-top: 30px;

      .block-content > p > a {
        display: inline-block;
        padding: 8px 20px;
        font-weight: 600;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        margin-top: 0;
        background-color: #01a982;
        color: #fff;
        text-align: center;
        width: 100%;
        text-decoration: none;
        border-radius: 5px;
      }
      > .block-content:nth-child(2) {
        border-bottom: none;
      }
      .block-image + .block-content {
        text-align: right;

        a {
          width: auto;
          min-width: 50%;
        }
      }
    }

    @media (max-width: 768px) {
      flex-direction: column;
      gap: 20px;

      .block-left_column {
        max-width: 100%;
        width: 100%;
      }
      .block-right_column {
        padding: 0 15px;
      }
    }
  }

  &.activitypage-body {
    /* image is on right */
    .block-columns {
      .block-left_column {
        padding-top: 30px;

        .block-content:has(a),
        .block-content:has([type="submit"]) {
          background-color: #01a982;
          padding: 15px;
          border-radius: 15px;
          margin: 15px 0;
          text-align: center;

          p {
            font-size: 18px;
            line-height: 120%;
            font-weight: bold;
            color: #fff;
          }

          > p > a,
          [type="submit"] {
            color: #000;
            background-color: #fff;
            border-radius: 20px;
            padding: 7px 13px;
            text-decoration: none;
            font-size: 14px;
            line-height: 12px;
            font-weight: bold;
            display: inline-flex;
            align-items: center;
            width: auto;
            gap: 10px;
            text-align: center;
            justify-content: center;
            border: none;
            margin-bottom: 7px;

            &::after {
              content: "";
              display: block;
              width: 32px;
              height: 15px;
              background-image: url("../img/green_logo.4edfd7f082f7.png");
              background-size: contain;
              background-repeat: no-repeat;
              background-position: center;
            }
            &:last-child {
              margin-bottom: none;
            }
          }
        }
        p:has(.white-button) {
          margin-top: 1rem;
        }
        @media (max-width: 768px) {
          padding: 0 15px;
          order: 2;
        }
      }
      .block-right_column {
        padding: 0;

        .block-image {
          margin: 0;
          img {
            height: auto;
            padding: 0;
            border-radius: 0;
            box-shadow: none;

            @media (min-width: 768px) {
              margin-top: 85px;
            }
          }
        }
        @media (max-width: 768px) {
          padding: 0;
        }
      }
    }
  }

  #next-task-ui {
    margin: 0 auto;

    .task-completion-container {
      display: flex;
      justify-content: end;
      align-items: center;
      padding: 15px 0px;
      gap: 50px;
      width: 100%;
      position: relative;

      @media (max-width: 768px) {
        justify-content: center;
      }

      .task-steps {
        display: none;
      }

      .task-name {
        color: #000;
        font-weight: 600;
      }

      .task-actions {
        display: flex;
        align-items: center;
        justify-content: space-around;

        .button {
          background-color: #01a982;
          color: white;
          border: none;
          padding: 8px 20px;
          font-weight: 600;
          cursor: pointer;
          text-decoration: none;
          display: inline-flex;
          align-items: center;
          border-radius: 50px;
        }

        .task-progress {
          margin-right: 15px;
          font-size: 14px;
          color: #666;
        }
      }
    }
  }
}

/* Style the image that comes before a block with a YouTube link */
.block-image + .block-content a[href*="youtube"],
.block-image + .block-content a[href*="youtu.be"] {
  position: relative;
}

video {
  max-width: 100%;
  height: auto;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid #00c48c;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.5s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.save-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border: 2px solid #00c48c;
  background-color: white;
  color: #00c48c;
  font-weight: bold;
  border-radius: 20px;
  cursor: pointer;

  &:active {
    color: white;
    background-color: #00c48c;
  }

  &:not(:active) {
    transition: background-color 1s, color 1s;
  }
}

#question-display {
  .hint-message {
    padding-bottom: 20px;
  }
}

.green-button,
.button {
  color: #fff;
  background-color: #01a982;
  border-radius: 20px;
  padding: 7px 13px;
  text-decoration: none;
  font-size: 16px;
  line-height: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  &::after {
    content: "";
    display: block;
    width: 32px;
    height: 15px;
    background-image: url("../img/white_logo.1132a5a63a41.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}

.white-button {
  color: #000;
  background-color: #fff;
  border-radius: 20px;
  padding: 7px 13px;
  text-decoration: none;
  font-size: 14px;
  line-height: 12px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 10px;

  &::after {
    content: "";
    display: block;
    width: 32px;
    height: 15px;
    background-image: url("../img/green_logo.4edfd7f082f7.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}

#survey-modal {
  fieldset {
    border: 0;
  }

  #id_rating,
  #id_selling_rating {
    direction: rtl;
    text-align: left;

    > div {
      display: inline-block;
      cursor: pointer;
      color: #777;

      label {
        font-size: 40px;
      }

      input {
        display: none;
      }

      &:hover,
      &:hover ~ *,
      &:has(input:checked),
      &:has(input:checked) ~ * {
        color: #01a982;
      }
    }
  }

  textarea {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  form > div:has(#id_rating_feedback) {
    display: none;
  }

  form > div:has(input[value="1"]:checked, input[value="2"]:checked) + div {
    display: block !important;
  }

  .submit-button {
    text-align: right;
  }
}
