@charset "UTF-8";
/* Add Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend:wght@100..900&display=swap");

/* Box-sizing reset */
html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}

/* Global styles */

body {
  font-family: inter, sans-serif;
  font-size: 16px;
  line-height: 1.5rem;
  color: #666;
  margin: 80px auto 0 auto;
  background-color: #f1f9ff;
  background-image: url("img/css-pattern-by-magicpattern.png");
  /* Image reference: https://www.magicpattern.design/tools/css-backgrounds */
  background-repeat: repeat;
  background-color: rgba(241, 249, 255, 0.95);
  background-blend-mode: lighten;
}

/* hide skip link */
.skip-link {
  position: absolute;
  left: -1000px;
}

/* Style Separated areas */
header,
main > div > article[id="about"] > section:nth-of-type(1),
main > div > article[id="about"] > section:nth-of-type(2),
main > div > article[id="guidelines"],
main > div > article[id="contribute"],
aside.profile,
aside#styles {
  width: 80%;
  margin: 0 auto;
  background-color: #ffffffe8;
  border-radius: 40px;
  padding: 60px;
  margin-bottom: 40px;
}

footer > div {
  background-color: #ffffff;
  padding: 60px 10%;
}

/* style general links */
a {
  color: #222;
}

/* style h2 */
h2 {
  color: #222;
  font-size: 36px;
  line-height: 48px;
}

/* style h3 */
h3 {
  color: #0065c5;
  font-size: 24px;
  line-height: 36px;
}

/* style h4 */
h4 {
  color: #222;
  font-size: 20px;
  line-height: 30px;
}

/* Header styles */
header .container {
  text-align: center;
}

header h1 {
  font-family: Lexend, sans-serif;
  font-weight: bold;
  font-size: 4rem;
  line-height: 5rem;
  margin: 4rem 0 3.13rem 0;
  /* Apply the gradient to the H1 */
  /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#0468c6+0,bae2ff+100 */
  background: linear-gradient(
    to right,
    rgba(4, 104, 198, 1) 0%,
    rgba(186, 226, 255, 1) 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

header h2 {
  color: #222;
  font-size: 36px;
  line-height: 48px;
  margin-bottom: 2.25rem;
}

header p {
  margin-bottom: 3.8rem;
}

header div a.link-github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #0065c5;
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  padding: 24px 48px;
  border-radius: 50px;
  margin-bottom: 4rem;
}

header div a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

header div a svg {
  height: 1.2rem;
  margin-right: 0.5rem;
  /* Change the color of SVG. Reference site: https://codepen.io/sosuke/pen/Pjoqqp */
  filter: invert(99%) sepia(0%) saturate(1346%) hue-rotate(250deg)
    brightness(122%) contrast(100%);
}

/* Navigation styles */
@media (width <= 936px) {
  nav {
    margin-bottom: 40px;
    display: block;
  }

  nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    list-style-type: none;
    margin: 0;
    padding: 36px 10%;
  }

  nav ul a {
    display: block;
    text-decoration: none;
    color: #666;
    padding: 10px 20px;
    background-color: rgb(255, 255, 255);
    border-radius: 50px;
    margin: 10px;
  }
}

@media (width > 936px) {
  nav {
    margin-bottom: 40px;
    display: block;
  }

  nav ul {
    display: flex;
    justify-content: space-between;
    position: static;
    list-style-type: none;
    margin: 0;
    padding: 36px 10%;
  }

  nav ul a {
    display: block;
    text-decoration: none;
    color: #666;
    padding: 10px 20px;
    background-color: rgb(255, 255, 255);
    border-radius: 50px;
    margin: 10px;
  }
}

/* Style Main Section 1 */
main > div > article > section:nth-of-type(1) h2 {
  margin: 0 0 1.25rem 0;
}

blockquote {
  background-color: #f1f9ff;
  margin: 20px 0 20px 0;
  padding: 24px;
  border-radius: 20px;
  color: #0065c5;
}

blockquote p strong,
blockquote a {
  color: #0065c5;
}

/* Style Main Section 2 */
main > div > article > section:nth-of-type(2) h2 {
  margin: 0 0 1.25rem 0;
}
main > div > article > section:nth-of-type(2) ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  gap: 10px;
}
main > div > article > section:nth-of-type(2) ul li {
  padding: 8px 20px;
  background-color: #eef6ff;
  border-radius: 10px;
  color: #0065c5;
}

/* Style Guidelines */
article[id="guidelines"] p:nth-of-type(1) {
  margin-bottom: 40px;
}
article[id="guidelines"] a.link-guidelines {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  padding: 16px 32px;
  background-color: #0065c5;
  border-radius: 10px;
  margin-top: 40px;
}

article[id="guidelines"] p:nth-of-type(4) {
  margin-bottom: 0px;
}

/* Style Contribute */
article[id="contribute"] section.container,
article[id="contribute"] div.container {
  margin: 0;
  padding: 0;
}

article[id="contribute"] section:nth-of-type(2) ol {
  list-style-type: none;
  counter-reset: numbers;
  padding: 20px 20px 20px 58px;
  background-color: #eef6ff;
  border-radius: 10px;
  color: #0065c5;
}

article[id="contribute"] section:nth-of-type(2) ol li {
  margin: 12px 0;
  position: relative;
}

article[id="contribute"] section:nth-of-type(2) ol li a {
  color: #0065c5;
}

/* style list */
/* Reference: https://stylestage.dev/styles/purpleland/ */
article[id="contribute"] section:nth-of-type(2) ol li::before {
  content: counter(numbers);
  counter-increment: numbers;
  text-align: center;
  font-size: 14px;
  height: 28px;
  width: 28px;
  padding: 4px 10px;
  font-weight: bold;
  background-color: #fff;
  border-radius: 50px;
  margin-right: 4px;
  color: #0065c5;
  position: absolute;
  top: 0;
  left: -38px;
}

/* Style Source Files */
article[id="contribute"] footer div[class="container"] h3 {
  margin: 30px 0 20px 0;
  display: block;
}

article[id="contribute"] footer a {
  display: inline-block;
  text-decoration: none;
  color: #0065c5;
  padding: 16px 32px;
  background: #eef6ff;
  border: 1px solid #0065c5;
  border-radius: 10px;
  margin: 0 20px 20px 0;
}

/* Style Currently Staged Style */
aside[class="profile"] div h4 {
  margin: 0 0 24px 0;
}
aside[class="profile"] div ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0;
  padding: 20px 60px;
  background-color: #eef6ff;
  border-radius: 20px;
}

aside[class="profile"] div ul li {
  margin: 8px 16px;
  color: #0065c5;
}

aside[class="profile"] div ul li a {
  color: #0065c5;
}

aside[class="profile"] div ul li::before {
  content: "+";
  margin-right: 2px;
  color: #0065c5;
}

aside[class="profile"] div a[href="styles.css"] {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  padding: 16px 32px;
  background-color: #0065c5;
  border-radius: 10px;
  margin-top: 40px;
}

/* Style Featured Style */
aside[id="styles"] div ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  /* gap: 20px; */
  margin: 0;
  padding: 0;
}

aside[id="styles"] div ul li:nth-of-type(1) {
  background-color: #eef6ff;
  background-image: url("img/css-pattern-by-magicpattern-1.png");
  /* Image reference: https://www.magicpattern.design/tools/css-backgrounds */
  background-repeat: repeat;
  background-color: rgba(241, 249, 255, 0.8);
  background-blend-mode: lighten;
}

aside[id="styles"] div ul li:nth-of-type(2) {
  background-color: #eef6ff;
  background-image: url("img/css-pattern-by-magicpattern-2.png");
  /* Image reference: https://www.magicpattern.design/tools/css-backgrounds */
  background-repeat: repeat;
  background-color: rgba(241, 249, 255, 0.9);
  background-blend-mode: lighten;
}

aside[id="styles"] div ul li:nth-of-type(3) {
  background-color: #eef6ff;
  background-image: url("img/css-pattern-by-magicpattern-3.png");
  /* Image reference: https://www.magicpattern.design/tools/css-backgrounds */
  background-repeat: repeat;
  background-color: rgba(241, 249, 255, 0.9);
  background-blend-mode: lighten;
}

@media (width <= 660px) {
  aside[id="styles"] div ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #eef6ff;
    border-radius: 10px;
    flex: 360px;
    padding: 28px;
    min-height: 180px;
    margin: 10px 0;
  }
}

@media (660px < width <= 1000px) {
  aside[id="styles"] div ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #eef6ff;
    border-radius: 10px;
    flex-basis: 45%;
    padding: 28px;
    min-height: 180px;
    margin: 10px 10px;
  }
}

@media (1000px < width) {
  aside[id="styles"] div ul li {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #eef6ff;
    border-radius: 10px;
    flex-basis: 31%;
    padding: 28px;
    min-height: 180px;
  }
}

aside[id="styles"] div a[class="link-allstyles"] {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  padding: 16px 32px;
  background-color: #0065c5;
  border-radius: 10px;
  margin-top: 40px;
}

/* Style Footer */
footer[class="page-footer"] div {
  color: #d2e9ff;
  background-color: #003b6f;
}

footer[class="page-footer"] div ul {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  gap: 10px;
}

footer[class="page-footer"] div ul li {
  padding: 8px 20px;
  background-color: #0065c5;
  border-radius: 10px;
}

footer[class="page-footer"] div ul li a {
  text-decoration: none;
  color: #fff;
}

footer[class="page-footer"] a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

footer[class="page-footer"] svg {
  height: 1rem;
  margin-right: 0.2rem;
  /* Change the color of SVG. Reference site: https://codepen.io/sosuke/pen/Pjoqqp */
  filter: invert(99%) sepia(0%) saturate(1346%) hue-rotate(250deg)
    brightness(122%) contrast(100%);
}

/* Style footer links */
footer[class="page-footer"] div a {
  color: #d2e9ff;
}
