/* GENEREL */
html {
    font-family: arial, helvetica, sans-serif;
}

body {
    background-color: #f1f1f1;
    /* font-family: 'Cabin', sans-serif; */
}

html,
body {
    scroll-behavior: smooth;
}

header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f1f1f1;
}

header .header__title {
    font-size: 1.7rem;
    margin: auto 1.5rem;
}

@media (max-width: 1000px) {
    header .header__title {
        font-size: 1.4rem;
    }
}

header img {
    padding: 0px 15px;
}

section {
    display: flex;
    min-height: calc(100vh - 134px);
}

.date-time {
    font-weight: bold;
}

#tech-info {
    display: none;
}

a[href^="tel"] {
    color: inherit;
    text-decoration: none;
    cursor: text;
}

.container {
    /* width: 55%; */
    min-height: 100vh;
    margin: auto;
    background-color: #fff;
    max-width: 1200px;
}

@media (max-width: 1800px) {
    .container {
        /* width: 80%; */
    }
}

@media (max-width: 1500px) {
    .container {
        width: 100%;
    }
}

/** NAVIGATION **/
.nav {
    background: #842c42;
    max-width: 14rem;
    min-width: 14rem;
    min-height: 100vh;
    font-size: 0.875rem;
    position: relative;
    word-wrap: break-word;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

.nav__link,
.nav__sub-link,
.nav__link-external,
.nav__sub-link-external {
    color: #fff;
    display: block;
    cursor: pointer;
    line-height: 1.3rem;
    padding: 20px 15px;
    text-decoration: none;
}

.nav-overview.nav-overview--active {
    background-color: #6f2637;
}

.nav__link,
.nav__link-external {
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.nav__sub-link,
.nav__sub-link-external {
    color: #f8f8f8;
    opacity: .7;
    text-decoration: none;
}

.nav__sub-menu {
    opacity: 0;
    visibility: hidden;
    height: 0px;
}

.nav__sub-menu--active {
    opacity: 1;
    visibility: visible;
    background-color: #6f2637;
    height: auto;
}

.nav-overview.nav-overview--active .nav__link {
    background-color: #651f2f;
}

.nav__link.nav__link--active {
    background-color: #651f2f;
}

.nav__sub-link.nav__link--active {
    color: #fff;
    opacity: 1;
}

.nav__sub-link.nav__link--active::before {
    content: '–';
    padding-right: 5px;
}

.nav__link.nav__sub-menu--active+.nav__sub-menu {
    display: block;
    background-color: #6f2637;
}

.nav__link:hover,
.nav__sub-link:hover,
.nav__link-external:hover {
    background: rgba(255, 255, 255, 0.05);
}

.nav__bottom {
    flex-direction: column;
    display: flex;
    justify-content: flex-end;
    height: 100%;
}

.nav__bottom span {
    border-top: 1px solid rgba(255, 255, 255, .8);
    padding: 20px 15px;
    margin-top: 6rem;
}

.nav__bottom span {
    padding-left: 15px;
}

main {
    flex: 1;
}

/** PAGES **/
.page {
    padding: 50px 40px 100px 40px;
    display: none;
    font-size: 1rem;
    line-height: 1.5rem;
}

@media (max-width: 1000px) {
    .page {
        padding: 20px 20px 50px 20px;
    }
}

.frontpage__heading {
    font-size: 2em;
    line-height: 2.5rem;
    padding: 30px 0px;
    margin-bottom: 2.5rem;
    margin-top: 0rem;
    border-top: 1px solid;
    border-bottom: 1px solid;
}

@media (max-width: 1000px) {
    .frontpage__heading {
        font-size: 1.7em;
        font-weight: 600;
        line-height: 1.3em;
        padding: 15px 0px;
    }
}

.page--visible {
    display: block;
    position: relative;
}

/** ASSIGNMENT **/
.assignment {
    border-top: solid 1px #eee;
    padding: 28px 0 40px;
}

.assignment__description {
    padding: 0px 0px 0px 59px;
    margin: 15px 0 0;
    display: flex;
    flex-direction: column;
}

#matematik-1 .assignment__description {
    padding: 0px 0px 0px 65px;
}

.assignment__description-line {
    margin: 0 0 15px;
}

.assignment__description-line:last-child {
    margin: 0;
}

.assignment__description-line p {
    margin: 0 0 1rem;
}

.assignment h3 {
    margin-top: 0;
}

span.subtask-indicator {
    font-weight: bold;
    display: inline-block;
    width: auto;
    min-width: 23px;
}

.assignment__description-subtask {
    margin: 15px 0 0 0;
    padding: 0 0 40px 0;
    display: flex;
}

.assignment__description-subtask:last-child {
    border-bottom: none;
    padding: 0 0 0 0;
}

.assignment__description-subtask--small {
    margin: 15px 0 0 0;
    display: flex;
    padding: 0 0 15px 0
}

.assignment__description-subtask-wrapper {
    width: 100%;
    padding: 0 0 0 36px;
}

/** MATHQUILL - CUSTOM **/
span.static-equation.mq-math-mode {
    position: relative;
    margin-left: -3px;
}

.equation {
    padding: 4px;
    min-width: 75px;
    max-width: 50rem;
}

/** ASSIGNMENT ILLUSTRATIONS **/
.assignment__illustration {
    display: flex;
    flex-direction: column;
    /* border: solid 2px #eee; */
    align-items: center;
    padding: 30px;
    /* margin: 30px 0 30px 68px; */
    margin: 30px 0 30px 0px;

}

.assignment__illustration .svg {
    max-width: 100%;
    width: 100%;
}

.assignment__illustration .svg.magnesium {
    max-width: 280px;
}

.assignment__illustration-text {
    font-style: italic;
    font-size: 0.9rem;
}

.assignment__illustration--inputs {
    position: relative;
}

.assignment__illustration--inputs .input-field {
    position: absolute;
}

.svg canvas {
    width: 100%;
    display: none;
    visibility: hidden;
}

/** ASSIGNMENT INPUT **/
.assignment__description-line [type="text"] {
    padding: 4px;
    margin: 0 0px 5px 0;
    width: 87%;
    height: 13px;
}

.assignment__description-line [type="text"].inline-input {
    width: 85px;
    margin-right: 5px;
    height: 13px;
}

/** ASSIGNMENT TABLE **/
.assignment__description-line table {
    border-spacing: 0;
    border-collapse: collapse;
}

.assignment__description-line .table.small {
    width: 60%;
}

.table.w-50 th {
    width: 50%;
}

.table.w-100 th {
    width: 100%;
}

.assignment__description-line table td:not(.no-border),
.assignment__description-line table th:not(.no-border) {
    border: 1px solid #232323;
    padding: 8px;
    font-weight: normal;
    /* width: 50%; */
}

.assignment__description-line table tr:first-child td .assignment__description-line table tr:first-child th {
    font-weight: bold;
}

.assignment__description-line table tr:first-child th p {
    font-weight: normal;
}

/** CHECK BOX **/

[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    position: absolute;
    left: -9999px;
}

[type="checkbox"]:not(:checked)+label,
[type="checkbox"]:checked+label {
    position: relative;
    cursor: pointer;
    height: 18px;
    display: inline-block;
    width: 20px;
}

/* checkbox aspect */
[type="checkbox"]:not(:checked)+label:before,
[type="checkbox"]:checked+label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #232323;
    background: #fff;
    border-radius: 4px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .1);
}

/* checked mark aspect */
[type="checkbox"]:not(:checked)+label:after,
[type="checkbox"]:checked+label:after {
    content: 'X';
    position: absolute;
    top: 4px;
    left: 5px;
    font-size: 18px;
    line-height: 0.8;
    color: #232323;
    transition: all .2s;
}

/* checked mark aspect changes */
[type="checkbox"]:not(:checked)+label:after {
    opacity: 0;
    transform: scale(0);
}

[type="checkbox"]:checked+label:after {
    opacity: 1;
    transform: scale(1);
}

/* disabled checkbox */
[type="checkbox"]:disabled:not(:checked)+label:before,
[type="checkbox"]:disabled:checked+label:before {
    box-shadow: none;
    border-color: #bbb;
    background-color: #ddd;
}

[type="checkbox"]:disabled:checked+label:after {
    color: #999;
}

[type="checkbox"]:disabled+label {
    color: #aaa;
}

/* accessibility */
[type="checkbox"]:checked:focus+label:before,
[type="checkbox"]:not(:checked):focus+label:before {
    outline: -webkit-focus-ring-color auto 5px;
    outline-color: -webkit-focus-ring-color;
    outline-style: auto;
    outline-width: 5px;
}

/* fill container */
[type="checkbox"]:not(:checked).checkbox-fill+label,
[type="checkbox"]:checked.checkbox-fill+label {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

[type="checkbox"]:checked.checkbox-fill+label:before,
[type="checkbox"]:not(:checked).checkbox-fill+label:before {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border: none;
    top: 2px;
    left: 2px;
}

[type="checkbox"]:checked.checkbox-fill+label:after,
[type="checkbox"]:not(:checked).checkbox-fill+label:after {
    font-size: 30px;
    position: relative;
    top: 0;
    left: 0;
}

/* APPEARANCE */
.blue-box {
    background: #d0e5f0;
    padding: 10px 15px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.blue-box2 {
    background: #d0e5f0;
    padding: 10px 15px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.gray-box {
    background: #f1efef;
    padding: 10px 15px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.outline-box {
    padding: 10px 15px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #000;
}

.blue-box2 p,
.blue-box p,
.gray-box p,
.outline-box p {
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

/*** Utilities ***/
.in-word {
    margin-left: 1rem;
}

.no-border {
    border: none;
}

/* Padding */
.p-0,
.p-0 p {
    padding: 0;
}

.p-1 {
    padding: 1rem;
}

.p-2 {
    padding: 2rem;
}

.p-3 {
    padding: 3rem;
}

.pl-0 {
    padding-left: 0;
}

.pl-035 {
    padding-left: 0.35rem;
}

.pl-1 {
    padding-left: 1rem;
}

.pl-2 {
    padding-left: 2rem;
}

.pl-3 {
    padding-left: 3rem;
}

.pr-0 {
    padding-right: 0;
}

.pr-1 {
    padding-right: 1rem;
}

.pr-2 {
    padding-right: 2rem;
}

.pr-3 {
    padding-right: 3rem;
}

.pt-0 {
    padding-top: 0;
}

.pt-1 {
    padding-top: 1rem;
}

.pt-2 {
    padding-top: 2rem;
}

.pt-3 {
    padding-top: 3rem;
}

.pb-0 {
    padding-bottom: 0;
}

.pb-1 {
    padding-bottom: 1rem;
}

.pb-2 {
    padding-bottom: 2rem;
}

.pb-3 {
    padding-bottom: 3rem;
}

/* Margin */
.m-0,
.m-0 p {
    margin: 0;
}

.m-1 {
    margin: 1rem;
}

.m-2 {
    margin: 2rem;
}

.ml-0 {
    margin-left: 0rem;
}

.ml-1 {
    margin-left: 1rem;
}

.ml-2 {
    margin-left: 2rem;
}

.ml-3 {
    margin-left: 3rem;
}

.mr-0 {
    margin-right: 0rem;
}

.mr-1 {
    margin-right: 1rem;
}

.mr-2 {
    margin-right: 2rem;
}

.mr-3 {
    margin-right: 3rem;
}

.mt-0 {
    margin-top: 0rem;
}

.mb-0 {
    margin-bottom: 0rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* Text */
.p-space p {
    margin-bottom: 0.8rem;
}

h1,
h2 {
    font-size: 1.5em;
    margin-bottom: 2.5rem;
    margin-top: 0rem;
}

.line-height-1,
.line-height-1 p {
    line-height: 1em;
}

.line-height-2,
.line-height-2 p {
    line-height: 2em;
}

.line-height-3,
.line-height-3 p {
    line-height: 3em;
}

.line-height-4,
.line-height-4 p {
    line-height: 4em;
}

/* Alignment */
.align-left {
    text-align: left;
}

.align-left-flex {
    align-self: flex-start;
}

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

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

.align-bottom {
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.display-inline {
    display: inline;
}

.display-flex {
    display: flex;
}

.display-block {
    display: block;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Size */
.w-auto {
    width: auto;
}

.w-100 {
    width: 100%;
}

.w-8 {
    width: 8%;
}

.w-10 {
    width: 10%;
}

.w-12 {
    width: 12%;
}

.w-15 {
    width: 15%;
}

.w-18 {
    width: 18%;
}

.w-20 {
    width: 20%;
}

.w-23 {
    width: 23%;
}

.w-25 {
    width: 25%;
}

.w-30 {
    width: 30%;
}

.w-31 {
    width: 31%;
}

.w-33 {
    width: 33%;
}

.w-40 {
    width: 40%;
}

.w-50 {
    width: 50%;
}

.w-60 {
    width: 60%;
}

.w-70 {
    width: 70%;
}

.w-80 {
    width: 80%;
}

.w-85 {
    width: 85%;
}

.w-90 {
    width: 90%;
}

.w-98 {
    width: 98%;
}

.w-100 {
    width: 100%;
}

.w-15 img,
.w-20 img,
.w-25 img,
.w-30 img,
.w-40 img,
.w-50 img,
.w-70 img,
.w-80 img {
    width: 100%;
}

.sup-small {
	font-size: 75%;
	line-height: 04em;
}

/* List */
ul li p {
    margin: 0 0 0.4rem 0;
}

.input-text {
    line-height: 3.8rem;
}

.textarea {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.side-by-side,
.side-by-side__unequal {
    display: flex;
    flex-direction: row;
}

.side-by-side__unequal .assignment__description-line:nth-child(1) {
    width: 70%;
}

.side-by-side__unequal .assignment__description-line:nth-child(2) {
    width: 30%;
}

.side-by-side .assignment__description-line {
    width: 50%;
}

.ophavsret {
    border: solid black 1px;
    padding: 25px 25px 10px;
    font-style: italic;
    line-height: 1.4;
}

.ophavsret h2 {
    font-size: 17px;
    margin: 0;
}

/*Fysik - Kemi - image with input */
#fk_1_4_1 {
    position: absolute;
    right: 14.4rem;
    top: 2.9rem;
    height: 30px;
}

#fk_1_4_2 {
    position: absolute;
    right: 14.4rem;
    top: 8.3rem;
    height: 30px;
}

#fk_1_4_3 {
    position: absolute;
    right: 14.4rem;
    top: 13.9rem;
    height: 30px;
}



@media only screen and (max-width: 1250px) {
    .illu-w-input {
        display: block;
    }

    #fk_1_4_1 {
        left: 18rem;
        right: 0;
    }

    #fk_1_4_2 {
        left: 18rem;
        right: 0;
    }

    #fk_1_4_3 {
        left: 18rem;
        right: 0;
    }
}

#fk_2_1_1 {
    position: absolute;
    left: 16%;
    top: 94px;
    height: 22px;
    width: 138px;
    border: none;
}

#fk_2_1_2 {
    position: absolute;
    left: 16%;
    top: 145px;
    height: 22px;
    width: 138px;
    border: none;
}

#fk_2_1_3 {
    position: absolute;
    top: 146px;
    height: 21px;
    left: 53%;
    width: 145px;
    border: none;
}

@media only screen and (max-width: 1095px) {
    #fk_2_1_1 {
        left: 10%;
        width: 138px;
    }

    #fk_2_1_2 {
        left: 10%;
        width: 138px;
    }

    #fk_2_1_3 {
        left: 54%;
        width: 145px;
    }

    .subscript {
        vertical-align: sub;
        font-size: smaller;
    }
}

.custom-select {
    display: inline-block;
    width: 40%;
    position: absolute;
}

.custom-select-trigger {
    padding: 3px 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.select-text {
    flex: 1;
}

.arrow-down {
    font-size: 12px;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.custom-select.open .arrow-down {
    transform: rotate(180deg);
}

.custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    z-index: 10;
}

.custom-option {
    padding: 3px 8px;
    cursor: pointer;
}

.custom-option:hover {
    background-color: #f1f1f1;
}

.custom-select.open .custom-options {
    display: block;
}

/*avoid safari autofill - Hide the dropdown arrow icon */
input::-webkit-contacts-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    right: 0;
}

/*browser version check pop up*/
.popup {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
}

.popup-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    line-height: 1.4;
}

.popup-content h2 {
    margin-bottom: 1.5rem;
}