:root {
  --color-white: #ffffff;
  --color-grey: #eeeeee;          /* grey sections */
  --color-grey-dark: #dedcdc;     /* credits at the bottom */
  --color-blue: #4d8dbf;          /* headings and the award section */
  --color-text: #001d30;
  --color-text-soft: #343d4d;     /* text in the top section */
  --color-button: #222833;
  --color-button-hover: #39415a;
  --color-star: #ffb380;

  --font: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --page-margin: clamp(1.25rem, 4.2vw, 5rem);
  --section-space: clamp(3.5rem, 9vw, 10.5rem);
  --radius: clamp(1.25rem, 2.6vw, 3.125rem);

  --size-heading: clamp(1.9rem, 3.5vw, 4.25rem);
  --size-shout: clamp(1.9rem, 4.05vw, 4.75rem);
  --size-lead: clamp(1.3rem, 2.3vw, 2.75rem);
  --size-big: clamp(1.2rem, 2vw, 2.4rem);
  --size-text: clamp(1.05rem, 1.65vw, 2rem);
  --size-note: clamp(1rem, 1.4vw, 1.75rem);
  --size-small: clamp(0.95rem, 1.25vw, 1.5rem);
}

/* Base
   ========================================================================== */

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font);
  font-size: var(--size-text);
  font-weight: 400;
  line-height: 1.3;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  margin: 0 0 1.3em;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2 {
  margin: 0 0 0.75em;
  color: var(--color-blue);
  font-family: var(--font);
  font-size: var(--size-heading);
  font-weight: 600;
  line-height: 1.2;
}

a:focus-visible,
button:focus-visible,
.gallery-track:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 3px;
}

/* Side margins of the page (used together with Bootstrap's container-fluid) */
.page {
  padding-right: var(--page-margin);
  padding-left: var(--page-margin);
}

/* Photos have large rounded corners and are cropped to a fixed shape */
.photo {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Buttons
   ========================================================================== */

.button {
  display: inline-block;
  border-radius: 100px;
  background: var(--color-button);
  color: var(--color-white);
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--color-button-hover);
  color: var(--color-white);
}

.button-start {
  margin-bottom: clamp(2.5rem, 4.6vw, 5.5rem);
  padding: 1.5em 2.4em;
  font-size: clamp(0.85rem, 1.03vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.button-login {
  margin-top: 0.4em;
  padding: 0.75em 4.3em;
  font-size: clamp(0.95rem, 1.17vw, 1.4rem);
}

/* Top
   ========================================================================== */

.hero {
  padding-bottom: var(--section-space);
}

.hero-banner {
  position: relative;
  margin-bottom: clamp(2.5rem, 7.6vw, 9rem);
  padding-top: 1.5rem;
}

.hero-logo {
  width: min(60%, 15rem);
  margin: 0 auto 1rem;
}

.hero-timeline {
  width: 100%;
}

.hero h1 {
  margin-bottom: 0.9em;
}

.hero-text {
  margin-bottom: 0.9em;
  color: var(--color-text-soft);
}

.hero-note {
  max-width: 28em;
  color: var(--color-text-soft);
  font-size: var(--size-small);
  font-weight: 300;
}

.hero-photo {
  aspect-ratio: 19 / 16;
}

/* Sections
   ========================================================================== */

.section {
  padding: var(--section-space) 0;
}

.section-grey {
  background: var(--color-grey);
}

.section-blue {
  background: var(--color-blue);
  color: var(--color-white);
}

/* App section */

.statement {
  max-width: 34em;
  margin-bottom: 1em;
  color: var(--color-text);
  font-size: clamp(1.3rem, 2.2vw, 2.65rem);
  font-weight: 400;
  line-height: 1.3;
}

.note {
  font-size: var(--size-note);
  font-weight: 300;
}

.stores {
  gap: clamp(1rem, 4.6vw, 5.5rem);
  margin-top: clamp(1.25rem, 3.6vw, 4.5rem);
}

.store-badge {
    width: auto;
    height: 96px;
    border: none;
    background: none;
}

.store-badge img {
    height: 100%;
    width: auto;
}

.split-media .photo {
  width: 92%;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.split-text {
  padding: 2.5rem var(--page-margin) 0;
}

.photo-fakta {
  aspect-ratio: 5 / 4;
}

.photo-school {
  aspect-ratio: 13 / 9;
}

/* Den digitale tidsreisen */

.lead-text {
  font-size: var(--size-lead);
}

.carriage {
  width: min(55%, 22rem);
}

/* Skattejakt */

.star {
  width: clamp(2rem, 3.3vw, 4rem);
  margin-bottom: clamp(0.75rem, 1.4vw, 1.75rem);
  fill: var(--color-star);
  transform: rotate(14deg);
}

.shout {
  font-size: var(--size-shout);
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}

.small-text {
  font-size: var(--size-small);
  line-height: 1.5;
}

.treasure-text {
  max-width: 54em;
  color: var(--color-button);
}

.photo-treasure {
  margin-top: clamp(2.5rem, 6.8vw, 8rem);
  aspect-ratio: 2 / 1;
}

/* Skole og pris */

.big-text {
  font-size: var(--size-big);
}

.emblem {
  width: clamp(8rem, 11.7vw, 14rem);
  margin-bottom: clamp(1.5rem, 3.4vw, 4rem);
}

.photo-award {
  aspect-ratio: 4 / 3;
}

/* Bilder */

.section-gallery h2 {
  margin-bottom: 1em;
}

.gallery {
  gap: 0.5rem;
}

.gallery-track {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: center;
}

.gallery-arrow {
  flex: 0 0 auto;
  padding: 0.75rem 0.5rem;
  border: 0;
  background: none;
  color: var(--color-text);
  cursor: pointer;
}

.gallery-arrow:disabled {
  visibility: hidden;
}

.gallery-arrow svg {
  display: block;
  width: 0.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

/* Credits
   ========================================================================== */

.credits {
  padding: clamp(3rem, 7.5vw, 9rem) 0 2rem;
  background: var(--color-grey-dark);
  font-size: clamp(0.95rem, 1.15vw, 1.35rem);
  line-height: 1.45;
}

.credits-title {
  margin-bottom: 1.6em;
  color: var(--color-text);
  font-size: inherit;
  font-weight: 600;
}

.credits-names {
  max-width: 48em;
  margin-bottom: 0;
}

.team {
  width: 100%;
  margin: clamp(1.5rem, 2.6vw, 3rem) 0 clamp(2rem, 3.4vw, 4rem);
}

.partner {
  width: clamp(8rem, 11vw, 13rem);
}

.copyright {
  margin-top: clamp(2rem, 4vw, 4.5rem);
  font-size: 0.85em;
}

/* Tablet and desktop (Bootstrap's "md" breakpoint and up)
   ========================================================================== */

@media (min-width: 768px) {

  /* The logo sits on top of the timeline illustration */
  .hero-banner {
    padding-top: 3.2vw;
  }

  .hero-logo {
    position: absolute;
    top: 3.6vw;
    left: 50%;
    width: 16vw;
    margin: 0;
    transform: translateX(-50%);
  }

  .split-media .photo {
    width: 91%;
  }

  .split-text {
    padding: 0 var(--page-margin) 0 4.8vw;
  }

  .split-text p {
    max-width: 22em;
  }

  .split-text h2 {
    max-width: 10em;
  }

  .lead-col {
    padding-left: 4.5vw;
  }

  .lead-text {
    max-width: 20em;
  }

  .carriage {
    width: 44%;
  }

  .photo-treasure {
    width: 53%;
  }

  .award-col {
    padding-right: 4vw;
    padding-left: 3vw;
  }

  .photo-award {
    width: 78%;
    margin-left: 5%;
  }

  .gallery {
    gap: 2rem;
  }

  .team {
    width: 58%;
  }

  .gallery-track {
    width: 58%;
  }
}
