﻿@media (max-width: 480px) {
    .result-card {
        width: 100%
    }
    .discipline-header-footer{
        width: 100%
    }

}

a:link {
    text-decoration: none;
}

.loadScreen {
    height: 100vh;
    width: 100vw;
    z-index: 9999;
    position: absolute;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    top: 0;
    left: 0;
}

.toast-container {
    height: 94dvh;
    width: 100vw;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1em;
}

.header {
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    text-align: initial;
}

.result-card {
    cursor: pointer;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    text-align: initial;
}

    .result-card:hover {
        background-color: aliceblue;
    }

.project-card{
    cursor: pointer;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    text-align: initial;
}

.project-card-hover:hover {
        background-color: aliceblue;
        }

.model-result-card {
    cursor: pointer;
    text-align: initial;
}

    .model-result-card:hover {
        background-color: aliceblue;
    }

.discipline-card-container {
    display: grid;
    grid-template: 1fr 1fr / 1fr 1fr;
    /*grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));*/
    gap: 1em;
    /*padding: 1em;*/
    /*max-width: 60vw;*/
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}
    @media (max-width: 600px) {
        .discipline-card-container {
            grid-template: none; /* Fjerner grid-template definisjonen */
            max-width: none; /* Fjerner max-width */
        }
    }


.discipline-card {
    border: 2px solid;
    border-radius: 10px;
    cursor: pointer;
}
    
    .discipline-card:hover {
        background-color: aliceblue;  
    }

.discipline-card-text{
    font-size: 2em;
    align-items: center;
    /*justify-content: center;*/
}
    @media (max-width: 600px) {
        .discipline-card-text { 
            font-size: 1.2em;
        }
    }

.card-container:hover {
    transform: scale(0.9);
}

.discipline-footer {
    display: flex;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    text-align: initial;
}
.discipline-footer-description {
    margin-top: 8px;
    display: flex;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    text-align: initial;
}
    @media (max-width: 600px){
        .discipline-footer-description {
            margin-top: 0;
            
        }
    }

.discipline-header {
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    text-align: initial;
}

.disciplineSuccessBtns {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 0px;
}

.textColor {
    color: #707070;
}

.bottomToast {
    position: fixed;
    bottom: 1rem;
    left: 50vw;
    transform: translateX(-50%);
    text-decoration: none;
}

.wizard-setup-header {
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    text-align: initial;
}

.wizard-setup-card-container {
    display: grid;
    grid-template: 1fr 1fr / 1fr 1fr;
    /*grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));*/
    gap: 1em;
    /*padding: 1em;*/
    /*max-width: 60vw;*/
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 600px) {
    .wizard-setup-card-container {
        grid-template: none; /* Fjerner grid-template definisjonen */
        max-width: none; /* Fjerner max-width */
    }
}

.wizard-setup-card {
    border: 2px solid;
    border-radius: 10px;
    cursor: pointer;
}

    .wizard-setup-card:hover {
        background-color: aliceblue;
    }

.wizard-setup-footer {
    display: flex;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    text-align: initial;
}

.wizard-setup-footer-description {
    margin-top: 8px;
    display: flex;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    text-align: initial;
}

@media (max-width: 600px) {
    .wizard-setup-footer-description {
        margin-top: 0;
    }
}

.wizard-setup-card-text {
    font-size: 2em;
    align-items: center;
    /*justify-content: center;*/
}

@media (max-width: 600px) {
    .wizard-setup-card-text {
        font-size: 1.2em;
    }
}

.infoAndThumbnail {
    display: grid;
    gap: 0px;
    row-gap: 0px;
}

/* For screens wider than or equal to 768px */
@media (min-width: 768px) {
    .infoAndThumbnail {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
    }
}

/* For screens narrower than 768px */
@media (max-width: 767px) {
    .infoAndThumbnail {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}

.input-group .dropdown-toggle {
    border-radius: 0; /* kvadratiske hjørner */
    border-color: #ced4da; /* samme farge som Bootstrap input-border */
}

    /* Fjern blå «glow» på fokus dersom du ikke ønsker den */
    .input-group .dropdown-toggle:focus {
        box-shadow: none;
    }

/* Standard: desktop/tablet */
#search-inputgroup {
    display: flex;
    flex-direction: row;
    gap: 0;
}

#filterContainer {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 1em;
}

#header-logo {
    height: 15vh;
}
    /* Mobil: stack og sentrer */
@media (max-width: 576px) {
    #search-inputgroup {
        flex-direction: column;
        gap: 0.5em;
    }

    #header-logo {
        height: 7vh;
    }
}

.job-color {
    border: 2px solid rgb(0, 121, 104);
    background-color: rgba(0, 121, 104, 0.2);
}

.linked-color {
    border: 2px solid rgb(0, 87, 121);
    background-color: rgba(0, 37, 121, 0.2);
}

.expand-control {
    margin: 2px 0px 1px 0px;
    font-size: 0.75rem;
    text-align: center;
}

.expand-control.top {
    margin: 0 0 0px 0;
}

.expand-control.bottom {
    margin: 16px 0 0 0;
}

.relation-arrow {
    margin: 4px 0;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
}

.expand-control i, .relation-arrow i {
    font-size: 1rem;
}

.expand-anchor {
    text-align: center;
}

.cursor-pointer {
    cursor: pointer;
}

.crisis-blink {
    text-align: center;
    font-size: 1rem;
    color: #dc3545;
    animation: crisisFlash 0.15s linear 0s 10 alternate;
}

    .crisis-blink i {
        color: #dc3545;
    }

@keyframes crisisFlash {
    from {
        opacity: 1;
    }

    to {
        opacity: 0.2;
    }
}

.btn-info-full {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: none;
    padding: 0;
    transition: background-color 0.3s ease;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

    .btn-info-full:hover {
        background-color: rgba(255, 255, 255, 0.2);
        cursor: pointer;
    }

    .btn-info-full i {
        font-size: 1em;
        line-height: 1;
    }

.footer-actions {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
    z-index: 10;
    background-color:white;
}

#main-container {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 72px);
}


.logo-wrapper {
    position: relative;
    display: inline-block; /* eller blokknivå, avhengig av layout */
}

    .logo-wrapper img#landingpagelogo {
        display: block;
        max-width: 100%;
        height: auto;
    }

    /* Badge: øverst til venstre hjørne, semi-transparent */
    .logo-wrapper .dev-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        background: rgba(200, 0, 0, 0.85);
        color: #fff;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 0.02em;
        border-radius: 4px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        pointer-events: none; /* ikke klikkbar */
        z-index: 2;
    }

    /* Eventuelt vannmerke diagonalt over logoen */
    .logo-wrapper::after {
        content: "DEVELOPMENT MODE";
        position: absolute;
        inset: 0;
        display: block;
        font-size: clamp(16px, 3vw, 24px);
        font-weight: 700;
        color: rgba(200,0,0,0.18);
        text-align: center;
        line-height: 1;
        transform: rotate(-18deg);
        pointer-events: none;
        z-index: 1;
        /* Legg på bare i dev: toggles via wrapper class */
        opacity: 0;
    }

    .logo-wrapper.dev::after {
        opacity: 1;
    }


