/* Global styles */

:root {
  /* Colors */
  --background-color: #ffffff;
  --orange-color: #ff9900;
  --blue-color: #146eb4;
  --dark-text-color: #000000;
  --light-text-color: #ffffff;
  --link-color: #ff9900;
  --link-hover-color: #ffffff;
  --lines-color: #999999;
}

body {
  margin: 60px 140px;
  height: 100vh;
}

body > div,
footer {
  padding: 20px 0 !important;
}

body .block-columns {
  justify-content: center;
}

body > div .block-content p {
  font-size: 20px;
}

body {
  & header.navbar {
    & .navbar-logo img {
      height: 50px;
      margin-right: 10px;
      margin-top: 20px;
    }
  }
}

body {
  & header.navbar {
    height: 90px;
  }
}

h2 {
	color: var(--light-text-color);
}

/* Login page */

.login-body .block-columns .block-left_column .block-content a {
  color: var(--orange-color);
  border: 0;
  background-color: transparent;
  padding: 0;
}

.login-body .block-columns .block-left_column .block-content a:hover {
  color: var(--link-hover-color);
  border: 0;
  background-color: transparent;
}

.login-body .block-columns .block-right_column .block-content a {
  color: var(--blue-color);
  border: 0;
  background-color: transparent;
  padding: 0;
}

.login-body .block-columns .block-right_column .block-content a:hover {
  color: var(--link-hover-color);
  border: 0;
  background-color: transparent;
}

.login-body .block-form > form > button {
  color: var(--background-color);
  border: 2px solid var(--blue-color);
  background-color: var(--blue-color);
  padding: 10px 40px;
  border-radius: 0px;
  margin-top: 30px;
}

.login-body .block-form > form > button:hover {
  background-color: var(--link-hover-color);
  color: var(--blue-color);
}


/* Forgot pass page */

.forgot-password-body .block-columns .block-left_column .block-content a {
  color: var(--orange-color);
  border: 0;
  background-color: transparent;
  padding: 0;
}

.forgot-password-body .block-columns .block-left_column .block-content a:hover {
  color: var(--link-hover-color);
  border: 0;
  background-color: transparent;
}

.forgot-password-body .block-columns .block-right_column .block-content a {
  color: var(--blue-color);
  border: 0;
  background-color: transparent;
  padding: 0;
}

.forgot-password-body .block-columns .block-right_column .block-content a:hover {
  color: var(--link-hover-color);
  border: 0;
  background-color: transparent;
}

.forgot-password-body .block-form > form > button {
  color: var(--light-text-color);
  border: 2px solid var(--blue-color);
  background-color: var(--blue-color);
  padding: 10px 40px;
  border-radius: 0px;
  margin-top: 30px;
}

.forgot-password-body .block-form > form > button:hover {
  background-color: var(--link-hover-color);
  color: var(--blue-color);
}

/* Reset pass page */

.reset-body .block-columns .block-left_column .block-content a {
  color: var(--orange-color);
  border: 0;
  background-color: transparent;
  padding: 0;
}

.reset-body .block-columns .block-left_column .block-content a:hover {
  color: var(--light-text-color);
  border: 0;
  background-color: transparent;
}

.reset-body .block-columns .block-right_column .block-content a {
  color: var(--blue-color);
  border: 0;
  background-color: transparent;
  padding: 0;
}

.reset-body .block-columns .block-right_column .block-content a:hover {
  color: var(--light-text-color);
  border: 0;
  background-color: transparent;
}

.reset-body .block-form > form > button {
  color: var(--light-text-color);
  border: 2px solid var(--blue-color);
  background-color: var(--blue-color);
  padding: 10px 40px;
  border-radius: 0px;
  margin-top: 30px;
}

.reset-body .block-form > form > button:hover {
  background-color: var(--background-color);
  color: var(--blue-color);
}



/* Homepage background */
body.home-body,
.taskpage-body {
  background-image: url("https://d176piw5yo7jl9.cloudfront.net/awsgi/images/59e4b8b6-5da8-4d81-ac4d-2ca333ee8ed4_img-hp-v1.original.png");
  background-size: cover;
  min-height: 100vh;
  background-position: top;
  background-repeat: no-repeat;
  background-color: var(--background-color);
}

/* Homepage header content */
body.home-body > div {
  font-size: 20px !important;
  text-align: center !important;
}

/* Homepage game tiles */
.sales-play-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(500px, 2fr));
  gap: 50px 100px;
  padding: 40px 16px !important;
  max-width: 1200px;
  margin: 0 auto;
}

.sales-play-tiles .sales-play {
  border-width: 0px !important;
  border-style: none !important;
  background-color: var(--background-color) !important;
  box-shadow: 2px 0px 20px rgba(0, 0, 0, 0.22), 10px 1px 3px rgba(0, 0, 0, 0.08);
  width: 100% !important;
}

.sales-play-tiles .sales-play h3 {
  border-radius: 14px 14px 0 0 !important;
  padding: 20px !important;
  font-size: 24px !important;
}

.sales-play-tiles .sales-play .sales-play-content {
  padding: 20px;
}

.sales-play-tiles .sales-play .point-value {
  padding: 20px !important;
  font-size: 18px !important;
}

.sales-play-tiles .sales-play a {
  padding: 10px 60px !important;
  font-size: 22px !important;
  margin: 0 auto 20px !important;
}

div.block-content:nth-child(5) > p:nth-child(1) > a:nth-child(1) {
  color: var(--light-text-color) !important;
  font-size: 20px !important;
  background-color: var(--orange-color);
  border: 2px solid var(--orange-color);
  padding: 8px 80px;
  border-radius: 50px;
}

div.block-content:nth-child(5) > p:nth-child(1) > a:nth-child(1):hover {
  color: var(--orange-color) !important;
  background-color: var(--background-color) !important;
}

.task-actions {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Taskpage */

.taskpage-body .block-table > table {
  margin: 0 auto;
}

.taskpage-body .block-table > table > tbody > tr > td {
  padding: 10px;
  max-width: 480px;
}

.taskpage-body .block-table > table > tbody > tr > td > p {
  font-size: 20px;
  padding: 10px;
}

.taskpage-body .block-table > table > thead > tr > th {
  font-size: 24px;
}

.block-table > table > tbody > tr > td > img:nth-child(2){
  border-width: 0px !important;
  border-style: none !important;
  width: 100% !important;
  height: auto;
  margin: 20px auto;
  padding: 5px;
  border-radius: 20px;
}

/* Taskpage journey */
.tracked-content .block-content {
  text-align: center;
}

.tracked-content .block-content h2 {
  color: var(--light-text-color);
  font-size: 36px !important;
  padding-bottom: 40px;
}

.tracked-content .block-content h2:nth-of-type(2) {
  color: var(--blue-color) !important;
  font-size: 24px !important;
}

.tracked-content .block-content p {
  font-size: 20px !important;
  padding-bottom: 40px;
}

.tracked-content .block-content h3 {
  padding-bottom: 40px;
  font-size: 30px;
}

.tracked-content .block-video,
.tracked-content .block-image {
  display: flex;
  justify-content: center;
}

.tracked-content .block-video video,
.tracked-content .block-image img {
  border-radius: 10px;
  box-shadow: 2px 0px 20px rgba(0, 0, 0, 0.22), 10px 1px 3px rgba(0, 0, 0, 0.08);
  width: 100%;
  height: auto;
}

.tracked-content .block-video video {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  display: block;
  width: 90%;
}

.tracked-content > .block-content:nth-child(3) {
  padding-top: 40px;
  display: flex;
  justify-content: center;
}

.tracked-content > .block-content:nth-child(3) a {
  color: var(--blue-color) !important;
  border: 2px solid var(--blue-color) !important;
  background-color: var(--background-color) !important;
  padding: 10px 40px !important;
  border-radius: 50px !important;
}

.tracked-content > .block-content:nth-child(3) a:hover {
  background-color: var(--blue-color) !important;
  color: var(--light-text-color) !important;
}

/*Next Button and Step */
#next-task-ui {
  padding-top: 0px !important;
}

#next-task-ui .task-completion-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

#next-task-ui .task-steps {
  display: none !important;
}

#next-task-ui .task-actions a {
  color: var(--light-text-color) !important;
  font-size: 20px !important;
  background-color: var(--orange-color);
  border: 2px solid var(--orange-color);
  padding: 8px 80px;
  border-radius: 50px;
}

#next-task-ui .task-actions a:hover {
  color: var(--orange-color) !important;
  background-color: var(--background-color) !important;
}

/* Journey 2 columns */
.block-columns .block-right_column .block-content a {
  color: var(--light-text-color);
  border: 2px solid var(--blue-color);
  background-color: var(--blue-color);
  padding: 10px 40px;
  border-radius: 50px;
}

.block-columns .block-right_column .block-content a:hover {
  background-color: var(--background-color);
  color: var(--blue-color);
}

.block-columns .block-left_column .block-content a {
  color: var(--light-text-color);
  border: 2px solid var(--blue-color);
  background-color: var(--blue-color);
  padding: 10px 40px;
  border-radius: 50px;
}

.block-columns .block-left_column .block-content a:hover {
  background-color: var(--background-color);
  color: var(--blue-color);
}

.block-columns .block-right_column .block-image,
.block-columns .block-right_column .block-video,
.block-columns .block-left_column .block-image,
.block-columns .block-left_column .block-video {
  padding-bottom: 30px !important;
}

.block-columns .block-right_column #next-task-ui,
.block-columns .block-left_column #next-task-ui {
  padding-top: 30px !important;
}

/* Game 1 */

.awsgi .tracked-content > .block-content:nth-child(3) a {
  padding: 10px 60px !important;
  font-size: 22px !important;
  margin: 0 auto 20px !important;
  background-color: var(--blue-color) !important;
  color: var(--light-text-color) !important;
  width: fit-content !important;
  border: 0 !important;
  border-radius: 99px !important;
}

.awsgi .tracked-content > .block-content:nth-child(3) a:hover {
  background-color: var(--background-color) !important;
  color: var(--blue-color) !important;
  border: 1px solid var(--blue-color) !important;
}


/* Resources */

div.block-accordion > div > div > div > video {
  width:50%;
}

.resources-body .block-accordion .block-accordion_content .block-video video {
  width: 50%;
}

.resources-body .block-video video {
  width: 50%;
}

.block-video div {
  width: 100%;
}

.block-video video {
  width: 90%;
  /* aspect-ratio: 15.6 / 9; */
}


div.block-accordion:nth-child(3) > div:nth-child(2) > div:nth-child(2) > div:nth-child(1) > video {
  width: 50%;
}


/* Leaderboard page */
body.leaderboard-body {
  background-image: url("https://d176piw5yo7jl9.cloudfront.net/awsgi/images/59e4b8b6-5da8-4d81-ac4d-2ca333ee8ed4_img-hp-v1.original.png");
  background-size: cover;
  min-height: 100vh;
  background-position: top;
  background-repeat: no-repeat;
  background-color: var(--background-color);
}

.section::after{
  /* content: "──┘"; */
  content: "";
  position: absolute;
  right: 0;
  top: 6px;
  font-family: monospace;
  font-size: 18px;
}

.section::before {
  /* content: "└──"; */
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  font-family: monospace;
  font-size: 18px;
}

.section.top {
  width: 10%;
}

.section {
  position: relative;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-text-color);
  padding-top: 0;
  margin-top: 5px;
  line-height: 1;
  border-bottom: 1px solid var(--dark-text-color);
  border-left: 1px solid var(--dark-text-color);
  border-right: 1px solid var(--dark-text-color);
  margin-left: 2px;
  margin-right: 2px;
}

.activity-table {
	margin-right: 10px;
}

.activities-and-points {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2em;

  .activity-table {
    table {
      border-spacing: 0;
	  
      td, th {
        border-left: 1px solid var(--lines-color);
        border-top: 1px solid var(--lines-color);
	    background-color: var(--background-color);
        padding: 5px;
      }

      td:first-child {
        width: 2em;
      }
      td:last-child {
        text-align: center;
      }

      tr:last-child td {
        border-bottom: 1px solid var(--lines-color);
		background-color: var(--background-color);
      }

      th:last-child, td:last-child {
        border-right: 1px solid var(--lines-color);
		background-color: var(--background-color);
      }

      /* Round corners of table */
      th:first-of-type {
        border-top-left-radius: 5px;
      }
      th:last-of-type {
        border-top-right-radius: 5px;
      }
      tr:last-of-type td:first-of-type {
        border-bottom-left-radius: 5px;
      }
      tr:last-of-type td:last-of-type {
        border-bottom-right-radius: 5px;
      }
    }
  }
}

.activities-and-points {
  & .points {
    text-align: center;
    border: 3px solid #161d26;
    border-radius: 6px;
    width: fit-content;
    background-color: var(--background-color);
	margin-left: auto;
    margin-right: auto;
  }
}

.sales-play-tiles {
  .sales-play {
	.completed-overlay {
	  position: relative;
      bottom: 70px;
      right: -187px;
	  height: 0;
	  padding: 0;
	  img {
		height: 4rem;
	  }
	}
  }
}

.rank-indicator {
  bottom: 20px;
}

.checked img {
  width: 32px;
  padding: 5px;
}

.ranking-section {
  background: var(--background-color);
  color: var(--dark-text-color);
}

/* Resources */
.resources-body {
  background-image: url("https://d176piw5yo7jl9.cloudfront.net/awsgi/images/59e4b8b6-5da8-4d81-ac4d-2ca333ee8ed4_img-hp-v1.original.png");
  background-size: cover;
  min-height: 100vh;
  background-position: top;
  background-repeat: no-repeat;
  background-color: var(--background-color);
}

.resources-body a{
  color: var(--dark-text-color);
}

.resources-body div.block-content > p {
  font-size: 24px !important;
  margin-bottom: 4px;
}

.block-accordion {
  padding: 10px 0px;

  .block-header {
    background: var(--dark-text-color);
    color: var(--light-text-color);
    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: 0px;
      background: var(--dark-text-color);
      color: var(--light-text-color);
	  border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
      &::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: var(--background-color);
      border: 1px solid var(--dark-text-color);
      border-radius: 0px;
	  border-bottom-left-radius: 10px;
	  border-bottom-right-radius: 10px;
      color: var(--dark-text-color);
      font-size: 20px;
      font-weight: 400;

      a {
        color: var(--blue-color);
		font-size: 20px;
      }
      @media (max-width: 768px) {
        font-size: 18px;
      }
    }
    table {
      background: var(--background-color);
      border-collapse: collapse;
      border: 1px solid var(--dark-text-color);
      border-radius: 10px;
      margin: 20px 0;

      th,
      td {
        text-align: left;
        padding: 4px 6px;
        border: 1px solid var(--dark-text-color);
      }
      th {
        font-weight: bold;
        background: var(--dark-text-color);
        color: var(--light-text-color);
        padding: 15px 10px;
      }
    }
  }
}

/* Sign up */

.signup-body button {
  color: var(--light-text-color);
  border: 2px solid var(--blue-color);
  background-color: var(--blue-color);
  padding: 10px 40px;
  border-radius: 0px;
  margin-top: 30px;
}

.signup-body button:hover {
  background-color: var(--link-hover-color);
  color: var(--blue-color);
}

.signup-body .block-columns .block-left_column .block-content a {
  color: var(--orange-color);
  border: 0;
  background-color: transparent;
  padding: 0;
}

.signup-body .block-columns .block-left_column .block-content a:hover {
  color: var(--link-hover-color);
  border: 0;
  background-color: transparent;
}

.signup-body .block-columns .block-right_column .block-content a {
  color: var(--orange-color);
  border: 0;
  background-color: transparent;
  padding: 0;
}

.signup-body .block-columns .block-right_column .block-content a:hover {
  color: var(--link-hover-color);
  border: 0;
  background-color: transparent;
}



/* Reset password */
.reset-password-body form {
	padding: 50px;
}

.reset-password-body button {
  color: var(--light-text-color);
  border: 2px solid var(--blue-color);
  background-color: var(--blue-color);
  padding: 10px 40px;
  border-radius: 0px;
  margin-top: 30px;
}

.reset-password-body button:hover {
  background-color: var(--link-hover-color);
  color: var(--blue-color);
}


/* Footer */
footer {
  padding: 10px 0 !important;
  font-size: 12px !important;
}


@media (max-width: 768px) {
  body {
    margin: 0px 20px;
  }
  
  body {
	& header.navbar {
	  height: 144px;
	}
  }

  body > div, footer {
    padding: 80px 0 !important;
  }
  
  .block-accordion {
    padding: 20px 0 !important;
  }
  
  video {
    width: 100% !important;
  }
  
  .sales-play-tiles .sales-play {
    width: 64% !important;
    margin: 0 auto;
  }
  
  .activities-and-points {
    flex-direction: column;
	padding: 10px !important;
  }
  
  .points {
    margin-top: 10px;
  }
}