html, body {
    /*--make-yellow:/* rgb(248, 200, 17); /* #F8C811 */
    --make-yellow: #22c55e;
    /* --make-blue: rgb(12, 66, 106); #0C426A */
    --make-blue:#1b140d;
    /* --make-turquoise: rgb(0, 235, 179); #00EBB3 */
    --make-turquoise: #22c55e; /* #00EBB3 */
    /* --make-dark-grey: rgb(74, 75, 76);*/ /* #4A4B4C */
    --make-dark-grey:#1b140d;
    --make-light-grey: rgb(220, 221, 222); /* #DCDDDE */

    /*--make-yellow-darker: rgb(239, 184, 14); */
    --make-yellow-darker: #22c55e;

    --header-height: 100px;

    height: 100%;
    min-width: 320px;
    font-size: 14px; /* Same as Fomantic-UI */
    font-family: "Ubuntu", sans-serif !important;
}

body {
    display: block;
    flex-direction: column;
}

p, h1, h2, h3, h4, h5, h6, li, td, th, div, a, input, textarea, button {
    font-family: "Ubuntu", sans-serif !important;
}

p, li {
    font-size: 1.15rem;
}

p {
    line-height: 1.85rem;
}

li {
    line-height: 1.65rem;
}

.ui.card p,
.ui.card li,
.ui.message p,
.ui.message li {
    /* Unsets the properties set above, so that Fomantic-UI is able to use its own font size */
    font-size: unset;
    line-height: unset;
}

.word-breaking {
    word-break: break-word;
}

.hyphenated {
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

span.no-wrap {
    display: inline-block;
    white-space: nowrap;
}

.skip-to-main-content {
    position: absolute;
    top: calc(var(--header-height) - 1em);
    left: -100%;
    padding: 1em;
    border-radius: 0.5em;
    font-size: 18px;
    font-weight: bold;
    text-decoration: underline;
    color: var(--make-yellow);
    background-color: var(--make-blue);
    border: 4px solid var(--make-turquoise);
    z-index: 100;
}

.skip-to-main-content:focus {
    left: 0.5em;
}

.wrapper {
    display: table;
    width: 100%;
    height: 100%;
}

.wrapper > .content {
    display: table-row;
    height: 100%;
}

.display-none {
    display: none !important;
}

.text-centered {
    text-align: center !important;
}

.cke,
.django-ckeditor-widget {
    width: 100% !important;
}

.make-bg-yellow {
    background-color: var(--make-yellow) !important;
}

.make-bg-yellow.ui.button,
.make-bg-yellow.ui.label {
    color: white;
}

.make-bg-yellow.ui.button {
    box-shadow: 0 0 0 0 rgba(34, 36, 38, 0.15) inset; /* Same as Fomantic-UI's style for colored buttons */
}

.make-bg-yellow.button:hover,
.make-bg-yellow.button:focus {
    background-color: var(--make-yellow-darker) !important;
}

.make-bg-blue {
    background-color: var(--make-blue) !important;
}

.make-bg-blue.ui.label {
    color: white;
}

.make-bg-turquoise {
    background-color: var(--make-turquoise) !important;
}

.make-bg-dkgrey {
    background-color: var(--make-dark-grey) !important;
}

.make-bg-ligrey {
    background-color: var(--make-light-grey) !important;
}

.make-col-yellow {
    color: var(--make-yellow) !important;
}

.make-col-blue {
    color: var(--make-blue) !important;
}

.make-col-turquoise {
    color: var(--make-turquoise) !important;
}

.make-col-dkgrey {
    color: var(--make-dark-grey) !important;
}

.make-col-ligrey {
    color: var(--make-light-grey) !important;
}

.make-content-padding {
    height: 3em;
}

.title-with-buttons {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

.title-with-buttons:not(:first-child) {
    margin-top: 0.5em;
}

.title-with-buttons .button {
    margin-top: 0.5em;
}

.delete-modal-button {
    cursor: pointer;
}

/*
 * Style for multilingual input
 */
.multilingual-input {
    display: inline;
}

.multilingual-input .ui.pointing.secondary.menu .item.language-not-filled {
    border-bottom-color: #FFA5A2;
}

.multilingual-input .ui.pointing.secondary.menu .item.active.language-not-filled {
    border-bottom-color: red;
}

.ui.form .field > label.multilingual-label {
    display: inline;
    vertical-align: sub;
}

/* Fix for https://github.com/MAKENTNU/web/issues/386; this should be removed once fixed in Fomantic-UI */
.ui.ribbon.label:after {
    z-index: -1;
}


/*
 * Extension of Fomantic-UI mobile only, table only, etc. classes.
 * The `max-width` and `min-width` values are copied from Fomantic-UI.
 */

/* Mobile */
@media only screen and (max-width: 767.98px) {
    [class*="mobile hidden"],
    [class*="tablet only"]:not(.mobile),
    [class*="computer only"]:not(.mobile) {
        display: none !important;
    }
}


/* Tablet / iPad Portrait */
@media only screen and (min-width: 768px) and (max-width: 991.98px) {
    [class*="mobile only"]:not(.tablet),
    [class*="tablet hidden"],
    [class*="computer only"]:not(.tablet) {
        display: none !important;
    }
}


/* Mobile / Tablet / iPad Portrait */
@media only screen and (max-width: 991.98px) {
    html, body {
        font-size: 12px;
    }
}


/* Computer / Desktop / iPad Landscape */
@media only screen and (min-width: 992px) {
    [class*="mobile only"]:not(.computer),
    [class*="tablet only"]:not(.computer),
    [class*="computer hidden"] {
        display: none !important;
    }
}
