@font-face {
    font-family: SwedenSansRegular;
    font-weight: 500;
    src: url(/static/fonts/SwedenSansRegular.otf) format("opentype");
}

@font-face {
    font-family: Roboto;
    font-weight: 100;
    src: url(/static/fonts/Roboto-Thin.ttf) format("ttf");
}

@font-face {
    font-family: Roboto;
    font-weight: 300;
    src: url(/static/fonts/Roboto-Light.ttf) format("ttf");
}

@font-face {
    font-family: Roboto;
    font-weight: 400;
    src: url(/static/fonts/Roboto-Regular.ttf) format("ttf");
}

@font-face {
    font-family: Roboto;
    font-weight: 500;
    src: url(/static/fonts/Roboto-Medium.ttf) format("ttf");
}

@font-face {
    font-family: Roboto;
    font-weight: 700;
    src: url(/static/fonts/Roboto-Bold.ttf) format("ttf");
}

body {
    font-family: SwedenSansRegular, sans-serif;
    display: flex;
    height: 100%;
}

.container {
    font-family: SwedenSansRegular, sans-serif;
    display: flex;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: SwedenSansRegular, sans-serif;
}

p, ul, ol, li {
    font-family: SwedenSansRegular, sans-serif;
}

html, body {
    overflow: hidden;
    margin: 0px;
}

.server-error-container {
    background-color: #f87171;
    border-radius: 0.375rem;
}

.client-error-container {
    background-color: #fbcf9a;
    border-radius: 0.375rem;
}

.error {
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 1rem;
    color: white;
}

.error-status {
    display: flex;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    margin-right: 0.75rem;
    border-radius: 10px;
}

.server-error-status {
    background-color: #f87171;
}

.client-error-status {
    background-color: #fdd099;
}

.error-message {
    font-weight: 600;
    margin-right: 0.5rem;
    flex: 1;
    text-align: left;
    font-size: small;
}

.error-close-icon {
    transition: all 0.2s ease-in-out;
    opacity: 0.75;
    height: 1rem;
    width: 1rem;
    fill: currentColor;
}

.error-close-icon:hover {
    opacity: 1;
    transform: translateY(-0.025rem) scale(1.1);
}

.spinner{
    display:none;
    max-width: 24px;
    max-height: 24px;
}

.htmx-request .spinner,
.htmx-request.spinner{
    display:inline-block;
}

button {
    background-color: #4f637e;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    transform: scale(1.01);
}

button:active {
    transform: scale(0.99);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}