/* Stilark for VID-tilpasninger i Canvas, DESKTOP */

/* ######################################### */
/* ####### Bibliotektjenester start ######## */
/* ######################################### */

/* Sist oppdatert: Gustav Bolin, 11.02.2026 */

/* Container for alt innhold i emnet */
div.bib-content-box {
	max-width: 790px;
}

/* Lenker */

div.bib-content-box a {
	color: black;
	text-decoration: underline 1px #ff5b35 !important;
	font-weight: 600;
}

div.bib-content-box a:hover, div.bib-content-box a.external:hover span, div.bib-content-box a.external:focus span, div.bib-content-box a.external:active span {
	text-decoration: underline 2px #ff5b35 !important;
}

/* Knapper */

div.bib-help-section a.bib-button, p.eng-btn-pgh a.bib-button, p.bib-res-btn-pgh a.bib-button
{
    color: black;
    text-transform: uppercase;
	font-size: smaller;
    letter-spacing: 1px;
    font-weight: 600;
    border-radius: 5px;
    text-decoration: none !important;
	border: none;
	border-left: 6px solid;
}

div.bib-help-section a.bib-button 
{
	border-color: #ff5b35;	
	background-color: #ffeeea;
	background: linear-gradient(to right, #ff5b35 50%, #ffeeea 50%);
    background-size: 200% 100%;
    background-position: right bottom;
	transition: all 0.2s linear;
}

p.eng-btn-pgh a.bib-button 
{
	border-color: #454543;
	background-color: #f4f4f1; 
	background: linear-gradient(to right, #454543 50%, #f4f4f1 50%);
	background-size: 200% 100%;
    background-position: right bottom;
	transition: all 0.2s linear;
}

p.bib-res-btn-pgh a.bib-button
{
	border-color: #611c12;
	background-color: #f8dfdc; 
	background: linear-gradient(to right, #611c12 50%, #f8dfdc 50%);
	background-size: 200% 100%;
    background-position: right bottom;
	transition: all 0.2s linear;
}

div.bib-help-section a.bib-button:hover, div.bib-help-section a.bib-button:focus, div.bib-help-section a.external:hover span, div.bib-help-section a.external:focus span, div.bib-help-section a.external:active span, p.eng-btn-pgh a.bib-button:hover, p.eng-btn-pgh a.bib-button:focus, p.bib-res-btn-pgh a.bib-button:hover, p.bib-res-btn-pgh a.bib-button:focus, p.bib-res-btn-pgh a.external:hover span, p.bib-res-btn-pgh a.external:focus span, p.bib-res-btn-pgh a.external:active span
{
	color: white;	
	text-decoration: underline !important;
	background-position: left bottom;
    transition: all 0.2s linear;
}

a.bib-button i[class*=icon-], a.bib-button i[class^=icon-]
{
	position: relative;
	top: -3px;
	left: 2px;
	transform: rotate(-45deg);
}

.bib-cta a.bib-button i[class*=icon-], .bib-cta a.bib-button i[class^=icon-]
{
	top: inherit;
	transform: none;
}

p.eng-btn-pgh a.bib-button i[class*=icon-], p.eng-btn-pgh a.bib-button i[class^=icon-], p.bib-res-btn-pgh a.bib-button i[class*=icon-], p.bib-res-btn-pgh a.bib-button i[class^=icon-]
{
	top: 3px;
}

p.eng-btn-pgh a.bib-button i[class*=icon-], p.eng-btn-pgh a.bib-button i[class^=icon-]
{
	transform: none;
}

p.nor-btn-pgh a.bib-button i[class*=icon-], p.nor-btn-pgh a.bib-button i[class^=icon-]
{
	left: -2px;
}

p.bib-res-btn-pgh a.bib-button i[class*=icon-], p.bib-res-btn-pgh a.bib-button i[class^=icon-]
{
	transform: scaleX(-1);
	left: 4px;
}

a.bib-button span.external_link_icon
{
	display: none !important;
}
/*Søking-siden*/
/*Knapper på Søking-siden*/
div.bib-content-box .bib-cta {
    display: flex;
    justify-content: center;
    align-items: center;
}
div.bib-content-box .btn-info {
    color: white;
    background-color: #454543;
	padding: 15px;
    padding-left: 25px;
    padding-right: 25px;
}

/*Innholdsfortegnelse på Kom i gang med søking-siden*/
ul#bib-toc-list li li {
    padding-left: 10px;
}

ul#bib-toc-list li {
    list-style: none;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Navigasjonsbokser/-kort på forsiden */
div.bib-col {
	margin-bottom: 25px;
	margin-top: 5px;
}

div.bib-card {
	border-radius: 5px; 
	padding: 10px;
	background-color: #f4f4f1;
	border-bottom: 2px solid #454543;
	pointer-events: none;
	transition: 0.2s;
}

div.bib-card:hover {
	background-color: #454543;
	color: white;
}

div.bib-card-body h3 {
	font-size: 1.3em;
	font-weight: 600;
}

div.bib-img-holder {
	margin: 0;
	overflow: hidden;
	border-radius: 5px;
}

img.bib-card-img {
	width: 100%; 
	height: 130px;
	border: 0px solid;
	border-radius: 5px;
	object-fit: cover;
	transform: scale(1);
	transition: 0.2s;
}

h3.bib-card-title a {
	text-decoration: underline 2px #ff5b35 !important;
	color: black;
	pointer-events: auto;
	transition: 0.2s;
}

h3.bib-card-title a:hover {
	text-decoration-color: #ffff78 !important;
	color: white;
}

div.bib-card:hover > div.bib-img-holder img.bib-card-img {
	transform: scale(1.15);
}

/* Bannerbilder på temasider */
div.bib-banner-container-accessing-person, div.bib-banner-container-checklist-person, div.bib-banner-container-library-persons, div.bib-banner-container-reading-persons, div.bib-banner-container-searching-person, div.bib-banner-container-writing-persons {
	width: 100%;
    height: 200px;
    background-size: cover;
    background-position: 0px -100px;
	border-radius: 15px;
    margin-bottom: 30px;
}

div.bib-banner-container-accessing-person {
	background-image: url(https://vid.instructure.com/courses/1170/files/937223/preview);
}

div.bib-banner-container-checklist-person {
	background-image: url(https://vid.instructure.com/courses/1170/files/937225/preview);
    background-position: 0px -200px;
}

div.bib-banner-container-library-persons {
	background-image: url(https://vid.instructure.com/courses/1170/files/937227/preview);
    background-position: 0px -150px;
}

div.bib-banner-container-reading-persons {
    background-image: url(https://vid.instructure.com/courses/1170/files/937229/preview);
}

div.bib-banner-container-searching-person {
    background-image: url(https://vid.instructure.com/courses/1170/files/937231/preview);
}

div.bib-banner-container-writing-persons {
    background-image: url(https://vid.instructure.com/courses/1170/files/937233/preview);
}

/* Alternativ tekst for bannerbilder, som ikke vises på siden (men i koden) */
p.bib-banner-info {
	display: none;
}

/* Kredittering av bilder */
p.bib-banner-caption {
    text-align: right;
    top: 100%;
    position: relative;
    font-size: 12px;
    padding-top: 3px;
}

/* Ingress */
p.bib-lead {
	font-size: 1.3rem;
	font-weight: bold;
}

/* Navigasjon i sidebunn */
div.bib-pagination {
	margin-top: 120px;
}

div.bib-pagination ul li a {
	color: black;
    text-transform: uppercase;
    font-size: small;
	font-weight: 600;
    letter-spacing: 1px;
    border-color: #ff5b35;
	text-decoration: none !important;
	transition: all 0.2s linear;
}

div.bib-pagination ul li a:hover {
	background-color: #ff5b35;
	text-decoration: underline !important;    
	transition: all 0.2s linear;
}

div.bib-pagination ul li.active a:hover {
	text-decoration: none !important;
	background-color: #f5f5f5;
	color: #999;
}

div.bib-pagination ul li a i[class*=icon-], div.bib-pagination ul li a i[class^=icon-] {
	line-height: 1.4;
}

/* Nedtrekksmenyer/accordions */

div.bib-details-wrapper {
	margin-top: 30px;
	margin-bottom: 30px;
}

details.bib-details {
	margin-bottom: 20px;
}

details.bib-details p.bib-details-pgh {
	padding-left: 20px;
	padding-right: 20px;
}

summary.bib-summary {
	padding: 10px;
    font-size: 1.5em;
}

summary.bib-subsummary {
	padding: 9px;
    font-size: 1.2em;
}

/* Fjerner standardmarkør/-pil */
summary.bib-summary, summary.bib-subsummary {
	background-color: #f4f4f1;
	position: relative;
    list-style: none;
    padding-left: 70px;
	border-radius: 5px;
    font-weight: 600;
	outline: 0;
	border-bottom: 2px solid #454543;
	transition: 0.2s;
}

summary.bib-summary:hover, summary.bib-subsummary:hover {
    color: white;
	cursor: pointer;
	background-color: #454543;
	border-bottom-color: #454543;
}

details.bib-details[open] > summary.bib-summary, details.bib-subdetails[open] > summary.bib-subsummary {
 	color: white;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	background-color: #454543;
	border-bottom-color: #454543;
}

/* Legger til egen markør */
details.bib-details summary.bib-summary:before, details.bib-subdetails summary.bib-subsummary:before {
	content: "+";
    position: absolute;
    font-size: 2rem;
    line-height: 0;
    left: 15px;
    font-weight: 400;
    border-radius: 50%;
	border: 2px solid #ff5b35;
}

details.bib-details summary.bib-summary:before {
    top: 10px;
    padding: 5px;
    padding-top: 15px;
    padding-bottom: 13px;
}

details.bib-subdetails summary.bib-subsummary:before {
    top: 9px;
    padding: 3px;
    padding-top: 13px;
    padding-bottom: 11px;
}

details.bib-details summary.bib-summary:hover:before, details.bib-subdetails summary.bib-subsummary:hover:before {
    border-color: #ffff78;
}

/* Roterer markør ved åpning av nedtrekksmeny/accordion */
details.bib-details[open] summary.bib-summary:before, details.bib-subdetails[open] summary.bib-subsummary:before {
	transform-origin: center;
	transition: 0.3s;
	transform: rotate(45deg);
}

/* Innhold under nedtrekksmenyer */
div.bib-pad-box-mini, div.bib-subpad-box-mini {
	border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
	padding: 20px;
}


/* Styling av bildbokser i innhold under nedtrekksmenyer */
div.bib-card-present {
    border-radius: 5px;
    min-height: 115px;
    padding: 10px;
    background-color: #e9f4ee;
}

/* Unumrerte lister i nedtrekksmenyer */

div.bib-details-wrapper ul li {
	list-style: none;
	pointer-events: none;
}

div.bib-details-wrapper ul li:before {
	content: "\26AC";
    font-weight: 900;
    font-size: x-large;
    margin-right: 10px;
    top: 2px;
    position: relative;
    color: #454543;
	margin-left: -21px;
}

div.bib-details-wrapper ul li:hover:before {
	color: #ff5b35;
}

div.bib-details-wrapper ul li a {
	pointer-events: auto;
}


/* ######################################### */
/* ####### Bibliotektjenester slutt ######## */
/* ######################################### */