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NjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ==========================================================================
   Theme (ported from src/theme.css)
   ========================================================================== */
:root {
    --background: #455954;
    --text-primary: black;
    --text-secondary: #01ac34;
    --secondary: #dfdbd8;
    --third: #ccc;
    --my-green: #33b209;
}

[data-theme='dark'] {
    --background: #fff;
    --text-primary: black;
    --text-secondary: #01ac34;
    --secondary: #f0f0f0;
    --third: #ccc;
}

/* ==========================================================================
   Bootswatch Slate overrides (the old src/bootstrap.css was a customised Slate 5.2.3)
   ========================================================================== */
:root {
    --bs-body-color: #fff;
    --bs-body-color-rgb: 255, 255, 255;
}

.link-primary {
    color: var(--bs-link-color) !important;
}

.link-primary:hover, .link-primary:focus {
    color: var(--bs-link-hover-color) !important;
}

/* ==========================================================================
   App shell layout + background circles (ported from src/App.css)
   ========================================================================== */
html, body, #app-root, .app-shell {
    height: 100%;
}

.app-shell {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template:
        "header" minmax(50px, 10vh)
        "main" auto
        "footer" minmax(55px, 8vh) /
        auto;
    background-repeat: no-repeat;
    background-size: cover;
}

.app-shell > header {
    grid-area: header;
    background: rgba(255, 255, 255, 0.19);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99;
}

.app-shell > article {
    grid-area: main;
    overflow-y: auto;
    overflow-x: hidden;
    /* Blazor.Bootstrap's layout css pads every <article> */
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.app-shell > footer {
    grid-area: footer;
    background: rgba(255, 255, 255, 0.19);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99;
}

.logo {
    border-radius: 5px;
}

.circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -999;
    margin: 0;
    padding: 0;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.19);
    animation: circle-rise 5s linear forwards;
    backdrop-filter: blur(6px);
    bottom: -150px;
}

@keyframes circle-rise {
    0% {
        transform: translateY(0) rotate(0deg);
        border-radius: 20%;
    }

    50% {
        border-radius: 50%;
    }

    100% {
        transform: translateY(-200vh) rotate(720deg);
        border-radius: 20%;
    }
}

.reveal:has(.card) {
    animation-fill-mode: none !important;
}

.dropdown-menu {
    background-color: var(--bs-primary);
    backdrop-filter: blur(6px);
}

.card {
    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.19);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.card a, .card button, .card summary.link {
    animation: card-button 4s ease-in-out infinite alternate;
    transition: 1s cubic-bezier(0.07, 0.8, 0.16, 1);
    outline: none;
    border: none;
}

@keyframes card-button {
    from {
        border-radius: 20px 5px;
    }

    to {
        border-radius: 20px;
    }
}

.link {
    color: #fff !important;
    padding: 8px 15px;
    background: var(--my-green);
    border-radius: 40px;
    text-decoration: none;
}

.link:hover {
    color: var(--my-green);
    background-color: #fff;
}

/* Round brand icons (replaces react-social-icons) */
.social-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
}

.social-icon > span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    color: #F4F9F9;
    font-size: 26px;
    line-height: 1;
}

/* ==========================================================================
   Header (ported from Header.css)
   ========================================================================== */
.header-bar .brand-link {
    text-decoration: none;
    display: flex;
    align-items: flex-end;
}

.header-nav a {
    padding: 0 1rem;
}

.header-nav .dropdown-toggle {
    padding: 0.5rem 1rem;
    color: var(--bs-link-color);
    background: none;
    border: 0;
    box-shadow: none;
}

.header-bar img.logo {
    height: auto;
    max-width: 45px;
    margin-right: 10px;
}

.dropdown-menu {
    background-color: var(--bs-primary);
}

@media only screen and (max-width: 700px) {
    .header-bar .title {
        display: none !important;
    }
}

/* ==========================================================================
   Footer / RocketMan (ported from Footer.css)
   ========================================================================== */
.profile-social {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    animation: bounce .5s ease-in-out forwards;
    animation-delay: 2s;
}

.profile-social .social-icon {
    visibility: hidden;
    animation: socialScale 1s ease-in-out forwards;
    animation-delay: 1s;
    z-index: 99;
}

.rocketMan {
    position: absolute;
    width: 100%;
    bottom: 0;
}

.rocketMan svg {
    animation: rocketMan-fly 10s ease-in-out forwards;
    animation-iteration-count: infinite;
    transform: translateX(-40px);
}

.rocketMan .astronaut {
    cursor: help;
}

.blob {
    position: absolute;
    left: -10px;
    background-color: rgba(244, 244, 244, .4);
    width: 50px;
    height: 50px;
    mix-blend-mode: color-dodge;
    animation: bubble 5s linear infinite alternate, rocketMan-fly 10s ease-in-out forwards infinite;
    transform: translateX(-40px);
    background: linear-gradient(90deg, hsla(159, 82%, 55%, 1) 0%, hsla(206, 98%, 48%, 1) 100%);
}

.blob2 {
    left: 50px;
    top: -12px;
    background: linear-gradient(90deg, hsla(159, 82%, 55%, 1) 0%, hsla(206, 98%, 48%, 1) 100%);
}

@keyframes bubble {
    from {
        border-radius: 24% 76% 35% 65% / 27% 36% 64% 73%;
    }

    to {
        border-radius: 76% 24% 33% 67% / 68% 55% 45% 32%;
    }
}

@keyframes rocketMan-fly {
    10% {
        transform: translateX(-40px);
    }

    15%, 35% {
        transform: rotate(20deg) translateX(40px);
    }

    45% {
        transform: translateX(-40px);
    }
}

@keyframes socialScale {
    0% {
        transform: scale(0);
        visibility: visible;
    }

    100% {
        transform: scale(1);
        visibility: visible;
    }
}

@keyframes bounce {
    0% {
        gap: 4rem;
        visibility: visible;
    }

    70% {
        gap: 0rem;
    }

    100% {
        gap: 1rem;
        visibility: visible;
    }
}

/* ==========================================================================
   Home / About (ported from Home.css, About.css)
   ========================================================================== */
.about-photo {
    width: 150px;
    height: auto;
    max-width: 100%;
}

.badges img {
    width: auto;
    height: auto;
}

.card summary.link {
    display: inline-block;
    list-style: none;
    cursor: pointer;
}

.card summary.link::-webkit-details-marker {
    display: none;
}

/* ==========================================================================
   Services / Control Panel title (ported from Services.css)
   ========================================================================== */
.title .logo {
    width: 80px;
    height: auto;
    margin-right: 10px;
}

/* ==========================================================================
   Projects (ported from Projects.css)
   ========================================================================== */
.projects .card {
    height: 100%;
}

/* ==========================================================================
   GoDot guides (ported from godot.css)
   ========================================================================== */
code {
    color: #ff9800;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.2em;
    border-radius: 5px;
    font-style: italic;
}

.language-gdscript {
    display: inline-block;
    width: 100%;
}

.godot img {
    max-width: min(100%, 500px);
    max-height: 450px;
    width: auto;
    height: auto;
    margin: 20px auto;
    display: block;
}

.list-group-item {
    position: relative;
    display: block;
    padding: 0.75rem 1.25rem;
    margin-bottom: -1px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, .125);
}

.card.nav {
    position: sticky;
    top: 10px;
}

/* ==========================================================================
   Control Panel table (ported from Table.css, Panel.css)
   ========================================================================== */
table {
    table-layout: auto;
    border-collapse: collapse;
    min-width: 900px;
}

table td, table th {
    border: 1px solid black;
}

table tr td:first-child, table tr th:first-child {
    border-left: none;
}

table tr td:last-child, table tr th:last-child {
    border-right: none;
}

table tr:first-child td, table tr:first-child th {
    border-top: none;
}

table tr:last-child td, table tr:last-child th {
    border-bottom: none;
}

/* ==========================================================================
   404 page (ported from NoPage.css)
   ========================================================================== */
.page_404 {
    width: 100%;
    height: 100%;
    display: grid;
    justify-content: center;
    align-content: center;
}

.container_404 {
    transform: translate(0px, -50px);
}

.four_zero_four_bg {
    background-image: url(images/transparent404.gif);
    height: 100%;
    width: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    mix-blend-mode: lighten;
    background-color: antiquewhite;
    border-radius: 20px;
    animation: bubble 4s infinite alternate;
}

.four_zero_four_bg h1, .four_zero_four_bg h3 {
    font-size: 80px;
}

.link_404 {
    color: #fff !important;
    padding: 10px 20px;
    background: #39ac31;
    margin: 20px 0;
    display: inline-block;
    border-radius: 40px;
    text-decoration: none;
}

.header_404, .contant_box_404 {
    transform: translate(0, -50px);
}
