/**
 * This file is part of the EuroCMS project
 *
 * (c) Imri Paloja <imri.paloja@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/* Base Styles */

/* NOTE
html is set to 62.5% so that all the REM measurements throughout Skeleton
are based on 10px sizing. So basically 1.5rem = 15px :) */

*,
*:before,
*:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

::selection,
::-moz-selection {
    background-color: var(--selection-bg-color);
    color: var(--selection-color);
}

html,
body {
    color: var(--text-color) !important;
    margin: 0px;
    padding: 0px;
    font-size: 62.5%;
    background-color: var(--body-background-color);
    height: 100%;
}

body {
    background-color: var(--body-background-color);
    font-family: var(--body-font-family);

    position: relative;
    margin: 0;
    padding: 0;

    font-size: 1.5em; /* currently ems cause chrome bug misinterpreting rems on body element */
    line-height: 1.6;
    font-weight: 400;
    /*color: #454545 !important;*/
    color: var(--text-color);
    font-kerning: auto !important;
}

/*  \/   Fade in/Out effect  \/   */
@keyframes FadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes FadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

html,
body {
    -webkit-animation: FadeIn var(--fade-in-speed);
    -moz-animation: FadeIn var(--fade-in-speed);
    -o-animation: FadeIn var(--fade-in-speed);
    animation: FadeIn var(--fade-in-speed);
}

html body a:active html,
html body a:active html body,
a:active {
    -webkit-animation: FadeOut var(--fade-out-speed);
    -moz-animation: FadeOut var(--fade-out-speed);
    -o-animation: FadeOut var(--fade-out-speed);
    animation: FadeOut var(--fade-out-speed);
}

section {
    width: var(--section-width);
    margin: var(--section-margin);
}

div.container {
    min-height: 100%;
}

div#content,
div#content div.two-thirds.column,
div#content div.two-thirds.column article {
    width: 100% !important;
}

div#content div.two-thirds.column article table,
div#content div.two-thirds.column article td {
    text-align: center !important;
}

math {
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px !important;
    padding: 20px 30px;
    margin: 25px auto;
    font-size: 25px !important;
    min-width: 15% !important;
    width: auto !important;
    max-width: 45% !important;
}
