body {
    text-align: center;
    font-family: Sans-serif;
    display: flex;
    flex-direction: column;
    background-color: whitesmoke;
}

#title {
    font-size: 30pt;
    color:white;
    text-shadow: 0 0 5px black;
}


body {
    margin: 0;
    padding: 0;
}



form {
    background-color: white;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 5pt 5pt 5pt 5pt;
}


#arrow, #arrow_2 {
    width: 10pt;
    height: 10pt;
    display: none;
}

#import {
    width: 90%;
}

#json{
    position: fixed;
    top: 3pt;
    left: 100pt;
    background-color: lightslategray;
}

#admin {
    position: fixed;
    top: 3pt;
    left: 3pt;
    background-color: lightslategray;
}

input {
    width: 68pt;
}

select {
    width: fit-content;
}

#title_image {
    width: 95%;
    margin: auto;
}


.klocka, .stapel_klocka, .eget, .stapel, .fönster, .fönster_2 {
    font-size: 13pt;
    font-weight: normal;
}


#church_choice, #church_choice_2 {
    width: 90%;
}
.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
    width: 200pt;
}
.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}
.autocomplete-items div {
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}
.autocomplete-items div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}
.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
} 


#header{
    background-color: red;
    background: url(content/portrait_2.png) top left no-repeat;
    border-bottom:solid 3pt;
}

#arrow:hover, #arrow_2:hover{
    cursor: pointer;
}

#menubar{
    width:100%;
    align-items:center;
    justify-content: center;
    background-color: transparent;
    display:flex;
    flex-direction: column;
    top: 0pt;
}
#menubar2{
    width:100%;
    align-items:center;
    justify-content: center;
    background-color: transparent;
    display:flex;
    flex-direction: column;
    top: 0pt;
}

.menuitem{
    margin: 1rem;
    align-items:center;
    justify-content: center;
    padding: 5pt;
    font-size: 2rem;
    background-color: #fed831;
    border-radius: 7px;
    text-decoration: none;
    text-align: left;
    display: flex;
    height: 20pt;
    flex-basis: 20%;
}.menuitem2{
    margin: 1rem;
    align-items:center;
    justify-content: center;
    padding: 5pt;
    font-size: 2rem;
    background-color: #fed831;
    border-radius: 7px;
    text-decoration: none;
    text-align: left;
    display: flex;
    height: 20pt;
    flex-basis: 20%;
}
.menuitem:hover{
    cursor: pointer;
}
.menuitem2:hover{
    cursor: pointer;
}

#sam_form, #sam_form_2{
    display: none;
    border-radius: 0.5rem;
}

.categories{
    margin:3rem;
    border-radius: 0.2rem;
    display: flex;
    flex-direction: column;
    align-items:center;
    justify-content: center;
    width: 95%;
    height: -moz-fit-content;
    height: fit-content;
    background-color: white;
    box-shadow: -1px 1px 4px #000000;
}

.category_items{
    margin: 1rem;
    align-items:center;
    justify-content: center;
    clear: both;
}
.category_title{
    width:100%;
    background-color: #fed831;
    border-radius: 0.5rem;
}

#fin_sum *{
    font-size:1.2rem;
}

#mod_sum *{
    font-size:1.2rem;
}

#form {
    display: flex;
    background-color: whitesmoke;
    flex-direction:row;
    justify-content: center;
    flex-wrap: wrap;
}

#första_risk {
    margin: 0;
    padding: 0;
    display: none;
    background-color: whitesmoke;
    flex-direction:row;
    justify-content: center;
    flex-wrap: wrap;
}
#information {
    padding: 0;
    display: none;
    background-color: whitesmoke;
    flex-direction:row;
    justify-content: center;
    flex-wrap: wrap;
    top:0;
}

#sammanställning{
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: whitesmoke;
    border: none;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    padding: 5pt 5pt 5pt 5pt;
    border-radius: 0.2rem;
    border: solid 1px;
}

#sammanställning:hover #sam_form{
    display: inline-block;
}

#legend{
    justify-self: center;
    align-self: center;
    margin: auto;
    display: flex;
    overflow: wrap;
    display:inline-block;
}


.info{
    justify-self: center;
    align-self: bottom;
    display: inline-block;
    position: relative;
    top:-1.5pt;
    background: url(content/questionmark.png) center bottom no-repeat;
    vertical-align: middle;
    background-size: contain;
    width: 16pt;
    height: 16pt;
}

.infotext {
    visibility: hidden;
    width: 13rem;
    background-color: #0f6fba;
    color: #fff;
    text-align: center;
    padding: 0.5rem;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    left:-9rem;
    top: 1rem;
}

.info:hover .infotext {
    visibility: visible;
}

label{
    font-weight: bold;
}

.risk_option{
    margin: 1rem;
    align-items:center;
    justify-content: center;
    font-size: 1rem;
    background-color: #fed831;
    border-radius: 7px;
    text-decoration: none;
    text-align: left;
    display: flex;
    padding: 5pt 5pt 5pt 5pt;
    height: 20pt;
    flex-basis: 30%;
    margin-left: auto;
    cursor: pointer;
}

.info_option{
    margin: 1rem;
    align-items:center;
    justify-content: center;
    font-size: 1rem;
    background-color: #fed831;
    border-radius: 7px;
    text-decoration: none;
    text-align: left;
    display: flex;
    padding: 5pt 5pt 5pt 5pt;
    height: 20pt;
    flex-basis: 30%;
    margin-left: auto;
    cursor: pointer;
}

.checkbox{
    margin: 0px;
    padding:0px;
    width: -moz-fit-content;
    width: fit-content;
}

#choices_risk{
    width: 80%;
    align-items: center;
    justify-content: center;
    align-items: center;
    justify-self: center;
}

.risk_selections{
    display: none;
    flex-direction: column;
    margin-right: auto;
    margin-left: auto;
}
.info_selections{
    display: none;
    flex-direction: column;
    margin-right: 10pt;
    margin-left: 10pt;
    text-align: left;
}

.clickable{
    border-bottom: 1px dotted;
    cursor: pointer;
}



.picture_box{
    display: none;
    position: fixed;
    width: 93%;
    height: 90%;
    margin-left: 2.5%;
    margin-right: 2.5%;
    margin-top: 2.5%;
    margin-bottom: 2.5%;
    background-color:white;
    border-radius: 2rem;
    border: 5px solid;
    align-items: center;
    justify-content: center;
}

.child_picture{
    flex-direction: row;
    overflow-y:scroll;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
}

.images{
    width: 100%;
    border-radius:2rem;
    max-height: 100%;
    max-width: 100%;
}

.image_items{
    margin: 1rem;
    display: flex;
    align-items:center;
    justify-content: center;
    flex-direction: column;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}


/* EVERYTHING ABOVE PHONE  */


@media only screen and (min-width: 768px) {
    /* LANDSCAPE IPAD  */
    .infotext {
    left:-6.5rem;
    }
    .child_picture{
        flex-direction: row;
    }
    .image_items{
        width:40%;
        max-width: 30%;
        max-height: 90%;
    }
    #sam_title, #sam_title_2{
        font-size:1.2rem;
    }
    .menuitem{
        flex-basis: 18%;
        font-size: 1rem;
    }
    .menuitem2{
        flex-basis: 24%;
        font-size: 0.8rem;
        text-align: center;
    }
    
    .risk_option{
        font-size: 0.8rem;
        justify-self: center;
        margin: auto;
    }
    #menubar{
        flex-direction: row;
    }
    #menubar2{
        flex-direction: row;
    }
    .categories{
        flex-basis: 41%;
        flex-grow: 1.5;
    }
    #sammanställning, #sammanställning_2 {
        bottom: auto;
        position: fixed;
        top: 3pt;
        right: 3pt;
        width: 20%;
        border: solid 0.5pt;
        width: -moz-fit-content;
        width: fit-content;
    }
    #sam_form{
        display: inline-block;
    }
    #arrow, #arrow_2{
        display: flex;
    }
    #header{
        background: url(content/pan_2.png) top left no-repeat;
        background-size: cover;
    }
    
    .info_selections{
        margin-right: 40pt;
        margin-left: 40pt;
    }    
}


@media only screen and (min-width: 992px) {
    /* PC   */
    #sam_title, #sam_title_2{
        font-size:1.6rem;
    }
    .menuitem{
        flex-basis: 15.5%;
        font-size: 1.3rem;
    }
    .menuitem2{
        flex-basis: 24%;
        font-size: 1.1rem;
        text-align: center;
    }
    .risk_option{
        font-size: 1.3rem;
    }
    #choices_risk{
        display: flex;
    }
    #title_image {
        width: 50rem;
        margin: auto;
    }
    .mobile_break{
        display: none;
    }
    .info_selections{
        margin-right: 100pt;
        margin-left: 100pt;
    }    
}