﻿:root {
    --color-primary: #854747;
    --color-primary-dark: #693737;
    --color-background: #F5F1E8;
    --color-surface: #FFFDF8;
    --color-secondary: #DFD4C6;
    --color-text: #282220;
    --color-text-secondary: #6B615C;
    --font-heading: "Cormorant Garamond", Georgia, serif;
    --font-body: "Manrope", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 104px;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--color-text);
    background:
        linear-gradient(90deg, rgba(133, 71, 71, 0.07) 1px, transparent 1px) 50% 0 / min(100% - 2rem, 1180px) 100% no-repeat,
        var(--color-background);
    font-family: var(--font-body);
    text-rendering: geometricPrecision;
}

img,
svg {
    max-width: 100%;
}

::selection {
    color: var(--color-surface);
    background: var(--color-primary);
}

a {
    text-underline-offset: 0.18em;
}

button {
    font-family: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

.mud-button-root {
    border-radius: 0 !important;
    text-transform: none !important;
}

.mud-drawer-overlay {
    background-color: rgba(40, 34, 32, 0.28) !important;
    backdrop-filter: blur(2px);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Hiba történt.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--color-text-secondary);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (max-width: 1519px) {
    html {
        scroll-padding-top: 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}




