@import 'colors.css';


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--diep-nachtblauw) 0%, var(--donkergrijs-blauw) 100%);
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 1;
}


/* ---------------- slider ---------------- */

.slide-section {
    width: 100%;
    overflow: hidden;
    margin-top: 4vw;
}

.slide-wrapper {
    display: flex;
    width: calc((10vw + 2vw) * 9 * 2);
    animation: slide 20s linear infinite;
}

.slide-wrapper img {
    width: 10vw;
    object-fit: cover;
    height: auto;
    flex-shrink: 0;
    margin-right: 2vw;
    border-radius: 2vw;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* ---------------- Page content ---------------- */

.homepage-section {
    flex: 1;
    padding: 0rem 2rem;
}

.homepage-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* ---------------- food off the day ---------------- */

.content-section {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    border-radius: 15px;
    background-color: var(--donkergrijs-blauw);
}


/* Foto */

.content-photo img {
    width: 100%;
    height: auto;
    max-height: 350px;
    border-radius: 15px;
    object-fit: cover;
}

.content-description {
    color: var(--zacht-wit);
    align-self: center;
    justify-items: center;
}


/* Tekst items */

.content-photo {
    color: var(--zacht-wit);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}


/* ---------------- Fun Food Fact ---------------- */

.foodfact-section {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.foodfact-wrapper {
    align-items: start;
    border-radius: 15px;
    background-color: var(--donkergrijs-blauw);
}

.content-funfact {
    color: var(--zacht-wit);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}


/* -------------------- BREAKPOINT 1 --------------------
   Tussenformaat: eerst FOTO + TEKST naast elkaar,
   fun fact eronder in de breedte
--------------------------------------------------------- */

@media (max-width: 1000px) {
    .content-wrapper {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "photo description" "funfact funfact";
    }
    .content-photo {
        grid-area: photo;
    }
    .content-description {
        grid-area: description;
    }
    .content-funfact {
        grid-area: funfact;
    }
}


/* -------------------- BREAKPOINT 2 --------------------
   Klein scherm:
   FOTO
   TEKST
   FUN FACT
--------------------------------------------------------- */

@media (max-width: 600px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas: "photo" "description" "funfact";
    }
}

