@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700,700i,800');

*:focus {
  outline: 0;
}

html {
  height: 100%;
}

body {
  background-color: #5A5F66;
  margin: 0;
  font-family: "Open Sans", Tahoma, "Lucida Grande", Verdana, Arial;
  font-size: 1em;
  height: 100%;
}

p {
  margin: 0 0 20px;
}

p:last-child {
  margin: 0;
}

.shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.shell header {
  background-color: rgba(0, 0, 0, .4);
  color: #fff;
}

.shell header hgroup {
  padding: 20px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.shell header hgroup:after {
  content: '';
  display: block;
  clear: both;
}

/*.shell header::after {
  background: #D2AD00;
  color: #484429;
  width: 100%;
  display: inline-block;
  padding: 10px;
  clear: both;
  font-weight: bold;
  text-transform: uppercase;
  content: "OBS, utvecklingsversion.";
}*/

.shell header .mmc-logotype {
  margin: 0 40px 0 0;
}

.shell header .mmc-logotype img {
  width: 91px;
}

.shell header h1 {
  display: flex;
  font-size: 1.6em;
  line-height: 1;
}

.shell header h1 sup.course_published_version_info {
  margin: 0 0 0 0.4em;
  padding: 0.35em 0.35em 0em 0.35em;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.05);
  line-height: 1rem;
  white-space: nowrap;
  letter-spacing: 1px;
  font-size: .9rem;
  color: rgb(127, 127, 127);
  position: relative;
  top: -5px;
}

.shell header h2 {
  display: inline-block;
  margin: 0 0 0 20px;
  padding: 0;
  font-size: 1em;
  line-height: 1em;
  color: #737f9d;
}

.shell header #tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-grow: 2;
  flex-wrap: wrap;
}

@media all and (max-width: 650px) {
  .shell header #tools {
    justify-content: start;
    margin: 10px 0 0 0;
  }
}

.shell header hgroup .tool {
  display: inline-block;
  margin: 0 5px 0 0;
}

.shell header hgroup .tool a {
  font-size: .9em;
  text-decoration: none;
  white-space: nowrap;
}

.shell header hgroup .tool a:hover {
  background-color: #787E86;
}

.shell header hgroup .tool.active a {
  background-color: #719eb5;
}

.shell header .mmc-version,
.shell header .mmc-user-info {
  /* display: none; */
  color: rgba(255, 255, 255, .2);
  font-size: .7em;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;
  position: absolute;
  margin: 5px;
  top: 0;
  z-index: 10;
}

.shell header .mmc-version {
  left: 0;
}

.shell header .mmc-user-info {
  right: 0;
}

@media all and (max-width: 650px) {

  /* .shell header .mmc-version, */
  .shell header .mmc-logotype {
    display: flex;
    align-items: center;
    margin: 0;
    justify-content: space-between;
    width: 100%;
  }

  .shell header .mmc-user-info {
    position: initial;
    width: 50%;
    text-align: right;
  }

  .shell header #tools .tool {
    margin: 0 0 5px 0;
  }

  .shell header #tools .tool,
  .shell header #tools .tool .button_grey {
    width: 100%;
  }
}

.shell_mid_section {
  overflow: auto;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.shell_mid_section_full_width {
  overflow: auto;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.shell .sidebar {
  background-color: #719eb5;
  height: 100%;
  position: fixed;
}

#navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#navigation li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#navigation li:nth-child(1).front {
  background-color: #800;
}

#navigation li:nth-child(2).front {
  background-color: #2971C9;
}

#navigation li:nth-child(3).front {
  background-color: #408800;
}

#navigation li:nth-child(4).front {
  background-color: #D2AD00;
}

#navigation li:nth-child(1).back:hover {
  background-color: #800;
}

#navigation li:nth-child(2).back:hover {
  background-color: #2971C9;
}

#navigation li:nth-child(3).back:hover {
  background-color: #408800;
}

#navigation li:nth-child(4).back:hover {
  background-color: #D2AD00;
}

.tab_caption {
  font-family: "Open Sans", Tahoma, "Lucida Grande", Verdana, Arial;
  font-size: .7em;
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  transition: all 200ms ease-in-out;
}

.tab_caption a {
  display: block;
  padding: 30px 0;
  width: 140px;
  text-align: center;
  color: inherit;
  text-decoration: none;
  transition: all 200ms ease-in-out;
}

.tab_caption.external::before {
  content: '\f08e';
  font-family: 'FontAwesome';
  position: absolute;
  right: 0;
  color: rgba(255, 255, 255, .5);
  padding: 10px;
  pointer-events: none;
}

.tab_caption a i.fa {
  display: block;
  color: white;
  margin-bottom: 8px;
  font-size: 2.5em;
  transition: all 200ms ease-in-out;
}

.tab_caption a:hover {
  color: white;
}

.tab_caption a:hover i.fa,
.sidebar .front a i.fa {
  transform: translateY(-5px);
}

.sidebar .front {
  background: #426B80;
  color: #fff;
}

.sidebar .back {
  background: inherit;
  color: #384e58;
}

.sidebar .back:hover {
  background: #6390A7;
}

.shell_content {
  margin: 0 auto;
  /*background: red;*/
}

.content-wrapper {
  background: white;
  width: 960px;
  margin: 40px auto 50px 130px;
}

#course_info {
  /* 	display: none; */
  font-size: 0.8em
}

.shell_mid_section_full_width .content-wrapper {
  margin-left: auto;
}

.shell_content #fn_help {
  padding: 40px;
  font-size: 1em;
}

.help-wrapper {
  margin: 0 auto;
  display: none;
}

#page_help h1,
#page_help h2 {
  margin: 0 0 20px;
}

#page_instructions {
  font-size: 0.9em;
  color: #484429;
  background: #fffbdc;
  padding: 40px;
  margin: -40px -40px 0 -40px;
  /*min-height: 130px;*/

  -webkit-transition: all 150ms ease-in-out;
  -moz-transition: all 150ms ease-in-out;
  transition: all 150ms ease-in-out;
}

#page_instructions h2 {
  margin: 0 0 10px;
  -webkit-transition: all 150ms ease-in-out;
  -moz-transition: all 150ms ease-in-out;
  transition: all 150ms ease-in-out;
}

#page_instructions img {
  margin: 0 0 0 20px;
  /*padding: 20px;*/
}

#page_instructions.compact img {
  display: none;
}

#page_instructions p {
  margin: 0 0 10px 0;
}

#page_instructions ul {
  margin: 0 0 10px 0;
}

#page_instructions p:last-child {
  margin-bottom: 0px;
}

#page_instructions .instructions-close .fa {
  margin-right: 0 !important;
}

#page_instructions.compact {
  padding: 5px;
}

#page_instructions.compact .instructions-content {
  display: none;
}

#page_instructions.compact h2 {
  display: inline-block;
  margin: 0;
  font-size: 1em;
  padding: 5px;
}

#page_instructions .instructions-buttons {
  clear: both;
  margin-top: 20px;
}

#page_instructions.compact .instructions-buttons {
  display: inline-block;
  float: right;
  margin-top: 0;
}

#page_instructions .instructions-open {
  display: none;
}

#page_instructions .instructions-close {
  display: inline-block;
}

#page_instructions.compact .instructions-open {
  display: inline-block;
}

#page_instructions.compact .instructions-close {
  display: none;
}

#page_instructions:after {
  content: '';
  display: block;
  clear: both;
}

@media all and (max-width: 590px) {
  #page_instructions {
    padding: 10px 5px;
  }
}

.shell_content #fn_help h1 {
  margin: 0 0 10px 0;
  font-size: 2em;
}

.shell footer {
  display: none;
  padding: 10px 20px;
  text-align: right;
  background: #2c2f3b;
  color: #a5a9c2;
  font-size: .9em;

  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.shell footer p {
  margin: 0;
}

/* Bildhantering */
.left {
  float: left;
  margin: 0 0 10px 10px;
}

.right {
  float: right;
  margin: 0 0 10px 10px;
}

.float_left {
  float: left;
}

.float_right {
  float: right;
}

.no_wrap {
  white-space: nowrap;
}

/* Mallar */
.form_panel {
  clear: both;
}

/*  - - Mediabibliotek (adminpanel: id'n och klasser har underscore) - - - */

@keyframes media_animation {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.btn_media {
  font-size: .9em;
  text-decoration: none;
  white-space: nowrap;
  background: #5a5f66;
  animation: media_animation 1s;
}

.btn_media:hover {
  background: #787E86;
}

#upload_media_library_wrapper {
  display: none;
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  animation: media_animation 0.5s;
}

#upload_media_library {
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  overflow-y: auto;
  padding: 25px;
  background: #fff;
  color: #000;
  -webkit-box-shadow: 0px 0px 50px -10px rgba(0, 0, 0, 0.4);
  -moz-box-shadow: 0px 0px 50px -10px rgba(0, 0, 0, 0.4);
  box-shadow: 0px 0px 50px -10px rgba(0, 0, 0, 0.4);
}

#upload_media_library h1 {
  float: none;
  margin: 0;
}

#upload_media_library_container {
  display: inline-block;
}

.close_upload_media_library {
  position: absolute;
  display: flex;
  color: #000;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

img.media_library_item {
  height: 75px;
  margin: 0 20px 20px 0;
  cursor: pointer;
  animation: media_animation 0.5s;
}

img.media_library_item:hover {
  opacity: 0.5;
}

.upload_media_button {
  background: #00A7FF;
  text-align: center;
  color: #fff;
  padding: 8px 5px;
  border: none;
  border-radius: 2px;
  width: 25%;
}

#upload_media_img {
  display: block;
  cursor: pointer;
  filter: alpha(opacity=0);
  opacity: 0;
  position: absolute;
  left: 25px;
  bottom: 25px;
  text-align: left;
  width: 200px;
  height: 40px;
}

#unique_media_id,
#media_to_remove {
  display: none;
}

/* - - - Mediabibliotek (inom kursskalet / för författare: id'n och klasser har bindestreck) - - - */

#hidden-media-file-wrap {
  /* display: none; */
}

#media-library-wrapper {}

#media-library {
  width: 100%;
  max-width: 960px;
  font-family: inherit;
}

#media-library dd {
  display: inline;
  margin: 0 28px 0 0;
  padding: 0;
}

#media-library dt h3 {
  font-family: inherit;
  margin: 0 0 15px 0;
  cursor: pointer;
  padding: 5px;
  background: #dde9f8 !important;
}

#media-library dt h3:hover {
  background: #00A7FF !important;
}

#media-library dt:not(:first-child) {
  margin-top: 15px;
}

#media-library dd:hover img {
  -webkit-box-shadow: 0px 0px 0px 5px #bed5f1;
  -moz-box-shadow: 0px 0px 0px 5px #bed5f1;
  box-shadow: 0px 0px 0px 5px #bed5f1;
}

#media-library-footer {
  /* background: #eee; */
}

#media-library h2 {
  margin-top: 0;
}

#media-library-images {
  display: none;
  padding: 10px 0;
  /* height: 500px; */
  /* overflow-y: auto;
  overscroll-behavior-y: contain;
  overflow-x: hidden; */
}



.close-media-library {
  position: absolute;
  display: flex;
  color: #000;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

.media-library-item {
  /* height: 75px; */
  /* width: auto; */
  margin: 0 5px 2px 0;
  cursor: pointer;
  transition: all 0.5s;
  width: 150px;
}

.item-active {
  -webkit-box-shadow: 0px 0px 0px 5px #00a7ff !important;
  -moz-box-shadow: 0px 0px 0px 5px #00a7ff !important;
  box-shadow: 0px 0px 0px 5px #00a7ff !important;
}

/* #upload-selected-media {
  background: #00A7FF;
  text-align: center;
  color: #fff;
  padding: 8px 5px;
  border: none;
  border-radius: 2px;
  width: 25%;
}

#upload-selected-media:hover {
  background: #59c6ff;
  cursor: pointer;
} */

.media-lib-loader {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
}

@keyframes load-me-amadeus {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.media-lib-loader-icon i {
  display: block;
  font-size: 6em;
  color: #00a7ff;
  animation: load-me-amadeus 2s linear infinite;
}

/* Buttons */

.button-group {
  display: inline-block;
  margin: 0 0 0.5em 0;
}

.button-group:after {
  content: '';
  display: block;
  clear: both;
}

.button-group .button {
  margin: 0 0.2em 0 0;
  float: left;
}

.button-group .button:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.button-group .button:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.button {
  font-family: "Open Sans", Tahoma, "Lucida Grande", Verdana, Arial !important;
  font-weight: bold;
  display: inline-block;
  padding: 15px 25px !important;
  line-height: 1em !important;
  cursor: pointer;
  font-size: 1em !important;
  text-decoration: none !important;
  letter-spacing: initial !important;
  text-transform: unset !important;

  -webkit-border-radius: 4px !important;
  -moz-border-radius: 4px !important;
  border-radius: 4px !important;
  text-transform: none !important;

  -webkit-user-select: none;
  /* Chrome all / Safari all */
  -moz-user-select: none;
  /* Firefox all */
  -ms-user-select: none;
  /* IE 10+ */
  user-select: none;

  border: none;

  width: fit-content;
}

.button_small {
  font-family: "Open Sans", Tahoma, "Lucida Grande", Verdana, Arial !important;
  font-weight: bold !important;
  display: inline-block;
  padding: 8px 15px !important;
  line-height: 1em !important;
  cursor: pointer !important;
  font-size: .9em !important;
  text-decoration: none !important;
  /* height: 30px; */
  text-align: center !important;

  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px !important;

  -webkit-user-select: none;
  /* Chrome all / Safari all */
  -moz-user-select: none;
  /* Firefox all */
  -ms-user-select: none;
  /* IE 10+ */
  user-select: none !important;

  width: fit-content;
}

/* Sätter en marginal på FA-ikoner i knappar */
.button .fa {
  margin-right: 1ch;
}

/* Knappar */
.button_yellow {
  background: #e1c55c;
  color: #463307;
}

.button_yellow:hover {
  background: #fff6b1;
}

.button_green {
  background: #70a000;
  color: #fff;
}

.button_green:hover {
  background: #91b242;
}

.button_red {
  background: #a71e1c;
  color: #fff;
}

.button_red:hover {
  background: #d94445;
}

.button_blue {
  background: #719eb5;
  color: #fff;
}

.button_blue:hover {
  background: #8EB9CF;
}

.button_grey {
  background: #5a5f66;
  color: #fff;
}

.button_grey:hover {
  background: #C5C5C5;
}

.button_ghost {
  background: rgba(0, 0, 0, .1);
  color: rgba(0, 0, 0, .5);
}

.button_ghost:hover {
  background: rgba(0, 0, 0, .4);
  color: rgba(255, 255, 255, .8);
}


/* Disabled button */
.disabled,
.disabled:hover {
  background: #d0d0d0;
  color: #b3b3b3;
  cursor: not-allowed !important;
}

/* Blandade klasser (utilities) */
.clear {
  clear: both;
  height: 0;
  overflow: hidden;
}

.panel {
  /*border:solid 1px #aaa;*/
  /*background:#f5f5f5;*/
  /*padding:10px;*/
  border: none;
  padding: 0;
  margin-bottom: 15px;
}

.column {
  padding: 0 20px 0 0;
  width: 50%;
  float: left;
}

.required {
  padding: 3px;
  /* line-height: 1; */
  background: #fff9c3;
  /* font-weight: bold; */
}


.required_missing {
  padding: 3px 6px;
  display: inline-block;
  font-weight: bold;
  background: #ab0000;
  border-radius: 3px;
  color: #fff;
  -webkit-transition: all 200ms;
  transition: all 200ms;
}

.required_missing::-webkit-input-placeholder {
  color: #fff;
}

.required_missing::-moz-placeholder {
  color: #fff;
}

.required_missing[contenteditable=true]:empty:before {
  color: #fff;
}

.info_text_type {
  color: #666;
  /*display: inline-block;*/
  /*float: left;*/
  /*margin: 0 6px 0px 0;*/
}

.info_text {
  font-weight: bold;
  color: #666;
}

.error_message {
  margin: 5px !important;
  padding: 10px !important;
  border: solid 1px #e78c8c;
  background: #f9d9d9;
  border-radius: 3px;
}

.info_message {
  color: #000;
  padding: 10px;
  border: solid 1px #ffde00;
  background: #fffbdc;
  border-radius: 3px;
}

.site_maintenance_messages {
  margin: 0 0 1em 0;
}

.site_maintenance_messages .info_message h3 {
  margin: 0 0 1rem 0;
}

input#course_name,
#theme_id {
  font-size: 1.4em;
  font-weight: bold;
  color: #666;
  font-family: inherit;
  line-height: 1;
  border: solid 1px #aaa;
  padding: 10px;
  border-radius: 3px;
  width: 100%;
}

.info_text_small {
  color: #666;
  font-size: 0.75em;
}

p.info_text_small {
  margin: 0 0 0.5em 0;
}

.course_information .info_text_small {
  display: block;
}

.required_missing .info_text_small {
  color: #fff;
}

.course_information label {
  width: 100%;
}

.info_text_small blockquote {
  margin: 5px 0 5px 0;
  padding: 5px;
  font-style: italic;
  border-left: 3px solid #ccc;
  font-weight: normal;
  /* line-height: 1.4em; */
  /* background: rgba(0,0,0,.05); */
}

label {
  margin: 0;
  padding: 0;
}

.hidden {
  display: none;
}

.visibility-hidden {
  visibility: hidden;
}

#ajax_loader_container {
  margin: 0;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 1000;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, .8);
}

#ajax_loader {
  text-align: center;
  padding: 15px 10px 10px;
  width: 250px;
  position: absolute;
  top: 40%;
  left: 50%;
  margin-left: -125px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;

  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
}

#ajax_loader h3 {
  font-size: 1.8em;
  margin: 0 0 10px;
}

.passed {
  color: #009900 !important;
}

.failed {
  color: #990000 !important;
}

.passed_background {
  background: rgba(0, 153, 0, 0.8);
}

.failed_background {
  background: rgba(153, 0, 0, 0.8);
}

#tutorial_vid {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 0 20px 0;
}

#tutorial_vid:hover {
  cursor: pointer;
}

/* @media all and (max-width: 1150px) { */
@media all and (max-width: 1110px) {
  .shell_content {
    width: 100%;
    max-width: 960px;
    float: none;
  }

  .shell_mid_section {
    background-image: none;
  }

  .content-wrapper {
    margin: 40px auto;
  }
}

/*@media all and (max-width: 650px) {
	body {
		font-size: 0.8em;
		margin: 0;
		padding: 0px;
	}
	fieldset
	{
		padding: 0;
		margin: 0;
	}
	.shell_mid_section {
		background-image: none;
	}
	.column {
		float:none;
		width: 285px;
		padding: 0;
	}
	#ajax_loader {
		width: 100%;
		position: relative;
		left: 0;
		margin-left: 0;
	}
}*/

#page_contents {
  box-sizing: border-box;
}

.form_panel {
  margin: 40px -40px -40px;
  padding: 20px;
  background: #DAE0E5;
  text-align: right;
}

.page-content-wrapper .form_panel {
  margin: 0;
}

.form_panel label {
  display: inline-block;
  font-size: .9em;
  font-weight: bold;
  min-width: 100px;
  text-align: right;
  color: #575666;
}

.form_panel input[type=text] {
  padding: 6px 10px;
  font-size: 1em;
  color: #666;
  border: none;

  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.form_panel .help {
  display: inline-block;
  margin-left: 10px;
  font-size: .8em;
  color: #575666;
}

#page_buttons .left {
  float: left;
  margin: 0;
  padding: 0;
}

#page_buttons .right {
  float: right;
  margin: 0;
  padding: 0;
}

@media all and (max-width: 590px) {
  #page_buttons .left {
    /* float: none; */
  }

  #page_buttons .right {
    /* float: none; */
  }

  #page_buttons .button {
    margin: 0 10px 10px 0;
  }
}

[contenteditable=true]:empty:before {
  content: attr(placeholder);
  display: block;
  /* For Firefox */
  color: #A9A9A9;
}

/* Clearfix */
.group:before,
.group:after {
  content: "";
  display: table;
}

.group:after {
  clear: both;
}

.group {
  zoom: 1;
  /* For IE 6/7 (trigger hasLayout) */
}

*,
*:before,
*:after {
  box-sizing: border-box;
  -ms-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

/* Tvingar ny stil för ljuduppladdningen */

#edit-page-sound {
  /* float: left; */
  position: relative;
  /* padding: 6px 15px;
  color: #fff;
  margin-right: 4px;
  background: #719eb5; */
  cursor: pointer;
}

#edit-page-sound p {
  margin: 0;
}

#edit-page-sound:hover,
#edit-page-sound:hover {
  /* background: #8EB9CF; */
  cursor: pointer;
}

#select_sound {
  position: absolute;
  border: none;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: inherit;
  padding: 0 0 12px 0;
  cursor: pointer;
}

#gen_sound_hide {
  display: none;
}

#gen_sound_info {
  width: 100%;
  float: left;
  margin-top: 10px;
  background: #DAE0E5;
  padding: 10px;
}

.remove-sound-file {
  margin: 0 0 0 10px;
  color: #a71e1c;
  vertical-align: bottom;
}

.remove-sound-file:hover {
  color: #d94445;
  cursor: pointer;
}

.gen_sound_result_container {
  display: none;
}

.gen_sound_res_wrap {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75);
  z-index: 10;
}

.gen_sound_result {
  padding: 50px;
  color: #fff;
  text-align: center;
  border-radius: 3px;
}

.fix-container {
  position: relative;
  overflow: visible;
  height: 100%;
}

span.success-message {
  padding: 0.2em 0.6em;
  background-color: rgba(100, 230, 100, 0.33);
}
