@font-face {
    font-family: 'luckiest_guyregular';
    src: url('luckiestguy-regular-webfont.woff2') format('woff2'),
        url('luckiestguy-regular-webfont.woff') format('woff'),
        url('luckiestguy-regular-webfont.svg#luckiest_guyregular') format('svg');
    font-weight: normal;
    font-style: normal;

}

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;
}

* {
    margin: 0;
    padding: 0
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: #8e7672
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0)
}


::-webkit-scrollbar-track {
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
}

input:focus::-webkit-input-placeholder,
input:valid::-webkit-input-placeholder {
    color: #8e7672
}

body,
input,
textarea,
h2 {
    font-family: 'luckiest_guyregular';
}


.rip ul,
.rip ul li {
    margin: 0;
    width: 100%
}

h1,
h2 {
    color: #8e7672
}

* {
    margin: 0;
    padding: 0
}

body {
    background: url(alu.png) #EBEBEB;
    margin: 0;
    padding: 5px;
    color: #7f7664;
    font-size: 100%;
}

a,
a:focus,
a:hover,
a:link {
    border: none;
    text-decoration: none;
}

h1 {
    text-transform: uppercase;
    font-size: 5em;
    text-shadow: #ba9d8f -1px 1px 0, #333 -2px 2px 0, #f5f6f7 -3px 3px 0, #8c5251 -4px 4px 0
}

table {
    width: 100%;
}

h2 {
    margin: 15px 0
}

ul.table input {
    border-radius: 0;
}

ul.table input:nth-child(even) {
    border-left: 0
}

ul.table input:nth-child(odd) {
    border-right: 0;
}

.con,
.ip,
.rip,
.write,
.footer {
    margin: 40px auto;
    padding: 10px;
    text-align: center;
    box-sizing: border-box
}

.article {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    transition: width 2s;
}

.footer {
    margin: 20px auto 0;
}

#resultsblock {
    text-align: left
}

p.descript {
    position: relative;
    margin: 5px 0 20px;
}

.info {
    font-family: 'Courier New', Courier, monospace;
}

.insertBlock {
    text-align: left
}

.inputBox,
h2 {
    margin: 30px auto 10px;
    position: relative;
}

input,
textarea,
h2 {
    margin: 30px 0;
    display: inline-block;
    text-align: center;
    font-weight: bolder;
    color: #8e7672;
    padding: 10px 30px;
    box-sizing: border-box;
    border: none;
    position: relative;
    border: 2px solid #8e7672;
    background-color: #F0EFE9;
    border-radius: 10px;
    /* box-shadow: 0px 2px 13px 1px inset #171516b9, 0 0 0 6px rgba(255, 255, 255, .59), 2px 2px 8px 3px rgba(0, 0, 0, .3);
    -webkit-box-shadow: 0px 2px 13px 1px inset #171516b9, 0 0 0 6px rgba(255, 255, 255, .59), 2px 2px 8px 3px rgba(0, 0, 0, .3);
    -moz-box-shadow: 0px 2px 13px 1px inset #171516b9, 0 0 0 6px rgba(255, 255, 255, .59), 2px 2px 8px 3px rgba(0, 0, 0, .3); */
}


.x {
    position: relative;
    display: inline-block;
}

.x sup {
    position: absolute;
    font-size: .7em;
    top: -12px;
}


@keyframes blinking {
    from {
        color: #C03;
    }

    to {
        color: #F0EFE9;
    }
}

.success {
    color: rgb(103, 105, 5)
}

.alert {
    animation: blinking 1s infinite;
    -webkit-animation: blinking 1s infinite
}

.errorMessage {
    margin: 20px 0;
    color: #C03;
    font-weight: bolder;
    text-transform: uppercase;
    animation: blink-animation 1s steps(5, start) infinite;
    -webkit-animation: blink-animation 1s steps(5, start) infinite
}

.math-box {
    display: inline-block;
}

.math-box .vstack {
    display: inline-block;
    position: relative;
}

.math-box .vstack>div {
    position: relative;
    text-align: center;
    height: 0;
}

.math-box .baseline-fix {
    display: inline-table;
    table-layout: fixed;
}

.math-box .frac-line {
    width: 100%;
    display: inline-block;
}

.math-box .frac-line:before {
    display: block;
    border-bottom-style: solid;
    border-bottom-width: 1px;
    content: "";
}

.math-box .frac-line:after {
    display: block;
    margin-top: -1px;
    border-bottom-style: solid;
    border-bottom-width: 0.04em;
    content: "";
}

#formula,
#math {
    box-shadow: none;
    background: none;
    margin: .6em 0;
    position: relative;
    width: 100%;
    font-size: 4em;
    display: inline-block;
    text-align: center;
    font-weight: bolder;
    color: #8e7672;
    padding: 30px 50px;
    box-sizing: border-box;
    border: none;
    position: relative;
    border: 2px solid #8e7672;
    background-color: #F0EFE9;
    border-radius: 10px;
}

#formula::before,
#math::before {
    content: attr(data);
    font-size: .4em;
    left: 0;
    top: -35px;
    color: #333;
    position: absolute;
    letter-spacing: normal;
    font-family: 'Courier New', Courier, monospace;
}


@keyframes blink-animation {
    to {
        visibility: hidden
    }
}

@-webkit-keyframes blink-animation {
    to {
        visibility: hidden
    }
}


@media all and (min-width:1651px) {
    .article {
        width: 1400px
    }

    .des {
        font-size: 2em;
        margin: 35px auto 5px
    }

    .inputBox {
        font-size: 4em;
    }

    input,
    h2 {
        font-size: 1em;
        text-align: center;
        font-weight: 700;
        padding: 20px;
        letter-spacing: .3em;
    }

    #formula,
    #math {
        margin: .6em 0;
        padding: 30px 50px;
        letter-spacing: .3em;
    }

    h1 {
        color: #8e7672;
        margin: 60px 0 0;
    }

}

@media all and (max-width:1650px) and (min-width:1180px) {
    .article {
        width: 1100px;
        font-size: 3.5em;
    }

    .des {
        font-size: 0.6em;
        margin: 35px auto 5px
    }

    .inputBox {
        font-size: 1em;
        margin: 20px 0;
    }

    input,
    h2 {
        font-size: 1em;
        text-align: center;
        font-weight: 700;
        padding: 20px;
        letter-spacing: .3em;
        margin: 20px 0;
    }

    #formula,
    #math {
        margin: .6em 0;
        padding: 20px;
        letter-spacing: .22em;
        font-size: 1em;
    }

    h1 {
        color: #8e7672;
        margin: 60px 0 0;
        font-size: 1.7em;
    }

    .info {
        font-size: .32em;
    }
}

@media all and (max-width:1179px) and (min-width:1024px) {
    .article {
        width: 980px;
        font-size: 3em;
    }

    .des {
        font-size: 0.6em;
        margin: 20px auto 5px
    }

    .inputBox {
        font-size: 1em;
        margin: 20px 0;
    }

    input,
    h2 {
        font-size: 1em;
        text-align: center;
        font-weight: 700;
        padding: 20px;
        letter-spacing: .3em;
        margin: 20px 0;
    }

    #formula,
    #math {
        margin: .6em 0;
        padding: 20px;
        letter-spacing: .22em;
        font-size: 1em;
    }

    #math {
        font-size: 1.2em;
    }

    h1 {
        color: #8e7672;
        margin: 20px 0 0;
        font-size: 1.7em;
    }

    .info {
        font-size: .32em;
    }
}

@media all and (max-width:1023px) and (min-width:769px) {
    .article {
        width: 750px;
        font-size: 2.3em;
    }

    .des {
        font-size: 0.6em;
        margin: 20px auto 5px
    }

    .inputBox {
        font-size: 1em;
        margin: 20px 0;
    }

    input,
    h2 {
        font-size: 1em;
        text-align: center;
        font-weight: 700;
        padding: 20px;
        letter-spacing: .3em;
        margin: 20px 0;
    }

    #formula,
    #math {
        margin: .6em 0;
        padding: 20px;
        letter-spacing: .22em;
        font-size: 1.2em;
    }

    #formula::before,
    #math::before {
        font-size: .4em;
    }

    h1 {
        color: #8e7672;
        margin: 20px 0 0;
        font-size: 1.7em;
    }

    .info {
        font-size: .32em;
    }
}

@media all and (max-width:768px) and (min-width:481px) {

    .article {
        width: 470px;
        font-size: 1.35em;
    }

    .des {
        font-size: 0.6em;
        margin: 10px auto 5px
    }

    .inputBox {
        font-size: 1em;
        margin: 10px 0;
    }

    input,
    h2 {
        font-size: 1.2em;
        text-align: center;
        font-weight: 700;
        padding: 8px;
        letter-spacing: .3em;
        margin: 20px 0;
    }

    #formula,
    #math {
        font-size: 1.2em;
        text-align: center;
        font-weight: 700;
        padding: 15px 6px;
        letter-spacing: .23em;
        margin: 20px 0;
    }

    #formula::before,
    #math::before {
        font-size: 15px;
        top: -20px
    }

    #math {
        font-size: 1.75em;
        text-align: center;
        font-weight: 700;
        padding: 15px 6px;
        letter-spacing: .3em;
        margin: 20px 0;
    }

    h1 {
        color: #8e7672;
        margin: 20px 0 0;
        font-size: 1.7em;
    }

    .info {
        font-size: .52em;
    }
}

@media all and (max-width:480px)  {
    .article {
        width: 100%;
        padding: 5px;
        font-size: 1.05em;
        box-sizing: border-box;
    }

    .des {
        font-size: 0.96em;
        margin: 10px auto 5px
    }

    .inputBox {
        font-size: 1em;
        margin: 0;
    }

    input,
    h2 {
        font-size: 1.2em;
        text-align: center;
        font-weight: 700;
        padding: 8px;
        letter-spacing: .3em;
        margin: 20px 0;
        width: 6ch;
        border-radius: 4px;
    }

    #formula,
    #math {
        font-size: 1.2em;
        text-align: center;
        font-weight: 700;
        padding: 15px 6px;
        letter-spacing: .23em;
        margin: 20px 0;
        border-radius: 4px;
        width: 100%;
        overflow: auto;
    }

    #formula::before,
    #math::before {
        font-size: 15px;
        top: -20px
    }

    #math {
        font-size: 1.75em;
        text-align: center;
        font-weight: 700;
        padding: 15px 6px;
        letter-spacing: .3em;
        margin: 20px 0;
    }

    h1 {
        color: #8e7672;
        margin: 7px 0 0;
        font-size: 1.8em;
    }

    .info {
        font-size: .52em;
    }
}