/* --------------------------------------------------------------------------
    stylesheet for application anmeldung
------------------------------------------------------------------------- */

h5{
    font-size: 1.15rem;
}

/* style for index */
h2#headline{
    margin-bottom: 1.5rem;
}

/* style for event_detail.html */

div#event-detail h3#headline{
    margin-bottom: 0.75rem;
}

div#event-detail div.description{
    display: inline;
    margin: 1rem 0;
}

div#event-detail div.image{
    width: 45%;
    height: 0;
    float: right;

    padding-bottom: 33.75%;
    margin: 1rem;

    background-repeat: no-repeat;
    background-size: cover;
}

div#event-detail table{
    margin: 1.5rem 0 0 0;
}

/* course display of event_detail */

h5#course-heading{
    margin-bottom: 1rem;
}

div#accordion.courses {
    display: flex;
    flex-direction: column;
}

div#accordion.courses div.card{
    display: block;
    width: 100%;
    max-width: 700px;
    min-width: 100px;
    height: 100%;
    flex: 1;

    margin-bottom: 0.25rem;

    border-radius: 0.3rem;
    border-width: 0;

    background-color: var(--background-highlight);
}

@media(min-width: 567px){

    div#accordion.courses{
        flex-direction: row;
        flex-wrap: wrap;
    }

    div#accordion.courses div.card{
        min-width: 400px;
        margin: 0.25rem;
    }

}

div#accordion.courses div.card.placeholder-card{
    height: 2px;
    visibility: hidden;
}

/* events overview */

div#accordion.events {
    display: flex;
    flex-direction: column;
}

div#accordion.events div.card{
    display: block;
    width: 100%;

    margin-bottom: 0.25rem;
    border-radius: 0.3rem;
    padding: 0.5rem 0.75rem;

    background-color: #fff;
}


/* 
-----------------------------------------------------------------------------------------------------------------------

    style for event_detail, register_seminar and edit_registration_seminar

-----------------------------------------------------------------------------------------------------------------------
*/

div.messages > div{
    margin: 1rem 0;
}


/* 
-----------------------------------------------------------------------------------------------------------------------
    course widgets
-----------------------------------------------------------------------------------------------------------------------
*/

div#courses-show{
    margin: 0;
}

div#courses-show div.course-department{
    margin: 0 0 2rem 0;
}

div#courses-show h5{
    margin: 0 0 .8rem 0;
}

div#courses-show div.course-department > div.wrapper{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

div#courses-show div.course{
    position: relative;
    display: flex;
    flex-direction: column;
    width: 360px;
    min-height: 55px;

    margin: 0 .75rem .75rem 0;
    border-radius: .2rem;
    padding: .5rem .75rem;

    background-color: var(--background-highlight);
}

div#courses-show div.course > label, div#courses-show div.course > a, div#courses-show div.course > a:visited{
    color: #000;
    margin: 0 70px 0 0;
    cursor: pointer;
}

div#courses-show  div.course > label:hover, div#courses-show  div.course > a:hover{
    margin: 0 65px 0 0;
    font-weight: 600;
    color: var(--button);
    text-decoration: none;
}

@media (hover: none), (pointer: none){
    div#courses-show div.course > label, div#courses-show div.course > a, div#courses-show div.course > a:visited{
        margin: 0 65px 0 0;
        font-weight: 600;
        color: var(--button);
    }

    div#courses-show div.course > label:focus, div#courses-show  div.course > a:focus{
        margin: 0 65px 0 0;
        font-weight: 600;
        color: var(--button-hover);
    }
}

div#courses-show div.course div.level-icon{
    position: absolute;
    top: .5rem;
    right: .5rem;

    width: 60px;
    height: 40px;

    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

div#courses-show div.course div.django-starfield{
    margin: auto 0 0 1rem;
    padding: .25rem;
    z-index: 50;
}

/* 
-----------------------------------------------------------------------------------------------------------------------
    popup descriptions
-----------------------------------------------------------------------------------------------------------------------
*/

div#courses-show div.popup-description{
    display: none;
    overflow: auto;

    position: fixed;
    top: 75px;
    right: 15%;
    z-index: 10000001;

    width: 70%;
    max-height: 75%;

    border-radius: .5rem;

    padding: 0 2rem;

    background-color: #fff;
}

div#courses-show div.popup-description.visible{
    display: block;
}

div#courses-show div.popup-description > div.wrapper{
    padding: 2rem 0;
}

div#courses-show div.popup-description  div.level-icon{
    float: right;

    width: 120px;
    height: 80px;
    
    margin: 0 0 .75rem 1.5rem;

    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

div#courses-show div.popup-description  div.courses-needed{
    margin: 1rem 0;
}

div#courses-show div.popup-description ul{
    margin: 0 0 1rem 0;
    padding-left: 1.75rem;
}

div#courses-show div.popup-description  div.courses-needed a{
    cursor: pointer;
}

div#courses-show div.popup-description  div.courses-needed a:hover{
    font-weight: 600;
    color: var(--button);
}

div#courses-show div#screencrasher{
    display: none;
}

div#courses-show div#screencrasher.visible{
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 10000000;
    opacity: 0.5;
    background-color: #000;
}

@media(max-width: 650px){
    div#courses-show div.wrapper{
        flex-direction: column;
    }

    div#courses-show div.course{
        width: 100%;
    }

    div#courses-show div.popup-description{
        right: 5%;
        width: 90%;
        top: 60px;
        max-height: calc(100vh - 120px);
    }

    div#courses-show div.popup-description  div.level-icon{
        float: none;
    }
}
