/* -----------------------------------------------
*   Grid layout
*   
*/

body {
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-content: stretch;
}

/* -----------------------------------------------
*   general classes
*   
*/

.error-message{
    color: red;
    font-weight: bold;
}

.success-message{
    color: green;
    font-weight: bold;
}


/* -----------------------------------------------
*   classes for displaying with flexbox
*   
*/

.flexbox-normal {
    display: flex;
    flex-wrap: wrap;
}

.flex-content {
    box-sizing: border-box;
}

.centered {
    justify-content: center;
}

.myworkshops .flex-content {
    padding: 5px;
}

.flexbox-column {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.self-flex-end {
    align-self: stretch;
}

/* -----------------------------------------------
*   classes for column-width
*   
*/
.col-16 {
    width: calc(16% - 14px);
    margin-top: 6px;
}

.col-125 {
    width: calc(12.5% - 14px);
    margin-top: 6px;
}

.col-25 {
    width: calc(25% - 14px);
    margin-top: 6px;
}

.col-33 {
    width: 33% ;
    margin-top: 6px;
}

.col-50 {
    width: calc(50% - 6px);
    margin-top: 6px;
}
  
.col-75 {
    width: calc(75% - 6px);
    margin-top: 6px;
}

.col-100 {
    width: calc(100% - 6px);
    margin-top: 6px;
}


/* -----------------------------------------------
*   dropdown classes
*   
*/
.dropdown {
    position: relative;
}
  
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 12px 16px;
    z-index: 1;
    overflow: hidden;
}
  
/* , .dropdown:active .dropdown-content, .dropdown:focus .dropdown-content, .dropdown:focus-within .dropdown-content */
.dropdown:hover .dropdown-content { 
    display: block;
}


@media screen and (max-width: 1350px) {
    .col-16 {
        width: calc(32% - 14px);
        margin-top: 6px;
    }
    
    .col-125, .col-25, .col-75, input[type=submit] {
        width: calc(50% - 12px);
        margin-top: 0;
    }
}

@media screen and (max-width: 700px){
    .myworkshops .col-50 {
        width: 100%;
    }
    .col-16, .col-125, .col-25, .col-75, input[type=submit] {
        width: 100%;
        margin-top: 0;
    }
}




#login-form {
    max-width: 40%;
    min-width: fit-content;
}