/* Reset */
* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
    color:#222824 ;
    font-family: 'Raleway', sans-serif;
}

/* Styling af body */
body {
    background-color:#e0e1db;
    overflow: hidden;
    overflow: scroll;
    border: 7px solid #f2f1ef;
}

/* Styling af header */
header{
    background-color: transparent;
    text-align: center;   
}

/* Styling af navigationsbaren */
nav {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content:space-evenly;
    position: relative;
}

/* Styling af min menupunkter */
.menupunkter {
    position: relative;
    font-size: 17px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    word-spacing: 3px;
    color: #222824;
    margin: 25px 0 0 0;
    opacity: 90%;
    z-index: 3;
}

/* Styling af mit logo */
.logo {
    width: 320px;
    margin-top: 30px;
    margin-bottom: 8px;
    margin-left: 5%;
}

/* Styling af search & user-icon */
.fa-solid {
    font-size: 22px;
    color:#222824;
    float: right;
    margin-right: 60px;
    margin-top: 50px;
}

/* Tilføjelse af hovereffekt */
.fa-solid:hover {
    transform: scale(1.4);
}

/* Styling af tilpasset <hr> */
.menustreg {
    opacity: 40%;
    width: 80%;
    margin: auto;
    margin-top: 15px;
}

/* Styling af min tekstboks */
.tekstboks{
 width: 90%;
 height: 400px;
 background-color: #aab29a;
 margin: auto;
 margin-top: 31px;
 border-radius: 30px;
 border: 1px solid #5b6b46;
 box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); 
}

/* Placering af billedet af mig */
.mig {
    width: 329px;
    margin-top: -150px;
    margin-right: 157px;
    float: right;
    z-index: 2;
    position: relative;
}

/* Styling af min eyebrow headline */
.eyebrow {
    float: left;
    margin-left: 10%;
    margin-top: -360px;
    font-weight: 100;
    color:#4b4c4d;
    position: relative;
}
/* Styling af min h1 overskrift */
.overskrift1 {
    font-family: 'Montserrat', sans-serif;
    color: #222824;
    margin-top: -350px;
    text-align: left;
    margin-left: 10%;
    font-size: 27px;
    position: relative;
    
}
/* Styling af introduktion */
.introduktion {
   float: left; 
   margin-left: 10%;
   margin-top: -260px;
   font-size: 19px;
   color: #222824;
   margin-right: 15%;
   word-spacing: 4px;
   line-height: 25px;
   font-weight: 200;
   position: relative;
   
   

}

/* Standard styling af alle mine h2-elementer */
h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
}
/* Hovereffekt af mine menupunkter */
.menupunkter:hover{
    color: black;
}

/* Tilføjelse af lille streg under mine punkter */
.menupunkter:after {
    content: "";
    position: absolute;
    background-color: #5b6b46;
    height: 1.5px;
    width: 0%;
    left: 0;
    bottom:-2px;
    transition: .5s;
    opacity: 70%;
}

.menupunkter:hover:after {
    width: 30%;
}

/* Styling af min footer */
.footer {
    padding: 40px;
    background-color: #f2f1ef;
    display: grid;
    width: 100%;
    bottom: 0;
    

}

/* Styling af tilpasset <hr> */
#footerstreg {
    opacity: 20%;
    width: 80%;
    margin: auto;
    margin-bottom: 20px;
    margin-top: -20px;
}

/* Fællesstyling for både .footer og .social */

.footer, .social{
    text-align: center;
    padding-bottom: 25px;
    color: #4b4c4d;

}

/* Styling af elementerne indeni .social */
.social a {
    font-size: 24px;
    color: inherit;

    border: 1px solid #5b6b46;
    width: 40px;
    height: 40px;
    line-height: 38px;
    display: inline-block;
    text-align: center;
    border-radius: 50px;
    margin: 0 8px;
    opacity: 0.80;
}

/* hovereffekt på a */
.social a:hover {
   transform: scale(1.2);
   opacity: 1;
}

/* Styling af min unordered list under .footer */
.footer ul {
    margin-top: 0;
    padding: 0;
    list-style: none;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;

}

.footer ul li {
    display: inline-block;
    padding: 0 20px;
    
}

.footer ul li a {
    color: inherit;
    text-decoration: none;
    opacity: 0.6;
    font-family: 'Montserrat', sans-serif;;

}

.footer ul li a:hover {
    opacity: 0.9;
}
.footer, .copyright {
    margin-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #aaa;

}
/* Styling af min lånte iconer */
.fab {
    color: #222824;
}

/* Styling af dropdownmenu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    margin-top: 5px;
    background-color: rgba(242, 241, 239, 0.9);
    border-radius: 0 0 15px 0;
    min-width: 150px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 3;
    border: 1px solid #5b6b46;
}

.dropdown-content a {
    color:#222824;
    padding: 10px 16px;
    text-decoration: none;
    justify-content: center;
    width: 90%;
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    border-bottom: .5px solid #5b6b46;
    
}
/* Tilføjelse af hovereffekt på dropdownmenu */
.dropdown-content a:hover {
    color: #222824;
    font-weight: 500;
    background-color: #aab29a;
    width: 100%;
}

/* Viser dropdown-indholdet, når knappen er klikket */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Styling af mit billedegalleri med 3 billeder */
.galleri {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    justify-content: center;
    margin-top: 30px;
}

.menubilleder {
    position: relative;
    border-radius: 10px;
    left: 0px;
    height: 350px;
    width: 300px;
    transition: 1s all;
    transform-origin: center left;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.menubilleder img {
    width: 300px;
    height: 350px;
    object-fit: cover;
    border-radius: 4px;

}

/* Hovereffekt */
.menubilleder:hover {
    cursor: pointer;
    transform: scale(1.2);

}


.menubilleder:hover figcaption {
    font-size: 23px;
    color: white;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    height: 80px;
    display: flex;
    width: 100%;
    align-items: end;
    bottom: 0px;
    padding: 0 0 10px 12px;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 70%);
    left: 0px;
    bottom: 0px;
    padding-left: 12px;
    padding-bottom: 10px;
}

.menubilleder:hover ~ .menubilleder {
    cursor: pointer;
    transform: translateX(30px);

}


/* DETTE ER STYLING AF GENGRUG.HTML */

/* Styling af flexbox */
.genbrugscontainer {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

/* Placering af elementerne i flexboxen */
.genbrugstekst {
    flex: 1;
    max-width: 50%;
    margin-left: 20px;
    margin-top: 10px;
}
/* Styling af min eyebrow headline */
.eyebrow2 {
    font-weight: 100;
    color:#4b4c4d;
    margin-bottom: 10px;
}

.tykskrift{
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

/* Styling af min h1  */
.genbrugstekst h1 {
    font-size: 27px;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
}

/* Styling af p */
.genbrugstekst p {
    font-family: 'Raleway', sans-serif;
    text-align: left;
    margin: 50px 20px 0 20px;
    word-spacing: 4px;
    font-size: 19px;
    line-height: 25px;
}

/* Placering af elementerne i min flexbox */
.genbrugsbillede {
    position: relative;
    max-width: 50%;
    margin-top: 10px;
    
    /* Styling af billeder som overlapper hinanden med forskellige ID'er */
}
.genbrugsbillede #first {
    z-index: 1;
    width: 85%;
    border-radius: 20px;
    margin-right: -130px;
    margin-left: 20px;
    box-shadow: 0 5px 12px rgba(0,0,0, 0.5);

}
.genbrugsbillede #second {
    width: 45%;
    position: absolute;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 5px 12px rgba(0,0,0, 0.5);
    margin-top: 350px;
    margin-left: -140px;

}

/* Styling af endnu en flexbox */
.lokalemuligheder {
    display: flex;
    width: 100%;
  }
  
  .lmbillede {
    flex: 1;
    max-width: 30%;
  }
  
  .lmbillede img {
    width: 125%;
    margin-left: -120px;
  }
  
  .lmtekst {
    flex: 1;
    max-width: 75%; 
    padding: 10px;
    text-align: left;
    margin-right: 60px;
  }

.lmtekst p {
    word-spacing: 4px;
    font-size: 19px;
    line-height: 25px;
}

/* DETTE ER STYLING AF MAD.HTML */

.madcontainer {
    display: flex;
    justify-content: space-evenly;
    margin: 0 auto;
    padding: 30px;
    width: 95%;
    height: 500px;
    background-color:#aab29a;
    border-radius: 50px;
    margin-top: -91px;
    box-shadow: 0 5px 12px rgba(0,0,0, 0.5);
    border: 1px solid #5b6b46;
}

.madtekst {
    max-width: 50%;
    text-align: center;   
}

.madtekst h1 {
    font-family: 'Montserrat', sans-serif; ;
    font-size: 27px;
    margin-bottom: 35px;
    
}

.madtekst p {
    margin: 20px 40px 0 40px;
    margin-top: 20px;
    text-align: left;
    font-family: 'Raleway', sans-serif;
    font-size: 19px;
    word-spacing: 4px;
    line-height: 26px;
}

.madbilleder {
    display: grid;
    grid-template-columns: 2fr 2fr; /* Placerer mine billeder 2x2 */
    gap: 20px;
    align-items: center;
}

.madbilleder img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 5px 12px rgba(0,0,0, 0.5);
    border-radius: 5px;
}

/* Styling af vertical linje */
.vr {
    height: 100%;
    width: 1px;
    opacity: 20%;
    border-radius: 20px;
    background-color: #222824
}
/* Placering af mig som kok */
.kok{
    width: 380px;
    position: relative;
    margin-top: -235px;
    margin-left: 991px;
    filter: grayscale(15%);
    z-index: 2;
}

.madtips {
    text-align: left;
    margin: 0 10%;
}

.madtips p {
    font-size: 19px;
    font-family: 'Raleway', sans-serif;
}

.streg2 {
    width: 5%;
    margin: 5px 0 5px 0;
    height: 2px;
}

.retter {
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
    justify-content: center;
    margin-top: 30px;
}

.madretter {
    position: relative;
    border-radius: 10px;
    height: 350px;
    width: 300px;
    transition: 1s all;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
}

.madretter img {
    width: 300px;
    height: 350px;
    object-fit: cover;
    border-radius: 4px;

}

.madretter:hover {
    cursor: pointer;
    transform: scale(1.1);

}

.madretter:hover figcaption {
    font-size: 18px;
    color: white;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    position: absolute;
    height: 45px;
    display: flex;
    width: 100%;
    justify-content: center;
    bottom: 0px;
    padding: 0 20px 10px 20px;
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0) 100%);
    left: 0px;
    bottom: 0px;

}

.madretter:hover ~ .menubilleder {
    cursor: pointer;
    transform: translateX(30px);

}
/* Flexbox med billed og tekst-element */
.kogebog {
    display: flex;
    width: 90%;    
    margin: 0 auto;
}

.kogetekst {
    width: 50%;
    flex: 1;
    margin-top: 30px;
}

.kogetekst p {
    font-size: 19px;
    margin-top: 60px;
    word-spacing: 4px;
    line-height: 30px;
    text-align: center;
}
/* Styling af "KØB NU" knap */
.botton {
    text-align: center;
    margin-top: 60px;
}

.botton a {
    
    padding: 10px;
    font-size: 25px;
    font-weight: bold;
    background-color: #5b6b46;
    border: 1px solid #aab29a;
    color: white;
    border-radius: 10px;

}

.botton:hover {
    transform: scale(1.1);
    cursor: pointer;
}

.kogebillede {
    width: 50%;
    height: auto;
    float: right;
    flex: 1;
    text-align: center;

}
.kogebillede img {
    width: 90%;
    border-radius: 20px;
}


/* DET ER STYLING AF SPARETIPS.HTML */

/* Flexbox */
.sparetipsintro {
    display: flex;
    width: 100%;
    margin: 0 auto;
}

.sparetipstekst {
    width: 50%;
    flex: 1.2;
    text-align: center;
    margin: 50px 50px 0 50px;
}

.sparetipstekst p {
    font-size: 19px;
    word-spacing: 4px;
    line-height: 25px;
    text-align: left;
}

.sparetipstekst h2 {
    font-size: 27px;
    margin-bottom: 50px;
    word-spacing: 3px;
}

.sparetipsbillede {
    width: 50%;
    height: auto;
    float: right;
    flex: 1;
    text-align: center;
    margin-top: 40px;
}
/* Tilføjelse af animation til sparegrisen (.sparetipsbillede) */
@keyframes tilt-shaking {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
    }

    /* Aktivering af animation ved hover */
.sparetipsbillede:hover{
    animation: tilt-shaking 2s infinite;
}

.sparetipsintro img {
    width: 400px;
}

.generelletips {
    display: flex;
    justify-content: center;
    text-align: left;
    margin: 0 auto;
    width: 100%;
    margin-top: 50px;
    margin-bottom: 50px;

}

.studierabat {
    width: 50%;
}

.transport {
    width: 50%;
}

.generelletips h2 {
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: lighter;
}

.generelletips p {
    font-size: 19px;
    word-spacing: 4px;
    line-height: 25px;
    margin: 0 50px 0 50px;
}

/* Styling af apps */

/* Flexbox */
.app {
    display: flex;
    width: 100%;
    margin: 0 auto;
}

.teksthøjre {
    flex: 1;
    width: 60%;
    float: right;
    word-spacing: 4px;
    line-height: 25px;
    text-align: left;
}

.teksthøjre h2 {
    margin: 70px 0 0 0;
    text-align: center;
    font-weight: 500;
}

.teksthøjre p {
    font-size: 19px;
    margin: 50px 30px 0 30px;
}

.billedevenstre {
    flex: 1;
    width: 25%;
}

.billedevenstre img {
    width: 600px;
    margin: 0;
    filter: drop-shadow(0 2px 3px black);
}
    
/* Styling af Apps som er spejlvendt */
.tekstvenstre {
    flex: 1;
    width: 60%;
    float: left;
    word-spacing: 4px;
    line-height: 25px;
    text-align: left;
}

.tekstvenstre h2 {
    text-align: center;
    font-weight: 500;
}

.tekstvenstre p {
    font-size: 19px;
    margin: 40px 20px 0 30px;
}

.billedehøjre {
    float: right;
    margin-top: -320px;
}

.billedehøjre img {
    width: 600px;
    filter: drop-shadow(0 2px 3px black);
}

/* Styling af venstrevendte apps */

.teksthøjre2 {
    flex: 1;
    width: 60%;
    float: right;
    word-spacing: 4px;
    line-height: 25px;
    text-align: left;
}

.teksthøjre2 h2 {
    text-align: center;
    font-weight: 500;
}

.teksthøjre2 p {
    font-size: 19px;
    margin: 40px 30px 0 30px;
}

.billedevenstre2 {
    flex: 1;
    width: 25%;
}

.billedevenstre2 img {
    width: 600px;
    margin-top: 120px;
    filter: drop-shadow(0 2px 3px black);
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .mig{
        margin-top: -50px;
    }

    .tekstboks {
        margin-top: 131px;
        height: 650px;
    }

    .eyebrow {
        margin-top: -550px;
    }
    .overskrift1 {
        margin-top: -550px;
    }

    .introduktion {
        margin-top: -430px;
        font-size: 17px;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    .tekstboks {
        height: 650px;
    }
    .eyebrow {
        margin-top: -550px;
    }
    .overskrift1 {
        margin-top: -550px;

    }
    .introduktion {
        margin-top: -430px;
    }
}
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .introduktion {
        font-size: 20px;
        }
}
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .introduktion {
        font-size: 22px;
    }
    .tekstboks {
        height: 600px;
    }
}


/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .tekstboks {
        height: 400px;
    }
    .eyebrow {
            margin-top: -350px;
        }
    .overskrift1 {
            margin-top: -350px;
    
        }
    .introduktion {
            margin-top: -250px;
            font-size: 22px;
        }
    }
