html {
  font-size: 14px;
  line-height: 1.5;
  font-family: "Raleway";
  color: #444;
}

@media (min-width: 782px) {
  html {
    font-size: 18px;
    line-height: 1.6;
  }
}

@font-face {
  font-family: "Raleway";
  src: url(../fonts/Raleway/Raleway-VariableFont_wght.ttf);
  font-display: swap;
}

@font-face {
  font-family: "";
  src: url(../fonts/Raleway/Raleway-Italic-VariableFont_wght.ttf);
  font-style: italic;
  font-display: swap;
}

h1,
h2,
h3,
h4 {
  font-family: Raleway, sans-serif;
  font-weight: 400;
  margin: 1em 0 0.5em;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
}

h2:after {
  content: "";
  display: block;
  width: 150px;
  margin-top: 0.15em;
  height: 2px;
  background-color: #444;
}

@media (min-width: 782px) {
  h2 {
    font-size: 2.5rem;
  }
}

p {
  margin: 1em 0;
}

.hide-mobile {
  display: none;
}

.hide-desktop {
  display: block;
}
a:visited,
a:hover,
a:active,
a:link {
  color: #9999ff;
}

@media (min-width: 782px) {
  .hide-mobile {
    display: block;
  }

  .hide-desktop {
    display: none;
  }
}

.site-content {
  background: linear-gradient(165deg, #ffffff 0%, #f5f5ffff 50%);
  /* background: linear-gradient( */
  /*   165deg, */
  /*   rgb(245, 245, 255) 0%, */
  /*   rgb(255 243 226) 100% */
  /* ); */
  min-height: calc(var(--vh) * 100);
  position: relative;
  overflow: hidden;
}

.site-content > main {
  z-index: 10;
  position: relative;
  background-color: white;
  padding: 1rem 2rem;
  box-shadow: 2px 2px 20px 0px #00000014;
  margin: 1rem auto;
  border-radius: 12px;
  max-width: min(800px, calc(calc(100 * var(--vw)) - 2rem));
}

.site-content > main::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  bottom: 3rem;
  right: 0;
  left: 0;
  margin: auto;
  background-image: url(../images/learning.webp);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform: rotate(10deg);
}

@media (min-width: 782px) {
  .site-content > main {
    padding: 2rem 4rem;
    margin: 0 auto;
  }

  .site-content > main::after {
    width: 200px;
    height: 200px;
    bottom: -150px;
  }
}

.site-content .alignleft {
  margin-left: 0px;
}

.site-content .alignright {
  margin-right: 0px;
}

#carousel img {
  margin: 0 auto;
  width: 90%;
  object-fit: contain;
  object-position: center;
  height: 200px;
}

@media (min-width: 782px) {
  #carousel img {
    width: 50%;
  }
}

#stack {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

#stack a {
  display: block;
  margin: 0 auto;
}

#stack img {
  max-width: 60px;
}

@media (min-width: 782px) {
  #stack img {
    max-width: 110px;
  }
}

#stack-card {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
}
@media (min-width: 782px) {
  #stack-card {
    flex-direction: row;
  }
}
input,
textarea {
  outline: none;
  border-bottom: 1px solid #ccc;
  padding: 0.5em 0.7em 0.6em;
  display: block;
  width: 100%;
  font-size: 1rem;
  color: #666;
}

input:focus,
textarea:focus {
  border-color: #9999ff;
}

textarea {
  resize: none;
  height: 12em;
}

button {
  border-radius: 6px;
  padding: 0.7em 1.6em;
  font-size: 1rem;
  background-color: #444;
  color: white;
  box-shadow: 4px 4px #9999ff;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

button:hover {
  box-shadow: 0px 0px #9999ff;
  transform: translate(2px, 2px);
}

#contact-success {
  display: none;
}

#contact-success:target {
  display: block;
}
