@font-face {
    font-family: 'Raleway';
    src: url('../fonts/Raleway-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --yellow-color: #FFC300;
    --border-radius: 6px;
    --main-button-height: 60px;
    --secondary-button-height: 36px;
    --background-color: #fff;
    --details-color: #f2f2f2;
    --text-color: #15294c;
    --placeholder-color: #6b7280;
    --highlight-color: #38b6ff;
    --blue-color: #15294c;
    --success-color: #1ca725;
    --error-color: #a32020;
    --input-color: #808080;
    --google-color: #15294c;
    --on-highlight-text: #15294c;
    --secondary-text-color: #808080;
    --toggle-theme-a: #727272;
    --toggle-theme-b: #535353;
    --toggle-theme-c: #343434;
    --toggle-theme-icon: #ffffff;
    --z-base: 1;
    --z-sticky: 10;
    --z-overlay: 50;
    --z-modal: 100;
    --z-underlay: -1;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --background-color: #070f1d;
        --details-color: #0a1527;
        --text-color: #fff;
        --placeholder-color: #e4e4e7;
        --input-color: #38b6ff;
        --google-color: #1e3a5f;
        --on-highlight-text: #ffffff;
        --secondary-text-color: #e4e4e7;
        --error-color: #fca5a5;
        --toggle-theme-a: #34a6e9;
        --toggle-theme-b: #007abf;
        --toggle-theme-c: #0f2852;
        --toggle-theme-icon: #ffffff;
    }
}

html[data-theme="dark"] {
    --background-color: #070f1d;
    --details-color: #0a1527;
    --text-color: #fff;
    --placeholder-color: #e4e4e7;
    --input-color: #38b6ff;
    --google-color: #1e3a5f;
    --on-highlight-text: #ffffff;
    --secondary-text-color: #e4e4e7;
    --error-color: #fca5a5;
    --toggle-theme-a: #34a6e9;
    --toggle-theme-b: #007abf;
    --toggle-theme-c: #0f2852;
    --toggle-theme-icon: #ffffff;
}

.visually_hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.highlighted_text {
    color: var(--highlight-color);
    font-weight: 400;
}

#style_section_toggle_theme_button {
    position: absolute;
    top: 50%;
    left: max(2rem, env(safe-area-inset-left));
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 0.625rem;
    width: 2rem;
    height: auto;
    min-height: 8.25rem;
    border-radius: 1rem;
    z-index: var(--z-sticky);
}

#style_section_toggle_theme_button > * {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 2.5rem;
    opacity: 0.86;
    cursor: pointer;
    filter: brightness(0.78);
    box-shadow: none;
    transition: opacity 0.2s ease-in-out, filter 0.2s ease-in-out;
}

#style_section_toggle_theme_button > .toggle_theme_button_input:not([aria-current="true"]):hover {
    filter: brightness(0.9);
    opacity: 0.94;
}

#style_section_toggle_theme_button > button.toggle_theme_button_input[aria-current="true"]:hover {
    opacity: 1;
    filter: brightness(1.08);
}

#style_section_toggle_theme_button .toggle_theme_button_input:nth-child(1) {
    animation: fade_in_toggle_theme_button_auth 2s ease-in-out;
    background-color: var(--toggle-theme-a);
}

#style_section_toggle_theme_button .toggle_theme_button_input:nth-child(2) {
    animation: fade_in_toggle_theme_button_auth 2.2s ease-in-out;
    background-color: var(--toggle-theme-b);
}

#style_section_toggle_theme_button .toggle_theme_button_input:nth-child(3) {
    animation: fade_in_toggle_theme_button_auth 2.4s ease-in-out;
    background-color: var(--toggle-theme-c);
}

#style_section_toggle_theme_button > button.toggle_theme_button_input[aria-current="true"] {
    opacity: 1;
    filter: brightness(1.05);
}

.toggle_theme_button_input > img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    display: block;
}

.toggle_theme_button_input:focus-visible {
    outline: 2px solid var(--highlight-color);
    outline-offset: 2px;
}

@media (max-width: 1024px) {
    #style_section_toggle_theme_button {
        position: static;
        flex-direction: row;
        top: auto;
        left: auto;
        right: auto;
        transform: none;
        width: auto;
        min-height: unset;
        padding: 0.25rem 0.5rem;
        gap: 0.5rem;
    }
}

@media (max-width: 767px) {
    #style_section_toggle_theme_button {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
