html,
body {
  height: 100%;
}
body {
  margin: 0px;
  padding: 0px;
  line-height: 180%;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #171717;
}
h1,
h2,
h3 {
  margin-top: 0px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: normal;
}
p,
ol,
ul {
  margin: 0px;
  padding: 0px;
}
ol {
  padding-left: 40px;
}
strong {
  color: #565656;
}
a {
  color: #17161B;
}
a:hover {
  text-decoration: underline;
}
a img {
  border: none;
}
img.border {
  border: 1px solid #C0C0C0;
}
img.alignleft {
  float: left;
  border: 1px solid #C0C0C0;
}
img.alignright {
  float: right;
}
img.aligncenter {
  margin: 0px auto;
}

/** WRAPPER */


.quiz-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    max-width: 100%;
    line-height: 1.6;
}
.question {
    margin-bottom: 15px;
    position: relative;
}
.quiz-container select {
    font-size: 12px; /* Reduceret fra 16px til 12px */
    padding: 5px;
    border-radius: 4px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}
.feedback {
    display: inline-block;
    margin-left: 10px;
    font-size: 16px; /* Reduceret fra 18px */
}
.correct {
    color: #28a745;
}
.incorrect {
    color: #dc3545;
}
.tip {
    display: block;
    font-style: italic;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}
.quiz-button {
    padding: 8px 12px; /* Reduceret fra 10px 15px */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px; /* Reduceret fra 16px */
    margin-right: 10px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
}
.check-btn {
    background-color: #4CAF50;
    color: white;
}
.check-btn:hover {
    background-color: #45a049;
}
.restart-btn {
    background-color: #007bff;
    color: white;
}
.restart-btn:hover {
    background-color: #0069d9;
}

#final-score {
    background-color: rgb(206, 72, 73);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px; /* Samme som grøn/blå knapper */
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px; /* Samme som grøn/blå knapper */
    font-weight: normal;
    cursor: default;
    margin-left: 50px;
}

.container {
  width: 1200px;  /* Øget fra 980px til 1200px */
  margin: 0px auto;
}
.clearfix {
  clear: both;
}
.text-center {
	text-align: center;
}

/** PAGE */

#page {
  overflow: hidden;
  margin-bottom: 10px;
}

/** HEADER */
#header {
  margin: 20px 0 0 275px; /* Justeret fra 230px til 275px for at matche den nye sidebar bredde */
}

/** CONTENT */

#content {
  float: right;
  width: 920px; /* Øget fra 740px til 920px */
  padding-top: 30px;
  overflow: hidden; /* Tilføjet denne linje for at forhindre content i at flyde under sidebar */
}

#content p {
	margin: 15px 0;
	line-height: 300%;
}

.questionare-radio-image .radio-option {
	width: 30%;
	display: inline-block;
	overflow: hidden;
	height: 200px;
}

#chat-container {
  background-color: #f2f2f2;
  padding: 15px;
  border-radius: 8px;
  width: 240px;
  min-width: auto;
  max-width: 240px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#chatbox {
  background: white;
  border: 1px solid #ccc;
  height: 250px;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 10px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px; /* Ændret fra 14px til 12px for at matche resten af siden */
}

#chat-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

#msg {
  width: 150px;
  flex: none;
  padding: 8px;
  font-size: 12px; /* Ændret fra 14px til 12px */
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

#chat-input button {
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
  flex: none;
}

.questionare-radio-image .radio-option.empty {
	width: 7%;
}

.questionare-radio-image .radio-option input {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.questionare-radio-image .radio-option img {
	max-width: 100%;
	cursor: pointer;
}

.radio-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-options label {
  display: block;
  width: 100%;
  margin-bottom: 5px;
}

.radio-options label input[type="radio"] {
  margin-right: 8px;
}

/** SIDEBAR */

#sidebar {
	float: left;
  width: 240px; /* Øget fra 195px til 240px */
  margin: 0px;
  padding: 30px 0px 0px 5px;
  /* Min-height tilføjet som backup, men overflow: hidden på content burde løse problemet */
  min-height: 400px;
}

#sidebar .buttons {
  position: relative;
	text-align: left;
	border-bottom: 1px solid black;
	margin-bottom: 20px;
}

#sidebar .buttons  span {
  position: absolute;
  left: 0;
  top: 5px;
}

#sidebar .buttons img {
	width: 30px;
	height: 30px;
	border: 0;
	cursor: pointer;
  margin-left: 93px;
}

/** BOX-STYLE */

.box-style .title {
  margin: 0px;
  padding: 0px;
  letter-spacing: -1px;
  font-size: 18px;
  font-weight: normal;
  color: #3D3D3D;
}
.box-style .subtitle {
  margin: 0px;
  padding: 0px;
  letter-spacing: +1px;
  font-size: 15px;
  font-weight: normal;
  color: #3D3D3D;
}
.box-style .date {
  display: inline-block;
  height: 21px;
  margin: 25px 0px 10px 0px;
  padding: 0px 10px 0px 10px;
  background: #5D7900;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #FFFFFF;
}
.box-style .text1 {
  display: inline-block;
  height: 21px;
  margin: 25px 0px 10px 0px;
  padding: 0px 10px 0px 10px;
  background: #5D7900;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #FFFFFF;
}
.box-style .more {
  display: block;
  margin-top: 30px;
  padding: 0px 0px 0px 25px;
  background: url(images/homepage03.gif) no-repeat left 2px;
}
.box-style .link {
  float: left;
  margin-top: 15px;
  padding: 0px 0px 10px 20px;
  background: url(images/homepage06.gif) no-repeat left 3px;
}
.box-style .byline {
  letter-spacing: 1px;
  padding: 0px 0px 5px 0px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: normal;
  color: #3B3C3B;
}
.box-style .alignleft {
  float: left;
  margin-right: 10px;
}
.box-style .img1 {
  width: 172px;
  height: 113px;
  margin-bottom: 10px;
  padding: 15px 15px;
}
.box-style .img2 {
  float: left;
}
.box-style .content {
  padding: 10px 5px 0px 5px;
}
.collapse {
  display: none;
}
.collapse.in {
  display: block;
}
tr.collapse.in {
  display: table-row;
}
tbody.collapse.in {
  display: table-row-group;
}
.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  -webkit-transition-timing-function: ease;
  -o-transition-timing-function: ease;
  transition-timing-function: ease;
  -webkit-transition-duration: .35s;
  -o-transition-duration: .35s;
  transition-duration: .35s;
  -webkit-transition-property: height, visibility;
  -o-transition-property: height, visibility;
  transition-property: height, visibility;
}
.collapse-inner {
  padding-left: 20px;
}
.collapse-inner  > .collapse-inner {
  padding-left: 30px;
}
.collapse-content {
  margin-bottom: 10px;
}

/*////////MENU//////////*/

#menu {
  margin: 10px 0px;
  list-style: none;
  background: #3d3b3b;       /* menu background color, Sergey:#f2efe4  */

  -moz-border-radius: 25px;
  border-radius: 25px;
  -moz-box-shadow: 0 2px 1px #b6b6b6;
  -webkit-box-shadow: 0 2px 1px #b6b6b6;
  box-shadow: 0 2px 1px #b6b6b6;
  display: block;
  text-align: center;
}
#menu li {
  position: relative;
  line-height: 0;
  display: inline-block;
}
#menu a {
  padding: 10px 15px;
  color: #f2efe4;             /* menu font color Sergey:#4c3327 */

  text-transform: uppercase;
  font: bold 12px/25px Verdana, Arial, Helvetica;
  text-decoration: none;
  text-shadow: 0 0px 0 #000;
  display: inline-block;
}
#menu li > a:hover {
  color: #f2efe4; /* menu background color, Oprindeligt #000 */

}
*html #menu li a:hover
/* IE6 */

{
  color: #000;
}
#menu li:hover > ul {
  display: block;
}
/* Sub-menu */

#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  z-index: 99999;
  background: #444;
  background: -moz-linear-gradient(#444, #111);
  background: -webkit-gradient(linear, left bottom, left top, color-stop(0, #111), color-stop(1, #444));
  background: -webkit-linear-gradient(#444, #111);
  background: -o-linear-gradient(#444, #111);
  background: -ms-linear-gradient(#444, #111);
  background: linear-gradient(#444, #111);
  -moz-box-shadow: 0 0 2px rgba(255, 255, 255, .5);
  -webkit-box-shadow: 0 0 2px rgba(255, 255, 255, .5);
  box-shadow: 0 0 2px rgba(255, 255, 255, .5);
  -moz-border-radius: 5px;
  border-radius: 5px;
}
#menu ul ul {
  top: 0;
  left: -150px;
}
#menu ul li {
  float: none;
  margin: 0;
  padding: 0;
  display: block;
  -moz-box-shadow: 0 1px 0 #111111, 0 2px 0 #777777;
  -webkit-box-shadow: 0 1px 0 #111111, 0 2px 0 #777777;
  box-shadow: 0 1px 0 #111111, 0 2px 0 #777777;
}
#menu ul li:last-child {
  -moz-box-shadow: none;
  -webkit-box-shadow: none;
  box-shadow: none;
}
#menu ul a {
  padding: 10px;
  height: 10px;
  width: 130px;
  height: auto;
  line-height: 1;
  display: block;
  white-space: nowrap;
  float: none;
  text-transform: none;
  color: #f2efe4;             /* dropdown submenu font color */
}
*html #menu ul a
/* IE6 */

{
  height: 10px;
}
*:first-child+html #menu ul a
/* IE7 */

{
  height: 10px;
}
#menu ul a:hover,
#menu ul a:visited {
  background: #e1dbc2;        /* dropdown submenu background color */
}
#menu ul a:visited {
  color: #f2efe4;
}
#menu ul li:first-child > a {
  -moz-border-radius: 5px 5px 0 0;
  border-radius: 5px 5px 0 0;
}
#menu ul li:first-child > a:after {
  content: '';
  position: absolute;
  left: 30px;
  top: -8px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid #444;
}
#menu ul ul li:first-child a:after {
  left: 150px;
  top: 12px;
  width: 0;
  height: 0;
  border-left: 0;
  border-bottom: 5px solid transparent;
  border-top: 5px solid transparent;
  border-left: 8px solid #444;
}
#menu ul li:last-child > a {
  -moz-border-radius: 0 0 5px 5px;
  border-radius: 0 0 5px 5px;
}
/* Clear floated elements */

#menu:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}
* html #menu {
  zoom: 1;
}
/* IE6 */

*:first-child+html #menu {
  zoom: 1;
}
/* IE7 */

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  opacity: 1;
}

/*////////END MENU//////////*/

.password {
  position: relative;
}
.password img {
  position: absolute;
  top: 3px;
  left: 122px;
  height: 20px;
  width: 20px;
}

@media (min-width: 768px) {
  .sm-visible {
    display: none !important;
  }
}

/* Media queries for mobile devices */

@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  h2 {font-size: 21px;}
  h3 {font-size: 16px;}
  #sidebar .buttons img {
    margin-left: 104px;
  }
  input, select {
    font-size: 14px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
  }
  .sm-hidden {
    display: none !important;
  }
  #menu a {
    font: bold 13px/25px Verdana, Arial, Helvetica;
    padding: 10px;
  }
  .container {
    width: auto;
  }
  #page {
    padding-top: 40px;
  }
  #header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    margin: 0;
    border-radius: 0;
    cursor: pointer;
    z-index: 998;
  }
  #menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 0;
    cursor: pointer;
    z-index: 999;
  }
  #menu:hover {
    top: 40px;
  }
  #menu:before {
    content: '☰';
    height: 40px;
    display: block;
    color: white;
    font-weight: bold;
    font-size: 25px;
    line-height: 40px;
    text-align: right;
    padding: 0 5px;
    background-color: #3d3b3b;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transition: all 0s 0.1s;
    z-index: 1;
  }
  #menu:hover:before {
    top: -40px;
    visibility: hidden;
    transition: all 0s 0.1s, top 0s 0s;
  }
  #menu:after {
    content: '×';
    height: 40px;
    display: block;
    color: white;
    font-size: 35px;
    line-height: 40px;
    text-align: right;
    padding: 0 7px;
    background-color: #3d3b3b;
    pointer-events: none;
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 0;
  }
  #menu:hover:after {
    top: -40px;
    z-index: 1;
  }
  #menu li {
    display: none;
  }
  #menu ul {
    position: initial;
    background: #2f2e2e;
    box-shadow: none;
    border-radius: 0;
  }
  #menu ul a {
    width: auto;
  }
  #menu ul li:first-child > a:after {
    display: none;
  }
  #menu:hover li {
    display: block;
  }
  #sidebar {
    float: none;
    width: auto !important;
    margin: 0;
    padding: 30px;
    text-align: center;
  }
  #sidebar table {
    margin: 5px auto;
  }
  #content {
    float: none;
    width: auto !important;
    padding: 30px;
  }
  
  /* Nye regler til at løse problemer med tabeller på mobilenheder */
  table, tbody, tr, td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  td {
    margin-bottom: 20px;
  }
  
  #chat-container {
    width: 100%;
    min-width: auto;
    max-width: none;
  }
  
  /* Forbedre touch-targets for mobile enheder */
  button, 
  select,
  .quiz-button {
    padding: 12px 16px;
    min-height: 44px;
  }
}

/* Lommeregner stilarter */
.calculator-container {
  margin-top: 30px;
  max-width: 270px;
}

.calculator-wrapper {
  background-color: #f5f5f5;
  border-radius: 6px;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.calculator-header {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calculator-mode-label {
  font-size: 11px;
}

.calculator-display {
  width: 94%;
  padding: 8px;
  margin-bottom: 10px;
  text-align: right;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
}

.scientific-buttons {
  display: none;
  margin-bottom: 8px;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.calculator-btn {
  padding: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
}

.calculator-btn-operator {
  background-color: #f0f4c3;
}

.calculator-btn-equal {
  background-color: #4CAF50;
  color: white;
  border: none;
}

.calculator-btn-clear {
  grid-column: span 2;
  background-color: #dc3545;
  color: white;
  border: none;
}

.calculator-btn-backspace {
  grid-column: span 2;
  background-color: #007bff;
  color: white;
  border: none;
}

.scientific-btn {
  padding: 7px 3px;
  background-color: #e9ecef;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
}

.text-right {
  text-align: right;
}

/* Stilladsering chatbot styling */
#stilladsering-chat-container {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  border: 2px solid #333;
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  max-width: 800px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stilladsering-chat-header {
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 2px solid #333;
  padding-bottom: 15px;
}

.stilladsering-chat-header h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 18px;
  font-weight: bold;
}

.stilladsering-chat-header p {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.4;
}

#stilladsering-chatbox {
  background: white;
  border: 2px solid #ddd;
  border-radius: 8px;
  height: 300px;
  overflow-y: auto;
  padding: 15px;
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.5;
}

#stilladsering-chat-input {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

#stilladsering-msg {
  flex: 1;
  padding: 12px;
  border: 2px solid #333;
  border-radius: 6px;
  font-size: 13px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  outline: none;
}

#stilladsering-msg:focus {
  border-color: #000;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

#stilladsering-chat-input button {
  padding: 12px 20px;
  background: linear-gradient(135deg, #333, #000);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#stilladsering-chat-input button:hover {
  background: linear-gradient(135deg, #000, #222);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.stilladsering-user-msg {
  margin: 10px 0;
  background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #666;
}

.stilladsering-bot-msg {
  margin: 10px 0;
  background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #333;
}

.stilladsering-waiting {
  margin: 10px 0;
  background: linear-gradient(135deg, #fff3e0, #ffe0b2);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #ff9800;
  color: #e65100;
  font-style: italic;
}

.stilladsering-error-msg {
  margin: 10px 0;
  background: linear-gradient(135deg, #ffebee, #ffcdd2);
  padding: 12px;
  border-radius: 8px;
  border-left: 4px solid #f44336;
  color: #c62828;
}

/* Mobile responsiveness for stilladsering chatbot */
@media (max-width: 767px) {
  #stilladsering-chat-container {
    margin: 15px -15px;
    border-radius: 0;
    padding: 15px;
  }
  
  #stilladsering-chatbox {
    height: 250px;
  }
  
  #stilladsering-chat-input {
    flex-direction: column;
    gap: 8px;
  }
  
  #stilladsering-msg {
    padding: 14px;
    font-size: 16px;
  }
  
  #stilladsering-chat-input button {
    padding: 14px;
    font-size: 16px;
  }
}