
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body { /*Properties*/
  background-color: #040d16;
  text-align: left;
  font-family: 'Inter';
  color: hsl(0 0% 95%);
}

.alt {
  margin-left: clamp(1rem, 6vw, 6.5rem);
  margin-right: clamp(1rem, 6vw, 6.5rem);
}

nav {
  position: sticky;
  width: 100%;
  margin: 0px;
  background: rgba(4, 13, 22, 0.5);
  top: 0;
  z-index: 999;
  backdrop-filter: blur(12px);
}

.menu ul{
  display: flex;
  list-style: none;
  justify-content: space-around;
  font-size: 1.2rem;
  background-color: transparent;
  padding: 1rem;
  border-bottom: 0.5px solid hsl(0 0% 95%);
}

.menu a{
  color: #f3f3f3;
  text-decoration: none;
  padding: 0.6rem;
  display: block;
  text-align:center;
  transition: 0.5s;
}

.menu a:hover{
  color: #60A5FA;
  text-shadow: 0 0 50px #0f7bff50;
}

p {
  line-height: 2rem;
  font-size: 1.25rem;
  color: hsl(0 0% 80%);
  margin: 0 0 2rem 0;
}

.about {
  display: flex;
  align-items: center;
  gap: 6.5rem;
  margin: 0 0 18rem 0;
}

.about p{
  max-width: 75%;
}

.about img {
  width: 100%;
  height: auto;
  max-width: 25%;
}

h1 {
  font-weight: 500;
  font-size: 6.5rem;
  margin: 6.5rem 0 0 0;
  animation-name: siteload;
  animation-duration: 1s;
  transition-timing-function: ease-in;
}

.overskrift {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0rem 0 18rem 0;
}

.overskrift img {
  width: 100%;
  height: auto;
  max-width: 35rem;
  margin: 1rem 0 0 0;
}

h3 {
  font-size: 1.6rem;
  font-weight: 400;
  margin: 1.25rem 0 1.25rem 0;
}

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #0f7bff;
  font-size: 20px;
  font-weight: 400;
  height: 60px;
  width: 120px;
  border: none;
  border-radius: 20px;
  margin-top: 2rem;
  text-decoration: none;
  color: hsl(0 0% 95%);
  transition: 0.3s;
}

.cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px #0f7bff50;
}

.alttekst {
  color: #0f7bff;
}

h2 {
  font-size: 2rem;
}

/*Flex box med projekter*/
.projekter {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin: 0 0 18rem 0;
}


/* hvert kort (billede + tekst) */
.projekt {
  flex: 0 0 calc(33.333% - 1.25rem);
  max-width: calc(33.333% - 1.25rem);
  display: flex;
  flex-direction: column;
  transition: 0.5s;
}

.projekt:hover {
  transform: scale(1.05);
}

.projekt img {
  box-shadow: 0 0 150px #0f7bff50;
  border-radius: 12px;
}

video {
    box-shadow: 0 0 150px #0f7bff50;
  border-radius: 12px;
}

h4 {
  font-size: 1.2rem;
  margin: 0.8rem 0 0 0;
}

.projekt p {
  font-size: 1rem;
}

.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.5s;
}

.animate.vis {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.kontakt {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0 9.3rem 0;
}

.kontakt img {
  height: 100px;
  width: 100px;
  cursor: pointer;
  border-radius: 100%;
  transition: 0.3s;
}

.kontakt img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px #0f7bff50;
}

.kontakt a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: hsl(0 0% 95%);
}

#contact {
  text-align: center;
  margin: 9.3rem 0 0 0;
}

.creators {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin: 0 0 18rem 0;
}

.creator {
  flex: 1;
  background: #071a2c;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
}

.besked {
  margin: 1.5rem;
  color: hsl(0 0% 95%);
  font-size: 1rem;
}

.person {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-direction: row-reverse;
}

.navn {
  font-size: 1.2rem;
  font-weight: 600;
  color: hsl(0 0% 80%);
}

.logo {
  height: 4rem;
  width: auto;
  border-radius: 50%;
}

.link {
  text-decoration: none;
  color: hsl(0 0% 80%);
}

.link:hover {
  text-decoration: underline;
}

.readmore {
  margin: 1.5rem;
  color: hsl(0 0% 95%);
  font-size: 0.75rem;
}

.readmore:hover {
  text-decoration: underline;
  cursor: pointer;
}

/*Title slide in*/
@keyframes siteload {
  from{transform:translateX(-1000px)}
  to{transform:translateX(0px)}
}

@media (max-width: 900px) {

html {
    font-size: 14px;
}

.overskrift {
    flex-direction: column;
    align-items: center;
    margin: 0rem 0 10rem 0;
  }

 .projekt {
    flex: 0 0 calc(50% - 1.25rem);
    max-width: calc(50% - 1.25rem);
  }
}


@media (max-width: 640px){
  html {
    font-size: 16px;
  }

  h1 {
    font-size: 4.5rem;
  }

  .menu ul {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .about {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .about img {
    max-width: 50%;
  }

  .projekt {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .creators {
    flex-direction: column;
  }

  .creator {
    flex: none;
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .kontakt img {
  height: 50px;
  width: 50px;
  }

}