:root {
  --primary-side-animation-color: rgb(51, 24, 207);
}
@font-face {
  font-family: "wotfardregular";
  src: url("../fonts/wotfard-regular-webfont.eot");
  src: url("../fonts/wotfard-regular-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("../fonts/wotfard-regular-webfont.woff2") format("woff2"),
    url("../fonts/wotfard-regular-webfont.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
html {
  font-family: "wotfardregular", sans-serif;
}
.main-content {
  display: none;
}
h1 {
  line-height: 3.2rem;
  font-weight: 800;
  transition: all 0.2s ease-in;
}
h2 {
  font-weight: 600;
}
p {
  line-height: 2.2rem;
  margin-top: 1rem;
  font-size: 1rem;
}
a {
  text-decoration: none;
}
input {
  height: 2.8rem;
  border: 2px solid #f1f3f5;
  border-radius: 0.375rem;
  font-size: 18px;
  padding: 10px;
}
textarea {
  border: 2px solid #f1f3f5;
  border-radius: 0.375rem;
  font-size: 18px;
  padding: 10px;
}
button {
  background-color: #ff8787;
  border: 0;
  border-radius: 0.175rem;
  font-weight: bold;
  font-size: 20px;
  color: #1b1d1f;
  transition: all 0.2s ease-in;
}
button:hover {
  background-color: #ff6b6b;
  color: #000000;
  cursor: pointer;
}
/** LOADING **/
@keyframes zoomInOut {
  0% {
    transform: scale(1, 1);
  }
  50% {
    transform: scale(1.1, 1.1);
  }
  100% {
    transform: scale(1, 1);
  }
}
.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 8rem;
}
.loader-child {
  margin: auto;
}
.loader img {
  animation: zoomInOut 1s ease infinite;
}

/** THEMING **/
.theme-picker {
  position: absolute;
  top: 3rem;
  right: 3rem;
}
@keyframes slideInUp {
  from {
    transform: translate3d(0, 120%, 0);
    visibility: visible;
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}
.theme-colors {
  display: flex;
  float: right;
  list-style: none;
  padding-right: 2em;
  color: white;
  animation: slideInUp 1s normal;
}
.theme-color {
  margin-right: 1.1em;
}
.dot {
  height: 1.6rem;
  width: 1.6rem;
  border-radius: 50%;
  display: inline-block;
  transition: all 0.2s ease;
}
.dot:hover {
  transform: scale(1.25);
  -webkit-box-shadow: 0px 0px 102px 45px rgba(189, 199, 196, 0.55);
  -moz-box-shadow: 0px 0px 102px 45px rgba(189, 199, 196, 0.55);
  box-shadow: 0px 0px 102px 45px rgba(189, 199, 196, 0.55);
}
.blue {
  background: hsla(217, 100%, 50%, 1);
  background: linear-gradient(
    90deg,
    hsla(217, 100%, 50%, 1) 0%,
    hsla(186, 100%, 69%, 1) 100%
  );
  background: -moz-linear-gradient(
    90deg,
    hsla(217, 100%, 50%, 1) 0%,
    hsla(186, 100%, 69%, 1) 100%
  );
  background: -webkit-linear-gradient(
    90deg,
    hsla(217, 100%, 50%, 1) 0%,
    hsla(186, 100%, 69%, 1) 100%
  );
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#0061FF", endColorstr="#60EFFF", GradientType=1 );
}
.pink {
  background: hsla(333, 100%, 53%, 1);
  background: linear-gradient(
    90deg,
    hsla(333, 100%, 53%, 1) 0%,
    hsla(345, 85%, 81%, 1) 100%
  );
  background: -moz-linear-gradient(
    90deg,
    hsla(333, 100%, 53%, 1) 0%,
    hsla(345, 85%, 81%, 1) 100%
  );
  background: -webkit-linear-gradient(
    90deg,
    hsla(333, 100%, 53%, 1) 0%,
    hsla(345, 85%, 81%, 1) 100%
  );
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#ff0f7b", endColorstr="#F8A7BB", GradientType=1 );
}
.yellow {
  background: hsla(33, 100%, 53%, 1);
  background: linear-gradient(
    90deg,
    hsla(33, 100%, 53%, 1) 0%,
    hsla(58, 100%, 68%, 1) 100%
  );
  background: -moz-linear-gradient(
    90deg,
    hsla(33, 100%, 53%, 1) 0%,
    hsla(58, 100%, 68%, 1) 100%
  );
  background: -webkit-linear-gradient(
    90deg,
    hsla(33, 100%, 53%, 1) 0%,
    hsla(58, 100%, 68%, 1) 100%
  );
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#ff930f", endColorstr="#fff95b", GradientType=1 );
}
.dark {
  background: hsla(205, 46%, 10%, 1);
  background: linear-gradient(
    90deg,
    hsla(205, 46%, 10%, 1) 0%,
    hsla(192, 20%, 20%, 1) 100%
  );
  background: -moz-linear-gradient(
    90deg,
    hsla(205, 46%, 10%, 1) 0%,
    hsla(192, 20%, 20%, 1) 100%
  );
  background: -webkit-linear-gradient(
    90deg,
    hsla(205, 46%, 10%, 1) 0%,
    hsla(192, 20%, 20%, 1) 100%
  );
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#0e1c26", endColorstr="#28383C", GradientType=1 );
}
.light {
  background: hsla(189, 19%, 86%, 1);
  background: linear-gradient(
    90deg,
    hsla(189, 19%, 86%, 1) 0%,
    hsla(0, 0%, 100%, 1) 100%
  );
  background: -moz-linear-gradient(
    90deg,
    hsla(189, 19%, 86%, 1) 0%,
    hsla(0, 0%, 100%, 1) 100%
  );
  background: -webkit-linear-gradient(
    90deg,
    hsla(189, 19%, 86%, 1) 0%,
    hsla(0, 0%, 100%, 1) 100%
  );
  filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#D4E0E2", endColorstr="#FFFFFF", GradientType=1 );
}
/** GENERAL STYLES **/
.max-width-60 {
  max-width: 60rem;
}
.max-width-65 {
  max-width: 65rem;
}
.text-center {
  text-align: center;
}
.border-vertical {
  padding-left: 5px;
  border-left: thick solid #1f5ce0;
}
.card {
  border-radius: 2rem;
  padding: 2.2rem 2.2rem 2.2rem 2.2rem;
  position: relative;
  background-color: rgb(16 16 16);
  border: 1px solid rgb(255 255 255 / 5%);
  transition: transform 0.3s;
}
.doted-background {
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-position: 50% 50%;
  background-size: 1.1rem 1.1rem;
  border-radius: 1.25rem;
}
.side-animation {
  transition: transform 0.18s;
  position: relative;
}
.side-animation:after {
  content: "";
  height: 90px;
  width: 2px;
  position: absolute;
  left: -1px;
  top: 70%;
  transition: top, opacity;
  transition-duration: 400ms;
  transition-timing-function: ease;
  background: linear-gradient(
    transparent,
    var(--primary-side-animation-color),
    transparent
  );
  opacity: 0;
}

.side-animation:after {
  top: 65%;
  opacity: 0;
}

.side-animation:hover:after {
  top: 25%;
  opacity: 1;
}

.card-outline {
  justify-self: center;
  align-self: center;
  text-align: center;
  border-radius: 2rem;
  border-width: 1px;
  padding: 2.2rem 2.2rem 2.2rem 2.2rem;
  transition: transform 0.3s;
}
.input {
  width: 80%;
  margin-top: 2.2rem;
}
.download {
  width: 100%;
  height: 3rem;
  margin-top: 1.2rem;
}
.underline {
  display: block;
  position: relative;
  padding: 0.2em 0;
}
.underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  opacity: 0;
  transition: opacity 100ms, transform 100ms;
}
.underline:hover::after,
.underline:focus::after {
  opacity: 1;
  transform: translate3d(0, 0.2em, 0);
}
.avatar {
  border-radius: 50%;
  position: relative;
  display: block;
  float: right;
  margin-top: -11rem;
  width: 250px;
  transition: all 0.2s ease;
  -webkit-box-shadow: 0px 0px 18px 1px rgba(212, 219, 217, 0.55);
  -moz-box-shadow: 0px 0px 18px 1px rgba(189, 199, 196, 0.55);
  box-shadow: 0px 0px 18px 1px rgba(189, 199, 196, 0.55);
}
.avatar:hover {
  transform: scale(1.1);
}
.cartoon-avatar {
  position: relative;
  display: block;
  float: right;
  margin-top: -7rem;
  width: 164px;
  border-radius: 50%;
}
.follow {
  padding-top: 1.8em;
  color: #1f5ce0;
  font-weight: bold;
}
.follow img {
  padding-right: 1em;
}
.btn-primary {
  display: flex;
  justify-content: center;
}

/** LAYOUT **/
.padding {
  margin-top: 30rem;
}
.grid {
  max-width: 150rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6rem;
}
.grid-center {
  display: grid;
  justify-content: center;
  align-items: center;
}
.grid-2-cols {
  grid-template-columns: repeat(2, 1fr);
}
.space-evenly {
  display: flex;
  position: relative;
  justify-content: space-evenly;
}
.box {
  display: flex;
  align-items: center;
}

/** NAVBAR SECTION **/
.navbar {
  margin-top: 2.6rem;
}
.navbar-list {
  list-style: none;
  display: flex;
  justify-content: center;
}
.nav-menu {
  margin-left: 2.2rem;
  font-weight: bold;
}

.x-shooter {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 54px;

  .ship {
    transform: rotate(90deg);
  }

  .enemy {
    padding-bottom: 0;
  }
}
/**ABOUT SECTION **/
.about {
  padding-top: 5rem;
  margin: 6.4rem 0.6rem 3.6rem 3.6rem;
}
.projects {
  margin: 6.4rem 0.6rem 3.6rem 3.6rem;
  padding: 3.2rem 3.2rem 3.2rem 3.2rem;
}
.projects h2 {
  margin-bottom: 2.2rem;
  text-align: center;
}
.projects img {
  padding-bottom: 1.2rem;
}
.project {
  margin-top: 2.2rem;
}
.all-projects {
  margin: 3.2rem 0rem 1rem 2.8rem;
}

/** CONTACT **/
.contact {
  margin: 6.4rem 3.6rem 3.6rem 3.6rem;
}
form {
  padding: 2.2rem 2.2rem 2.2rem 2.2rem;
}
#name {
  width: 100%;
}
#email {
  width: 100%;
}
#message {
  margin-top: 2.2rem;
  width: 100%;
}
#send {
  margin-top: 2.2.rem;
  width: 100%;
}
/** BLOG POSTS SECTION **/
.card-blog {
  border-radius: 2rem;
  transition: transform 0.3s;
}
.blog-posts {
  max-width: 120rem;
}
.post-list {
  margin-top: 6.4rem;
  margin-left: 1.4rem;
}
.post {
  margin-top: 2.2rem;
  padding: 2.2rem;
}
.post-link {
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  margin-top: 1em;
}
.post:hover {
  max-width: 120rem;
  border-radius: 2rem;
}
.post-date {
  margin-bottom: 0.4rem;
}
.post-date::before {
  border: 2px white;
  height: 100%;
}
.all-articles {
  padding: 3.2rem 3.2rem 3.2rem 3.2rem;
  margin: 1rem 3.6rem 0rem 3.6rem;
}
.free-downloads {
  margin: 0rem 0.6rem 3.6rem 3.6rem;
  padding: 3.2rem 3.2rem 3.2rem 3.2rem;
}
.free-download {
  margin: 6.4rem 0.6rem 3.6rem 3.6rem;
  padding: 3.2rem 3.2rem 3.2rem 3.2rem;
}
.book-title {
  color: white;
  font-size: 1.6rem;
  margin-top: 1.2rem;
}

/** BLOG POST **/
.blog-sidebar {
  margin-right: 2.2rem;
}
.blog-free-download {
  margin-top: 6.4rem;
}
.blog-grid {
  max-width: 150rem;
  display: grid;
  grid-template-columns: 3fr 1.5fr;
  justify-content: center;
  gap: 2.4rem;
  margin: 2.2rem;
}
.post-title {
  font-size: 2.2rem;
}
.blog-post-avatar {
  transition: all 0.5s ease;
}
.blog-post-avatar:hover {
  transform: scale(1.1);
}
article {
  margin: 2.2rem;
  margin-top: 6.4rem;
  padding: 2.2rem;
  width: 90%;
  border-radius: 2rem;
}
article p {
  line-height: 1.2rem;
  padding-top: 10px;
  padding-bottom: 10px;
}
article pre {
  margin-top: 35px;
  margin-bottom: 35px;
}
.badges {
  padding-top: 10px;
  list-style: none;
}
.badge {
  position: relative;
  display: inline-block;
  font-size: large;
  border-radius: 5px;
  background-color: #2b4555;
  padding: 6px 12px;
  margin-right: 8px;
  margin-bottom: 8px;
  font-weight: bold;
}
.badge:hover {
  transform: scale(1.1);
  transition: all 0.4s ease;
}
article img {
  border-radius: 0.375rem;
  max-width: 100%;
}
article li {
  color: #ccccce;
  margin-left: 35px;
  padding-top: 10px;
}
article ul {
  padding-top: 35px;
  padding-bottom: 10px;
}
blockquote {
  padding-bottom: 5px;
  border-radius: 3px;
  font-style: italic;
}
pre {
  color: white;
  overflow: scroll;
  display: block;
  text-align: left;
  background-color: #2b4555;
  border-radius: 1rem;
  padding: 15px;
  background-image: linear-gradient(
    140deg,
    rgb(56, 127, 194),
    rgb(28, 85, 170)
  );
  box-shadow: 0 0 0 1px var(--frame-highlight-border),
    0 0 0 1.5px var(--frame-shadow-border), 0 2.8px 2.2px rgba(0, 0, 0, 0.034),
    0 6.7px 5.3px rgba(0, 0, 0, 0.048), 0 12.5px 10px rgba(0, 0, 0, 0.06),
    0 22.3px 17.9px rgba(0, 0, 0, 0.072), 0 41.8px 33.4px rgba(0, 0, 0, 0.086),
    0 100px 80px rgba(0, 0, 0, 0.12);
}
article code {
  font-size: 15px;
  word-break: normal;
  font-family: monospace;
  white-space: pre-wrap;
  -webkit-overflow-scrolling: touch;
  overflow-x: scroll;
  max-width: 80rem;
  padding: 0;
}

/** POSTS SIDE NAV **/
.popular-posts {
  margin-top: 5rem;
}

.popular-posts ul {
  list-style: none;
}

.popular-posts ul li {
  text-align: left !important;
  padding-top: 1.75rem;
  font-size: 1.25rem;
  transition: all 0.2s ease-in;
}

.popular-posts a:hover {
  font-size: 1.3rem;
}

/** FOOTER **/
.footer {
  max-width: 120rem;
  margin: 2.2rem 2.2rem 4.2rem 2.2rem;
  text-align: center;
  align-items: center;
}
.footer-link {
  padding-left: 2rem;
}

/** 1500px **/
@media (max-width: 1500px) {
  .grid {
    gap: 0.5rem;
  }
  .blog-grid {
    max-width: 120rem;
    grid-template-columns: 2fr 1fr;
    justify-content: space-around;
    gap: 0.05rem;
  }
  article {
    max-width: 80%;
  }
  .blog-sidebar {
    width: 100%;
  }
  .card {
    padding: 1.2rem 1.2rem 1.2rem 1.2rem;
  }
  .card-outline {
    padding: 1.2rem 1.2rem 1.2rem 1.2rem;
  }
  .post {
    padding: 2.2rem 1.2rem 2.2rem 1.2rem;
    margin: 1rem 3.6rem 1rem 3.6rem;
  }
  .free-downloads {
    margin: 0rem 0.6rem 0.6rem 0.6rem;
    padding: 1.2rem 1.2rem 1.2rem 1.2rem;
  }
  .free-download {
    margin: 6.4rem 0.6rem 3.6rem 3.6rem;
    padding: 3.2rem 3.2rem 3.2rem 3.2rem;
  }
  .avatar {
    width: 200px;
  }
}

/** 1275 **/
@media (max-width: 1275px) {
  .navbar-list {
    justify-content: left;
  }
  .avatar {
    width: 150px;
  }
  button {
    width: 100%;
  }
}

/** 1000 **/
@media (max-width: 1000px) {
  .footer {
    max-width: 120rem;
    margin: 1.2rem 1.2rem 2.2rem 1.2rem;
  }
  .avatar {
    width: 150px;
  }
  .card {
    margin-bottom: 0.8rem;
  }
  .grid {
    max-width: 150rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .about {
    margin: 8rem 1.1rem 1.1rem 1.1rem;
    padding: 0.8rem 0.8rem 0.8rem 0.8rem;
  }
  .projects {
    margin: 0.8rem 0.8rem 0.8rem 0.8rem;
    padding: 0.8rem 0.8rem 0.8rem 0.8rem;
  }
  .navbar-list {
    justify-content: left;
  }
  .blog-sidebar {
    display: none;
  }
  .blog-grid {
    max-width: 150rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  article {
    max-width: 100%;
    margin-top: 2.2rem;
    margin: 0.1rem;
  }
  .post {
    padding: 1.4rem;
    margin-left: 0.5rem;
    margin-bottom: 2.2rem;
  }
  .free-download {
    margin: 1rem;
  }
  .cartoon-avatar {
    width: 260px;
  }
  .contact {
    margin: 2.2rem;
    margin-top: 6.2rem;
  }
}

/** 775 **/
@media (max-width: 740px) {
  .navbar-list {
    margin-top: 6.4rem;
    justify-content: left;
  }
  .theme-picker {
    display: flex;
    align-items: center;
  }
  article {
    overflow: scroll;
    padding: 1rem;
  }
  .blog-grid {
    margin: 1rem;
  }
  .links {
    display: grid;
    gap: 15px;
    text-align: center;
  }
}

/** 440 **/
@media (max-width: 440px) {
  .about {
    margin: 8rem 0.1rem 0.1rem 0.1rem;
    padding: 0.7rem 0.7rem 0.7rem 0.7rem;
  }
  .cartoon-avatar {
    margin-top: 0rem;
    float: left;
  }
}

.sales-container {
  max-width: 100rem;
  display: grid;
  margin-left: 2.2rem;
  margin-right: 2.2rem;
}
.sales-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-column-gap: 3.2rem;
  grid-row-gap: 3.2rem;
  align-items: center;
  justify-items: center;
}
.three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 1.2rem;
  grid-row-gap: 1.2rem;
  margin: 5.8rem;
  align-items: center;
  justify-items: center;
}
.sales-section {
  margin-top: 5.8rem;
}
.book-cover {
  transition: all 0.5s ease-in-out;
}
.book-cover:hover {
  transform: rotateY(-20deg);
}
.sales-description {
  font-size: 1.2rem;
}
.sales-cta-button {
  padding: 1.2rem;
  margin-top: 2.8rem;
  margin-bottom: 1.8rem;
}
.sales-preview {
  margin-top: 5.8rem;
  height: 800px;
}
.sales-about-author {
  margin-top: 5.8rem;
  margin-bottom: 5.8rem;
}
.preview-text {
  margin: 1.8rem;
}
.sales-card-title {
  box-shadow: #000000;
}

/* Nav items */
.nav-menu.active::after {
  background-color: inherit;
}

.nav-menu.active {
  outline: 2px solid;
  border-radius: 28px;
  padding: 5px 5px;
}

.theme-color:hover {
  cursor: pointer;
}
