/*
    This is the global stylesheet that includes colors, fonts, common styles, etc.
*/

:root {
    --siga-main-color: rgb(0, 145, 212);
    --main-background-color: rgba(124, 155, 176, 0.07);
    --black-background-transparent: rgba(0, 0, 0, 0.45);
    --siga-grey-color: rgb(240, 240, 240);
    --siga-grey-hover-color: rgb(217, 217, 217);
    --siga-dark-grey-color: rgb(179, 179, 179);
    --siga-white-color: #ffffff;
    --siga-secondary-color: rgb(229, 235, 239);
    --siga-dark-color: #4c6172;
    --bitloc-medium-grey: #D9D9D9;
    --yellow: #ffe146;
    --yellow-border: #b29d31;
    --orange: #ffba52;
    --red: #fd6565;
    --green: #4FCE82;
    --darkgrey: #b3b3b3;
    --dark-grey: #666666;
    --blue: #5c9df5;
    --orange: #ff9800;
    --purple: #aa83e9;
    --black: black;
    --white: white;
    --lightgrey: #f0f0f0;
    --light-grey: #f5f5f5;
    --light-inactive-grey: #f7f7f7;
    --light-inactive-hover-grey: #ececec;
    --placeholder-light-grey: #808080;
    --very-light-grey: #c2c2c2;
    --h1-font-size: 40px;
    --iphoneblue: #3395ff;
    --width-small-sidemodal: 80px;
    --width-large-sidemodal: 28.2em;
}

/* FONTS: */
@font-face {
    font-family: 'BitlocStudioFeixen';
    src: url('../fonts/BitlocStudioFeixen/woff/BitlocStudioFeixen-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BitlocStudioFeixen';
    src: url('../fonts/BitlocStudioFeixen/woff/BitlocStudioFeixen-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'BitlocStudioFeixen';
    src: url('../fonts/BitlocStudioFeixen/woff/BitlocStudioFeixen-MediumItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'BitlocStudioFeixen';
    src: url('../fonts/BitlocStudioFeixen/woff/BitlocStudioFeixen-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

* {
    font-family: BitlocStudioFeixen;
}

.roman-font {
    font-family: BitlocStudioFeixen;
}

.bold-font {
    font-family: 'BitlocStudioFeixen';
    font-weight: bold;
    min-height: 1em;
}

* {
    margin: 0px;
    padding: 0px;
}

body { /*To avoid margin collapsing when there are children with margin*/
    padding: 0.1px;
    font-family: BitlocStudioFeixen;
}

a {
    color: black;
}


.no-link {
    text-decoration: none;
    color: inherit;
}

.fatlink {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 1em;
    background-color: white;
    color: black;
    padding-left: 2em;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

h1 {
    font-size: var(--h1-font-size);
}

.popup-error {
    background: var(--red) !important;
    border-radius: 25px;
}

.popup-success {
    background: var(--green) !important;
    border-radius: 25px;
}

.popup-warning {
    background: var(--orange) !important;
    border-radius: 25px;
}

.popup-info {
    background: var(--blue) !important;
    border-radius: 25px;
}

@media only screen and (max-width: 720px) {
    .largescreen {
        display: none !important;
    }
}

@media only screen and (min-width: 720px) {
    .smallscreen {
        display: none !important;
    }
}

.backgroundcolor-yellow {
    background-color: var(--yellow);
}

.custom-alert {
    background-color: white;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    width: 80%; /* Adjust to your arsehole */
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.title-label {
    font-family: 'BitlocStudioFeixen-Bold', sans-serif;
    font-size: 26px;
    color: black;
}

.message-label {
    font-family: 'BitlocStudioFeixen-Medium', sans-serif;
    font-size: 14px;
    color: black;
    margin-top: 20px;
}

.action-button {
    background-color: red;
    color: black;
    font-family: 'BitlocStudioFeixen-Bold', sans-serif;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    margin-top: 40px;
    cursor: pointer;
}

.close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
}

.close-button img {
    width: 20px;
    height: 20px;
}

.button-inactive {
    pointer-events: none;
    opacity: 11%;
}


.inactive {
    visibility: hidden;
}

.semi-transparent-button {
    color: white;
    background-color: var(--darkgrey);
    opacity: 70%;
}

.semi-transparent-button:hover {
    background-color: var(--white);
    border-color: var(--black);
    color: var(--black);
    opacity: 100%;
}

    .semi-transparent-button:hover .white-icon{
        filter: none;
    }

/* display */
.display-flex {
    display: flex;
}

.display-none {
    display: none;
}

.display-block {
    display: block;
}

/* Utility Classes for Width */
.w-10 {
    width: 10%;
}

.w-20 {
    width: 20%;
}

.w-30 {
    width: 30%;
}

.w-40 {
    width: 40%;
}

.w-50 {
    width: 50%;
}

.w-60 {
    width: 60%;
}

.w-70 {
    width: 70%;
}

.w-80 {
    width: 80%;
}

.w-90 {
    width: 90%;
}

.w-100 {
    width: 100%;
}

.w-100px {
    width: 100px;
}

/* Indicates that a div can be narrower than its full width, used in very special scenarios */
.min-w-0 {
    min-width: 0;
}

/* Utility Classes for Height */
.h-10 {
    height: 10%;
}

.h-20 {
    height: 20%;
}

.h-30 {
    height: 30%;
}

.h-40 {
    height: 40%;
}

.h-50 {
    height: 50%;
}

.h-60 {
    height: 60%;
}

.h-70 {
    height: 70%;
}

.h-80 {
    height: 80%;
}

.h-90 {
    height: 90%;
}

.h-100 {
    height: 100%;
}

.h-40px {
    height: 40px;
}

.h-50px {
    height: 50px;
}

.h-80px {
    height: 80px;
}

.h-100px {
    height: 100px;
}

.min-h-100px {
    min-height: 100px;
}

/* Cursors */

.cursor-grabbing {
    cursor: grabbing
}

.cursor-none {
    cursor: none
}

.cursor-default {
    cursor: default
}

.cursor-pointer {
    cursor: pointer
}


/* Input fields */
.input-fs-title {
    font-size: 20px;
}

.input-fs-field {
    font-size: 16px;
}

.input-description-pair {
    margin-left: 16px;
    margin-right: 16px;
    margin-bottom: 16px;
}

.input-pair-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.input-field-container {
    font-size: 16px;
    display: flex;
}

.input-field {
    outline: none;
    width: 100%;
    border: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-field-disabled[readonly] {
    cursor: pointer;
}

.input-text {
    font-size: 12px;
}

/* Has to be !important, otherwise browser default settings overwrite it */
input:disabled {
    background-color: var(--white);
    color: var(--siga-dark-grey-color);
}

#input-field-edit-buttons-container {
    display: none;
}

.input-field-edit-button {
    font-size: 12px;
    color: var(--iphoneblue);
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}


.input-box {
    height: 50px;
    text-indent: 15px;
    border-radius: 25px;
    border-color: black;
    border-style: solid;
    outline: none;
    color: black;
    transition: background-color 0.5s ease, color 0.5s ease;
}

    .input-box:not(.input-box-yellow):focus, .input-box:not(.input-box-yellow, .no-hover-input-box):hover {
        background-color: var(--lightgrey);
    }

    .input-box .no-hover-input-box:not(.input-box-yellow):hover {
        background-color: var(--white);
    }

.input-box-yellow  {
    background-color: var(--yellow);
}

    .input-box-yellow:focus, .input-box-yellow:not(.no-hover-input-box):hover {
        background-color: var(--white);
    }

    .input-box-yellow .no-hover-input-box:hover {
        background-color: var(--yellow);
    }


.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 25px
}

.input-styled {
    width: calc(100% - 36px); /* minus border and padding x2 */
    padding: 16px 16px 8px;
    font-size: 16px;
    border: 2px solid var(--siga-grey-color);
    border-radius: 25px;
    outline: none;
}

.input-styled:focus, .input-styled:hover {
    border-color: var(--yellow);
}

.input-floating-label {
    position: absolute;
    top: 6px;
    left: 18px;
    font-size: 12px;
    color: var(--black);
    opacity: 0.3;
    pointer-events: none;
}

.error-text {
    color: var(--red);
    display: none;
    font-size: 11px;
    text-indent: 15px;
    text-align: left;
    margin-top: 2px;
}

.sperator-line {
    border-top: 2px solid var(--lightgrey);
    margin: 20px 0;
}

/* Button container in profile edit view */
.button-container {
    width: 100%;
    text-align: center;
}

/* Update changes button */
.update-changes-button {
    margin-bottom: 16px;
}


/* delete button */
.delete-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border-radius: 25px;
    border: 3px solid transparent;
    transition: border-color 0.5s ease;
    background-color: transparent;
    cursor: pointer;
}

    .delete-button:hover {
        border-color: var(--red);
    }

.delete-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delete-icon {
    -webkit-mask: url('/static/webpage/image/Trashbin-Red.svg') no-repeat center;
    -webkit-mask-size: contain;
    mask: url('/static/webpage/image/Trashbin-Red.svg') no-repeat center;
    mask-size: contain;
    background-color: var(--red);
    width: 24px;
    height: 24px;
    transition: background-color 0.3s ease;
}

#delete-button-text {
    color: var(--red);
    font-size: 16px;
    font-weight: bold;
}


/* Button design */
.button-black {
    background-color: var(--black);
    color: var(--white);
    cursor: pointer;
    border: 3px solid transparent;
    min-height: 50px;
    min-width: fit-content;
    font-size: 16px;
    border-radius: 25px;
    transition: background-color 0.5s ease, color 0.5s ease, opacity 0.5s ease;
    align-content: center;
}

.button-black:hover, .button-black.simulate-hover {
    border: solid 3px;
    background-color: var(--white);
    color: var(--black);
    border-color: var(--black);
}

.button-grey {
    background-color: var(--lightgrey);
    color: var(--black);
    cursor: pointer;
    border: 3px solid transparent;
    min-height: 50px;
    min-width: fit-content;
    font-size: 16px;
    border-radius: 25px;
    transition: background-color 0.5s ease, color 0.5s ease;
    align-content: center;
}

.button-grey:hover, .button-grey.simulate-hover {
    border: solid 3px;
    background-color: var(--white);
    color: var(--black);
    border-color: var(--lightgrey);
}

.button-white {
    background-color: var(--white);
    color: var(--black);
    cursor: pointer;
    border: 3px solid transparent;
    min-height: 50px;
    min-width: fit-content;
    font-size: 16px;
    border-radius: 25px;
    transition: background-color 0.5s ease, color 0.5s ease;
    align-content: center;
}

    .button-white:hover, .button-white.simulate-hover {
        border: solid 3px;
        background-color: var(--lightgrey);
        color: var(--black);
        border-color: var(--black);
    }

.button-yellow {
    background-color: var(--yellow);
    color: var(--black);
    cursor: pointer;
    border: 3px solid transparent;
    min-height: 40px;
    min-width: fit-content;
    font-size: 16px;
    border-radius: 25px;
    transition: background-color 0.5s ease, color 0.5s ease;
    align-content: center;
}

.button-yellow:hover, .button-yellow.simulate-hover {
    border: solid 3px;
    border-color: var(--yellow);
    background-color: var(--white);
}

.button-red {
    background-color: var(--red);
    color: var(--black);
    cursor: pointer;
    border: 3px solid transparent;
    min-height: 40px;
    min-width: fit-content;
    font-size: 16px;
    border-radius: 25px;
    transition: background-color 0.5s ease, color 0.5s ease;
    align-content: center;
}

.button-red:hover, .button-red.simulate-hover {
    border: solid 3px;
    border-color: var(--red);
    background-color: var(--white);
}

.button-red-white {
    background-color: var(--siga-white-color);
    color: var(--red);
    cursor: pointer;
    border: 3px solid transparent;
    min-height: 50px;
    font-size: 16px;
    border-radius: 25px;
    transition: background-color 0.5s ease, color 0.5s ease;
    align-content: center;
    padding: 3px;
}

.button-red-white:hover {
    border: solid 3px;
    background-color: var(--siga-white-color);
    color: var(--red);
    border-color: var(--red);
}

.button-underlined {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

button.animated-button {
    padding: 0 1rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

button.animated-button:after {
    position: absolute;
    content: "";
    width: 10%;
    height: 100%;
    background-image: radial-gradient(circle, var(--black) 10%, transparent 10%);
    transform: scale(75, 75);
    opacity: 0;
    transition: transform 1s ease, opacity 2s ease;
}

button.animated-button:active:after, button.animated-button.simulate-active:after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

button.animated-button.button-yellow:after {
    background-image: radial-gradient(circle, var(--yellow) 10%, transparent 10%);
}

/* Text Utility Classes */
.text-right {
    text-align: right;
}

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

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

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

.text-no-overflow {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Image Utility Classes */
.image-div {
    background: var(--yellow);
    position: relative;
}

.img-centered {
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.img-fit {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.float-right {
    float: right;
}

.logo-image {
    width: 50px;
    height: auto;
}

.img-grayscale {
    filter: grayscale(100%)
}

/* Positions */
.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

/* Margin and Padding Utility Classes */
.mt-auto {
    margin-top: auto;
}

.mt-5px {
    margin-top: 5px;
}

.mt-20px {
    margin-top: 20px;
}

.mt-25px {
    margin-top: 25px;
}

.mt-50px {
    margin-top: 50px;
}

.ml-20px {
    margin-left: 20px
}

.mb-5px {
    margin-bottom: 5px;
}

.mb-10px {
    margin-bottom: 10px;
}

.mb-20px {
    margin-bottom: 20px;
}

.mb-75px {
    margin-bottom: 75px;
}

.m-20px {
    margin: 20px
}

.my-5px {
    margin: 5px 0;
}

.my-20px {
    margin: 20px 0;
}

.my-10px {
    margin: 10px 0;
}

.mt-10px {
    margin-top: 10px;
}

.px-40px {
    padding: 0 40px;
}

.px-30px {
    padding: 0 30px;
}

.px-20px {
    padding: 0 20px;
}

.p-10px {
    padding: 10px;
}

.p-20px {
    padding: 20px;
}

/* Margin utility classes */
.mr-20px {
    margin-right: 20px;
}

.mr-40px {
    margin-right: 40px;
}

/* Font Size Utility Classes */
.fs-36 {
    font-size: 36px;
}

.fs-30 {
    font-size: 30px;
}

.fs-24 {
    font-size: 24px;
}

.fs-16 {
    font-size: 16px;
}

/* Flex Utility Classes */
.flex-column {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

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

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.flex-grow {
    flex-grow: 1;
}

.gap-10px {
    gap: 10px
}

/* ccontent positioning */

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

/* Backgroundcolor */
.bg-lightgrey {
    background-color: var(--lightgrey);
}

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

.bg-white {
    background-color:  var(--white);
}

.bg-red {
    background-color: var(--red);
}

.text-red {
    color: var(--red);
}

.text-blue {
    color: var(--blue);
}

.text-underlined {
    text-decoration: underline;
}

.bg-medium-grey {
    background-color: var(--bitloc-medium-grey);
}

.text-medium-grey {
    color: var(--bitloc-medium-grey);
}


/* Font size */

.fs-26 {
    font-size: 26px;
}

.fs-20 {
    font-size: 20px;
}

.fs-14 {
    font-size: 14px;
}

.fs-12 {
    font-size: 12px;
}

/* Opacity */

.opacity-30 {
    opacity: 30%;
}

.opacity-0 {
    opacity: 0%;
}

.disabled {
    opacity: 20%;
    pointer-events: none;
    cursor: default;
}

/* Error message */
.error-message {
    background-color: var(--red); /* Light red background for a warning effect */
    border-radius: 25px;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.error-message h4 {
    font-weight: bold;
    margin-bottom: 10px;
}

.error-message p {
    line-height: 1.5;
}

.hidden {
    display: none !important;
}


/* Pop-up */

.pop-up-modal-container {
    position: absolute;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.pop-up-modal {
    width: 40%;
    max-width: 500px;
    min-width: 320px;
    height: auto;
    padding: 25px;
    border-radius: 25px;
    background-color: var(--white);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
}

.popup-button-container {
    display: flex;
    flex-direction: row;
    margin-top: auto;
}

.popup-button-container .popup-button {
    flex: 1;
    margin: 0 5px;
}

.pop-up-title,
.pop-up-text {
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    max-width: 100%;
    margin-bottom: 10px
}

.no-hover.project {
    pointer-events: none;
    cursor: default;
}

/* border styles */

.border-radius-25 {
    border-radius: 25px;
}

.border-radius-4 {
    border-radius: 4px;
}

/* Search-Select */
.search-select-toggle {
    background-color: var(--siga-white-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    width: 100% !important;
}

.search-select-label {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 2px;
}

.search-select-value {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
}

.select-arrow {
    position: relative;
    top: -4px;
    font-size: 18px;
}

.search-select-dropdown {
    display: none;
    background-color: var(--siga-grey-color);
    border-radius: 25px;
    padding: 16px;
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 32px);
    z-index: 999;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.search-wrapper {
    position: relative;
}

.search-select-search {
    width: calc(100% - 52px); /* minus padding */
    padding: 10px 40px 10px 12px;
    border-radius: 25px;
    border: none;
    font-size: 16px;
    background: var(--siga-white-color);
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.search-select-list {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.search-select-list::-webkit-scrollbar {
    display: none;
}

.search-select-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
}

.search-select-list li:hover {
    background-color: var(--siga-dark-grey-color);
}

.search-select-list img {
    width: 24px;
    height: 16px;
    background-color: transparent;
    margin-right: 12px;
    object-fit: contain;
    border-radius: 2px;
}

.demo-label {
    background-color: var(--green);
    border-radius: 25px;
    padding: 5px 10px;
    top: 10px;
    right: 10px;
}

