/** 
* *Highlighted Comment
* !Alert
* ?Query
* TODO
* //Commented out
*/

/* Universal */
:root {
  /* Colors */
  --Nav-Footer-color: hsl(104, 58%, 47%);
  --Background-Nav-color: hsl(0, 0%, 0%, 0.3);
  --Text-Nav-Footer-color: hsl(0, 0%, 96%);
  --Background-DropDown-color: hsla(0, 0%, 0%, 0.95);
  --Background-OverwiewOfFood-color: hsl(28, 96%, 48%);

  /* Text-Size */
  --DefaultText-Size: 1.4rem;
}

* {
  padding: 0;
  margin: 0;
}

/* Html */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Text styling */
p,
h4 {
  font-size: var(--DefaultText-Size);
}

h1 {
  margin-top: 1rem;
  font-size: 2.5rem;
}
h2 {
  font-size: 1.5rem;
}
h3 {
  font-size: 1.2rem;
}

/* Header */
header {
  position: sticky;
  display: flex;
  top: 0;
  height: 80px;
  padding: 0.5rem;
  align-items: center;
  background-color: var(--Nav-Footer-color);
}

header > a img {
  display: block;
  max-height: 80px;
}

/* HamburgermenuIcon / Animation - Kun på mobil */
.hamburgerIcon /*  */ {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  top: 20px;
  right: 10px;
  height: 50px;
}

.hamburgerIcon > div {
  height: 8px;
  width: 50px;
  border-radius: 30px;
  background-color: var(--Text-Nav-Footer-color);
  transition: 500ms;
}

.menu-btn {
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 1;
  opacity: 0;
}

.menu-btn ~ div {
  animation-duration: 500ms;
  animation-fill-mode: both;
}
/* Herunder kan findes Animationen til HamburgermenuIcon */
/* #region menu-btntop */
.menu-btn ~ div:nth-of-type(1) {
  animation-name: btntopdefault;
}
.menu-btn:checked ~ div:nth-of-type(1) {
  animation-name: btntop;
  transform-origin: center;
}
@keyframes btntop {
  0% {
    transform: translateY(0%);
  }
  25% {
    transform: translateY(21px);
  }
  50% {
    transform: translateY(21px) rotate(180deg);
  }
  100% {
    transform: translateY(21px) rotate(45deg);
  }
}
@keyframes btntopdefault {
  0% {
    transform: translateY(21px) rotate(45deg);
  }
  25% {
    transform: translateY(21px);
  }
  50% {
    transform: translateY(21px);
  }
  100% {
    transform: translateY(0);
  }
}
/* #endregion menu-btntop*/
/* #region menu-btncen */
.menu-btn ~ div:nth-of-type(2) {
  animation-name: btncendefault;
}
.menu-btn:checked ~ div:nth-of-type(2) {
  animation-name: btncen;
}
@keyframes btncen {
  0% {
  }
  60% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes btncendefault {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0;
  }
  100% {
  }
}
/* #endregion menu-btncen*/
/* #region menu-btnbot*/
.menu-btn ~ div:nth-of-type(3) {
  animation-name: btnbotdefault;
}
.menu-btn:checked ~ div:nth-of-type(3) {
  animation-name: btnbot;
  transform-origin: center;
}
@keyframes btnbot {
  0% {
    transform: translateY(0%);
  }
  25% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-21px);
  }
  100% {
    transform: translateY(-21px) rotate(-225deg);
  }
}
@keyframes btnbotdefault {
  0% {
    transform: translateY(-21px) rotate(-225deg);
  }
  25% {
    transform: translateY(-21px);
  }
  50% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}
/* #endregion menu-btnbot*/

/* HamburgerDropDown / Animation */
nav > ul {
  display: flex;
  flex-direction: column;
  position: fixed;
  background-color: var(--Background-DropDown-color);
  top: 96px;
  width: 100vw;
  height: 100%;
  left: 0;
  list-style-type: none;
  animation-name: SlideOut;
  animation-duration: 500ms;
  animation-fill-mode: both;
}
nav > ul > li {
  padding: 1rem 0 0 1rem;
}
nav > ul > li + li {
  padding-top: 2rem;
}

nav > ul > li a {
  text-decoration: none;
  font-size: 2.5rem;
  color: var(--Text-Nav-Footer-color);
}

.AnimationToDropDownMenu {
  animation-name: SlideIn;
  animation-duration: 500ms;
  animation-fill-mode: both;
}
/* Herunder findes Animationen til HamburgerDropDown */
/* #region AnimationToDropDownMenu */
@keyframes SlideIn {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(0%);
  }
}
@keyframes SlideOut {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(100%);
  }
}
/* #endregion AnimationToDropDownMenu */

/* Universal styling på forskellige html */
section {
  margin: 0 1rem;
}

article {
  display: flex;
  flex-direction: column;
}
/* Herunder findes de individuele html  */
/* #region Index.html */

.indexhtml section:nth-of-type(3) {
  display: none;
}
.indexhtml section:nth-of-type(1) > article:nth-of-type(2) > p {
  margin: 1rem 0;
}
.indexhtml section:nth-of-type(1) > article:nth-of-type(2) {
  margin: 1rem 0 3rem 0;
}
.indexhtml section:nth-of-type(1) > article:nth-of-type(1) > img {
  display: none;
}

.indexhtml article > img {
  margin-top: 2.5rem;
}

/* #endregion Index.html */
/* #region Frugt.html */

.frugthtml section:nth-of-type(1) > div {
  padding: 1rem 0 2.5rem 0;
}
.frugthtml section:nth-of-type(1) > div + div {
  display: flex;
  justify-content: center;
}
.frugthtml section:nth-of-type(2) {
  display: none;
}

.frugthtml main div > img {
  width: 90%;
  margin: 0.8rem 0 2.5rem 0;
}
.frugthtml main div > img:last-of-type {
  margin-bottom: 0rem;
}
/* #endregion Frugt.html */
/* #region Opskrifter.html */
.OverwiewOfFood {
  display: flex;
  flex-direction: column;
  background-color: var(--Background-OverwiewOfFood-color);
}
.OverwiewOfFood li {
  display: flex;
  padding: 0.3rem 0 0 0.3srem;
}
.OverwiewOfFood li:nth-of-type(3) {
  padding-bottom: 0.3rem;
}
.OverwiewOfFood li > a {
  font-size: var(--DefaultText-Size);
  text-decoration: none;
  width: 100%;
  color: var(--Text-Nav-Footer-color);
}

.opskrifterhtml h4 {
  padding: 1.5rem 0;
}
.opskrifterhtml main img {
  padding-top: 1rem;
  /*! Not Original Version */
  width: 500px;
  /*! -------------------- */
}
.opskrifterhtml ul {
  padding-left: 1rem;
}
.opskrifterhtml main a {
  padding: 2rem 0;
}

.opskrifterhtml section:nth-of-type(2) {
  display: none;
}
/* #endregion Opskrifter.html */
/* #region Juice.html */
.juicehtml section > article {
  padding: 1rem 0;
}
/*! Not Original Version  */
.juicehtml section > article img {
  width: 500px;
}
/*! --------------------- */
.juicehtml section > article:nth-of-type(1) {
  padding: 2rem 0;
}
/* #endregion Juice.html */

/* Aside */
aside {
  display: none;
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  padding-bottom: 1rem;
  margin-top: 3.5rem;
  color: var(--Text-Nav-Footer-color);
  background-color: var(--Nav-Footer-color);
}
footer a {
  /* Styling af links i Footer */
  text-decoration: none;
  color: var(--Text-Nav-Footer-color);
}
footer > div {
  display: flex;
  align-items: center;
  padding: 1rem;
}
footer > div:nth-of-type(1) {
  margin-top: 1rem;
  align-items: flex-start;
  flex-direction: column;
}
footer > div:nth-of-type(2) {
  margin-top: 1.5rem;
}
footer > div:nth-of-type(5) {
  margin-top: 4rem;
}

footer div > img {
  width: 50px;
  padding-right: 1rem;
}

/* Styling af Computere */
@media only screen and (min-width: 1000px) {
  /* Lightbox */
  .ShowImages img {
    /* Classen bruges til JS for at identifiere hvilke billeder der kan klikkes på */
    cursor: pointer;
  }
  .overlay {
    /* Bliver added til JS når der klikkes defter kommer en bagground*/
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: hsl(0, 0%, 10%, 0.9);
    cursor: pointer;
  }
  .overlay img {
    /* Billede størelse */
    width: 40vw;
  }

  /* Header */
  header {
    grid-area: header;
    justify-content: space-between;
  }

  /* HamburgermenuIcon / Animation - Kun på mobil Fjernes*/
  .hamburgerIcon {
    display: none;
  }

  .AnimationToDropDownMenu {
    display: none;
  }

  /* HamburgerDropDown / Animation Tilpases*/
  nav {
    height: 100%;
  }
  nav > ul {
    animation-name: none;
    position: relative;
    flex-direction: row;
    width: auto;
    background-color: var(--Nav-Footer-color);
    top: 0;
    align-items: center;
  }
  nav > ul > li {
    padding: 0 0.5rem;
  }

  nav > ul > li:hover {
    background-color: var(--Background-Nav-color);
  }

  nav > ul > li + li {
    padding-top: 0rem;
  } /* Rammer alle udover den første */

  /* Universal Main */
  main {
    padding-left: 4rem;
  }

  /* Universal Section */
  section {
    margin: 0rem;
  }

  /* Aside */
  aside {
    display: grid;
    grid-area: Aside;
    grid-template-rows: auto;
    grid-template-areas: "AS1";
    margin-left: 2rem;
  }
  aside img {
    width: 100%;
    padding: 0.5rem 0;
  }
  aside img + img {
    display: none;
  }
  aside section {
    grid-area: AS1;
    position: fixed;
    top: 120px;
    margin-right: 4rem;
  }

  /* Footer */
  footer > div:nth-of-type(1),
  footer > div:nth-of-type(2),
  footer > div:nth-of-type(5) {
    margin-top: 4rem;
  }

  footer > div:nth-of-type(3),
  footer > div:nth-of-type(4) {
    margin-top: 1rem;
  }

  footer > div:nth-of-type(1) {
    grid-area: F1D1;
  }
  footer > div:nth-of-type(2) {
    grid-area: F1D2;
  }
  footer > div:nth-of-type(3) {
    grid-area: F1D3;
  }
  footer > div:nth-of-type(4) {
    grid-area: F1D4;
  }
  footer > div:nth-of-type(5) {
    grid-area: F1D5;
    flex-direction: column;
    padding-right: 0rem;
  }

  footer > div {
    padding: 0rem;
  }
  footer {
    display: grid;
    grid-area: footer;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "F1D1 F1D2 F1D5"
      ". F1D3 ."
      ". F1D4 .";
    padding-left: 4rem;
  }
  /* Herunder findes de individuele html  */
  /* #region Index.html */

  /* Logoet */
  .indexhtml main section:nth-of-type(1) > article:nth-of-type(1) > img {
    display: block;
    width: 90%;
    padding-bottom: 1rem;
  }

  /* Grid på Section 1 */
  .indexhtml main section:nth-of-type(1) {
    display: grid;
    grid-area: S1;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "S1H1 S1H1 S1H1"
      "S1A1 S1A2 S1A2";
    padding-bottom: 2rem;
  }
  .indexhtml main section:nth-of-type(1) > h1 {
    grid-area: S1H1;
  }

  .indexhtml main section:nth-of-type(1) > article:nth-of-type(1) {
    grid-area: S1A1;
    display: flex;
    align-items: center;
  }
  .indexhtml main section:nth-of-type(1) > article:nth-of-type(2) {
    grid-area: S1A2;
    padding-left: 2rem;
  }

  /* Grid på Section 2 */
  .indexhtml section:nth-of-type(2) {
    display: grid;
    grid-area: S2;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "S2A1 S2A2 S2A3"
      "S2A4 S2A5 S2A6"
      "S2A7 S2A8 S2A9";
    grid-gap: 30px;
  }
  .indexhtml section:nth-of-type(2) img {
    width: 100%;
    margin-top: 0rem;
  }
  .indexhtml section:nth-of-type(2) p {
    display: none;
  }

  .indexhtml section:nth-of-type(2) > article:nth-of-type(1) {
    grid-area: S2A1;
  }
  .indexhtml section:nth-of-type(2) > article:nth-of-type(2) {
    grid-area: S2A2;
  }
  .indexhtml section:nth-of-type(2) > article:nth-of-type(3) {
    grid-area: S2A3;
  }
  .indexhtml section:nth-of-type(2) > article:nth-of-type(4) {
    grid-area: S2A4;
  }
  .indexhtml section:nth-of-type(2) > article:nth-of-type(5) {
    grid-area: S2A5;
  }
  .indexhtml section:nth-of-type(2) > article:nth-of-type(6) {
    grid-area: S2A6;
  }
  .indexhtml section:nth-of-type(2) > article:nth-of-type(7) {
    grid-area: S2A7;
  }
  .indexhtml section:nth-of-type(2) > article:nth-of-type(8) {
    grid-area: S2A8;
  }
  .indexhtml section:nth-of-type(2) > article:nth-of-type(9) {
    grid-area: S2A9;
  }

  /* Grid på Section 3 */
  .indexhtml section:nth-of-type(3) {
    display: grid;
    grid-area: S3;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "S3A1";
  }
  .indexhtml section:nth-of-type(3) {
    display: block;
  }

  .indexhtml section:nth-of-type(3) > article:nth-of-type(1) {
    grid-area: S3A1;
  }

  /* Grid på Main */
  .indexhtml main {
    display: grid;
    grid-area: Main;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "S1 S1 S1"
      "S2 S2 S2"
      "S2 S2 S2"
      "S2 S2 S2";
  }

  /* Grid på Body */
  .indexhtml body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 20%;
    grid-template-rows: auto;
    grid-template-areas:
      "header header header header"
      "Main Main Main Aside"
      "Main Main Main Aside"
      "Main Main Main Aside"
      "Main Main Main Aside"
      "footer footer footer Aside";
  }
  /* #endregion Index.html */
  /* #region Frugt.html */

  /* All Imgaes*/
  .frugthtml main section img {
    width: 100%;
  }

  .frugthtml main section:nth-of-type(1) > div {
    padding: 0rem;
    margin: 0rem;
  }
  .frugthtml main div > img {
    margin: 0rem;
  }

  .frugthtml main section > div:nth-of-type(1) {
    grid-area: FSD1;
  }
  .frugthtml main section > div:nth-of-type(2) {
    grid-area: FSD2;
  }
  .frugthtml main section > div:nth-of-type(3) {
    grid-area: FSD3;
  }
  .frugthtml main section > div:nth-of-type(4) {
    grid-area: FSD4;
  }
  .frugthtml main section > div:nth-of-type(5) {
    grid-area: FSD5;
  }
  .frugthtml main section > div:nth-of-type(6) {
    grid-area: FSD6;
  }
  .frugthtml main section > div:nth-of-type(7) {
    grid-area: FSD7;
  }

  /* Grid af Section */
  .frugthtml main section {
    display: grid;
    grid-area: FS1;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "FSD1 FSD1 FSD1"
      "FSD2 FSD3 FSD4"
      "FSD5 FSD6 FSD7";
    grid-gap: 30px;
  }

  /* Grid af Main */
  .frugthtml main {
    display: grid;
    grid-area: Main;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "FS1 FS1 FS1"
      "FS1 FS1 FS1"
      "FS1 FS1 FS1";
  }

  /* Grid af Body */
  .frugthtml body {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 20%;
    grid-template-rows: auto;
    grid-template-areas:
      "header header header header"
      "Main Main Main Aside"
      "Main Main Main Aside"
      "Main Main Main Aside"
      "footer footer footer Aside";
  }
  /* #endregion Juice.html */
}
