html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

@font-face {
    font-family: quicksand;
    src: url("src/quicksand.ttf");
}

@font-face {
    font-family: nunito;
    src: url("src/Nunito-Regular.ttf");
}

:root {
    -webkit-tap-highlight-color: transparent;
    --main-color: #fc7d8f;

    --bg-color: #f4f4ff; /* #f4f4ff */
    --font-color: black;

    --ctn-bg: #e5e5e5;
    --ctn-shadow: 0 2px 3px 1px #c38987;

    --inp-bg: white;
    --inp-bd: #cdcdcd;
    --inp-focus-bd: #afafaf;
    --inp-hover-bg: #f7f7f7;
    --inp-focus-bg: #f7f7f7;

    --btm-color: #c2d6eb;
    --icon-bg: #2b2b43;
    --left-btns-color: #363655;
    --ctn-bd: #2b2b43;
    
    --subctn-color: #c1daf5;
}

[data-theme="dark"] {
    --bg-color: #161618;
    --font-color: white;

    --inp-bg: #21242a;
    --inp-hover-bg: #22262c;
    --inp-focus-bg: #25282e;
    --inp-focus-bd: #595959;
    --inp-bd: #404040;

    --ctn-shadow: 0 2px 3px 1px #6d374f;
    --ctn-bg: #16171b;
    --ctn-bd: #213752;

    --btm-color: #213752; /* #1a1a23 */
    --icon-bg: #415e81;
    --left-btns-color: #687e99;
    --subctn-color: #151a23;
}

html {
    scroll-behavior: smooth !important;
}

body {
    /*background-color: var(--bg-color);*/
    color:var(--font-color);
    font-family: nunito;
    overflow-x: hidden;
    scroll-behavior: smooth !important;
    text-align: center;
}

*:focus {
    outline:none;
}

input {
    background-color: var(--inp-bg);
    border: solid 1px var(--inp-bd);
    border-radius: 8px;
    padding: 9px 7px;
    font-size: 1em;
    color: var(--font-color);
    display: block;
    margin: 7px auto;
    transition: all .2s ease-in-out;
}
input:hover {
    background-color: var(--inp-hover-bg);
}
input:focus {
    border: solid 1px var(--inp-focus-bd);
    background-color: var(--inp-focus-bg);
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--font-color);
}

button {
    border: none;
    border-radius: 8px;
    padding: 8px 9px;
    font-size: 1em;
    color: black;
    display: block;
    margin: 7px auto;
    transition: all .2s ease-in-out;
    cursor:pointer;
    background-color: var(--main-color);
    backface-visibility: hidden;
}
button:hover {
    /*scale: 1.05;*/
    filter: brightness(0.85);
}

#btm {
    position: fixed;
    z-index: 100;
    width: max-content;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    bottom: 0;
    font-size: 1.2em;
    transition: all .2s ease-in-out;
    opacity: 0;

    background-color: var(--btm-color);
    color: var(--font-color);

    padding: 0.7em;
    text-align: center;
    width: 50%;
    margin: 0;
    border: solid 2px #232235;
    border-bottom: none;
    border-top-right-radius: 2em;
    border-top-left-radius: 2em;
}
#btm.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media screen and (max-aspect-ratio: 1/1) {
    #btm {
        width: 100%;
        border-left: none;
        border-right: none;
    }
}