/* == GLOBAL STYLING == */

/* Grundlæggende styling for body */
body {

    margin: auto;
    font-family: 'Asap', 'Arial', sans-serif;
    background-image: url('Billeder/Darkroom_spotlight.jpg'); /* Sti til baggrundsbillede */
    background-size: cover; /* Billedet dækker hele baggrunden */
    background-position: center; /* Billedet er centreret */
    background-attachment: fixed; /* Baggrundsbilledet scroller ikke */
}

/* == LAYOUT OG STRUKTUR == */

/* Header styling */
#header {
    margin: auto;
    padding: 1px 0;
    color: white;
    text-align: center;
}

/* Navigation styling */
#nav {
    margin: auto;
    padding: 0 0 10px;
    color: rgb(100, 100, 100);
    display: flex;
    justify-content: center;
}

/* Footer styling */
#footer {
    margin: auto;
    padding: 10px;
    color: white;
    text-align: center;
}

/* == MENUPUNKTER == */

#menu {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.menuPunkt {
    display: inline-block;
}

.menuPunkt a {
    display: block;
    color: white;
    text-align: center;
    padding: 4px 12px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out; /* Ændring i 0.2 sekunder */
}

.menuPunkt a:hover {
    background-color: rgb(50, 50, 50, 0.4);
    transform: scale(1.1);
}


/* Forskellige baggrundstyper for containere */

/* Billede og tekst ligger over hinanden */
.full-width-container-transparent,
.full-width-container-grey,
.full-width-container-white {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 2%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
}
/* Billede og tekst står ved siden af hinanden */
.devided-container-transparent,
.devided-container-grey,
.devided-container-white {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 2%;
    box-sizing: border-box;
}

.devided-container-grey {
    background-color: rgba(255, 255, 255, 0.08);   
}

.devided-container-grey:hover {
    background-color: rgba(255, 255, 255, 0.10);    
}

.full-width-container-transparent, .devided-container-transparent {
    color: white;
}

.full-width-container-grey, .devided-container-grey {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
}

.full-width-container-grey:hover {
    background-color: rgba(255, 255, 255, 0.10);    
}


.full-width-container-white, .devided-container-white {
    background-color: rgba(255, 255, 255, 0.6);
    color: rgba(50, 50, 50);
}



/* == INDSATTE BILLEDER OG TEKST == */

.picture-center {
    width: 96%;
    margin: 2% auto;
    box-sizing: border-box;
    height: auto;
}

.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 66%;
    text-align: center;
    margin: 2%;
}

.picture-side, .text-side {
    width: 50%;
    margin: 2%;
    box-sizing: border-box;
}

.text-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.table-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 66%;
    text-align: left;
}

.timeline-table th, .timeline-table td {
    padding: 10px;
    border: 0px solid #ddd; /* Tilføjer linjer mellem celler */
    vertical-align: top; /* Justerer tekst til toppen */
}
.timeline-table h4, p {   
    margin-top: 4px; /* Juster afstand under overskriften */
    margin-bottom: 4px; /* Juster afstand under overskriften */
}
.ingredient-table {
    width: 80%;
    border-collapse: collapse;
}

.ingredient-table th, .ingredient-table td {
    padding: 10px;
    border: none; /* Ingen synlig kant */
    text-align: left; /* Venstrejustering af tekst */
}

.ingredient-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.1); /* Semitransparent baggrund */
}
.ingredient-table tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.1); /* Semitransparent baggrund */
}

/* == KONTAINER MED KOMPONENTER == */

.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    padding: 60px;
}

.component {
    background-color: rgba(255, 255, 255, 0.6);
    color:rgb(55, 55, 55);
    padding: 12px 0px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease-in-out; /* Ændring i 0.2 sekunder */
}

.component:hover {
    transform: scale(1.05) !important;
}

.component img {
    width: 100%;
    height: auto;
    margin-bottom: 0;
}

.button {
    display: inline-block;
    padding: 6px 16px;
    margin-top: 4px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: transform 0.2s ease-in-out; /* Ændring i 0.2 sekunder */
}

.button:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}



/* == SOCIAL LINKS == */

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px; /* Afstand mellem ikonerne */
    margin-top: 20px;
}

.social-links a img {
    width:60px; /* Størrelse på ikonerne */
    height:60px;
    transition: transform 0.2s; /* Smooth overgang ved hover */
}

.social-links a img:hover {
    transform: scale(1.1); /* Forstørrer ikonet en smule ved hover */
}

/* == RESPONSIV STYLING == */

@media screen and (max-width: 1000px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobiloptimeret design */
@media screen and (max-width: 800px) {

    body {
        background-size: auto 100%; /* Ændrer zoom-effekten på mindre skærme */
    }

    /* Devided container ændres til kolonne-layout */
    .devided-container-transparent,
    .devided-container-grey,
    .devided-container-white {
        flex-direction: column;
    }

    /* Sæt tekst og billede til fuld bredde */
    .picture-center, .picture-side {
        width: 100%;
        margin: 2% auto;
    }
    
    .text-center, .text-side{
        width: 66%;
        margin: 2% auto;
    }


}

@media screen and (max-width: 400px) {

    body {
        background-size: auto; /* Ændrer zoom-effekten på mindre skærme */
    }

    /* Devided container ændres til kolonne-layout */
    .devided-container-transparent,
    .devided-container-grey,
    .devided-container-white {
        flex-direction: column;
    }

    /* Sæt tekst og billede til fuld bredde */
    .picture-center, .picture-side {
        width: 100%;
        margin: 2% auto;
    }
    
    .text-center, .text-side{
        width: 80%;
        margin: 2% auto;
    }

    .table-center {
        width: 100%;
    }

    .container {
        grid-template-columns: 1fr; /* Enkelt kolonne */
        padding: 20px; /* Mindre padding på små skærme */
    }
    
    .ingredient-table {
        width: 100%;
    }


}

