:root {
    --main-background-color: rgb(40, 40, 40);
    --dark1: rgb(30, 30, 30);
    --tool-background-color: rgb(21, 21, 21);
    --border-dark-color: rgb(46, 46, 46);
    --bottom-border-dark-color: rgb(120, 120, 120);
    --bottom2-border-dark-color: rgb(200, 200, 200);
    --input-dark-color: rgb(30, 30, 30);
    --form-input-dark-color: rgb(50, 50, 50);
    --a-color: rgb(255, 255, 255);
}

body {
    font-family: "Montserrat", sans-serif;
    margin: auto;
    background-color: var(--main-background-color);
    /* background-image: url('/images/Viking Logo.png');
    background-size: 2%; */
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    margin-top: 0;
}

.no-text-wrap {
    text-wrap: nowrap;
}

input[type=text],
label,
textarea,
select,
button {
    font-family: "Montserrat", sans-serif;
}

textarea {
    resize: none;
}

button,
input[type=submit] {
    color: white;
    background-color: rgb(255, 123, 0);
    border: none;
    border-radius: 5px;
    padding: 8px 10px;
    transition: .3s;
}

button:hover,
input[type=submit]:hover {
    background-color: rgb(230, 106, 0);
}

button:disabled,
input[type=submit]:disabled {
    color: rgb(124, 124, 124);
    background-color: rgb(255, 123, 0);
}

div.header {
    background-color: var(--dark1);
    text-align: center;
}

div.footer {
    background-color: var(--dark1);
    margin-top: auto;
}

div.main-container {
    /* background-color: black; */
    max-width: 1800px;
    width: 90vw;
    padding: 10px;
    box-sizing: border-box;
    margin: 0 auto;
}

div.first-container {
    /* background-color: green; */
    display: flex;
}

div.notification-container {
    /* background-color: white; */
    height: 300px;
    width: 100%;
    margin: 5px 5px;
    padding: 5px;
    border: 1px solid var(--border-dark-color);
    background-color: var(--dark1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

div.table-container {
    margin: 5px;
    padding: 5px;
    overflow-y: auto;
    /* height: 190px; */
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
}

div.notification-container a {
    color: var(--a-color);
    text-decoration: none;
}

div.notification-news-row {
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border-bottom: 1px solid var(--bottom-border-dark-color);
}

div.second-container {
    /* background-color: rebeccapurple; */
    display: grid;
    grid-template-columns: 75% 25%;
}

div.search-container {
    /* background-color: white; */
    height: 350px;
    margin: 5px 5px;
    padding: 5px;
    border: 1px solid var(--border-dark-color);
    background-color: var(--dark1);
    box-sizing: border-box;
}

div.search-container a {
    color: var(--a-color);
    text-decoration: none;
}

div.search-bar {
    padding: 5px;
    /* border-bottom: 1px solid rgb(204, 204, 204); */
}

div.search-content {
    height: 220px;
    overflow-y: auto;
    scrollbar-width: thin;
}

input[type=text].search {
    width: 70%;
    box-sizing: border-box;
    /* font-size: 16px; */
    padding: 5px;
    border: 0px;
    color-scheme: dark;
    background-color: var(--input-dark-color);
}

input[type=text].search:focus {
    outline: 0px;
}

div.attendance-container {
    /* background-color: white; */
    height: 350px;
    margin: 5px 5px;
    padding: 5px;
    border: 1px solid var(--border-dark-color);
    background-color: var(--dark1);
    box-sizing: border-box;
}

div.out-office-container {
    padding: 5px;
    /* display: flex;
    flex-wrap: wrap;
    flex-direction: column; */
    overflow-y: auto;
    scrollbar-width: none;
    height: 300px;
    box-sizing: border-box;
}

div.third-container {
    /* background-color: rebeccapurple; */
    display: block;
}

div.quick-link-container {
    margin: 5px 5px;
    padding: 5px;
    border: 1px solid var(--border-dark-color);
    background-color: var(--dark1);
    box-sizing: border-box;
}

div.quick-link-list {
    /* margin: 5px 5px;
    padding: 5px;
    box-sizing: border-box; */
    display: flex;
    flex-wrap: wrap;
}

div.quick-link-list-mobile {
    display: none;
    overflow: hidden;
    transition: max-height .5s;
}

a.quick-link {
    padding: 5px 10px;
    color: var(--a-color);
    font-weight: bold;
    text-decoration: none;
    display: block;
}

p.menu-toggle {
    margin: 0px 5px;
    padding: 5px;
    font-size: large;
    font-weight: bold;
    display: none;
    cursor: default;
}

p.title {
    margin: 0px 5px;
    padding: 5px;
    font-size: large;
    font-weight: bold;
    /* background-color: rgb(203, 203, 203); */
    border-bottom: 2px solid var(--bottom2-border-dark-color);
}

/* =========================================SVG=========================================== */
svg.orgchart {
    background-color: var(--dark1);
    /* cursor: move; */
    border: 3px solid var(--border-dark-color);
    /* border-radius: 15px; */
    box-sizing: border-box;
    touch-action: none;
}

g.employee-tag:hover {
    cursor: pointer;
}

text.svg {
    user-select: none;
}

text.svg-big {
    user-select: none;
    font-size: xx-large;
    justify-content: center;
}

div.contact-detail {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 4px;
    width: 400px;
    max-width: 500px;
    box-sizing: border-box;
    padding: 10px;
    background-color: var(--dark1);
    border: 3px solid var(--border-dark-color);
    /* border-top-right-radius: 15px; */
    /* border-bottom-right-radius: 15px; */
    z-index: 1;
    display: flex;
    flex-flow: column;
}

div.contact-list {
    overflow: auto;
}

a {
    color: white;
    overflow-wrap: break-word;
}

g {
    transition:  .5s;
    /* filter: drop-shadow(3px 0 0 red); */
}

div.tool {
    position: absolute;
    left: 0;
    bottom: 4px;
    box-sizing: border-box;
    padding: 5px;
    background-color: var(--dark1);
    border: 3px solid var(--border-dark-color);
    display: flex;
}

div.tool-element {
    padding: 5px;
    margin: 0 5px;
    background-color: rgb(0, 0, 0);
    border: 1px solid rgb(255, 255, 255);
    border-radius: 5px;
    display: flex;
    position: relative;
}

div.tool-tooltip {
    position: absolute;
    top: -30px;
    left: 0;
    display: none;
    padding: 5px;
    box-sizing: border-box;
    text-wrap: nowrap;
    background-color: rgb(49, 85, 77);
    /* background-color: rgb(255, 123, 0); */
    user-select: none;
}

div.tool-element:hover {
    background-color: rgb(74, 74, 74);
}

div.tool-element:hover div.tool-tooltip {
    display: block;
}

div.news-container {
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
    width: 800px;
}

.bold {
    font-weight: 700;
}

.italic {
    font-style: italic;
}

.underline {
    text-decoration: underline;
}

input.heading {
    font-size: xx-large;
    font-weight: bold;
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(240, 248, 255, 0);
    border: none;
    color-scheme: dark;
}

input.heading:focus {
    outline: none;
}

.ribbon-button {
    padding: 2px;
    margin: 2px;
    box-sizing: border-box;
    min-width: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0);
    border-radius: 2px;
    user-select: none;
}

.ribbon-button:hover {
    border: 1px solid white;
    background-color: rgb(116, 116, 116);

}

.ribbon-container {
    display: flex;
    background-color: rgb(59, 59, 59);
    border-bottom: 1px solid white;
    justify-content: center;
}

div.post {
    padding: 5px;
}

div.posts-container {
    max-width: 1000px;
    margin: auto;
}

li.list {
    display: inline-block;
}

li.list a::after {
    display: inline-block;
    content: '>';
    padding: 0 3px;
}

/* =======================================FORM======================================= */
div.create-form {
    margin: auto;
    padding: 20px;
    box-sizing: border-box;
    width: 800px;
    background-color: var(--dark1);
    border: 1px solid var(--border-dark-color);
}

input[type=text].create-form,
textarea.create-form {
    display: block;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
    border: none;
    color-scheme: dark;
    background-color: var(--form-input-dark-color);
}

label.create-form {
    display: block;
    padding: 5px;
    font-weight: bold;
}

select.create-form {
    display: block;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
    color-scheme: dark;
    background-color: var(--form-input-dark-color);
}

input[type=submit].create-form {
    display: block;
}

table.news {
    width: 100%;
    border-collapse: collapse;
    white-space: normal;
    table-layout: auto;
}

tr.news {
    border-bottom: 1px solid var(--bottom-border-dark-color);
}

tr.news-fixed {
    border-bottom: 1px solid var(--bottom-border-dark-color);
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: var(--dark1);
}

td.news {
    padding: 5px;
}

th.news {
    text-align: left;
    padding: 5px;
}

td.news-num {
    text-align: right;
    padding: 5px;
}

div.pagination {
    text-align: center;
    padding: 5px;
}

div.pagination button {
    background-color: rgba(255, 255, 0, 0);
    color: var(--a-color);
    transition: background-color .3s;
    border: 0px;
    border-radius: 5px;
    padding: 5px;
}

div.pagination button.active {
    border: 1px solid rgb(255, 255, 255);
}

div.pagination button:hover:not(.active) {
    background-color: var(--border-dark-color);
}

pre {
    white-space: pre-line;
    font-family: inherit;
}

div.admin-tool-button {
    position: absolute;
    top: 5px;
    right: 5px;
    padding: 5px;
    border: 2px solid var(--border-dark-color);
    border-radius: 5px;
    box-sizing: border-box;
    cursor: default;
    /* background-color: rgb(179, 179, 179); */
    /* filter: drop-shadow(0 0 9px rgb(255, 187, 0)); */
}

div.admin-tool-button:hover div.admin-tool {
    display: block;
    /* visibility: visible;
    opacity: 1; */
}

div.admin-tool {
    position: absolute;
    right: 0;
    display: none;
    padding: 5px;
    box-sizing: border-box;
    border: 2px solid var(--border-dark-color);
    background-color: var(--tool-background-color);
    /* visibility: hidden;
    opacity: 0;
    transition: opacity 1s; */

}

div.admin-tool a,
div.admin-tool-button a {
    color: var(--a-color);
    text-decoration: none;
    padding: 5px;
    display: block;
    text-wrap: nowrap;
}

div.admin-tool div {
    color: var(--a-color);
    padding: 5px;
}

div.alert-background {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
}

div.alert {
    padding: 20px;
    margin: auto;
    text-align: center;
    background-color: var(--main-background-color);
    border: 3px solid var(--border-dark-color);
}

div.login-logo {
    margin: 100px auto;
    width: 500px;
    text-align: center;
    /* filter: drop-shadow(5mm 5mm 9px rgb(129, 129, 129)); */
}

h2 a {
    color: var(--a-color);
    text-decoration: none;
}

@keyframes logo-spin {
    from {
        /* transform: rotateY(0deg); */
        filter: drop-shadow(0 0 9px rgb(255, 196, 0));
    }

    to {
        /* transform: rotateY(360deg); */
        filter: drop-shadow(0 0 9px rgb(234, 0, 255));
    }
}

@media (prefers-reduced-motion: no-preference) {
    div.login-logo {
        animation: logo-spin infinite 5s alternate linear;
    }
}

@media screen and (max-width: 900px) {
    div.first-container {
        display: block;
    }

    div.notification-container {
        width: auto;
        height: auto;
    }

    div.first-container {
        display: block;
    }

    div.second-container {
        display: block;
    }

    div.third-container {
        display: block;
    }

    div.quick-link-list {
        display: none;
    }

    div.quick-link-list-mobile {
        display: block;
        max-height: 0;
    }

    p.menu-toggle {
        display: block;
    }

    div.contact-detail {
        position: static;
        width: auto;
        max-width: none;
    }

    div.create-form,
    div.news-container {
        width: auto;
    }

    a.quick-link {
        display: flex;
        padding: 10px 20px;
    }
}

div.full-image {
    display: flex;
    position: fixed;
    background-color: rgba(0, 0, 0, 0.9);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    overflow: auto;
}

div.full-image img {
    margin: auto;
}

/*=======================Prosemirror==========================*/
.ProseMirror {
    position: relative;
}

.ProseMirror {
    word-wrap: break-word;
    white-space: pre-wrap;
    white-space: break-spaces;
    -webkit-font-variant-ligatures: none;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0;
    /* the above doesn't seem to work in Edge */
}

.ProseMirror pre {
    white-space: pre-wrap;
}

/* .ProseMirror img {
    height: 400px;
} */

#content img {
    display: block;
    margin: auto;
    max-width: 90%;
}

#content p::after {
    content: "";
    display: inline-block;
}

#content p {
    line-height: 1.625rem;
}

.ProseMirror li {
    position: relative;
}

.ProseMirror-hideselection *::selection {
    background: transparent;
}

.ProseMirror-hideselection *::-moz-selection {
    background: transparent;
}

.ProseMirror-hideselection {
    caret-color: transparent;
}

/* See https://github.com/ProseMirror/prosemirror/issues/1421#issuecomment-1759320191 */
.ProseMirror [draggable][contenteditable=false] {
    user-select: text
}

.ProseMirror-selectednode {
    outline: 2px solid #8cf;
}

/* Make sure li selections wrap around markers */

li.ProseMirror-selectednode {
    outline: none;
}

li.ProseMirror-selectednode:after {
    content: "";
    position: absolute;
    left: -32px;
    right: -2px;
    top: -2px;
    bottom: -2px;
    border: 2px solid #8cf;
    pointer-events: none;
}

/* Protect against generic img rules */

img.ProseMirror-separator {
    display: inline !important;
    border: none !important;
    margin: 0 !important;
}

.ProseMirror-textblock-dropdown {
    min-width: 3em;
}

.ProseMirror-menu {
    margin: 0 -4px;
    line-height: 1;
}

.ProseMirror-tooltip .ProseMirror-menu {
    width: -webkit-fit-content;
    width: fit-content;
    white-space: pre;
}

.ProseMirror-menuitem {
    margin-right: 3px;
    display: inline-block;
}

.ProseMirror-menuseparator {
    border-right: 1px solid #ddd;
    margin-right: 3px;
}

.ProseMirror-menu-dropdown,
.ProseMirror-menu-dropdown-menu {
    font-size: 90%;
    white-space: nowrap;
}

.ProseMirror-menu-dropdown {
    vertical-align: 1px;
    cursor: pointer;
    position: relative;
    padding-right: 15px;
}

.ProseMirror-menu-dropdown-wrap {
    padding: 1px 0 1px 4px;
    display: inline-block;
    position: relative;
}

.ProseMirror-menu-dropdown:after {
    content: "";
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: .6;
    position: absolute;
    right: 4px;
    top: calc(50% - 2px);
}

.ProseMirror-menu-dropdown-menu,
.ProseMirror-menu-submenu {
    position: absolute;
    background: white;
    color: #666;
    border: 1px solid #aaa;
    padding: 2px;
}

.ProseMirror-menu-dropdown-menu {
    z-index: 15;
    min-width: 6em;
}

.ProseMirror-menu-dropdown-item {
    cursor: pointer;
    padding: 2px 8px 2px 4px;
}

.ProseMirror-menu-dropdown-item:hover {
    background: #f2f2f2;
}

.ProseMirror-menu-submenu-wrap {
    position: relative;
    margin-right: -4px;
}

.ProseMirror-menu-submenu-label:after {
    content: "";
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid currentColor;
    opacity: .6;
    position: absolute;
    right: 4px;
    top: calc(50% - 4px);
}

.ProseMirror-menu-submenu {
    display: none;
    min-width: 4em;
    left: 100%;
    top: -3px;
}

.ProseMirror-menu-active {
    background: #eee;
    border-radius: 4px;
}

.ProseMirror-menu-disabled {
    opacity: .3;
}

.ProseMirror-menu-submenu-wrap:hover .ProseMirror-menu-submenu,
.ProseMirror-menu-submenu-wrap-active .ProseMirror-menu-submenu {
    display: block;
}

.ProseMirror-menubar {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    position: relative;
    min-height: 1em;
    color: #666;
    padding: 1px 6px;
    top: 0;
    left: 0;
    right: 0;
    border-bottom: 1px solid silver;
    background: white;
    z-index: 10;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    overflow: visible;
}

.ProseMirror-icon {
    display: inline-block;
    line-height: .8;
    vertical-align: -2px;
    /* Compensate for padding */
    padding: 2px 8px;
    cursor: pointer;
}

.ProseMirror-menu-disabled.ProseMirror-icon {
    cursor: default;
}

.ProseMirror-icon svg {
    fill: currentColor;
    height: 1em;
}

.ProseMirror-icon span {
    vertical-align: text-top;
}

.ProseMirror-gapcursor {
    display: none;
    pointer-events: none;
    position: absolute;
}

.ProseMirror-gapcursor:after {
    content: "";
    display: block;
    position: absolute;
    top: -2px;
    width: 20px;
    border-top: 1px solid black;
    animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
}

@keyframes ProseMirror-cursor-blink {
    to {
        visibility: hidden;
    }
}

.ProseMirror-focused .ProseMirror-gapcursor {
    display: block;
}

/* Add space around the hr to make clicking it easier */

.ProseMirror-example-setup-style hr {
    padding: 2px 10px;
    border: none;
    margin: 1em 0;
}

.ProseMirror-example-setup-style hr:after {
    content: "";
    display: block;
    height: 1px;
    background-color: silver;
    line-height: 2px;
}

.ProseMirror ul,
.ProseMirror ol {
    padding-left: 30px;
}

.ProseMirror blockquote {
    padding-left: 1em;
    border-left: 3px solid #eee;
    margin-left: 0;
    margin-right: 0;
}

.ProseMirror-example-setup-style img {
    cursor: default;
}

.ProseMirror-prompt {
    background: white;
    padding: 5px 10px 5px 15px;
    border: 1px solid silver;
    position: fixed;
    border-radius: 3px;
    z-index: 11;
    box-shadow: -.5px 2px 5px rgba(0, 0, 0, .2);
}

.ProseMirror-prompt h5 {
    margin: 0;
    font-weight: normal;
    font-size: 100%;
    color: #444;
}

.ProseMirror-prompt input[type="text"],
.ProseMirror-prompt textarea {
    background: #eee;
    border: none;
    outline: none;
}

.ProseMirror-prompt input[type="text"] {
    padding: 0 4px;
}

.ProseMirror-prompt-close {
    position: absolute;
    left: 2px;
    top: 1px;
    color: #666;
    border: none;
    background: transparent;
    padding: 0;
}

.ProseMirror-prompt-close:after {
    content: "✕";
    font-size: 12px;
}

.ProseMirror-invalid {
    background: #ffc;
    border: 1px solid #cc7;
    border-radius: 4px;
    padding: 5px 10px;
    position: absolute;
    min-width: 10em;
}

.ProseMirror-prompt-buttons {
    margin-top: 5px;
    display: none;
}

#editor,
.editor {
    background: white;
    color: black;
    background-clip: padding-box;
    border-radius: 4px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    padding: 5px 0;
    margin-bottom: 23px;
}

#editor a {
    color: blue;
}

#editor img {
    max-width: 100%;
}

.ProseMirror p:first-child,
.ProseMirror h1:first-child,
.ProseMirror h2:first-child,
.ProseMirror h3:first-child,
.ProseMirror h4:first-child,
.ProseMirror h5:first-child,
.ProseMirror h6:first-child {
    margin-top: 10px;
}

.ProseMirror {
    padding: 4px 8px 4px 14px;
    line-height: 1.2;
    outline: none;
}

.ProseMirror p {
    margin-bottom: 1em
}