﻿@font-face {
    font-family: 'Excon';
    src: url('fonts/Excon-Variable.woff') format('woff'), url('fonts/Excon.ttf') format('truetype');
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', 'Helvetica', 'Arial', sans-serif;
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    background-color: #1a1a1a;
}

#logo-container {
    display: flex;
    flex-direction: column; /* Change to column layout */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    gap: 20px; /* Add space between elements */
}

#logo {
    width: 250px;
    height: 250px;
    margin-bottom: 0; /* Remove any horizontal margin */
}

    #logo-container img {
        width: 100px;
        height: 100px;
        margin-right: 20px;
    }

#logo-text {
    color: #fff;
    font-size: 2.5em;
    font-family: Arial, sans-serif;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

#progress-container {
    width: 100%;
    width: 600px; /* Adjusted to be more proportional */
    height: 10px;
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
}

#progress-text {
    color: #fff;
    font-family: Arial, sans-serif;
    margin-top: 10px;
    text-align: center; /* Ensure text is centered */
}

#progress-bar {
    width: 0;
    height: 100%;
    background-color: #9a4ee2;
    transition: width 0.3s ease;
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    /*height: 100vh;*/
}
.hub-spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90vh;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: #1e857b;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

.loader {
    display: flex;
    align-items: flex-end;
    position: relative;
}

.book {
    width: 80px;
    height: 100px;
    position: relative;
    margin: 0 10px;
    background-color: #4b0082;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(75, 0, 130, 0.7);
    animation: float 3s ease-in-out infinite;
}

    .book::before {
        content: '';
        position: absolute;
        top: 5px;
        left: 10px;
        right: 10px;
        height: 10px;
        border-radius: 5px;
        background-color: rgba(255, 255, 255, 0.5);
    }

.book1 {
    animation-delay: -0.6s;
}

.book2 {
    animation-delay: -0.3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.hologram {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, #4b0082, transparent 70%);
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

.book::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.3) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: glare 3s infinite;
}

.mud-layout {
    background: #fafafa;
}

@keyframes glare {
    0% {
        background-position: -100% -100%;
    }

    100% {
        background-position: 200% 200%;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
