::selection
{
    color: #fff;
    background: #000;
}

::placeholder
{
    color: #000;
    opacity: 0.5;
}

@font-face
{
    font-family: BarlowCondensedLight;
    src: url(../ttf/BarlowCondensed-Light.ttf);
}

@font-face
{
    font-family: BarlowCondensedMedium;
    src: url(../ttf/BarlowCondensed-Medium.ttf);
}

:root
{
    --xsmallFontSize: 0.95rem;
    --smallFontSize: clamp(1rem, 1.3vw, 1.3rem);
    --middleFontSize: clamp(2rem, 4vw, 4rem);
    --bigFontSize: clamp(3rem, 6vw, 6rem);
    
    --black: #000;
    --white: #fff;
    --orange: #ffc83a;
    --displayMedium: BarlowCondensedMedium, sans-serif;
    --displayLight: BarlowCondensedLight, sans-serif;
    --systemFont: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

    --borderRadius: 10px;
    --blur: 20px;
}

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--displayLight);
    font-size: var(--xsmallFontSize);
    color: var(--black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body
{
    background-color: var(--white);
}

body > div#mainContent
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
}

a
{
    text-decoration: none;
    font-size: calc(var(--xsmallFontSize) + 0.3rem);
}

a:hover, a:focus
{
    color: var(--orange);
}

a[href^="https://www.biorelax.com"]::after
{
    content: "";
    background-image: url(../svg/arrow-right-up-box-fill.svg);
    background-size: 16px auto;
    background-repeat: no-repeat;
    background-position: 2px center;
    padding-right: 20px;
}

h1, h2, h3, h4, h5, h6
{
    font-weight: normal;
}


/* https://stackoverflow.com/questions/25194631/is-it-possible-to-always-show-up-down-arrows-for-input-number */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {  
   opacity: 1;
}

input[type=checkbox], 
input[type=button],
input[type=submit], 
input[type=reset],
button
{
    outline: 2px solid var(--orange);
    border: 1px solid var(--white);
    padding: 0.45rem 0.85rem;
    background-color: var(--orange);
    cursor: pointer;
    border-radius: calc(var(--borderRadius) / 2);
    transition: background-color 0.35s ease;
    font-size: var(--smallFontSize);
    font-family: var(--displayLight);
}

input[type=button]:hover,
input[type=submit]:hover, 
input[type=reset]:hover,
button:hover
{
    background-color: var(--white);
}


input[type=email], input[type=password], input[type=text], input[type=number], input[type=tel], textarea, select
{
    padding: 0.5rem;
    padding-bottom: 0.65rem;
    transition: outline 0.5s ease;
    outline: 3px solid #fff;
    border: 1px solid #b6b6b6;
    border-radius: 4px;
    background-color: #fff;
    min-width: 220px;
    font-size: var(--smallFontSize);
}

label
{
    font-size: var(--smallFontSize);
    padding-right: 0.5rem;
}

textarea
{
    min-height: 200px;
    resize: vertical;
}

select > option
{
    font-size: var(--smallFontSize);
}

select > option:nth-child(even)
{
    background-color: #eeeeee;
}

input[type=checkbox]:focus:not(.inputError), 
input[type=email]:focus:not(.inputError), 
input[type=password]:focus:not(.inputError),
input[type=text]:focus:not(.inputError),
input[type=tel]:focus:not(.inputError),
input[type=number]:focus:not(.inputError),
textarea:focus:not(.inputError),
select:focus:not(.inputError)
{
    outline-color: var(--orange);
}

input[type=checkbox]
{
    width: 20px;
    height: 20px;
    vertical-align: sub;
    margin-right: 0.5rem;
}

input[type=radio]
{
    width: 15px;
    height: 15px;
    vertical-align: middle;
    margin-right: 0.2rem;
}

input.inputError, textarea.inputError, select.inputError
{
    outline-color: #f00;
    box-shadow: 0 0 10px #f00;
}




@media only screen and (max-width: 500px)
{
    :root
    {
        --xsmallFontSize: 1rem;
        --smallFontSize: 1.3rem;
        --middleFontSize: clamp(2.5rem, 4vw, 4rem);
    }

    input[type=email], input[type=password], input[type=text], input[type=number], input[type=tel], textarea, select
    {
        min-width: auto;
    }

    body > div#mainContent
    {
        padding: 1rem;
    }
}
