@font-face {
    font-family: "NeoEular";
    src: url("./NeoEuler-VGO00.otf");
}

* {
    font-family: "NeoEular", Times, Arial, Helvetica, sans-serif;
    font-weight: bold;
    user-select: none;
    text-align: center;
    font-size: 2vh;
    white-space: nowrap;

    transition: background-color 0.2s;
}
sub, sup{
    font-size: 0.6em;
}

#mainNav {
    padding: 0.5vh;
    margin-bottom: 2vh;
    border-radius: 2vh;

    transition: background-color 0.2s;
}
#mainNav:hover {
    background-color: #ddd;
}
.mainNavTab {
    display: inline-block;
    margin: 0 0.3vw; padding: 0.2vh 0.3vw;
    border: 0.3vh solid #222;
    border-radius: 0.5vh;
    background-color: #eee;

    transition: color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s, text-shadow 0.2s;
    cursor: pointer;
}
.mainNavTab:hover {
    color: #eee;
    border-color: #aaa;
    text-shadow: 0 0 0.4vh #fff;
    background-color: #222;
    transform: scale(1.2);
}
.mainNavTab:active {
    transform: scale(1);
    transition: none;
}

#mainPoint {
    font-size: 1.4em;
}
#mainFormula {
    margin-top: 2vh;
}
#mainBtn {
    width: 40vh;
    margin: 1.8vh auto;
    background-color: #888;
    border: 0.4vh solid #333;
    border-radius: 1vh;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, text-shadow 0.2s, box-shadow 0.2s;
}
#mainBtn:hover {
    border-color: #666;
    background-color: #eee;
    color: #555;
    transform: scale(1.06);
    text-shadow: 0 0 0.5vh #222;
    box-shadow: 0 0 1vh #666 inset;
}
#mainBtn:active {
    transform: scale(1);
    transition: transform 0s;
}
.mainEq, .formulaRight{
    filter: blur(0.8vh);
}
.mainEq, .formulaRight {
    filter: none;
}
#formulaContainerWarp {
    display: flex;
    margin: 0 auto;
    width: 85vw; height: 60vh;

    justify-content: space-around;
}
.formulaContiner {
    flex: 1;
    display: inline;
    text-align: left;
}
.formulaWarp {
    height: 10%;
    text-overflow: ellipsis;
    overflow: hidden;
}
.formulaWarp.colorize > div > span {
    color: rgb(33, 197, 0);
    text-shadow: 0 0 0.2vh rgb(134, 134, 134);
}
.formulaMid::after {
    content: " = ";
}
.formulaUpgrade {
    width: 35vh;
    margin: 0 auto;
    background-color: #888;
    border: 0.4vh solid #333;
    border-radius: 1vh;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.formulaUpgrade.available {
    color: rgb(75, 218, 47);
    text-shadow: 0 0 0.5vh #222;
}
.formulaUpgrade:hover {
    border-color: #666;
    background-color: #eee;
    color: #555;
    transform: scale(1.06);
}
.formulaUpgrade.available:hover {
    color: rgb(75, 218, 47);
}
.formulaUpgrade:active {
    transform: scale(1);
    transition: transform 0s;
}

#modifyList {
    margin: 0 auto;
    width: 70vw;
    background-color: #eee;
}
#modifyList > tbody > tr {
    height: 15vh;
}
#modifyList > tbody > tr > td:nth-child(1) {
    display: none;
    background-color: #888;
    border-radius: 1vh;
}
#modifyList > tbody > tr > td:nth-child(2) {
    background-color: #888;
    border: 0.6vh solid #222;
    border-radius: 1vh;
    cursor: pointer;

    transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s, text-shadow 0.2s;
}
#modifyList > tbody > tr > td:nth-child(2):hover {
    background-color: #222;
    border-color: #888;
    color: #eee;
    text-shadow: 0 0 0.3vh #fff;
    transform: scale(1.04);
}
#modifyList > tbody > tr > td:nth-child(2):active {
    transform: scale(1);

    transition: none;
}
.modifyName {
    text-shadow: 0 0 0.6vh #fff, 0 0 0.3vh rgb(83, 51, 13);
}
/* style for each Modity thing */
#speedChangerWarp {
    display: flex;
    margin: 1vh auto;
    width: 50vh; height: 7vh;
    background-color: #ccc;

    border: 0.3vh solid #222;
}
#speedChangerWarp > span {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    transition: background-color 0.2s;
}
#speedChangerWarp > span:hover {
    background-color: #555;
}
#speedChangerWarp > span > div:first-child {
    margin-right: 1vh;
}
#colorizerBtnWarp {
    width: 50vw; height: 10vh;
    flex-wrap: warp;
    display: inline-flex;
    flex-flow: wrap;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
}
#colorizerBtnWarp > span {
    flex: 1;
    width: 25%; height: calc(20% - 0.8vh);
    font-size: 0.5em;
    transform: scale(0.95);
    border: 0.4vh solid #222;
    border-radius: 0.4vh;
    opacity: 0;
    background-color: #444;
    color: #fff;
    text-shadow: 0 0 0.4vh #222;
    z-index: 0;
}
#colorizerBtnWarp > span.unlocked {
    cursor: pointer;
    opacity: 1;
    transition: transform 0.2s, box-shadow 0.2s, width 0.2s, filter cubic-bezier(.16,.9,.15,.96) 0.2s;
}
#colorizerBtnWarp > span.unlocked.activated {
    color:rgb(75, 218, 47);
    text-shadow: 0 0 0.4vh #000;
    box-shadow: 0 0 0.3vh #333 inset;
}
#colorizerBtnWarp > span.unlocked:hover {
    transform: scale(3);
    width: 12.5%;
    box-shadow: 0 0 0.3vh #333 inset, 0 0 0.3vh #222;
    z-index: 1;
    transition: transform cubic-bezier(.21,.55,.8,-0.25) 2s, box-shadow 0.2s, width cubic-bezier(.21,.55,.8,-0.25) 2s, filter cubic-bezier(.16,.9,.15,.96) 0.2s;
}
#colorizerBtnWarp > span.unlocked:active {
    filter: brightness(0.6);
}