/****************************/
/*   Home hero section      */
/****************************/

.home-hero-section {
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.home-hero-container {
  display: flex;
  flex-direction: row;
  width: 1400px;
  padding-top: 20px;
}

.home-screenshot {
  border-radius: 8px;
  box-shadow: 0px 0px 10px 4px rgba(204, 204, 204, 0.15);
}

.home-screenshot .toolbar {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  height: 20px;
  background-color: #ccc;
  gap: 50px
}

.home-screenshot .toolbar .dots {
  display: flex;
  flex-direction: row;
  gap: 5px;
  margin-left: 10px
}

.home-screenshot .toolbar .dot {
  height: 8px;
  width: 8px;
  background-color: #aaa;
  border-radius: 50%;
}

.home-screenshot .toolbar .url {
  border-radius: 4px;
  height: 14px;
  line-height: 14px;
  font-size: 10px;
  color: #bbb;
  background-color: #f1f1f1;
  min-width: 180px;
  padding: 0 5px;
}

.home-screenshot-container .attribution {
  font-size: 10px;
  color: #666;
  position: absolute;
  top: 3px;
  right: 10px;
}

.home-screenshot .content {
  width: 100%;
  position: relative;
  border: #ccc 2px solid;
  border-top-width: 0;
  box-sizing: border-box;
}

/****************************/
/*         TAGLINE          */
/****************************/

.home-tagline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  box-sizing: border-box;
  width: 80%;
}

.home-tagline-title {
  color: white;
  font-size: 40px;
  margin-bottom: 20px;
}

.home-tagline-desc {
  margin-bottom: 20px;
  font-size: 25px;
}

.home-tagline-explanation {
  font-size: 20px;
}

.home-actions {
  display: flex;
}

.home-actions .home-main-button:not(:last-child) {
  margin-right: 10px;
}

.home-main-button {
  height: 50px;
  line-height: 50px;
  color: #333;
  background: gold;
  font-size: 1.3em;
  text-shadow: none;
  white-space: nowrap;
  transition: 0.3s background;
}

.home-tagline-warning {
  font-style: italic;
  color: #ddd;
  font-size: 14px;
  margin: 0;
}

.home-open-anyway-link {
  color: gold;
}

.home-main-button:hover {
  background: white;
  color: #333 !important;
}

.home-screenshot-container {
  padding: 0 20px;
  max-width: 800px;
  height: 400px;
  position: relative;
}

.home-screenshot {
  flex-grow: 1;
  position: relative;
}

@media (max-width: 1400px) {
  .home-hero-container {
    flex-direction: column;
    width: 85%;
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  .home-tagline {
    align-items: center;
  }

  .home-tagline-title {
    font-size: 32px;
    padding-top: 30px;
    max-width: 600px; /* For good title wrapping */
  }

  .home-screenshot-container {
    height: auto;
    padding-bottom: 0 0 25px 0;
  }

  .home-screenshot-container .attribution  {
    top: calc(100% + 5px);
    color: #aaa;
  }
}

@media (max-width: 600px) {
  .home-hero-container {
    width: 100%;
    padding: 20px;
  }
  
  .home-tagline {
    padding: 0;
  }
  
  .home-tagline-title {
    font-size: 24px;
  }

  .home-tagline-explanation {
    font-size: 16px;
            margin: 0 0 10px 0;
  }

  .home-tagline-desc {
    font-size: 18px;
  }

  .home-screenshot-container {
    height: auto;
  }
}

/****************************/
/*  Section            */
/****************************/


.home-section {
  margin: 0 auto;
  max-width: 740px;
  padding: 30px 20px;
}

.home-section a {
  color: white;
  text-decoration: underline;
  cursor: pointer;
}

.home-section li {
  list-style: disc;
}

.home-section .home-section-content {
  font-size: 16px;
  line-height: 1.4;
  margin: 20px;
}

.home-section-title {
  margin: 0 20px;
  max-width: 700px;
  font-size: 24px;
}

.home-section-subtitle {
  font-size: 18px;
}

.home-section-button-container {
  display: flex;
  justify-content: center;
}

.home-section-piskel-for-kids-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 600px) {
  .home-section-piskel-for-kids-title {
    font-size: 20px;
  }

  .piskel-for-kids-title-image {
    display: none;
  }
} 

.home-section .piskel-for-kids-button {
  text-decoration: none;
  font-weight: 700;
  /* padding: 12px 24px; */
  border-radius: 12px;
  color: gold;
  /* text-shadow: 0 0 20px white, 0 0 40px white, 0 0 60px white, 0 0 80px white; */
  /* text-shadow: 0px 0px 20px rgba(0, 0, 0, 1), 0px 0px 20px rgba(0, 0, 0, 1), 0px 0px 20px rgba(0, 0, 0, 1); */
  background: repeating-linear-gradient(135deg,
      rgb(248, 113, 113) 0%,
      rgb(248, 113, 113) 10%,
      rgb(250, 204, 21) 10%,
      rgb(250, 204, 21) 20%,
      rgb(74, 222, 128) 20%,
      rgb(74, 222, 128) 30%,
      rgb(56, 189, 248) 30%,
      rgb(56, 189, 248) 40%,
      rgb(167, 139, 250) 40%,
      rgb(167, 139, 250) 50%);
  /* background: repeating-linear-gradient(135deg, rgb(248, 113, 113) 0px, rgb(248, 113, 113) 10%, rgb(250, 204, 21) 10%, rgb(250, 204, 21) 20%, rgb(74, 222, 128) 20%, rgb(74, 222, 128) 30%, rgb(56, 189, 248) 30%, rgb(56, 189, 248) 40%, rgb(167, 139, 250) 40%, rgb(167, 139, 250) 50%) */
  background-size: 200% 200%;
  animation: move-stripes 4s linear infinite;
  animation-play-state: paused;

}

.piskel-for-kids-button .piskel-for-kids-button-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: #333;
  border-radius: 8px;
  margin: 6px;
}

.piskel-for-kids-button:hover {
  animation-play-state: running;
  text-decoration: none;
}

@keyframes move-stripes {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 100% 100%;
  }
}

/****************************/
/*   Features section       */
/****************************/

.features-section {
  display: flex;
  justify-items: center;
}

.features-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  gap: 20px;
  margin: 0 auto;
}

.feature-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.feature-image {
  width: 100px;
  height: 100px;
  border: 3px solid white;
  border-radius: 2px;
  flex: 0 0 100px
}

.feature-content {
  width: 350px;
}

.feature-title {
  color: white;
  font-size: 1.3em;
  margin: 0;
}

.feature-description {
  margin-top: 10px;
  font-size: 14px;
}

@media (min-width: 1100px) {
  .features-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
  }

  .feature-container:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
  }
}

@media (max-width: 500px) {
  .feature-content {
    width: auto;
  }
}

@media (max-width: 350px) {
  .feature-image {
    display: none;
  }

  .feature-content {
    width: auto;
  }
}