* {
  box-sizing: border-box;
  border-radius: 10px;
}

body {
  font-family: cormorant-garamond, serif;
  padding: 10px;
  background: #eeece8;
}

/* Navbar */
.topnav {
  overflow: hidden;
  background-color: #3a5a40;
  margin-bottom: 20px;
}

.topnav a {
  float: right;
  display: block;
  color: #eeece8;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 20px;
  transition: 0.3s;
}

.topnav a:hover {
  background-color: #c9cfb9;
  color: black;
}

.topnav a.active {
  background-color: #7e9971;
  color: #eeece8;
  float: left;
}
.topnav a.linkedin {
  color: #7e9971;
  text-align: center;
  padding: 10px 14px;
  float: right;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;
  }
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}

/* Header/Blog Title */
.header {
  font-family: cormorant-garamond, serif;
  padding: 10px;
  font-size: 40px;
  text-align: center;
  background: #7e9971;
  h2 {
    margin: 25px 10px;
    color: #18251f;
  }
}
/* The hero image */
.hero-image {
  /* Use "linear-gradient" to add a darken background effect to the image (photographer.jpg). This will make the text easier to read */
  background-image: url("images/flame.webp");

  /* Set a specific height */
  height: 500px;

  /* Position and center the image to scale nicely on all screens */

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: block;
}

/* Place text in the middle of the image */
.hero-text {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #eeece8;
  h1 {
    font-size: 50px;
    margin-bottom: 10px;
  }
  h2 {
    font-size: 30px;
    margin-top: 0px;
  }
}

.om-mig {
  background-color: #7e9971;
  margin-top: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  img {
    margin: 10px;
    border-radius: 50%;
    border: #3a5a40 10px solid;
    max-width: 300px;
    height: auto;
  }
}
.om-mig-text {
  font-size: 18px;
  line-height: 1.6;
  h3 {
    font-weight: 300;
  }
}
@media screen and (max-width: 800px) {
  .om-mig {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .om-mig img {
    margin: 0 0 20px 0;
  }
}
/* Create two equal columns that floats next to each other */
/* Left column */
.leftcolumn {
  float: left;
  width: 50%;
}

/* Right column */
.rightcolumn {
  float: left;
  width: 50%;
  padding-left: 20px;
  margin-bottom: 20px;
}

/* Fake image */
.fakeimg {
  background-color: #aaa;
  width: 100%;
  padding: 20px;
}

/* Add a card effect for articles */
.card {
  background-color: #c9cfb9;
  padding: 20px;
  margin-top: 20px;
  h4 {
    font-weight: 400;
  }
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/*scroll container*/
div.scroll-container {
  background-color: #3a5a40;
  overflow: auto;
  white-space: nowrap;
  padding: 5px;
}

div.scroll-container img {
  padding: 5px;
  max-height: 250px;
}

div.scroll-container video {
  padding: 5px;
  max-height: 250px;
}
/* End scroll container */

/*project grid*/
.container {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.container div {
  font-size: 30px;
  text-align: center;
  img {
    width: 100%;
    height: auto;
    display: block;
  }
  video {
    width: 100%;
    height: auto;
    display: block;
  }
}
/* End project grid */

/*program section*/
.programs-section {
  text-align: center;
  padding: 60px 20px;
  font-family: Arial, sans-serif;
  p {
    color: #18251f;
  }
}

.programs-section h2 {
  color: #18251f;
  font-size: 35px;
  font-weight: 700;
  margin-bottom: 50px;
  font-family: cormorant-garamond, serif;
}

.program-grid {
  display: flex;
  justify-content: center;
  gap: 70px;
}

.program-item {
  text-align: center;
  max-width: 150px;
}

.program-item img {
  width: 100px;
  height: auto;
}

.program-item p {
  margin-top: 15px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

@media screen and (max-width: 650px) {
  .program-grid {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .programs-section h2 {
    font-size: 28px;
  }
  .program-item img {
    width: 150px;
  }
}
.video {
  display: flex;
  width: auto;
  justify-content: center;

  video {
    width: 60%;
    height: auto;
    border-radius: 10px;
    border: #3a5a40 5px solid;
  }
}
@media screen and (max-width: 800px) {
  .video video {
    width: 90%;
  }
}
/* End program section */
/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  background: #3a5a40;

  h2 {
    color: #eeece8;
  }
}
.footer .menu a {
  color: #eeece8;
  text-decoration: none;
  margin: 0 10px;
}
.footer-logo {
  font-size: 32px;
  margin-bottom: 20px;
  margin-top: 0px;
  font-weight: 700;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  display: flex;
  justify-content: center;
  gap: 0px;
  margin-bottom: 20px;
}

.footer-nav li a {
  color: #eeece8;
  text-decoration: none;
  font-size: 18px;
  font-weight: 200;
  letter-spacing: 1px;
  transition: 0.3s;
  display: block;
  padding: 14px 16px;
}

.footer-nav li a:hover {
  color: #18251f;
  background-color: #c9cfb9;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.social-icon {
  width: 45px;
  height: 45px;
  border: 2px solid #c9cfb9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9cfb9;
  font-size: 20px;
  transition: 0.3s;
  text-decoration: none;
}

.social-icon:hover {
  background: #c9cfb9;
  color: #18251f;
}
/*end footer */
/*hjælp fra chatgpt til at gøre header og footer responsiv*/
/*prompt: make header and footer responsive in css */

/* Make h2 headings smaller on small screens (phones) */
@media screen and (max-width: 600px) {
  h2 {
    font-size: 32px;
    line-height: 1.15;
  }

  /* Footer headings should also scale down */
  .footer h2 {
    font-size: 20px;
  }
  .footer-nav li a {
    font-size: 14px;
  }
}
/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {
  .leftcolumn,
  .rightcolumn {
    width: 100%;
    padding: 0;
  }
}
