* {
    box-sizing: border-box;
}

html {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    margin: 0;
}

/* ---------- devCSM portfolio layout (ported from 2021 site) ---------- */

.header {
    background-size: cover;
    background-color: #424756;
    color: #ffffff;
    padding: 15px;
}

.footer {
    background-color: #424756;
    color: #ffffff;
    padding: 15px;
}

.footer a {
    color: #9ecbff;
}

.row {
    text-align: center;
    vertical-align: middle;
    padding: 15px;
}

.row::after {
    content: "";
    clear: both;
    display: table;
}

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

.gray-background {
    background-color: lightgray;
    border-style: solid;
    border-width: thick;
    border-color: white;
}

.site-title {
    text-align: center;
}

/* For mobile phones: */
[class*="col-"] {
    float: left;
    padding: 15px;
    width: 100%;
}

.h1-flex, .desc-title, .title-text {
    font-size: 8vw;
}

.h2-flex {
    font-size: 5vw;
}

.desc-text {
    font-size: 3vw;
}

ul {
    font-size: 3vw;
    text-align: left;
}

@media only screen and (min-width: 600px) {
    /* For tablets: */
    .col-s-1 { width: 8.33%; }
    .col-s-2 { width: 16.66%; }
    .col-s-3 { width: 25%; }
    .col-s-4 { width: 33.33%; }
    .col-s-5 { width: 41.66%; }
    .col-s-6 { width: 50%; }
    .col-s-7 { width: 58.33%; }
    .col-s-8 { width: 66.66%; }
    .col-s-9 { width: 75%; }
    .col-s-10 { width: 83.33%; }
    .col-s-11 { width: 91.66%; }
    .col-s-12 { width: 100%; }
}

@media only screen and (min-width: 768px) {
    /* For desktop: */
    .col-1 { width: 8.33%; }
    .col-2 { width: 16.66%; }
    .col-3 { width: 25%; }
    .col-4 { width: 33.33%; }
    .col-5 { width: 41.66%; }
    .col-6 { width: 50%; }
    .col-7 { width: 58.33%; }
    .col-8 { width: 66.66%; }
    .col-9 { width: 75%; }
    .col-10 { width: 83.33%; }
    .col-11 { width: 91.66%; }
    .col-12 { width: 100%; }

    .title-text { font-size: 5vw; }
    .h1-flex { font-size: 3vw; }
    .h2-flex { font-size: 2vw; }
    .desc-text { font-size: 1.1vw; }
    .desc-title { font-size: 2vw; }
    ul { font-size: 1.5vw; }
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* ---------- Blazor WASM loading + error UI (framework defaults) ---------- */

.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: #424756;
    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");
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
