@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css");

:root {
  --header-height: 50px;

  /*? COLORS */
  --color-dark-green: #3e7d3e;

  --color-grey: #767676;

  /* TEXTAREAS */
  --textarea-background-blue: linear-gradient(270deg, #0bb0c4, #025cae);
  --textarea-background-limegreen: linear-gradient(135deg, #75fa02, #8ec202);
  --textarea-background-teal: linear-gradient(45deg, #74fec2, #02caa2);

  /* CIRCLES */
  --circle-color-common-teal: #02caa2;
  --circle-color-neon-green: #8beb02;
  --circle-color-powder-blue: #aefeda;
  --circle-color-dark-navy-blue: #02023a;
}

* {
  padding: 0;
  margin: 0;

  box-sizing: border-box;

  font-family: "Merriweather Sans", serif;
}

/*! HEADER */
header {
  position: fixed;
  z-index: 1;

  width: 100%;

  background-color: rgba(30, 60, 2, 0.19);
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;

  height: var(--header-height);
  max-width: 1300px;

  /* padding: 0 1rem; */
  margin: 0 auto;
}
nav .logo {
  height: 18px;
}
/* #region .MENU */
.menu {
  display: flex;
  align-items: center;

  gap: 1rem;
}

.menu > li:first-child {
  /* this is to hide the index button on phone */
  display: none;
}

.menu li {
  position: relative;

  list-style-type: none;
}
.menu a {
  display: block;

  line-height: var(--header-height);

  color: white;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  text-transform: uppercase;

  cursor: pointer;
}
.arrow-down {
  /* This is the dropdown arrow on the right of OM */
  transform: rotate(180deg);

  font-size: 0.9rem;
}

/* #endregion .MENU */
/* #region .SUBMENU */
.submenu {
  position: absolute;
  top: var(--header-height);
  right: 0;
  z-index: 1;

  display: none;
  flex-direction: column;

  width: 225px;

  padding: 1rem;

  box-shadow: 5px 5px 5px 5px rgba(0, 0, 0, 0.19);
  border-radius: 0px 0px 10px 10px;
  background-color: whitesmoke;
}

.submenu li {
  margin-bottom: 0.5rem;
}
.submenu li:last-of-type {
  margin-bottom: 0;
}

.submenu a {
  display: block;

  color: grey;
  line-height: 20px;
  text-transform: none;

  transition: color 0.2s;
}

.submenu a:hover {
  color: green;
}

.menu a:hover + .submenu,
.submenu:hover {
  display: flex;
}
/* #endregion .SUBMENU */

/*! BACKGROUND IMAGE */
.background-image {
  position: absolute;
  z-index: -1;

  width: 100%;
}

main {
  min-height: 100vh;
}

.container {
  display: flex;
  align-items: center;
  flex-direction: column;

  min-height: 700px;

  text-align: center;

  padding-top: calc(var(--header-height) + 8rem);
}

.info {
  max-width: 350px;
}

.index .info {
  display: flex;
  flex-direction: column;

  height: 300px;
  width: 500px;
}

.title {
  display: inline-block;

  margin: 10px 0;

  color: var(--color-dark-green); /* Mørkegrøn farve */
  line-height: 1.2; /* Gør linjeafstanden tættere */
  font-size: 2.5em; /* Størrelse for overskriften */
  font-weight: bold;
  font-family: "Georgia", serif; /* Elegant skrifttype */
}

.subtitle {
  color: #5a5a5a;
  font-size: 1.2em;
  font-family: "Arial", sans-serif;
}

.button {
  width: 100px;

  padding: 10px 20px;
  margin: 2rem auto 0;

  color: white;
  font-size: 1em;
  font-family: "Arial", sans-serif;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;

  border: none;
  border-radius: 5px;

  transition: background-color 0.3s;

  background-color: #3e7d3e; /* Grøn farve */
}

.button:hover {
  background-color: #2e5d2e; /* Mørkere grøn farve ved hover */
}

.icon-horse img {
  width: 100%;
}
.icon-horse {
  width: 50%;
}

.title:not(.index .title),
.portrait img,
article {
  border-radius: 20px;
  box-shadow: 1px 1px 10px var(--color-grey);
}

.info-wrapper {
  width: 350px;
  text-align: start;
}

.info-wrapper .title {
  width: 100%;

  margin: 0 0 1rem 0;
  padding: 0.5rem;

  color: whitesmoke;
  line-height: 30px;
  text-align: center;
  font-size: 30px;
  font-family: "comic sans ms", sans-serif;

  background: var(--textarea-background-blue);
}

.info-wrapper p {
  color: black;
  font-family: "comic sans ms", sans-serif;
  font-size: 18px;
}
.info-wrapper strong {
  font-family: "comic sans ms", sans-serif;
  font-weight: bold;
}

.portrait {
  margin-bottom: 1rem;
}

.portrait img {
  width: 100%;

  margin-bottom: 0;
}

article {
  margin-bottom: 1rem;
  padding: 1rem;
}
article:nth-of-type(odd) {
  background: var(--textarea-background-teal);
}

article:nth-of-type(even) {
  background: var(--textarea-background-limegreen);
}

article .subtitle {
  margin-bottom: 1rem;

  color: black;
  font-size: 18px;
  font-family: "comic sans ms", sans-serif;
  font-weight: bold;
}

article ul {
  margin-left: 1rem;
}
article ul p {
  margin-bottom: 1rem;
}

article ul li:last-of-type p {
  margin-bottom: 0;
}

.portrait.desktop-only {
  display: none;
}

.portrait.mobile-only {
  display: block;
}

/*! ABOUT SKOVDAL */
/* #region ABOUT SKOVDAL */

.about .container {
  flex-direction: column;
  align-items: center;

  height: 100%;
}

/*! CONTACT */
/* #region CONTACT */

.contact .info {
  width: 500px;
}

.contactform {
  display: flex;
  flex-direction: column;
}

.contactform > div {
  display: flex;

  gap: 1rem;
}
.contactform > div > div {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.contactform label {
  display: flex;

  margin: 1rem 0 0.3rem;
}

.contactform :is(input[type="text"], input[type="email"]) {
  height: 35px;
  padding: 5px;

  border-radius: 7px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}
.contactform textarea {
  height: 175px;
  border-radius: 7px;
  border: 2px solid rgba(0, 0, 0, 0.2);
}

.contactform button {
  margin-top: 1rem;
  padding: 10px 20px;
  font-weight: bold;
  border: none;
  width: 75px;
  outline: none;
  border-radius: 7px;
}

/* #endregion CONTACT */

/*! FOOTER */
footer {
  position: relative;
  z-index: 1;
  /* margin-top: 3rem; */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 1rem;
  height: 100px;
  background-color: darkgreen;
}

footer div {
  display: flex;
  height: 100%;
  justify-content: flex-start;
  flex-direction: column;
  padding: 0.6rem;
}

footer h2 {
  margin-bottom: 0.5rem;

  color: white;
}
footer p {
  margin-bottom: 0.3rem;

  color: hsl(0, 0%, 85%);
}

/* image carousel */

.gallery {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery .title {
  width: 1300px;
  max-width: 100vw;

  margin: 0 0 1rem 0;
  padding: 0.5rem;

  color: whitesmoke;
  line-height: 30px;
  text-align: center;
  font-size: 30px;
  font-family: "comic sans ms", sans-serif;

  background: var(--textarea-background-blue);
}
.slider {
  width: 1300px;
  max-width: 100vw;
  height: 700px;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 1px 1px 10px var(--color-grey);
}

.list {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  width: max-content;
  transition: 1s;
}

.list img {
  width: 1300px;
  max-width: 100vw;
  height: 100%;
  object-fit: cover;
}

.buttons {
  position: absolute;
  top: 45%;
  left: 5%;
  width: 90%;
  display: flex;
  justify-content: space-between;
}

.buttons button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--textarea-background-blue);
  color: #fff;
  border: none;
  font-weight: bold;
}

.dots {
  position: absolute;
  bottom: 0;
  color: #fff;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.dots li {
  list-style: none;
  width: 10px;
  height: 10px;
  background-color: #fff;
  margin: 20px;
  border-radius: 20px;
  transition: 1s;
}

.dots li.active {
  width: 30px;
}

@media only screen and (min-width: 600px) {
  .portrait img {
    width: 500px;
    height: 500px;
  }
  .menu > li:nth-child(1) {
    display: block;
  }
  .info {
    max-width: 500px;
  }

  .info-wrapper {
    width: 500px;

    margin-left: 1rem;
  }

  nav .logo {
    height: 28px;
  }
}

@media screen and (max-width: 768px) {
  .slider {
    height: 400px;
  }
}
@media only screen and (min-width: 1000px) {
  .background-image {
    /* top: -150px; */
    /* top: -182px; */
    top: -205px;
  }

  .container {
    align-items: center;
    justify-content: center;
    flex-direction: row;

    min-height: 100vh;

    margin: 0 1rem;
  }
  .icon-horse {
    width: 500px;

    transform: translateY(40px);
  }

  .contact .container,
  .index .container {
    padding-top: 0px;
  }
  .about .container {
    /* padding-top: 275px; */
    /* padding-top: 242px; */
    padding-top: 215px;

    flex-direction: row;
    align-items: flex-start;
  }

  .portrait {
    margin-top: 0;
  }
  .portrait.desktop-only {
    display: block;
  }
  .portrait.mobile-only {
    display: none;
  }

  .circle-1,
  .circle-2,
  .circle-3,
  .circle-4,
  .circle-5,
  .circle-6,
  .circle-7 {
    position: absolute;

    border-radius: 100%;
  }
  .circle-1 {
    z-index: -1;

    height: 175px;
    width: 175px;

    opacity: 0.8;
    transform: translate(712px, 515px);

    background-color: var(--circle-color-common-teal);
  }

  .circle-2 {
    z-index: -1;

    height: 150px;
    width: 150px;

    opacity: 0.8;
    transform: translate(544px, 225px);

    background-color: var(--circle-color-neon-green);
  }
  .circle-3 {
    z-index: -1;

    height: 300px;
    width: 300px;

    opacity: 0.8;
    transform: translate(-500px, 325px);

    background-color: #028eb2;
  }
  .circle-4 {
    z-index: -1;

    height: 125px;
    width: 125px;

    opacity: 0.8;
    transform: translate(-600px, 100px);

    background-color: var(--circle-color-neon-green);
  }
  .circle-5 {
    z-index: -1;

    height: 200px;
    width: 200px;

    opacity: 0.8;
    transform: translate(5px, 360px);

    background-color: var(--circle-color-dark-navy-blue);
  }
  .circle-6 {
    z-index: -1;

    height: 100px;
    width: 100px;

    opacity: 1;
    transform: translate(-160px, 580px);

    background-color: var(--circle-color-powder-blue);
  }
  .circle-7 {
    z-index: -1;

    height: 100px;
    width: 100px;

    opacity: 0.8;
    transform: translate(-810px, 385px);

    background-color: var(--circle-color-dark-navy-blue);
  }
}
