/* General */
p,
a {
  font-size: 1.5rem;
  line-height: 2.2rem;
}

h1 {
  font-size: 5rem;
}

h2 {
  font-size: 3rem;
  padding: 0;
}

h3 {
  font-size: 2rem;
}

.button {
  font-size: 1.2rem;
}

/* Utilities */
.container {
  padding-left: 2rem;
  padding-right: 2rem;
  max-width: calc(1200px + 4rem);
  margin: 0 auto;
}

#main-nav .container #logo img {
  max-width: 12rem;
}

#hero-section {
  justify-content: center;
  background: url("/images/hero/hero-computer-1x.png") 90% 3rem/30% no-repeat;
}

@media screen and (min-resolution: 3.1dppx) {
  #hero-section {
    background-image: url("/images/hero/hero-computer-4x.png");
  }
}

@media screen and (min-resolution: 2.1dppx) and (max-resolution: 3dppx) {
  #hero-section {
    background-image: url("/images/hero/hero-computer-3x.png");
  }
}

@media screen and (min-resolution: 1.1dppx) and (max-resolution: 2dppx) {
  #hero-section {
    background-image: url("/images/hero/hero-computer-2x.png");
  }
}

#hero-section .hero-positioning {
  width: 100%;
  margin-bottom: 0;
}

#hero-section .hero-positioning .container h1 {
  width: calc((calc(1200px + 4rem) - 4rem) / 12 * 7 - 1rem);
}

#hero-section .hero-positioning .container p {
  width: calc((calc(1200px + 4rem) - 4rem) / 12 * 7 - 1rem);
}

#hero-section .hero-positioning .container #services-buttons {
  justify-content: space-between;
  width: calc((calc(1200px + 4rem) - 4rem) / 12 * 7 - 1rem);
}

#hero-section .hero-positioning .container #services-buttons .button {
  padding: 1.5rem 2rem;
}

#stats .stat {
  max-width: 15rem;
}

#stats .stat i {
  font-size: 5rem;
  line-height: 6rem;
  grid-row: 1 / span 1;
}

#stats .stat-number {
  font-size: 5rem;
}

#success-stories .success-story img {
  margin: 0 calc((calc(1200px + 4rem) - 4rem) / 12);
  height: calc((calc(1200px + 4rem) - 4rem) / 12 * 4 - 1rem);
  width: calc((calc(1200px + 4rem) - 4rem) / 12 * 4 - 1rem);
}

#success-stories .success-story p {
  width: calc((calc(1200px + 4rem) - 4rem) / 12 * 6 - 1rem);
}

#testimonials-container {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}

#testimonials-container i {
  display: block;
  font-size: 2rem;
  color: #29b797;
  text-align: center;
  cursor: pointer;
  width: 10%;
}

#testimonials-container i:hover, #testimonials-container i.end {
  color: #176452;
}

#testimonials-container #testimonials {
  width: 80%;
  scroll-behavior: smooth;
  /* Works on Firefox */
  /* Works on Chrome, Edge, and Safari */
}

#testimonials-container #testimonials {
  scrollbar-width: thin;
  scrollbar-color: #29b797 #eefbf8;
}

#testimonials-container #testimonials::-webkit-scrollbar {
  width: 1rem;
}

#testimonials-container #testimonials::-webkit-scrollbar-track {
  background: #eefbf8;
}

#testimonials-container #testimonials::-webkit-scrollbar-thumb {
  background-color: #29b797;
  border-radius: 0.5rem;
  border: 3px solid #eefbf8;
}

#main-footer {
  padding-left: 2rem;
  padding-right: 2rem;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

#main-footer section#main-footer-left {
  display: block;
}

#main-footer-left p {
  font-weight: bold;
  width: 80%;
  margin: 0 auto;
}

#main-footer-credit {
  grid-column: 1 / span 3;
  margin-left: 0;
  margin-right: 0;
}

#outside-of-school article img {
  margin: 0 calc((calc(1200px + 4rem) - 4rem) / 12);
  height: calc((calc(1200px + 4rem) - 4rem) / 12 * 4 - 1rem);
  width: calc((calc(1200px + 4rem) - 4rem) / 12 * 4 - 1rem);
}

#outside-of-school article main {
  width: calc((calc(1200px + 4rem) - 4rem) / 12 * 6 - 1rem);
}

#outside-of-school article h3 {
  margin: 0 calc((calc(1200px + 4rem) - 4rem) / 12);
  width: calc((calc(1200px + 4rem) - 4rem) / 12 * 4 - 1rem);
}

#services {
  display: flex;
  flex-flow: row nowrap;
}

#services .service {
  width: 30%;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto auto auto;
}

#services .service h3 {
  min-height: 5.5rem;
  align-self: start;
}

#services .service ul {
  align-self: flex-start;
}

#services .service .price,
#services .service > a {
  align-self: flex-end;
}

.service-header h2 {
  margin-right: 8rem;
}

.service-section article {
  margin-bottom: 5rem;
}

.service-section article#why-me img {
  height: calc((calc(1200px + 4rem) - 4rem) / 12 * 5 - 1rem);
  width: calc((calc(1200px + 4rem) - 4rem) / 12 * 5 - 1rem);
}

.service-section article#teaching-resources-list h3 {
  margin-bottom: 1rem;
}

.service-section article#teaching-resources-list main {
  padding: 0 2rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
}

.service-section article#teaching-resources-list main .folder {
  width: 33.3%;
}

.service-section article#teaching-resources-list main .folder p {
  margin-left: 0.5rem;
}

.service-section article#teaching-resources-list main .folder::before {
  font-size: 1.7rem;
}

.service-section article#teaching-resources-list main .folder.closed {
  height: 2rem;
}

.service-section article#teaching-resources-list main .folder .subfolder p {
  margin-left: 1.5rem;
}

.service-section article#teaching-resources-list main .folder .subfolder::before {
  font-size: 1.7rem;
}

.service-section article#teaching-resources-list main .folder .subfolder.closed {
  height: 2rem;
}

.service-section article#teaching-resources-list main .folder .subfolder .file p {
  margin-left: 1.7rem;
}

.service-section article#teaching-resources-list main .folder .subfolder .file::before {
  font-size: 1.7rem;
}

.steps {
  margin-top: 8rem;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 4rem;
}

.steps .step {
  padding: 0;
  width: auto;
  margin: 0;
}

.steps .step header {
  display: flex;
  margin-bottom: 2rem;
  justify-content: flex-start;
}

.steps .step p {
  font-size: 1.3rem;
  line-height: 1.5;
}
