/* RESET */
* {
    box-sizing: border-box;
    margin: 0;

    list-style-type: none;
    list-style: none;

    font-family: sans-serif;

    object-fit: cover;

    /* overflow-x: hidden; */
}

a {
    text-decoration: none;
    color: black;
}

/* HEADER */
header {
    background-color: #0075d5;
    color: white;
    padding: 10px;
    text-align: center;
    /* background-image:
    repeating-linear-gradient(
        -45deg,
        #0091ff 10%,
        #fe0170 0 20%,
        #63bbff 0 30%,
        #0091ff 0 40%,
        orange 0 50%
    ); */
}

/* MAIN */
main {
    details:last-child {
        margin-bottom: 5em;
    }

    details {
        summary {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-top: 2em;
            gap: 1em;

            .radio_img{
                width: 15em;
                height: 15em;
                box-shadow: #0091ff 4px 4px 4px 1px;
            }

            span {
                font-weight: bold;
            }
        }

        section {
            h2:nth-of-type(1) {
                text-align: center;

                @media screen and (min-width: 600px) {
                    display: none;
                }
            }

            h2:nth-of-type(2) {
                grid-area: radio;
            
                .radio_veronica {
                    width: 7em;
                    border: 1px solid #000000;
                    border-radius: 10px;
                    height: auto;
                    object-fit: cover;
                }

                .radio_slam {
                    width: 4em;
                    border: 1px solid #000000;
                    border-radius: 10px;
                    height: auto;
                    object-fit: cover;
                    position: relative;
                    left: 1.3em;
                }

                .radio_100 {
                    width: 4em;
                    border: 1px solid #000000;
                    border-radius: 10px;
                    height: auto;
                    object-fit: cover;
                    position: relative;
                    left: 1.3em;
                }

                .radio_sublime {
                    width: 4em;
                    border: 1px solid #ffffff;
                    border-radius: 10px;
                    height: auto;
                    object-fit: cover;
                    position: relative;
                    left: 1.3em;
                }

                @media screen and (max-width: 600px) {
                    display: none;
                }
            }

            .week {
                background-color: #ffffff;
                z-index: 1;

                position: sticky;
                top: 0;
                padding: 1em;
                margin: 0;
        
                display: flex;
                align-items: center;
                gap: 2em;

                overflow-x: auto;
                overflow-y: hidden;
                
                @media screen and (min-width: 600px) {
                    border: 1px solid #0091ff;
                    grid-area: week;
                    position: relative;
                    top: -1em;

                    overflow-x: hidden;
                    overflow-y: auto;
                    max-height: 20em;
                    width: 10em;

                    /* li snap naar het midden */
                    scroll-snap-type: y mandatory;
                    display: flex;
                    flex-direction: column;
                    align-items: center;

                    li {
                        background-color: aqua;
                        margin-top: 1em;
                        padding: 1em;
                        height: 50px;
                        border-radius: 20px;
                        min-width: 8em;
                        text-align: center;
                        /* li snap naar het midden */
                        scroll-snap-align: center;
                    }

                    li:first-child {
                        margin-top: 0;
                    }
                }
            }

            .highlight {
                background-color: red;
            }

            .programma_container {
                display: flex;
                flex-direction: row;
                align-items: start;
                justify-content: center;
                position: relative;
                right: 2.5em;

                .tijd {
                    display: flex;
                    flex-direction: column;
                    position: relative;
                    left: -1em;
    
                    li::after {
                        display: block;
                                        
                        content: "- - - - -";
                        transform: rotate(90deg);
                        margin-top: 1.5em;
                        margin-bottom: 1.5em;
                        white-space: nowrap;
                    }
    
                    li:last-child::after {
                        content: '';
                    }

                    /* tijd */
                    @media screen and (min-width: 600px) {
                        background-color: white;
                        flex-direction: row;
                        position: relative;
                        top: 2em;
                        left: 1em;
                        border-radius: 20px;

                        li {
                            height: 1.5em;
                        }

                        li::after {
                            rotate: 90deg;
                            transform-origin: top;
                            margin: 0;
                            padding-left: 0.5em;
                            padding-right: 1em;
                            margin-left: 2em;
                            margin-right: 1em;
                        }

                        /* om de 2 li een gap */
                        li:nth-child(2n)::after {
                            content: '';
                            margin-left: 6em;
                        }
                    }
                }

                .card_direction {
                    display: flex;
                    flex-direction: column;
                    position: relative;
                    top: 1em;
                    gap: 1em;

                    .now_playing {
                        background-color: rgb(150, 150, 215);
                    }

                    article {
                        /* border: 1px solid black; */
                        border-radius: 5px;
                        box-shadow: 0.05em 0.05em 0.3em  0.1em gray;
                        width: 15em;
                
                        display: grid;
                        /* grid-template-columns: min-content; */
                        grid-template-areas:
                        "img"
                        "titel"
                        "tekst"
                        "info"
                        ;
                        gap: 0.5em;

                        h3 {
                            grid-area: titel;
                            justify-self: center;
                        }
                
                        .profile_picture {
                            grid-area: img;
                            border-radius: 50%;
                            width: 4em;
                            height: 4em;
                            margin-top: 0.3em;
                            justify-self: center;
                        }
                
                        .tekst {
                            grid-area: tekst;
                            max-width: 11em;
                            justify-self: center;

                            @media screen and (min-width: 600px) {
                                position: relative;
                                bottom: 0.5em;
                            }
                        }

                        .bottom {
                            grid-area: info;
                            justify-self: center;
                            text-align: center;
                            margin-bottom: 0.5em;

                            background-color: #fe0170;
                            height: 2.5em;
                            width: 7em;
                            border-radius: 5px;
                
                            @media screen and (min-width: 600px) {
                                position: absolute;
                                bottom: 0.5em;
                            }
                        }

                        .bottom:hover {
                            background-color: white;
                            color: #fe0170;
                        }

                        /* article */
                        @media screen and (min-width: 600px) {
                            background-color: white;
                            border-radius: 5px;
                            height: 18em;
                            min-width: 15em;
                            max-width: 100%;
                            border: 1px solid black;
                            box-shadow: 3px 5px 6px 1px gray;
                        }
                    }
                    /* card_direction */
                    @media screen and (min-width: 600px) {
                        display: flex;
                        flex-direction: row;
                        overflow: hidden;
                    }
                }
                /* programma_container */
                @media screen and (min-width: 600px) {
                    justify-content: start;
                    right: 0;

                    display: grid;
                    grid-area: programma_cont;
                    flex-direction: column;
                    position: relative;
                    top: 2em;
                    height: 25.5em;

                    overflow-x: auto;
                    overflow-y: hidden;
                }
            }
            /* section */
            @media screen and (min-width: 600px) {
                display: grid;
                grid-template-columns: min-content 1fr;
                grid-template-rows: min-content 1fr;
                grid-template-areas:
                "radio programma_cont"
                "week programma_cont";

                padding-top: 2em;
                margin-left: 2em;
                gap: 2em;
            }
        }
    }
}

/* centrale plek voor tijdlijn, radiozenders en week */
/* aria describe by */
