@charset "utf-8";
/* CSS Document */

/*För att visa svg ok i IE*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
   svg {
     width: 100%; 
	 padding-bottom: 105%; 
	 height: 1px; 
	 overflow: visible;
   }
}

/*LAYOUT*/
body {
  	padding: 1em; 
  	background-image: url("../bilder/Basecamp27_fish.jpg");
  	background-position: center center;
	background-repeat: no-repeat;
	background-attachment: fixed;
/* This is what makes the background image rescale based
on the container's size */
	background-size: cover;
/* Set a background color that will be displayed
while the background image is loading */
	background-color:#F6E5C3;
}	

.container-fluid {
	background-color:white;
	padding: 0;
	border-radius: 0.5em;
}

header {
	background-color: #db0000;
	text-align: center;
	padding: 1em;
	border-top-left-radius: 0.5em;
	border-top-right-radius: 0.5em;
}

main {
  	text-align: left;
	padding: 1.5em;
	margin-left: 1em;
	margin-right: 1em;
	background-color: white;
	box-shadow: 0 1px #FFFFFF inset, 0 1px 3px rgba(34, 25, 25, 0.4);
	height: 100%;
}

footer {
	padding: 1em 2em 1em 2em;
	text-align: center;
	font-size: 0.8em;
	color: white;
	background-color: #db0000;
	border-bottom-left-radius: 0.5em;
	border-bottom-right-radius: 0.5em;
}

/*MENY*/
/* Toggler */
.navbar-toggler {
  	background: none;
  	border: thin dashed #db0000;
	padding: 0.25em 0.5em 0.25em 0.5em;
	margin-bottom: 1em;
	margin-left: 0.5em;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    outline: none;
    border: thin dashed #db0000;
}

.navbar-toggler .icon-bar {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 1px;
    margin: 4px 0 4px 0;
	-ms-transition: all 0.2s;
    transition: all 0.2s;
	background: #db0000;
}

.navbar-toggler .icon-bar:nth-of-type(1) {
  	transform: translateY(7px) translateX(0px) rotate(45deg);
}

.navbar-toggler .icon-bar:nth-of-type(2) {
  	opacity: 0;
  	filter: alpha(opacity=0);
}

.navbar-toggler .icon-bar:nth-of-type(3) {
  	transform: translateY(-7px) translateX(0px) rotate(-45deg);
}

.navbar-toggler.collapsed .icon-bar:nth-of-type(1) {
  	transform: rotate(0);
}

.navbar-toggler.collapsed .icon-bar:nth-of-type(2) {
  	opacity: 1;
  	filter: alpha(opacity=100);
}

.navbar-toggler.collapsed .icon-bar:nth-of-type(3) {
  	transform: rotate(0);
}

/*Navbar*/
#sidebar {
	margin: 2em 2em 0 2em;
}

#sidebar ul li a:link, #sidebar ul li a:visited {
	text-decoration:none;
	color: #db0000;
  	padding: 0.6em 0.6em 0.6em 1em;
  	display: block;
	margin-bottom: 0.3em;
}

#sidebar ul li a:hover, #sidebar ul li a.active {
  	color: #fff;
  	background-color: #db0000;
    border-radius: 0.3em;
	-ms-transition: background-color 0.9s;
	transition: background-color 0.9s;
	margin-bottom: 0.3em;
}

/*Indrag undermeny och andra raden*/

ul ul {
	text-indent: -20px; 
    margin-left: 20px; 
}

ul ul a {
    font-size: 0.9rem !important;
    padding-left: 25px !important;
}

/*Pil höger undermeny*/

ul ul a::before {
  content: "\25B8";
  padding: 0.2em;
}

.collapsing {
    -ms-transition: 0.1s linear;
    transition: 0.1s ease-in-out;
    opacity:0;
}

.collapse.show {
    -ms-transition: 0.1s linear;
    transition: 0.1s ease-in-out;
    opacity:1;
}

.dropdown-toggle[aria-expanded="true"] {
  	font-weight:600;
}

.dropdown-toggle:after {
	margin-left: 0.5em;
	-ms-transition: 0.5s;
	transition: 0.5s;
}

.dropdown-toggle[aria-expanded="true"]:after {
  	transform: rotate(180deg);
}

/*Scroll to top*/
#back2Top {
    width: 45px;
    line-height: 50px;
    overflow: hidden;
    z-index: 999;
    display: none;
    cursor: pointer;
	box-shadow: -1px -1px 5px -2px BLACK;
	border-top-right-radius: 7px;
	border-top-left-radius: 7px;
    -moz-transform: rotate(270deg);
    -webkit-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
    position: fixed;
    bottom: 50px;
    right: 0;
    background-color: #db0000;
    color: #F0F0F0;
    text-align: center;
    font-size: 30px;
    text-decoration: none;
}

/* TEXT OCH LÄNKAR */
h1 {
  	color: #0C0874;
	margin: 0 0 1em; 
	font-size: 1.8rem;
	font-size: clamp(1.8rem, 3vw, 2.2rem);
}

h2 {
  	color: #6495ED; 
	margin: 0 0 0.4em;
  	font-size: 1.6rem;
  	font-size: clamp(1.6rem, 3vw, 2rem);
}

h3 {
	color: #db0000; 
	font-size: 1.2rem;
  	font-size: clamp(1.2rem, 3vw, 1.6rem);
}

h4 {
	color: #0C0874;
}

h5 {
  	color: #FF5620; 
}

h6 {
  	color: #000000;  
}

a, a:link, p a, p a:link {
	color: #000099;
	text-decoration: underline;
} 

a:visited, p a:visited {
  	color: #660099; 
  	text-decoration: underline; 
} 

footer a, footer a:link, footer a:visited {
	color: white;
	text-decoration: underline;
}

.red {
	color: #db0000;
	font-size: 1.2rem;
	font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
	line-height: 140%;
}

.red-large {
	color: #db0000;
	font-size:1.3rem;
	font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
	line-height: 130%;
}

.courseID {
	color: white;
	font-size: 1.6rem;
	font-size: clamp(1.6rem, 3vw, 1.8rem);
	font-weight: 600;
	text-transform: uppercase;
}	

.h_card {
	color: white;
	font-size: 1.4rem;
	font-size: clamp(1.4rem, 3vw, 1.6rem);
	font-weight: 600;
    text-transform:uppercase;
	text-shadow: 2px 2px #000000;
}

#yyy a:link, #yyy a:visited, #yyy a:active {
	color: #db0000;
	font-size: 1.2rem;
	font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
	line-height: 140%;
	text-decoration: none; 
}

#zzz a:link, #zzz a:visited, #zzz a:active {
	color: #db0000;
	font-size: 1.2rem;
	font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
	line-height: 140%;
	text-decoration: none; 
}

#yyy a:hover {
	text-decoration:underline;
}

#zzz a:hover {
	text-decoration:underline;
}

/*a.link_vidare:link, a.link_vidare:visited, a.link_vidare:active {
	color: #db0000;
	font-size: 1.6rem;
	font-size: clamp(1.3rem, 3vw, 1.6rem);
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none; 
}

a.link_vidare:hover {
	text-decoration:underline;
}

a.link_kat:link, a.link_kat:visited, a.link_kat:active {
	color: #db0000;
	font-size: 1.2rem;
	font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 600;
	line-height: 140%;
	text-decoration: none; 
}

a.link_kat:hover {
	text-decoration:underline;
}
*/

/*ÖVRIGT*/
main ul li {
	margin-left: -1em;
}

main ol li {
	margin-bottom: 0.7em;
}

figure {
  width: 100%;
  max-width: 450px;
}

.figure_small {
	max-width: fit-content;	
}

.figure_large {
	max-width: 100%;
}

figcaption {
	font-style: italic;
	font-size: 0.9rem;
	text-align: center;
	background-color: #F0F0F0;
	padding: 0.2em 0 0.3em 0;
}

.white {
	background-color: #FFF;
}

.wrap_right, .wrap_left {
	clear: both;
	margin-bottom: 1em;
}

.wrap_video {
	margin-bottom: 1em;
	width: 100%;
	max-width: 640px;
}

.embed_upload {
	width: 100%;
	max-width: 470px;
  	height: auto;
}

.embed_youtube {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
}

.embed_youtube iframe, 
.embed_youtube object, 
.embed_youtube embed {
	position:absolute;
	top:0;
	left:0;
	width:100%;
	height:100%;
}

.video_caption {
	color: #FF5620;
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 1em;
}

.goals {
	display:block;
	width: 100%; 
	background-color:#F6E5C3;
	border-radius: 1em;
	padding: 1.5em;
	white-space: normal;
}

.checklist {
	display:block;
	width: 100%; 
	background-color: #ffff99;
	border-radius: 1em;
	padding: 1.5em;
	white-space: normal;
}

.cc_img {
	height: 20px;
	border-width: 0px; 
	vertical-align: middle; 
	margin-left: 20px; 
	margin-right: 20px;
}

.div_vidare {
	display: flex;
 	flex-wrap: wrap;
	justify-content: space-evenly;
}

.badge {
 	display: flex;
 	flex-wrap: wrap;
	justify-content: center;
}

/*Carousel*/
.title_index {
	text-align: center;
	background-color: #db0000;
	text-shadow: 1px 1px #000000;
	padding: .5em;
	margin-bottom: 2em;
}

/*Cards*/
/*Länk på hela*/
a.stretched-link {
	text-decoration: none; 
}

.card.course:hover {
	transform: scale(1.1);
}

.card.course {
	transition: transform 0.5s;
}

.card-img-overlay {
	background-color: rgba(0, 0, 0, 0.4);
}

.card {
/*	border-width:medium;
	border-color: #db0000;*/
    box-shadow: rgba(50, 50, 105, 0.15) 0px 2px 5px 0px, rgba(0, 0, 0, 0.05) 0px 1px 1px 0px;	
}

.card-title {
	color: #db0000;
	font-weight: 500;
	text-transform:uppercase;	
}

/*Kurslitteratur*/
.image_block {
	max-width: 100%;
  	display: flex;
	flex-direction: column;
}

.image_block img {
	margin: 0 0 1em 0;
    max-width: 160px;
    object-fit: contain;
    align-self: flex-start;
}

.image_block_text {
	 flex: 1 1 auto;
}

@media screen and (min-width: 320px) {
main {
	margin-left: 0.5em;
	margin-right: 0.5em;
	}
		
.cc_img {
	margin-top: 0.2em;
	margin-bottom: 0.2em;
}

.carousel-caption {
        h3 {
            font-size: 1rem;
}
}

@media screen and (min-width: 600px) {
body {
  	padding: 2em;
	}

header {
	padding: 2em;
}	
	
footer {
	padding: 2em;
}
	
main {
	padding: 2em 2em 2em 2em;
	margin-left: 1em;
	margin-right: 1em;
}

#sidebar {	
	margin: 2em 3em 0 3em;,
}	
	
.wrap_right, .wrap_left {
	clear: both;
	margin-bottom: 1em;
}

.image_block {
	flex-direction: column;
}
	
.goals {
	width: 70%; 
	}
}

@media screen and (min-width: 800px) {
body {
  	padding: 2.5em;
	}

header {
	padding: 2em;
}
	
main {
	padding: 2em 2em 2em 2em;
	margin-left: 1em;
	margin-right: 1em;
	}
	
footer {
	padding: 2em;
}
	
#sidebar {
	margin: 2em 3em 0 3em;
}

h1 {
	font-size: 2.2rem;
	font-size: clamp(1.8rem, 3vw, 2.2rem);
}

h2 {
	font-size: 2rem;
	font-size: clamp(1.6rem, 3vw, 2rem);
}

h3 {
	font-size: 1.6rem;
	font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.courseID {
	font-size: 1.8rem;
	font-size: clamp(1.6rem, 3vw, 1.8rem);
 }
 
.red_large {
	font-size: 1.8rem;
	font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.figure_right {
	float: right;
	margin: 1em 0 1em 1em;
}
	
.wrap_right {
	float: right;
	margin: 1em 0 1em 1em;
}

.image_block {
	flex-direction: row;
}

.image_block img {
	margin: 0.3em 2em 0 0;
}
	
.goals {
	width: 70%; 
}
}

@media screen and (min-width: 992px){		
.collapse.dont-collapse-lg {
    display: block;
    height: auto !important;
    visibility: visible;
  }
  
 main {
	 margin-right: 1.5em;
	 border: 0;
 }
}

@media screen and (min-width: 1200px) {
body {
  	padding: 2.5em;
	}

header {
	padding: 1em;
}	
	
main {
	padding: 2em 3em 3em 3em;
	margin-right: 1.5em;
	}
	
footer {
	padding: 2em;
}

#sidebar {
	margin: 1.5em  0em 0 2em;
}

.collapse.dont-collapse-lg {
    display: block;
    height: auto !important;
    visibility: visible;
  }
  
.figure_right {
	float: right;
	margin: 1em 0 1em 1em;
}
	
.wrap_right {
	float: right;
	margin: 1em 0 1em 1em;
}

.wrap_left {
	float: left;
	margin: 1em 1em 1em 0;
}

.image_block {
	flex-direction: row;
}

.image_block img {
	margin: 0.3em 2em 0 0;
}
	
.goals {
	width: 70%; 
}
}
