@import url("https://fonts.googleapis.com/css2?family=Scada:ital,wght@0,400;0,700;1,400;1,700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* outline: 1px solid red; */
}

/* GLOBAL */

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Scada", sans-serif;
  background-color: #e7e8e6;
  color: #23232a;
  /* margin: 20px 60px 0px 60px; */
}

.h1-center {
  text-align: center;
  font-size: 38px;
  margin-top: 40px;
}

h2 {
  font-size: 28px;
}

p {
  line-height: 1.5;
}

.headerContainer {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 20px 0;
  background-color: rgb(231, 232, 230, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 80% eller 90% */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  margin: 0 auto;
}

.headerContainer.scroll {
  border-bottom: 1px solid #c0cac7;
}

.logo a,
nav a {
  color: #73968b;
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
}

.my-logo {
  font-size: 30px;
}

nav {
  /* width: 300px;
  display: flex;
  justify-content: space-evenly; */
  position: relative;
  padding-top: 15px;
  padding-bottom: 15px;
  /* width: 50px;
  height: 50px; */
}

nav a {
  display: inline-block;
  font-size: 18px;
}

/* nav a:hover {
  color: #466f62;
} */

nav a.active {
  font-weight: bold;
}

#burgermenu {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  border: none;
  color: #73968b;
  background: none;
  font-size: 25px;
  cursor: pointer;
}

#burgerIcon {
  /* Det her skal rettes. Måske skal der være padding. */
  align-items: center;
}

#burgermenu:hover {
  color: #466f62;
}

.navLinks {
  display: none;
}

.navLinks a {
  color: white;
  width: 100%;
  padding: 20px 40px;
  border-bottom: 1px solid #73968b;
  text-align: center;
}

.navLinks.show {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  position: fixed;
  top: 77px;
  left: 0;
  width: 100%;

  background-color: #466f62;
  border-top: 1px solid #73968b;
}

/* Global styling af knapper */

.aboutBtn,
.cvBtn,
.visitBtn,
.procesBtn,
.ctaBtn {
  background-color: #73968b;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  text-align: center;
  border-radius: 1px;
  padding: 10px;
  margin-top: 30px;
  transition: background-color 0.4s ease;
}

.aboutBtn:hover,
.cvBtn:hover,
.visitBtn:hover,
.procesBtn:hover {
  background-color: #466f62;
}

.aboutBtn {
  width: 190px;
}

.cvBtn,
.procesBtn {
  width: 125px;
}

.visitBtn {
  width: 175px;
}

#saldoBtn {
  width: 160px;
}

/* MAIN */

main {
  margin: 0 auto;
}

.cta-contact {
  display: flex;
  flex-direction: column;
  background-color: #466f62;
  color: white;
  width: 100%;
  height: 400px;
  text-align: center;
  justify-content: center;
  margin-top: 100px;
}

.cta-contact p {
  font-size: 22px;
  margin-top: 20px;
}

.ctaBtn {
  background-color: #466f62;
  font-size: 24px;
  font-weight: bold;
  border: 2px solid white;
  width: 240px;
  padding: 20px;
  margin: 30px auto 0;
}

.ctaBtn:hover {
  background-color: white;
  color: #466f62;
}

/* FOOTER */

footer {
  height: 300px;
  background-color: #73968b;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.myLogo-footer {
  color: white;
  font-size: 25px;
}

.nav-footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 15px;
}

.nav-footer a {
  text-decoration: none;
  color: white;
}

.some-icons-footer a {
  color: white;
}

.fa-brands {
  font-size: 25px;
  transition: 0.4s ease;
}

.some-icons-footer .fa-brands:hover {
  color: white;
  transform: scale(1.2);
}

/* BORDER/HORIZONTAL RULE MELLEM AFSNIT */
hr {
  border: 0;
  border-top: 1px solid #c0cac7;
  margin: 40px auto 0;
  width: 90%;
}

/* HJEM */

.myIntro {
  margin: 40px auto 0;
  width: 80%;
}

.myIntro-text {
  max-width: 520px;
}

#name {
  font-size: 38px;
}

#degree {
  font-size: 28px;
}

.portrait {
  width: 80%;
  max-width: 420px;
  margin: 40px auto 0;
}

.portrait-img {
  display: block;
  width: 100%;
}

.about {
  margin-top: 20px;
}

.aboutBtn {
  display: inline-block;
}

#programs-h2 {
  text-align: center;
  margin-top: 40px;
}

/* OM MIG */

.about-me-container {
  margin: 40px auto 0;
  width: 80%;
}

/* Mit CV */

.about-p1 p,
.about-p2 p {
  margin-top: 20px;
}

.exp {
  display: flex;
  flex-direction: column;
  /* gap: 10px; */
  border-left: 3px solid #5e9181;
  margin-top: 25px;
  /* justify-content: space-between; */
}

.exp h2,
.cvBtn {
  margin-left: 20px;
}

/* Programmer */

.programs-grid {
  display: grid;
  grid-template-areas:
    "one"
    "two"
    "three"
    "four"
    "five"
    "six"
    "seven";
  gap: 40px;
  margin: 40px auto 0;
  width: 80%;
}

.one {
  grid-area: one;
}

.two {
  grid-area: two;
}

.three {
  grid-area: three;
}

.four {
  grid-area: four;
}

.five {
  grid-area: five;
}

.six {
  grid-area: six;
}

.seven {
  grid-area: seven;
}

.program {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.program-icon {
  width: 50px;
}

.program-img {
  width: 100%;
}

/* PROJEKTER */

.projects-container {
  margin: 60px auto 0;
  width: 80%;
}

.project-1 {
  max-width: 500px;
}

.project-no {
  display: flex;
  align-items: center;
  gap: 10px;
}

#project-no {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #73968b;
  color: white;
  font-size: 22px;
  width: 35px;
  height: 35px;
  border-radius: 1px;
}

.project-info {
  margin-top: 20px;
}

.project-btns {
  display: flex;
  gap: 15px;
}

.proces {
  background-color: #73968b;
  font-size: 18px;
  padding: 15px;
  margin-top: 30px;
  cursor: pointer;
  transition: background-color 0.4s ease;
}

.proces:hover {
  background-color: #466f62;
}

.project-img-container {
  width: 80%;
  max-width: 500px;
  margin: 40px auto 0;
  aspect-ratio: 4 / 3;
  overflow-y: auto;
  overflow-x: hidden;
}

.project-img {
  display: block;
  width: 100%;
  /* height: auto; */
}

/* KONTAKT */

#contact-text {
  font-size: 22px;
  line-height: 1.5;
  max-width: 700px;
}

.contact-info,
.my-info-and-form-container {
  width: 80%;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info {
  margin-top: 60px;
}

.my-info-and-form-container {
  margin: 40px auto 100px;
}

.my-info {
  width: 100%;
  max-width: 350px;
  margin: 0 auto;
}

.fa-user,
.fa-phone,
.fa-envelope,
.fa-location-dot {
  color: #73968b;
  font-size: 25px;
}

.mail,
.tlf-nr {
  text-decoration: none;
  color: black;
}

.info-list {
  display: flex;
  align-items: center;
  gap: 15px;
}

.info-header {
  color: #73968b;
}

.contact-some {
  margin-top: 40px;
}

.contact-some p {
  font-weight: bold;
}

.some-icons {
  margin-top: 20px;
}

.some-icons a {
  color: #73968b;
}

.fa-brands:hover {
  color: #466f62;
  transform: scale(1.2);
}

#hr-contact {
  max-width: 90%;
  margin-left: 0px;
}

/* Kontaktform */
.form-container {
  background-color: white;
  border-radius: 1px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  box-sizing: border-box;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
}

input:not([type="submit"]),
textarea {
  display: block;
  background-color: #f8f8f8;
  font-family: "Scada", sans-serif;
  font-size: 16px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 1px;
  border: 1px solid #c0cac7;
}

textarea {
  min-height: 100px;
  margin-top: 20px;
  resize: vertical;
}

/* Top-margen til inputfelterne email og emne. */
.email,
.subject {
  margin-top: 20px;
}

#btnSend {
  background-color: #73968b;
  color: white;
  font-family: "Scada", sans-serif;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 1px;
  padding: 10px;
  width: 100px;
  margin-top: 15px;
  cursor: pointer;
  transition: background-color 0.4s ease;
}

#btnSend:hover {
  background-color: #466f62;
}

.contact-text {
  max-width: 300px;
}

/* Overlay til kontaktformular */
.contact-overlay {
  position: fixed;
  /* Inset med værdi på 0 er brugt for at overlayet dækker hele skærmen. */
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  /* Display: none er brugt for at overlayet ikke ses, når det ikke er aktiveret (ved at trykke send på kontaktformularen. */
  display: none;
}

.contact-overlay.show {
  /* Display: flex benyttes, når overlayet er aktiveret og skal ses. */
  display: flex;
}

.overlay-content {
  background: #f8f8f8;
  padding: 40px;
  border-radius: 10px;
  width: 250px;
}

#closeOverlay {
  background-color: #73968b;
  color: white;
  font-family: "Scada", sans-serif;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  padding: 10px;
  width: 60px;
  cursor: pointer;
  margin-top: 30px;
}

#closeOverlay:hover {
  background-color: #466f62;
}

/* TABLET */

@media screen and (min-width: 768px) {
  /* GLOBAL */

  .navLinks {
    display: flex;
    flex-direction: row;
    width: 250px;
    justify-content: space-between;
    align-items: center;
  }

  .navLinks a {
    color: #5e9181;
    width: auto;
    padding: 0;
    border: none;
  }

  nav a {
    transition: 0.2s ease;
  }

  /* Har brugt inline-block for at få transform til at virke, da det normalt ikke virker på inline-elementer. */
  nav a:hover {
    color: #466f62;
    transform: scale(1.2);
  }

  nav a.active {
    color: #466f62;
    font-weight: bold;
  }

  #burgermenu {
    display: none;
  }

  /* main,
  header {
    width: 85%;
  } */

  .h1-center {
    font-size: 50px;
  }

  /* FOOTER */

  footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: 150px;
  }

  .nav-footer,
  .some-icons-footer {
    justify-self: center;
  }

  .nav-footer {
    flex-direction: row;
  }

  /* HJEM */

  #name {
    font-size: 50px;
  }

  #degree {
    font-size: 40px;
  }

  .myIntro {
    display: flex;
  }

  .myIntro-text {
    max-width: 350px;
  }

  .portrait {
    width: 100%;
    max-width: 380px;
    /* justify-self: end; */
  }

  /* Om mig */

  .about-me {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
      "h2 . exp"
      "about1 about2 exp";
    column-gap: 40px;
    /* row-gap: 5px; */
  }

  .about-me h2 {
    grid-area: h2;
  }

  .about-p1 {
    grid-area: about1;
  }

  .about-p2 {
    grid-area: about2;
  }

  .exp {
    grid-area: exp;
    margin-top: 0px;
  }

  /* Programmer */

  .programs-grid {
    grid-template-areas:
      "one one two two three three four four"
      ". five five six six seven seven .";
  }

  /* PROJEKTER */

  .project-1 {
    margin: 0 auto;
  }

  /* KONTAKT */

  .contact-info,
  .my-info-and-form-container {
    max-width: 1200px;
  }

  .my-info-and-form-container {
    display: flex;
    justify-content: center;
  }

  .form-container {
    margin: 0 auto 0;
  }
}

/* DESKTOP */

@media screen and (min-width: 1024px) {
  /* HJEM */

  .myIntro-text {
    max-width: 520px;
  }

  .about p {
    font-size: 22px;
  }

  .aboutBtn {
    font-size: 22px;
    width: 220px;
  }

  .portrait {
    max-width: 480px;
  }

  /* PROJEKTER */

  .project {
    display: flex;
    justify-content: space-between;
    gap: 40px;
  }

  .project-1 {
    max-width: 500px;
  }

  .project-img-container {
    aspect-ratio: 16 / 9;
    margin-top: 0;
  }

  /* KONTAKT */

  .my-info-and-form-container {
    border-left: 3px solid #5e9181;
  }
}
