@import url('https://fonts.googleapis.com/css2?family=Oswald&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap');

@media print {
	body {
		margin: 0 !important;
	}
}

.main-container {
	font-family: 'Lato';
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
}

.ck-content {
	font-family: 'Lato';
	line-height: 1.6;
	word-break: break-word;
}

.editor-container_classic-editor .editor-container__editor {
	min-width: 795px;
	max-width: 795px;
}

.ck-content h3.category {
	font-family: 'Oswald';
	font-size: 20px;
	font-weight: bold;
	color: #555;
	letter-spacing: 10px;
	margin: 0;
	padding: 0;
}

.ck-content h2.document-title {
	font-family: 'Oswald';
	font-size: 50px;
	font-weight: bold;
	margin: 0;
	padding: 0;
	border: 0;
}

.ck-content h3.document-subtitle {
	font-family: 'Oswald';
	font-size: 20px;
	color: #555;
	margin: 0 0 1em;
	font-weight: bold;
	padding: 0;
}

.ck-content p.info-box {
	--background-size: 30px;
	--background-color: #e91e63;
	padding: 1.2em 2em;
	border: 1px solid var(--background-color);
	background:
		linear-gradient(135deg, var(--background-color) 0%, var(--background-color) var(--background-size), transparent var(--background-size)),
		linear-gradient(
			135deg,
			transparent calc(100% - var(--background-size)),
			var(--background-color) calc(100% - var(--background-size)),
			var(--background-color)
		);
	border-radius: 10px;
	margin: 1.5em 2em;
	box-shadow: 5px 5px 0 #ffe6ef;
}

.ck-content span.marker {
	background: yellow;
}

.ck-content span.spoiler {
	background: #000;
	color: #000;
}

.ck-content span.spoiler:hover {
	background: #000;
	color: #fff;
}

.ck-content .button {
	display: inline-block;
	width: 260px;
	border-radius: 8px;
	margin: 0 auto;
	padding: 12px;
	color: #ffffff;
	font-size: 24px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
}

.ck-content .button--green {
	background-color: #406b1e;
}

.ck-content .button--black {
	background-color: #141517;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 20px;
}

/* Gør wrapperen responsiv og fyldende */
.editor-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.editor-wrapper label {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}

.editor-column {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.editor-preview-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.editor-column, .preview-column {
  flex: 1 1 48%;
  min-width: 300px;
}

.preview-column {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
}

#preview img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}

#preview a[data-lightbox="guide"] {
  display: inline-block;
  max-width: 100%;
}

.ck-editor {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.ck-editor__main {
  width: 100%;
}

/* Fjern padding kun når vi er på guide-redigeringsside */
.midt.boks .editor-wrapper.rediger-guide {
  padding: 0;
}

.editor-column {
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.ck-editor,
.ck-editor__main {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#guide_content {
  display: none !important;
}

.ck-editor__editable_inline {
  width: 100%;
  min-height: 600px;
  box-sizing: border-box;
  padding: 20px;
  background: white;
  border-radius: 8px;
  resize: none;
}

.ck-editor__editable_inline {
  min-height: 600px !important;
  height: auto !important;
  resize: none !important;
}
