/**
 * RAVIDEX base styles
 */

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    direction: rtl;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--rv-color-background);
    color: var(--rv-color-text);
    text-align: right;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition:
        color var(--rv-transition-fast),
        background-color var(--rv-transition-fast),
        border-color var(--rv-transition-fast),
        transform var(--rv-transition-fast);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.rv-container {
    width: min(
        var(--rv-container-width),
        calc(100% - (2 * var(--rv-container-gutter)))
    );
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 8px;
    right: 8px;
    width: auto;
    height: auto;
    padding: 12px 16px;
    overflow: visible;
    clip: auto;
    background: var(--rv-color-white);
    color: var(--rv-color-primary);
    white-space: normal;
}