*, :before, :after {
    box-sizing: inherit;
}

@font-face {
    font-family: 'Montserrat';
    src: url(/fonts/montserrat-regular-webfont.eot);
    src: url(/fonts/montserrat-regular-webfont.eot?#iefix) format("embedded-opentype"), url(/fonts/montserrat-regular-webfont.woff2) format("woff2"), url(/fonts/montserrat-regular-webfont.woff) format("woff"), url(/fonts/montserrat-regular-webfont.ttf) format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url(/fonts/montserrat-bold-webfont.eot);
    src: url(/fonts/montserrat-bold-webfont.eot?#iefix) format("embedded-opentype"), url(/fonts/montserrat-bold-webfont.woff2) format("woff2"), url(/fonts/montserrat-bold-webfont.woff) format("woff"), url(/fonts/montserrat-bold-webfont.ttf) format("truetype");
    font-weight: bold;
    font-style: normal;
}

html {
    box-sizing: border-box;
    font-size: 13px;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: #ecf0fa;
    font-family: "Montserrat", "Helvetica Neue", "Helvetica", sans-serif;
    font-size: 1rem; 
    color: #313b53;
    height: 100%;
}

body.waiting * {
    cursor: progress;
}

h1 {
    padding-bottom: 0;
    margin-bottom: 0.5em;
    font-size: 1.3rem;
    font-weight: bold;
}

h2 {
    font-size: 1.1rem;
    font-weight: bold;
}

h3 {
    font-size: 1.0rem;
    font-weight: normal;
}

h1.header-without-border {
    border-bottom: none;
}

.p-without-margin {
    margin: 0;
}

.p-header {
    font-weight: 500;
}

.main-content {
    flex: 1 0 auto;
    margin-top: 0em;
    margin-left: 1.5em;
    margin-right: 1.5em;
    margin-bottom: 2em;
}

.main-header {
    padding-top: 1.5em;
}

.header--favorites {
    margin-top: 2em;
}

.description {
    margin-bottom: 2em;
}


.card--accordion {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.card--accordion:last-of-type {
    margin-bottom: 5em;
}

.card-header--accordion {
    font-weight: 500;
}

fieldset {
    margin-bottom: 0.5em;
}

/*Modals*/
.modal {
    right: 0 !important; /*To override bootstrap styling*/
    left: auto !important; /*To override bootstrap styling*/
    top: 50% !important; /*To override bootstrap styling*/
    width: 16em;
    height: auto;
    padding: 1em;
    display: none;
    position: fixed;
    border: 1px solid black;
    border-radius: 0.25rem;
    color: #fff;
    background-color: #37589a;
}

.modal__body {
    margin-top: 1em;
    margin-bottom: 1.5em;
}

.modal__link {
    color: #fff;
}

    .modal__link:hover {
        color: #fff;
    }


/*Navbar*/

.navbar {
    display: block !important;
}

.bg-primary {
    background-color: #37589a;
    background: linear-gradient(to bottom, rgba(52, 88, 154, 0.8), rgba(52, 88, 154, 0.8)), url('../images/library@2x-min.jpg');
}

.navbar-brand {
    font-weight: bold;
}

.navbar__logo {
    max-height: 2em;
    margin-right: 15px;
}

.help-nav {
    margin-top: 1.5rem;
}

/*Footer*/
.footer {
    flex-shrink: 0;
    padding: 0.5em 0;
    margin-top: 1em;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
}

#latestSearchBox {
    height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
}

#latestSearchText {
    color: #007bff;
    text-decoration: none;
}
.details-view-container{
    position: relative;
}

.footer__text {
    padding: 0.5em 1em 0 1em;
    border-top: solid 1px darkgray;
}

/*Icons*/
#details .icon, .icon.close, .iconDiv {
    height: 1.4rem;
    width: 1.4rem;
    padding-top: 0.2em;
    fill: white;
}

    #details .icon.arkivbildaregrupp, #details .icon.forvaringsenhetgrupp {
        height: 1.6rem;
        width: 1.6rem;
        padding-top: 0.1em;
        fill: white;
    }
#details {
    align-self: flex-start;
    position: sticky;
    top: 0px;
}

.star--empty {
    background-image: url('../images/svg/star-empty.svg');
    background-repeat: no-repeat;
}

.star--yellow {
    background-image: url('../images/svg/star-gul.svg');
    background-repeat: no-repeat;
}

/*Textboxes*/
.readonly-textbox {
    padding: 0.3em;
    flex-wrap: wrap;
    border-radius: 2px;
    margin-bottom: .5em;
    border: 1px solid #c2c9db;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15);
    background-color: #fff;
    white-space: break-spaces;
}

.readonly-textbox--small {
    box-sizing: border-box;
    margin: 0 10px 10px 0;
    width: calc(1/2*100% - (1 - 1/2)*10px);
}

.readonly-textbox--right {
    margin-right: 0;
}

.readonly-textbox--container {
    display: flex;
    flex-wrap: wrap;
}

.readonly-content {
    padding-right: 0.8em;
    padding-left: 0.5em;
    overflow-wrap: break-word;
}

.readonly-label {
    margin: 0;
    padding-right: 0.8em;
    padding-left: 0.5em;
    font-weight: bold;
    font-size: 1em;
    color: #e87f1c;
}

.showMore,.showLess {
    cursor: pointer;
    font-size: .9rem;
    color: blue !important;
}
.readonly-content-no-label {
    padding: .7rem;
}

.readonly-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
}


/*Images*/

    .img {
    margin-top: 1em;
    margin-bottom: 1em;
    height: 25em;
    width: 20em;
    background-repeat: no-repeat;
    background-size: contain;
}

#AddToSavedFavorites {
    background-image: url('../images/addtolist_final.png');
}

#AddToSavedFavoritesSearchResultsView {
    background-image: url('../images/addtolist_searchresultsview_mobile.png');
}

#SearchForSavedListOfFavorites {
    background-image: url('../images/savedlist.png');
}

#RemoveFromSavedFavoritesSearchResultView {
    background-image: url('../images/addtolist_searchresultsview_mobile.png');
}

#RemoveFromSavedFavoritesDetailView {
    background-image: url('../images/removefromlist.png');
}

#RemoveFromSavedFavoritiesListView {
    background-image: url('../images/removefromlist_2.png');
}
.errorMessage {
    font-size: 2rem;
    margin-top: 5%;
    text-align: center;
    color: red;
}
/*About Visual Arkiv Sök*/
.about--fujitsu {
    margin-bottom: 4em;
}

.about__version {
    font-weight: bold;
}

.made-by-Fujitsu__text {
    text-align: center;
    font-style: italic;
    margin-bottom: 0.2em;
}

.logotyp {
    width: 100%;
    max-width: 100px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1em;
    margin-top: 3em;

    border-radius: 8px;
}

/*Sparade favoriter*/

.add-to-list {
    float: right;
}

.add-to-list--hidden {
    display: none;
}

.list-header {
    margin-top: 2em;
}

/*Buttons*/
.button {
    background-color: #1b6ec2 !important;
    color: #fff;
}

    .button:hover {
        background-color: #37589A !important;
        color: #fff;
    }

.button--dark {
    background-color: #37589A !important;
    color: #fff;
}

    .button--dark:hover {
        color: #fff;
    }

    .button--search {
        position: fixed;
        bottom: 0;
        margin: auto;
        left: 0;
        right: 0;
        width: 22em;
    }

    .button--simple-search {
        margin-top: 1em;
        margin-bottom: 1em;
    }

    .button--back {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        margin-top: 3em;
        height: 3em;
    }

    .button--list-search {
        margin-bottom: 4em;
    }

    .button--reset {
        margin-bottom: 4em;
    }

.button--accordion {
    font-weight: 500;
}

.button--disabled {
    pointer-events: none;
    opacity: 0.65;
}

/*Tables*/
.table {
    border-collapse: collapse;
    border-radius: 5px 5px 0 0;
    border-top: 0;
    margin: 0 0;
    font-size: 0.9em;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    table-layout: fixed;
    width: 100%;
    position: relative
}

.table__resizer {
    /* Displayed at the right side of column */
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    cursor: col-resize;
    user-select: none;
}

.table__resizing {
    border-right: 2px solid blue;
}

.table--accordion {
    margin: 0;
    box-shadow: none;
}

.table__header {
    position: sticky;
    top: 0;
    background-color: #37589a;
}

.table__header--type {
    padding-left: 3em;
}

.table__header--xlarge {
    width:80%
}

.table__header--large {
    width: 20%;
}

.table__header--small {
    width: 10%;
}

.table__header--xsmall {
    width: 5%;
}

.table__header--concept {
    width: 30%;
}

.table__header--concept-large {
    width: 70%;
}

.table__header, .table__data {
    padding: 8px 12px;
    word-wrap: break-word;
    border-right: groove;
    border-right-color: white;
}

.table__row--header {
    background-color: #37589a;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
}

.table__row {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    font-weight: 500;
    cursor: pointer;
}

.table__row:nth-of-type(even) {
    background-color: #f2f2f2;
}

    .table__row:hover {
        background-color: #c2c9db;
    }

.table__row--default-cursor {
    cursor: default;
}

.table__data {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.4rem 1rem 0.4rem 0.4rem !important; /*To override bootstrap styling*/
    border-top: 0 !important;
    border-right: double;
    border-right-color: white;
}

.table__data--concept {
    word-wrap: break-word;
    white-space: normal;
    padding: 0.5rem 1rem 0.5rem 0.5rem !important; /*To override bootstrap styling*/
}

.table__data--concept:nth-of-type(odd) {
    font-weight: 500;
}

.table__data--star {
    float: right;
}

.table__link {
    color: #313b53;
    text-decoration: none;
}

    .table__link:hover {
        color: #313b53;
        text-decoration: none;
    }

.table__data--about {
    font-weight: 500;
    width: 30%;
}

/*Loading*/
[animateonload] {
    position: relative;
}

.lds-ellipsis {
    display: inline-block;
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 11px;
    transform: translate(-50%,-50%);
}

    .lds-ellipsis div {
        position: absolute;
        width: 11px;
        height: 11px;
        border-radius: 50%;
        background: #fff;
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
    }

        .lds-ellipsis div:nth-child(1) {
            left: 6px;
            animation: lds-ellipsis1 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(2) {
            left: 6px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(3) {
            left: 26px;
            animation: lds-ellipsis2 0.6s infinite;
        }

        .lds-ellipsis div:nth-child(4) {
            left: 45px;
            animation: lds-ellipsis3 0.6s infinite;
        }

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(19px, 0);
    }
}


@media (max-width: 360px) {
    .footer {
        display: none;
    }
}

/****Anpassningar till padda****/
@media (min-width: 764px) {
    html {
        font-size: 16px;
    }

    header > h1 {
        font-size: 1.3em;
    }

    p, .readonly-textbox{
        font-size: 0.9em;
    }

    .archiveobject-name-extra { /*Ska tas bort när vi gör om visa arkivbildare sidan så man inte måste skriva ut depå på samtliga*/
        display: block;
    }

    .logotyp {
        max-width: 150px;
    }

    .table__header--xlarge {
        width: 90%
    }

    .table__header--concept {
        width: 20%;
    }

    .table__header--concept-large {
        width: 80%;
    }

    .add-to-list {
        float: left;
    }
}


/****Anpassningar till laptop****/
@media (min-width: 1024px) {
    #latestSearchBox {
        justify-content: flex-start;
        height: 3em;
    }

    #latestSearchText {
        padding-left: 4em;
    }

    .main-content {
        margin-right: 2em;
        margin-left: 2em;
    }

    h1 {
        font-size: 1.6em;
    }


    .navbar li {
        margin-left: 1em;
        margin-right: 1em;
    }

    .search-navbar {
        display: none;
    }

    .button--back {
        display: none;
    }

    .button--simple-search {
        display: block;
        margin: 0 auto;
        margin-top: 1em;
        width: 20em;
    }

    .logotyp {
        max-width: 200px;
    }

    .about--fujitsu {
        margin-bottom: 0;
    }

    .img {
        width: 70em;
    }

    #AddToSavedFavorites {
        background-image: url('../images/addtolistfullsize_final.png');
    }

    #AddToSavedFavoritesSearchResultsView {
        background-image: url('../images/addtolist_searchresultsview.png');
    }

    #SearchForSavedListOfFavorites {
        background-image: url('../images/savedlistfullsize_final.png');
    }

    #RemoveFromSavedFavoritesSearchResultView {
        background-image: url('../images/addtolist_searchresultsview.png');
    }

    #RemoveFromSavedFavoritesDetailView {
        background-image: url('../images/removefromlistfullsize.png');
    }

    #RemoveFromSavedFavoritiesListView {
        background-image: url('../images/removefromlist_fullsize2.png');
    }
}

@media (min-width: 1400px) {
    .main-content {
        margin-right: 5em;
        margin-left: 5em;
    }
}
