* {
    padding: 0;
    margin: 0;
}

:root {
    --background-color: #000;
    --text-color: rgb(224, 224, 131);
    --text-color-2: #000;
    --wit-kleur: #000;
    --blauwe-color:rgb(64, 75, 195);
    --licht-blauw-color:rgba(113, 231, 244, .8) ;

    --padding-small: 1rem;
    --border-radius-small: 5px;
}


body {
    background-color: var(--background-color);
    padding: var( --padding-small);

    p, h1, h2, h3, label {
        color: var(--text-color);
        font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    }

    p {
        font-size: 1.5em;
    }
}

nav ul li a { 
        background-color: var(--text-color);
        text-decoration: none;
        color: #000;
        border-radius: 5px;
        padding: .5rem;
        font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

main {
    flex-direction: column;
    margin:0 7rem;

        div:not(:nth-of-type(2)){
            display: grid;
            
            justify-content: center;
            grid-template-columns: 55% 40%;
            gap: 5%;
            margin-top: 3rem;


            ol {
                grid-column-start: 1;
                li {
                    margin: var( --padding-small) 0;
                }
            }

            section {
                grid-row-start:1;
                grid-column-start: 2;

            }

            form {
                display: grid;
                align-items: center;
            }
}}



/* Invoerveld */
.form-seen {
    display: none;
}

form { 
    /* position: sticky;
    bottom: var( --padding-small);
    right: 0; */

    position: sticky;
    bottom: 40%;
    right: 35%;
    display: none;
    flex-direction: column;
    align-self: end;
    width: 30%;
    padding: 1.5rem;
    margin: var( --padding-small);
    border: 1px solid var(--text-color-2);
    background-color: var(--text-color);
    border-radius: 5px;

    h3 {
        font-size: 1.3rem;
    }

    h3, p{
        color: var(--text-color-2);
    
        &:focus {
            outline: 5px solid var(--blauwe-color);
        }
    }

    p {
        border-left: 5px solid black;
        padding: var( --padding-small);
    }

    label {
        display: inline-flex;
        flex-direction: column;
        padding: .5rem 0;
        color: var(--text-color-2);
        font-size: 1.3rem;

        &:focus {
            outline: 5px solid var(--blauwe-color);
        }

        input {
            padding: .2rem;

            &:focus {
                outline: 5px solid var(--blauwe-color);
            }
        }
    }

    button {
        background-color: var(--text-color-2);
        color: #fff;
        border-radius: 5px;
        padding: .5rem;

        &:focus {
            outline: 5px solid var(--blauwe-color);
        }
    }
}

.form-seen {
    backdrop-filter: grayscale(30%);
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    left: 0;
    top: 0;
    display: flex;

    form {
        display: flex;
        position: absolute;
    }
}

@media (width < 700px) {
    main{
        margin: 0 var( --padding-small);
    }
    
    form {
        width: 90%;
        margin: var( --padding-small) 0;
    }
}

span:focus {
    background-color: var(--text-color);
    color: var(--wit-kleur);
}

/* Styling annotaties */
.newAnnotatie {
    border: 1px solid var(--background-color);
    border-radius: var(--border-radius-small);              
    padding: var( --padding-small);
    width: 100%;

    /* &:nth-child(even) {
        background-color: var(--text-color);
    }

    &:nth-child(odd) {
        background-color: var(--licht-blauw-color);       
    } */

    h2, p {
        color: var(--background-color);
        font-size: 1.2rem;
    }

    p:first-of-type{
        border-left: black var(--border-radius-small) solid;
        padding: var( --padding-small);
        margin-bottom: var( --padding-small);
        font-style: italic;
        font-size: 1.2rem;
    }

    button {
        font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        background-color: var(--background-color);
        color:var(--text-color);
        border-radius: var(--border-radius-small);
        padding: .5rem;
        font-size: var( --padding-small);
    }
}

span.annotatie-teken:nth-child(even) {
    background-color: var(--licht-blauw-color);
    color: var(--text-color-2);
}

span.annotatie-teken:nth-child(odd) {
    background-color: rgba(255, 253, 114, 0.8);
    color: var(--text-color-2);
}


/* het oplichten van de annotatie */

span.annotatie-teken.focusedAnnotatie {
    background-color: white;
    outline: 5px solid white;
    border-radius: 10px;
    font-size: 1.5rem;
}

.newAnnotatie.focusedAnnotatie {
    outline: 5px solid white;
    background-color: white;
    border-radius: 10px;
    

    p {
        font-size: 1.5rem;
    }
}
