@font-face {
    font-family: Montserrat;
    src: url(./montserrat/Montserrat-Regular.ttf);
}

@font-face {
    font-family: STIX;
    src: url(./stix/STIXTwoMath-Regular.input.ttf);
}

td.letter {
    padding-right: 20px;
}

button.gohome {
    display: inline-block;
    border-radius: 20px;
    font-weight: bold;
    font-family: 'Montserrat';
    padding: 10px;
    margin-top: 20px;
    margin-left: 15px;
    width: 200px;
    border: none;
    background-color: black;
    color: white;
    cursor: pointer;
    cursor: hand;
}

.center-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

.suggestions:hover {
    background-color: darkgray !important;
    cursor: pointer;
}

.ow {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.columnStyle {
    font-weight: bold;
    font-size: 1.5em;
    padding: 5px;
    border: 1px solid black;
    color: black;
}

.columnStyle2 {
    padding: 5px;
    border: 1px solid black;
    color: black;
}

.columnStyle3 {
    font-weight: bold;
    font-size: 2em;
    padding: 15px;
    border: 1px solid black;
    color: black;
}

.imgCenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.chartTextBox {
    border: none;
    width: 100%;
    height: 100%;
    resize: none;
    -webkit-box-sizing: border-box;
    /* <=iOS4, <= Android  2.3 */
    -moz-box-sizing: border-box;
    /* FF1+ */
    box-sizing: border-box;
    /* Chrome, IE8, Opera, Safari 5.1*/
}

.chartTextBox:focus {
    outline: none !important;
    border: none !important;
}

.centered {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.center {
    margin: auto;
    width: 50%;
    padding: 10px;
}

#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: black;
    z-index: 2;
    cursor: pointer;
}

.fraction,
.tp,
.btm {
    padding: 0 5px;
    font-family: Cambria;
}

.ads {
    width: 1px;
}

.fraction {
    display: inline-block;
    text-align: center;
}

.btm {
    border-top: 1px solid #000;
    display: block;
}

.mathfont {
    font-family: Cambria;
}

.calc {
    font-weight: bold;
}

.displayNone {
    display: none;
}

.footerAd {
    position: fixed;
    bottom: 0;
}

.headerbar {
    width: 100%;
    padding: 10px;
    padding-right: 0px;
    padding-left: 0px;
    background-color: black;
    clear: none;
}

.subbar {
    margin-top: 0;
    display: table;
    float: left;
    width: 100%;
    height: 15px;
    left: 0;
    right: 0;
    background-color: grey;
    clear: none;
    overflow: hidden;
}

.wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-width: 0;
    padding: 0 5px 20px 5px;
}

.bannermenu {
    display: inline-block;
    vertical-align: top;
    width: 300px;
}

.navbar {
    line-height: 2;
}

.nav {
    color: blue;
}

hr {
    align-self: center;
    border: 1.2px solid grey;
}

.nav:hover {
    background-color: #9D9897;
    transition: 0.4s;
    cursor: pointer;
}

.link {
    text-decoration: none;
}

.link:hover {
    cursor: pointer;
    transition: 0.4s;
    text-decoration: underline;
}

.toolcontainer {
    display: inline-block;
    vertical-align: top;
}

#linkbox {
    width: 250px;
    height: 80px;
}

th {
    background-color: #e0e0e0;
    border: 1px solid black;
}

select.unitchanger {
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom: none;
}

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
#dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Links inside the dropdown */
#dropdown-content p {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
#dropdown-content p:hover {
    background-color: #ddd;
    cursor: pointer;
}

.show {
    display: block;
}

/* DESKTOP */
@media only screen and (min-width: 800px) {

    table.word {
        font-family: Helvetica;
        font-size: 50px;
        text-decoration: underline;
    }

    button.keys {
        font-family: Helvetica;
        border: 0;
        font-size: 1.5em;
        margin: 0 6px 0 0;
        width: 50px;
        height: 58px;
        border-radius: 4px;
        cursor: pointer;
        user-select: none;
        background-color: #808080;
        color: white;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        text-transform: uppercase;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.3);
    }

    .resizeImage {
        width: 4.8em;
    }

    .restableMobile {
        display: none;
    }

    .displayMobile {
        display: none;
    }

    .mobileParagraph {
        display: none;
    }

    #productMobile {
        display: none;
    }

    select.unitchanger {
        margin-left: 20px;
    }

    td.unitchanger {
        text-align: left;
    }

    .mobileWordCounterUI {
        display: none;
    }

    .altCodeMobileTableUppercase,
    .altCodeMobileTableLowercase,
    .altCodeMobileTable,
    #altCodeMobileMenu {
        display: none;
    }

    #multiplicationTableMobile {
        display: none;
    }

    .footerAd {
        display: none;
    }

    .hbamobile {
        display: none;
    }

    select {
        height: 40px;
    }

    #topInput {
        width: 450px;
    }

    #middleInput {
        width: 450px;
    }

    #bottomInput {
        width: 450px;
    }

    h1.title {
        padding-left: 50px;
        padding-right: 50px;
    }

    input[type=text] {
        font-size: 1.1em;
    }

    input.box {
        width: 250px;
    }

    input.box2 {
        width: 150px;
    }

    input.box3 {
        width: 25px;
    }

    #mobileTable {
        display: none;
    }

    .toolcontainer {
        width: 650px;
    }

    label.normalLabel {
        display: inline-block;
    }

    button.home {
        width: 170px;
    }

    button.WCbutton {
        padding: 10px;
        margin-right: 5px;
        width: 50px;
        background-color: #e0e0e0;
        border: none;
    }

    button.TABbutton {
        padding: 10px;
        background-color: #e0e0e0;
        border: 0.5px solid black;
        border-top-right-radius: 5px;
        border-top-left-radius: 5px;
    }

    h1 {
        font-size: 2em;
    }

    h1.convertertitle {
        font-size: 1.7em;
    }

    textarea.answer,
    textarea.feedback {
        width: 250px;
        height: 100px;
    }

    textarea.textToCount {
        width: 600px;
        height: 200px;
    }

    .footerbar {
        display: inline-block;
    }

    .footerbarMobile {
        display: none;
    }
}

@media only screen and (max-width: 980px) and (min-width: 800px) {
    .toolcontainer {
        width: 60vw;
    }

    input.box {
        width: 150px;
    }
}

/* MOBILE */
@media only screen and (max-width: 800px) {

    table.word {
        font-family: Helvetica;
        font-size: 25px;
        text-decoration: underline;
    }

    button.keys {
        font-family: Helvetica;
        border: 0;
        font-size: 1em;
        margin: 0 6px 0 0;
        width: 30px;
        height: 58px;
        border-radius: 4px;
        cursor: pointer;
        user-select: none;
        background-color: #808080;
        color: white;
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        text-transform: uppercase;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.3);
    }

    img.coverartMovie {
        width: 300px;
        height: 450px;
        margin-bottom: 20px;
    }

    img.coverartTVShow {
        width: 300px;
        height: 280px;
        margin-bottom: 20px;
    }

    .resizeImage {
        width: 3.4em;
    }

    #printButton {
        display: none;
    }

    .restable {
        display: none;
    }

    .displayDesktop {
        display: none;
    }

    .hbamobile {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #product {
        display: none;
    }

    button.TABbutton {
        padding: 10px;
        background-color: #e0e0e0;
        border: 0.3px solid black;
        border-top-right-radius: 10px;
        border-top-left-radius: 10px;
        margin-left: 5px;
    }

    select.unitchanger {
        padding: 10px;
    }

    .desktopParagraph {
        display: none;
    }

    .desktopWordCounterUI {
        display: none;
    }

    .altCodeDesktopTable {
        display: none;
    }

    .desktopHR {
        display: none;
    }

    .hbadesktop {
        display: none;
    }

    .vba {
        display: none;
    }

    h1 {
        font-size: 1.4em;
    }

    select {
        width: 170px;
    }

    #topInput {
        width: 250px;
    }

    #middleInput {
        width: 250px;
    }

    #bottomInput {
        width: 250px;
    }

    #multiplicationTableDesktop {
        display: none;
    }

    h1.title {
        padding-left: 0px;
        padding-right: 0px;
    }

    input[type=text] {
        font-size: 0.9em;
    }

    .tool {
        width: 100%;
    }

    #desktopTable {
        display: none;
    }

    .bannermenu {
        display: none;
    }

    label.normalLabel {
        display: none;
    }

    input.box {
        width: 130px;
        margin-left: 10px;
    }

    h1.title {
        padding-left: 0px;
        padding-right: 0px;
    }

    p.subtitle {
        padding-left: 0px;
        padding-right: 0px;
    }

    button.home {
        width: 140px;
    }

    h1.convertertitle {
        font-size: 1.4em;
    }

    textarea.answer,
    textarea.feedback {
        width: 200px;
        height: 100px;
    }

    textarea.textToCount {
        width: 250px;
        height: 150px;
    }

    .footerbar {
        display: none;
    }

    .footerbarMobile {
        display: inline-block;
    }
}


#italic {
    font-weight: bold;
    margin-left: 5px;
    margin-right: 5px;
}

.tool {
    display: inline-block;
    margin: auto;
}

table {
    border-collapse: collapse;
}

table.top {
    margin-bottom: 1.2em;
    overflow: auto;
    background-color: #f2f2f2;
    box-shadow: 1px 1px 10px #BBB
}

td {
    padding-top: 1.5em;
    text-align: center;
    font-family: Montserrat;
}

td.block {
    width: 150px;
}

td.division {
    padding-top: 0;
    text-align: center;
    font-family: Montserrat;
}

.bannermenuoption {
    width: 100%;
    padding-left: 0px;
    padding: 5px;
}

.footerbar {
    position: fixed;
    text-align: center;
    bottom: 0;
    width: 100%;
    height: 60px;
    left: 0;
    right: 0;
    background-color: black;
}

.footerbarMobile {
    text-align: center;
    bottom: 0;
    width: 100%;
    left: 0;
    right: 0;
    background-color: black;
}

button {
    font-family: Helvetica;
}

button:hover {
    background-color: #d9d9d9;
    transition: 0.4s;
    cursor: pointer;
}

button.convert {
    font-weight: bold;
    margin-right: 0;
    border-radius: 30px;
    border: none;
    background-color: #3ad342;
    color: white;
    padding: 10px;
    font-size: 1em;
    padding-top: 15px;
    padding-bottom: 15px;
    width: 245px;
}

button.convert:hover {
    background-color: #29902F;
    transition: 0.4s;
    cursor: pointer;
}

button.home {
    padding: 20px;
    font-size: 1em;
    background-color: #e0e0e0;
    color: black;
    border-radius: 10px;
    border: none;
}

button.home:hover {
    background-color: grey;
    transition: 0.4s;
    cursor: pointer;
}

button.convertongrid {
    background-color: grey;
    color: white;
    padding: 20px;
    margin-right: 10px;
    font-size: 1em;
    padding-top: 15px;
    padding-bottom: 15px;
}

button.convertongrid:hover {
    background-color: #B1B3B0;
    transition: 0.4s;
    cursor: pointer;
}

button.convertongridWhite {
    background-color: white;
    color: black;
    padding: 20px;
    margin-right: 10px;
    font-size: 1em;
    padding-top: 15px;
    padding-bottom: 15px;
}

button.convertongridWhite:hover {
    background-color: #B1B3B0;
    transition: 0.4s;
    cursor: pointer;
}

button.feedbackButton {
    background-color: grey;
    color: white;
    padding: 20px;
    font-size: 1em;
    padding-top: 15px;
    padding-bottom: 15px;
}

button.feedbackButton:hover {
    background-color: #B1B3B0;
    transition: 0.4s;
    cursor: pointer;
}

button.convertop {
    margin-right: 0;
    border-radius: 30px;
    border: none;
    background-color: grey;
    color: white;
    padding: 10px;
    width: 205px;
    font-size: 1em;
}

button.convertop:hover {
    background-color: #B1B3B0;
    transition: 0.4s;
    cursor: pointer;
}

button.icon {
    border-radius: 2px;
    border: none;
    padding: 10px;
    width: 100px;
    background-color: black;
    color: white;
}

button.icon:hover {
    background-color: #9D9897;
    transition: 0.4s;
    cursor: pointer;
}

th {
    font-family: Montserrat;
}

button.donate {
    margin-top: 20px;
    margin-right: 50px;
    border-radius: 20px;
    border: none;
    font-size: 1.3em;
    padding: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    float: right;
    font-family: Montserrat;
}

h1.version {
    color: white;
    margin-top: 20px;
    margin-right: 50px;
    border-radius: 20px;
    border: none;
    font-size: 1.3em;
    padding-top: 5px;
    padding-bottom: 5px;
    float: right;
    font-family: Montserrat;
}

span.boxspan {
    border: 2px solid grey;
    border-radius: 0px;
    background-color: white;
    padding: 8px;
}

span.boxspan2 {
    border: 2px solid grey;
    border-radius: 0px;
    background-color: white;
    padding: 8px;
}

span.boxspan2:hover {
    background-color: #9D9897;
    transition: 0.4s;
    cursor: pointer;
}

.example input[type=text] {
    padding: 10px;
    font-size: 17px;
    border: 1px solid grey;
    float: left;
    width: 80%;
    background: #f1f1f1;
}

.example button {
    float: left;
    width: 20%;
    padding: 10px;
    background: blue;
    color: white;
    font-size: 17px;
    border: 1px solid grey;
    border-left: none;
    cursor: pointer;
}

.example button:hover {
    background: blue;
}

.example::after {
    content: "";
    clear: both;
    display: table;
}

input {
    font-family: Montserrat;
    border: 2px solid grey;
    height: 40px;
    box-sizing: border-box;
    outline: none;
    text-indent: 10%;
    border-radius: 20px;
    color: black;
    background-color: white;
}

input[type=text]:focus {
    box-shadow: 0 0 8px 0;
}

input[type='checkbox'] {
    width: auto;
    height: auto;
}

input.listedcheckbox {
    transform: scale(2, 2);
    float: left;
    margin-left: 40px;
}

input[type='number'] {
    font-size: 1.2em;
}

input.box {
    text-indent: 3%;
}

p {
    font-family: Montserrat;
    font-size: 1.1em;
}

p.subtitle {
    font-size: 1.2em;
    padding-right: 50px;
    padding-left: 50px;
}

p.formula {
    font-size: 1.8em;
    font-weight: bold;
    font-family: Cambria;
}

label {
    font-family: Montserrat;
    font-size: 1em;
}

h1.convertertitle {
    margin-left: 10px;
    text-align: left;
    padding-bottom: 5px;
}

h1.title {
    font-family: Montserrat;
    font-size: 1.5em;
}

h2 {
    color: black;
    margin-left: 10px;
    font-size: 1em;
    font-family: Montserrat;
}

h2.toolsubheader {
    color: black;
    margin-left: 10px;
    font-weight: normal;
}

.bannerheaderBGtop {
    background-color: #e0e0e0;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    padding: 10px;
    width: 300px;
    padding-left: 0px;
    padding-right: 0px;
}

.bannerheaderBG {
    background-color: #e0e0e0;
    margin-top: 10px;
    padding: 10px;
    width: 300px;
    padding-left: 0px;
    padding-right: 0px;
}

.highlightedBanner {
    background-color: #e0e0e0;
    margin-top: 10px;
    padding: 10px;
    margin-left: 20px;
    padding-left: 0px;
    padding-right: 0px;
}

.feedbackContainer {
    margin-left: 20px;
}

h2.bannerheader {
    color: black;
    padding-left: 10px;
    font-size: 1.1em;
}

h3 {
    font-size: 0.9em;
    margin-left: 20px;
    margin-top: 20px;
    font-family: Montserrat;
}

h4 {
    color: white;
    margin-left: 50px;
    padding: 0;
}

ul.footer {
    list-style-type: none;
    margin: auto;
    position: relative;
    bottom: 0;
    top: 50%;
    padding: 0;
    transform: translateY(-50%);
    font-family: Montserrat;
}

ul.footerMobile {
    list-style-type: none;
    padding: 0;
    font-family: Montserrat;
}

ul.bulletlist {
    display: block;
    list-style-type: disc;
    margin-bottom: 0.1em;
    margin-top: 0px;
    margin-right: 0;
    padding-left: 40px;
    background-color: white;
}

li {
    color: white;
    display: inline;
    padding: 10px;
    font-size: 1em;
    font-family: Montserrat;
    text-decoration: none;
}

li:hover {
    cursor: pointer;
    transition: 0.4s;
    text-decoration: underline;
}

li.bulletlist {
    display: list-item;
    color: blue;
    text-decoration: none;
}

li.bulletlist:hover {
    text-decoration: underline;
    cursor: pointer;
}

li.steps {
    display: list-item;
    font-family: Montserrat;
    color: black;
    text-decoration: none;
}

li.mobileFooter {
    display: list-item;
    font-family: Montserrat;
    color: white;
    text-decoration: none;
}

a {
    text-decoration: none;
}

#resultsdiv {
    font-size: 0.9em;
    border: 1px solid black;
    padding: 5px;
    text-align: center;
    background-color: white;
    font-family: Helvetica;
    padding-bottom: 20px;
}

textarea {
    max-width: 415px;
    height: 100px;
    width: 100%;
    font-size: 1.2em;
    overflow: auto;
    font-family: Helvetica;
}

body {
    min-height: 400px;
    margin-bottom: 100px;
    clear: both;
}

html,
body {
    -webkit-font-smoothing: antialiased;
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
}