@import '../config/variables.css';
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* Conatins Misc stuff to small to be its own components */
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* Specific stuff */
.video-container iframe { max-width: 100%; }

/* Random spacing fix (jobb) */
.object-description .r-margin p {
    margin-left: 0;
    margin-right: 0;
}

.hover-background a:hover { background-color: #F8FCFF; }

/* mfinn result? */
.scroll-container {
    position: absolute;
    top: 50px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
@media (--small-screen) {
    body,
    .scroll-container {
        padding-bottom: 30px; /* Avoid the issue of toolbars showing up when clicking too close to the bottom toolbar on iOS 7. */
    }
}

.list-line:not(:last-child) { border-bottom: 1px solid var(--sardine); }

/* footer specific, default is collapsed for old phones, temporary fix? */
.horizontal-list.default1col li { display: block; }
@media not all and (--small-screen) {
    .horizontal-list.default1col li { display: inline; }
    /* should we make a generic thing for vertical dividers. this one is for the footer */
    .verticalhr li:not(:last-child) { border-right: 1px solid var(--sardine); }
}

/* slett? skrevet ut av mfinn

@media not all and (--small-screen) {
    .fixedfilters .scrollbar::-webkit-scrollbar {
        width: 5px;
        background: transparent;
    }
    .fixedfilters .scrollbar:hover::-webkit-scrollbar { }
    .fixedfilters .scrollbar::-webkit-scrollbar-thumb {
        background-color: var(--lt-gray);
        border-radius: 5px;
    }
    .fixedfilters .scrollbar:hover::-webkit-scrollbar-thumb { background-color: #CCCCCC; }
    .fixedfilters .scrollbar::-webkit-scrollbar-thumb:hover { background-color: #BBBBBB; }
    .fixedfilters .scrollbar::-webkit-scrollbar-thumb:active { background-color: #AAAAAA; }
    .fixedfilters .scrollbar {
        max-height: 600px;
        margin-right: 5px;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

*/


.skiplink {
    /* This has opacity 0 instead of display: none to avoid layout when it's focused */
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    background: var(--milk);
    color: var(--licorice);
    padding: 5px 10px;
    z-index: -1;
}

.skiplink:focus {
    opacity: 1;
    z-index: 5;
}

.actionFeedback {
    position: absolute;
    z-index: 9;
    transition: all 1s ease-in-out 0.5s;
}

.read-more::before {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #FFFFFF);
    content: '';
}

/*
Hide some tracking images which otherwise causes layout and other display issues
when they load. `display: none` should probably be enough, but do this to be sure.
*/
#unispring-tp, #pulse2pixel, #pulse2anpixel {
    position: absolute;
    visibility: hidden;
    top: 0;
}
