@import '/_content/Microsoft.FluentUI.AspNetCore.Components/css/reboot.css';

body {
    --body-font: "Segoe UI Variable", "Segoe UI", sans-serif;
    font-family: var(--body-font);
    font-size: var(--type-ramp-base-font-size);
    line-height: var(--type-ramp-base-line-height);
    margin: 0;
}

.main {
    color: var(--neutral-foreground-rest);
    align-items: stretch !important;
}

.body-content {
    align-self: stretch;
    display: contents;
}

.footer-container {
    width: 100%;
    max-width: 800px; /* Samma maxbredd som .content */
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%); /* Ser till att den centreras korrekt */
    z-index: 100; /* Håller bilden över .content */
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none; /* Gör att musen "går igenom" den transparenta bilden */
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
    margin: 10vh auto;
    padding: 20px;
    box-sizing: border-box;
    position: relative; /* Håller innehållet på rätt plats */
    min-height: 200vh; /* Skapar extra höjd så att det finns plats att scrolla */
    z-index: 1; /* Lägger innehållet under bilden */
}



.alert {
    border: 1px dashed var(--accent-fill-rest);
    padding: 5px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    margin: 20px 0;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFD... no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    }

    .blazor-error-boundary::before {
    content: "An error has occurred. ";
    }

    .image-container {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6), 0 0 45px rgba(0, 255, 255, 0.4);
    border-radius: 10px;
    width: 100%;
    transition: box-shadow 0.3s ease-in-out;
}

.image-container:hover {
    box-shadow: 0 0 20px rgba(0, 255, 255, 1), 0 0 40px rgba(0, 255, 255, 0.8), 0 0 60px rgba(0, 255, 255, 0.6);
}

img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.text-container {
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
    color: #0ff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8), 0 0 10px rgba(0, 255, 255, 0.6), 0 0 20px rgba(0, 255, 255, 0.4);
    transition: text-shadow 0.3s ease-in-out;
}

.text-container:hover {
    text-shadow: 0 0 10px rgba(0, 255, 255, 1), 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6);
}

.neon-button {
    display: block;
    padding: 12px 24px;
    margin: 30px auto 0 auto;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: white; /* Vit text */
    background: #0077cc; /* Djup blå färg */
    border: 2px solid #005fa3; /* Mörkare blå kant */
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Mild skugga för lyft effekt */
}

.neon-button:hover {
    background: #005fa3; /* Lite mörkare blå vid hover */
    border-color: #00487d;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.neon-button:active {
    background: #00487d; /* Ännu mörkare blå vid klick */
    border-color: #00355a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
}

.fluent-button {
    display: block;
    padding: 12px 24px;
    margin: 30px auto 0 auto;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: white; /* Vit text */
    background: #0077cc; /* Djup blå färg */
    border: 2px solid #005fa3; /* Mörkare blå kant */
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Mild skugga för lyft effekt */
}

.fluent-button:hover {
    background: #005fa3; /* Lite mörkare blå vid hover */
    border-color: #00487d;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.fluent-button:active {
    background: #00487d; /* Ännu mörkare blå vid klick */
    border-color: #00355a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
}


/* Responsiv design */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
        padding: 0 10px;
    }

    .content {
        max-width: 100%;
        margin-top: 5vh;
        padding: 15px;
    }
    h1 {
        font-size: 16px;
        font-weight: bold;/* Minska för surfplattor */
    }
    .text-container {
        font-size: 16px;
    }

    .neon-button {
        font-size: 16px;
        padding: 10px 20px;
        width: 90%;
    }
}

@media screen and (min-width: 1024px) {
    .content {
        max-width: 800px;
        margin-top: 10vh;


    }
    h1 {
        font-size: 24px; /* Minska för mobil */
    }
    .text-container {
        font-size: 20px;
    }

    .neon-button {
        font-size: 18px;
        padding: 12px 24px;
        width: auto;
    }
}

.deltagare-grid-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 16px;
    box-sizing: border-box;
    background-color: white; /* valfritt, för att förhindra transparent bakgrund */
    z-index: 0; /* under ev. navbar eller overlays */
}

.deltagare-grid-container fluent-data-grid {
    height: 100%;
    width: 100%;
}