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

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

    object-fit: cover;
}

a {
    text-decoration: none;
}

body {
    overflow: hidden;
}

main {
    display: flex;
    justify-content: start;
    align-items: start;

    section {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: 5px;
        place-items: center;

        article:nth-child(1) {
            grid-row: 1;
            grid-column: 3;
        }
        
        article:nth-child(2) {
            grid-row: 2;
            grid-column: 2;

            position: relative;
            top: -10em;
            left: -10em;
        }
        
        article:nth-child(3) {
            grid-row: 3;
            grid-column: 1;
        }
        
        article:nth-child(4) {
            grid-row: 4;
            grid-column: 2;

            position: relative;
            top: 10em;
            left: -10em;
        }
        
        article:nth-child(5) {
            grid-row: 5;
            grid-column: 3;
        }
        
        article:nth-child(6) {
            grid-row: 4;
            grid-column: 4;

            position: relative;
            top: 10em;
            left: 10em;
        }
        
        article:nth-child(7) {
            grid-row: 3;
            grid-column: 5;
        }
        
        article:nth-child(8) {
            grid-row: 2;
            grid-column: 4;

            position: relative;
            top: -10em;
            left: 10em;
        }
    }
}

section {
    position: absolute;
    left: 5%;
    transform: translateX(-50%);
}


/* ARTICLES BINNENKANT */
section article {
    box-shadow: 0 0 8px #00000014;
    border-radius: 10px;
    padding: 0.5em;
    max-height: 20em;
    width: 16.2em;

    display: grid;
    grid-template-columns: min-content 1fr;
    grid-template-rows: min-content min-content min-content;
    grid-template-areas: 
    "pic titel"
    ". info"
    ". djlink";

    position: relative;
    right: 1em;

    .titel {
        grid-area: titel;
        justify-self: start;
        align-self: center;
        margin-left: 0.3em;
    }

    .profile_picture {
        grid-area: pic;

        place-content: center;
        border-radius: 50%;
        height: auto;
        width: 3.5em;
        height: 3.5em;
    }

    .info {
        grid-area: info;

        max-width: 11em;
        justify-self: center;
        margin-bottom: 1em;
    }

    .dj_link {
        grid-area: djlink;

        display: flex;
        justify-content: space-between;

        p {
            place-content: center;
        }
    
        a {
            display: flex;
            border-radius: 50%;
            min-width: 3em;
            min-height: 3em;
            /* de cirkel */
            align-self: end;
            /* '>' in de cirkel */
            justify-content: center;

            &.sublime {
                color: black;

                :hover {
                    color: white
                }
            }
        }
    }
}

/* PLAYER POSITION + SCALE*/
.player {
    background-color: lightgray;
    box-shadow: 0px 0px 8px;

    position: fixed;
    left: 40%;
    transform: translateX(-50%);
    bottom: -3em;

    border-top-left-radius: 50%;
    border-top-right-radius: 50%;
    height: 20em;
    width: 20em;
    transform: scale(1.5);
}


/* PLAYER BINNENKANT */
.player{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 3em;

    img {
        position: relative;
        top: 0.5em;
        height: 5em;
        width: 5em;
        border-radius: 50%;
    }

    .titel {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        top: -1em;

        h2 {
            font-size: 1em;
        }

        h3 {
            font-weight: normal;
            font-size: 0.8em;

            svg {
                width: 1em;
                height: 1em;
            }
        }
    }
    
    .buttons {
        display: flex;
        flex-direction: row;
        align-items: center;
        position: relative;
        left: 1em;
        top: -1em;
        

        button {
            height: 3em;
            width: 3em;
            border-radius: 50%;
            border: none;
            margin: 2em;
            position: relative;
            bottom: 3em;
        }

        a {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: black;
            font-size: small;
            
            position: relative;
            bottom: 2em;

            svg {
                width: 1em;
                height: 1em;
                margin-bottom: 0.5em;
            }
        }
    }
}


/* ANIMATIE */
.circle_rotate {
    position: relative;
    transform-origin: center;
    animation: rotateCircle 60s linear infinite;
}

.reverse_circle_rotate {
    position: relative;
    animation: reverse_rotateCircle 60s linear infinite;
}


@keyframes grid_rotate {
    0% {
      grid-area: 1 / 3;
    }
    12.5% {
        grid-area: 2 / 4;
        opacity: 0;
        opacity: 1;
    }
    25% {
        grid-area: 3 / 5;
        opacity: 0;
        opacity: 1;
    }
    37.5% {
        grid-area: 4 / 4;
        opacity: 0;
        opacity: 1;
    }
    50% {
        grid-area: 5 / 3;
        opacity: 0;
        opacity: 1;
    }
    62.5% {
        grid-area: 4 / 2;
        opacity: 0;
        opacity: 1;
    }
    75% {
        grid-area: 3 / 1;
        opacity: 0;
        opacity: 1;
    }
    87.5% {
        grid-area: 2 / 2;
        opacity: 0;
        opacity: 1;
    }
    100% {
      grid-area: 1 / 3;
      opacity: 0;
      opacity: 1;
    }
}


@keyframes rotateCircle {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes reverse_rotateCircle {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}
