/* Styles for mobile phones */
@media (max-width: 40em) {
  * {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
  }

  html {
    font-size: 100%;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1rem;
  }

  h3 {
    font-size: 1rem;
  }

  h4 {
    font-size: 1rem;
  }
  p {
    font-size: 1rem;
  }

  /**** Main Navigation ****/

  #hero {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to right,
        rgba(159, 170, 181, 0.1) 10%,
        rgba(8, 26, 43, 0.75) 80%
      ),
      url(https://enske.no/nicki-eliza-schinow-mg3nB1l2KdM-unsplash-01.png);
    background-position: 25%;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 2rem;
  }

  .logo img {
    max-width: 125px;
    align-items: start;
  }

  .topnav {
    margin: 0 2rem;
  }

  .topnav__menu {
    display: none;
  }
  .hero-box {
    width: 50%;
    margin-top: 10rem;
    margin-right: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-box .hero-title {
    line-height: 1;
    padding-right: 1rem;
  }

  .hero-box .hero-subtext {
    max-width: 75%;
    line-height: 1.25;
    padding-bottom: 2rem;
  }

  .plan-home-btn {
    width: 140px;
    text-align: center;
  }
  .kurs-home-btn {
    width: 140px;
    text-align: center;
    margin-top: 1rem;
  }
  /****Quote Section***/

  #quote {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 3rem;
    row-gap: 2rem;
    margin: 4rem 2rem;
  }

  #quote h2 {
    font-size: 0.75rem;
  }
  .quote-img {
    border-radius: 10px;
  }

  /****Tjenester****/

  .tjenester-section-grid {
    display: flex;
    flex-direction: column;
    margin: 3rem 2rem 4rem 2rem;
  }

  .tjenester-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0.75rem;
    row-gap: 3rem;
    padding-right: 0;
    padding-bottom: 2rem;
  }

  .item-icon i {
    font-size: 1.5rem;
    height: 50px;
    width: 50px;
  }

  .kurs-grid {
    display: flex;
    flex-direction: column;

    row-gap: 24px;
    background-color: #264059;
    padding: 2rem;
    border-radius: 10px;
  }

  .kurs-grid h2 {
    font-size: 1.5rem;
    font-weight: 400;
  }
  .kurs-grid p {
    line-height: 1.25;
  }

  /*****Team*****/

  .team {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-area: auto;
    column-gap: 0.5rem;
    row-gap: 0.5rem;
    margin: 3rem 2rem 5rem 2rem;
  }

  .team-card {
    background-color: #264059;
    border-radius: 10px;
  }
  .team-pic {
    height: 100%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
  }

  .team-text {
    display: flex;
    padding: 1rem;
    line-height: 1rem;
  }

  .team-text a {
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5rem;
    text-decoration: none;
    color: #fff;
  }

  .team-text p {
    font-size: 1rem;
    font-weight: 200;
    line-height: 2rem;
  }
  .team-text i {
    padding-right: 0.5rem;
  }
  .team-text .phone {
    padding-top: 1.25rem;
  }

  .full-team {
    display: flex;
    justify-content: center;
    margin: 2rem;
  }

  .full-team img {
    border-radius: 10px;
    width: 100%;
  }

  /****Kunder****/

  #kunder {
    text-align: center;
  }

  .marquee {
    overflow: hidden;

    gap: var(--gap);
    block-size: var(--marquee-item-height);
    margin-top: 2rem;
    position: relative;
    overflow-x: hidden;
    mask-image: linear-gradient(
      to right,
      hsl(0 0% 0% / 0),
      hsl(0 0% 0% / 1) 20%,
      hsl(0 0% 0% / 1) 80%,
      hsl(0 0% 0% / 0)
    );
  }

  .marquee--8 {
    display: grid;
    align-items: center;
    align-content: center;
    --marquee-item-width: 200px;
    --marquee-item-height: 150px;
    --marquee-duration: 60s;
    --marquee-items: 8;
  }

  .marquee__item {
    max-width: 200px;
    --marquee-item-offset: max(
      calc(var(--marquee-item-width) * var(--marquee-items)),
      calc(100% + var(--marquee-item-width))
    );
    --marquee-delay: calc(
      var(--marquee-duration) / var(--marquee-items) *
        (var(--marquee-items) - var(--marquee-item-index)) * -1
    );
    position: absolute;
    inset-inline-start: var(--marquee-item-offset);

    animation: go linear var(--marquee-duration) var(--marquee-delay, 0s)
      infinite;
  }

  .marquee__item img {
    display: grid;
    align-items: center;
    max-width: 200px;
  }

  /*****Footer****/

  footer {
    background-color: #264059;
    margin-top: 5rem;
    padding: 2rem;
  }

  .footer-box a {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .footer-box p {
    font-size: 0.75rem;
    line-height: 1.5;
  }
  .logo-footer img {
    width: 100px;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    padding-left: 2rem;
  }

  .footer-nav a {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  /*****Kurs Page****/

  #kurs {
    margin-top: 1rem;
  }

  .kurs-calendar {
    margin-top: 3rem auto;
  }

  .kurs-calendar h1 {
    text-align: center;
    margin-top: 1rem;
  }

  .kurs-button {
    margin: 0 3rem;
    display: flex;
    justify-content: flex-end;
  }

  .kurs-subhead {
    margin: 2rem 3rem;
    text-align: left;
  }

  .kurs-text-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    row-gap: 1rem;
    margin: 2rem 3rem;
  }

  .kurs-text {
    background-color: #264059;
    padding: 2rem;
    border-radius: 10px;
  }

  .kurs-text h2 {
    padding-bottom: 1rem;
    font-size: 1.5rem;
  }

  #kurs-temp {
    margin: 2rem 3rem;
    padding: 0;
  }
  #kurs-temp ul {
    margin: 0;
    padding-top: 1rem;
    padding-left: 1rem;
  }

  #kurs-temp .questions {
    padding-left: 0;
  }

  .kurs-temp-calendar {
    margin: 2rem 3rem;
  }
  .kurs-temp-calendar table {
    overflow: scroll;
    display: block;
  }
}
