section.columns .device.kid.desktop-only {
  display: block;
}

section.columns.medium.mobile-only {
  display: none;
}

main {
  overflow-x: hidden;
}
main.flex {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

section {
  margin: 30px 0;
  max-width: 1080px;
  padding: 0 calc(calc(100% - 1080px) / 2);
  box-sizing: content-box;
}

section.center {
  text-align: center;
}

section.thin {
  max-width: 700px;
  padding: 0 calc(calc(100% - 700px) / 2);
}

section.medium {
  margin: 50px 0;
}
section.tall {
  margin: 100px 0;
}
section.less-tall {
  margin: 40px 0;
}

section.columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  align-items: center;
  align-content: center;
  grid-gap: 0 150px;
}
section.columns > * {
  grid-row: 1;
}
section.columns.thin {
  grid-gap: 0 30px;
}

section.flex_columns {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
section.flex_columns .center {
  text-align: center;
  width: 205px;
}

/* Grid section */
section.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 70px;
}
section.grid.two {
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 70px 100px;
}
section.grid.two > div {
  margin: 0 50px;
}
section.grid.compact {
  grid-gap: 0px 80px;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}
section.grid.compact.ada {
  margin-bottom: 20px;
}
section.grid.compact.icons {
  grid-template-columns: 1fr 1fr 1fr;
  display: grid;
  grid-gap: 0px 20px;
}
section .grid_item {
  text-align: center;
}
section .grid_item h3 {
  margin: 10px auto;
}
section .grid_item p {
  margin: 10px auto;
}

/* "Drawn" section edges */
section.edges {
  position: relative;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
}
section.edges .edge {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 0;
  user-select: none;
}
section.edges .edge.top {
  top: 0;
  transform: translateY(-50%);
}
section.edges .edge.bottom {
  bottom: 0;
  transform: translateY(50%);
}
section.edges > *:not(.edge) {
  z-index: 5;
  position: relative;
}

section.intersect {
  margin-bottom: 250px;
}
section.intersect .device {
  height: 0;
  padding-bottom: 100px;
}

section.attach {
  top: 0;
  left: 0;
  right: 0;
}
.parallax {
  z-index: 100;
  background: var(--pokpok-color-white);
}
@media (prefers-reduced-motion: reduce) {
  section.attach {
    position: initial !important;
  }
  .parallax {
    position: initial !important;
    margin-top: 0 !important;
  }
}

.show-700 {
  display: none;
}
.show-900 {
  display: none;
}

section.red {
  background-color: var(--pokpok-color-red);
  color: var(--pokpok-color-white);
}
section.blue {
  background-color: var(--pokpok-color-blue);
  color: var(--pokpok-color-white);
}
section.green {
  background-color: var(--pokpok-color-green);
  color: var(--pokpok-color-white);
}
section.yellow {
  background-color: var(--pokpok-color-yellow);
  color: var(--pokpok-color-blue);
}
section.grey {
  background-color: var(--pokpok-color-grey);
  color: var(--pokpok-color-black);
}
section.sunflower {
  background-color: var(--pokpok-color-sunflower);
  color: var(--pokpok-color-white);
}

.grey_background {
  background-color: #f6fafc;
  box-shadow: 0 -50px 0 0 #f6fafc, 0 50px 0 0 #f6fafc;
  position: relative;
}
.grey_background.thin {
  box-shadow: none;
}
.grey_background::before,
.grey_background::after {
  content: "";
  position: absolute;
  background-image: url("../res/edges/grey_organic.png");
  left: 0;
  height: 30px;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
}
.grey_background::before {
  top: -70px;
}
.grey_background::after {
  bottom: -70px;
  background-position: bottom;
}
.grey_background.thin::before {
  top: -20px;
}
.grey_background.thin::after {
  bottom: -20px;
}
.grey_background.frog .frog {
  position: absolute;
  top: -110px;
  left: 14%;
  height: 60px;
  width: 60px;
}

section.playtest {
  margin-bottom: 0;
}

section.playtest + section {
  margin-top: 0;
}

.playtest + footer {
  border: none;
}

.stores_area {
  margin-top: 40px;
  margin-bottom: 20px;
  display: flex;
  column-gap: 10px;
}

.stores_area {
  text-decoration: none;
}

.stores_area img {
  height: 40px;
}

.awards_area {
  display: flex;
  align-items: center;
  gap: 25px;
}

.awards_area .stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.awards_area .stars img {
  width: 20px;
  height: 20px;
}

.awards_area .reviews_text {
  font-size: 19px;
  color: #424d61;
  font-weight: 400;
}

/* Awards Grid Section */
section.awards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 0;
}

.award-item {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #e0e0e0;
  height: 100%;
  width: 100%;
}

.award-item:last-child {
  border-right: none;
}

/* Desktop Image Sizes */
.time-hundred {
  width: 116px;
  height: 150px;
}

.apple-design {
  width: 128px;
  height: 128px;
}

.app-store {
  width: 120px;
  height: 119px;
}

.thoughtful-design {
  width: 221px;
  height: 106px;
}

@media (min-width: 1180px) {
  section.edges .edge.top {
    top: -60px;
    transform: none;
  }
  section.edges .edge.bottom {
    bottom: -60px;
    transform: none;
  }
}
@media (max-width: 1180px) {
  section {
    padding: 0 50px;
  }
  section.columns {
    grid-gap: 0 50px;
  }
  .device.kid .frame {
    width: 80%;
  }
  .device.kid .kid {
    left: 4% !important;
  }
  .device.kid .video {
    width: 75%;
  }
  .awards_area {
    flex-wrap: wrap;
  }
}
@media (max-width: 900px) {
  section.columns {
    display: block;
    text-align: center;
  }
  section.grid.two {
    grid-gap: 70px;
  }
  section.grid.two > div {
    margin: 0;
  }
  section.flex_columns {
    flex-direction: column;
    text-align: center;
  }
  section.flex_columns.reverse {
    flex-direction: column-reverse;
  }
  section.attach {
    position: initial !important;
    margin: 50px 0 !important;
  }
  .parallax {
    position: initial !important;
    margin-top: 0 !important;
  }
  .hide-900 {
    display: none !important;
  }
  .show-900 {
    display: initial !important;
  }
  .grey_background {
    box-shadow: 0 -50px 0 0 #f6fafc, 0 50px 0 0 #f6fafc;
  }
  .grey_background.frog {
    margin-top: 100px;
  }
  .grey_background.frog .frog {
    top: -105px;
    left: calc(50% - 25px);
    height: 50px;
    width: 50px;
  }

  .device.kid .frame {
    width: 75%;
    margin-left: 0% !important;
  }
  .device.kid .kid {
    left: 2% !important;
  }
  .device.kid .video {
    width: 70%;
    margin-left: 12% !important;
  }
  .stores_area {
    display: none;
    /* visibility: hidden; */
  }
  .awards_area {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 40px auto;
  }

  .awards_area .reviews_text {
    text-align: center;
    font-size: 14px;
  }

  section.awards-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    row-gap: 20px;
    column-gap: 0;
  }

  .award-item {
    border-right: 1px solid #e0e0e0;
    /* padding: 30px 20px; */
  }

  .award-item:nth-child(2n) {
    border-right: none;
  }

  .award-item:nth-child(3),
  .award-item:nth-child(4) {
    border-bottom: none;
  }

  /* Mobile Image Sizes */
  .time-hundred {
    width: 88px;
    height: 114px;
  }

  .apple-design {
    width: 101px;
    height: 101px;
  }

  .app-store {
    width: 99px;
    height: 99px;
  }

  .thoughtful-design {
    width: 155px;
    height: 74px;
  }
  section.columns .device.kid.desktop-only {
    display: none;
  }

  section.columns.medium.mobile-only {
    display: block;
  }
  medium awards-grid
}
@media (max-width: 760px) {
  section.thin {
    padding: 0 30px;
  }
}
@media (max-width: 700px) {
  section {
    padding: 0 30px;
  }
  section.tall.edges {
    margin-top: 80px;
    margin-bottom: 80px;
  }
  section.edges .edge {
    left: calc(100% - 700px);
    right: 0;
    width: 700px;
  }
  section.tall {
    margin: 50px 0;
  }
  .grey_background + section.tall:not(.edges) {
    margin: 100px 0;
  }
  .grey_background {
    margin-top: 100px;
  }
  .grey_background.thin {
    margin-top: 0;
  }
  section.intersect {
    margin-bottom: 35vw;
  }
  section.intersect .device {
    padding-bottom: 15vw;
  }

  section.grid {
    grid-template-columns: 1fr 1fr;
  }

  .show-700 {
    display: initial !important;
  }
  .hide-700 {
    display: none !important;
  }
}
@media (max-width: 500px) {
  section.grid {
    grid-template-columns: 1fr;
    margin: 30px auto 60px;
  }
  section.grid.two {
    grid-template-columns: 1fr;
    grid-gap: 30px;
  }
  section.grid.two > div {
    text-align: center;
  }
  section.grid.two > div .icon {
    width: 70px;
    height: 70px;
  }
  section.grid.compact {
    grid-gap: 0 20px;
  }
  .hide-500 {
    display: none !important;
  }

  .device.kid .frame {
    width: 65%;
    margin-left: -13% !important;
  }
  .device.kid .kid {
    left: 2% !important;
  }
  .device.kid .video {
    width: 60%;
    margin-left: 10% !important;
  }
}

@media (min-height: 900px) {
  section.attach {
    margin: 100px 0;
  }
}
@media (max-height: 450px) {
  section.attach {
    position: initial !important;
  }
  .parallax {
    position: initial !important;
    margin-top: 0 !important;
  }
}

/* YouTube Section Styles */
section.youtube-section {
  margin: 140px 0;
}

.youtube-container {
  max-width: 1063px;
  height: 312px;
  background-color: #F6FAFC;
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 60px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.youtube-content {
  flex: 1;
  max-width: 465px;
  text-align: left;
  z-index: 2;
}

.youtube-title {
  font-size: 38px;
  font-weight: 600;
  color: #424D61;
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.youtube-logo {
  width: 143px;
  height: 31px;
  vertical-align: middle;
  margin-left: 5px;
}

.youtube-description {
  font-size: 21px;
  line-height: 28px;
  color: #424D61;
  margin: 0 0 32px 0;
  font-weight: 400;
}

a.cta.youtube-cta {
  /* Override base .cta styles for YouTube section */
  padding: 10px 20px;
  font-weight: 500;
  border: 1px solid #1582B9;
  border-top-color: transparent;
  border-left-color: transparent;
  border-right-color: transparent;
}

.youtube-image {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  width: 461px;
  height: 312px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.youtube-image .desktop-image {
  display: block;
  width: 461px;
  height: 312px;
  object-fit: cover;
  object-position: left center;
}

.youtube-image .mobile-image {
  display: none;
}

.youtube-image .tablet-image {
  display: none;
}

/* Tablet styles (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .youtube-container {
    max-width: 704px;
    height: 312px;
    padding: 0 0 0 40px;
  }

  .youtube-content {
    flex: 1;
    max-width: 360px;
  }

  .youtube-title {
    font-size: 35px;
    letter-spacing: -2%;
    margin: 0 0 20px 0;
    gap: 8px;
  }

  .youtube-logo {
    width: 143px;
    height: 31px;
    margin-left: 5px;
  }

  .youtube-description {
    font-size: 18px;
    line-height: 24px;
    margin: 0 0 24px 0;
  }

  .youtube-image {
    width: 304px;
    height: 312px;
  }

  .youtube-image .desktop-image {
    display: none;
  }

  .youtube-image .tablet-image {
    display: block;
    width: 304px;
    height: 312px;
    object-fit: cover;
    object-position: left center;
  }

  .youtube-image .mobile-image {
    display: none;
  }
}

@media (max-width: 767px) {
  section.youtube-section {
    margin: 50px 0;
  }

  .youtube-container {
    flex-direction: column;
    max-width: 354px;
    height: auto;
    min-height: 555px;
    padding: 40px 30px 0 30px;
    text-align: center;
    justify-content: center;
  }

  .youtube-content {
    text-align: center;
    padding-right: 0;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .youtube-title {
    font-size: 32px;
    justify-content: center;
    margin-bottom: 40px;
  }

  .youtube-logo {
    width: 124px;
    height: 27px;
  }

  .youtube-description {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 32px;
  }


  .youtube-image {
    width: calc(100% + 60px);
    height: auto;
    margin-top: auto;
    margin-left: -30px;
    margin-right: -30px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .youtube-image .desktop-image {
    display: none;
  }

  .youtube-image .mobile-image {
    display: block;
    width: 100%;
    max-height: 198px;
    height: auto;
    object-fit: cover;
    object-position: center center;
  }
}
