body {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    font-family: 'Cabin', sans-serif;
    font-size: 16px;
}

.main {
    border: 1px solid black;
    box-shadow: 5px 0px 6px #888888;
}

.banner {
    width: 100%;
    height: 100px;
    background: url(../img/calc.jpg);
    box-sizing: border-box;
}

.title {
    font-weight: bold;
    text-transform: uppercase;
    color: white;
    font-size: 20px;
    padding-top: 12px;
    padding-left: 30px;
    text-shadow: 2px 2px #11397a;
}

.subtitle {
    color: white;
    text-shadow: 1px 1px 3px black;
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 6px;
}

.midTitle {
    padding-left: 40px;
    font-size: 18px;
    font-weight: bold;
}

.property {
    margin-left: 20px;
    height: 25px;
    line-height: 20px;
}

.warning {
    color: red;
    font-size: 10px;
    display: inline-block;
    vertical-align: middle;
}

/* Tooltip container */
.tooltip {
    margin-left: 20px;
    margin-top: 15px;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    display: inline-block;
}

.referenceCell {
    width: 100px;
}

/* Tooltip text */
.tooltip .tooltiptext {
    text-transform: none;
    font-weight: normal;
    font-size: 10px;
    visibility: hidden;
    background-color: lightgray;
    color: #000;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    position: absolute;
    z-index: 1;
    width: 250px;
    bottom: 120%;
    left: 0%;
    margin-left: 0px;
    opacity: 0;
    transition: opacity 0.4s;
}

.tooltip .tooltiptext::after {
    content: " ";
    position: absolute;
    top: 100%;
    left: 5%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: lightgray transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@keyframes modified {
    0%   { background-color: white; }
    75%  { background-color: #468CFC; }
    100% { background-color: white; }
}

@keyframes wrong {
    0%   { background-color: white; }
    33%  { background-color: #FF3523; }
    66%  { background-color: white; }
    100% { background-color: #FF3523; }
}

.blink {
    background-color: white;
    animation-name: modified;
    animation-duration: 2s;
}

.redAlert {
    background-color: #FF3523;
    animation-name: wrong;
    animation-duration: 2s;
}

#alert {
    padding-top: 18px;
    line-height: 140%;
    color: #FF3523;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    transition-duration: 0.2s;
}

#warning {
    padding-top: 15px;
    line-height: 140%;
    color: #FF3523;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

button {
    font-family: 'Cabin', sans-serif;
    text-transform: uppercase;
    background-color: lightgrey;
    float: left;
    border: none;
    padding: 10px 10px;
    margin-top: 15px;
    margin-right: 5px;
    transition-duration: 0.4s;
}

button:hover {
    background-color: #468CFC;
    color: white;
}

select {
    font-size: 16px;
    padding: 5px;
    border: none;
    border-bottom: 1px solid black;
    background-color: white;
    font-family: 'Cabin', sans-serif;
}

.preset {
    font-size: 14px;
    padding: 3px 6px;
    margin-left: 8px;
    vertical-align: middle;
    color: #555;
    border: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

input {
    font-size: 16px;
    width: 45px;
    padding: 6px;
    border: none;
    border-bottom: 1px solid black;
    background-color: white;
    font-family: 'Cabin', sans-serif;
    text-align: center;
}

#AR {
    max-width: 100%;
    height: auto;
    display: block;
}

#paypal {
    margin-right: 20px;
    float: right;
}

#paypalbutton {
    width: 150px;
    border: none;
}

.bottom {
    max-width: 500px;
    width: 100%;
    margin: 5px auto;
    font-family: 'Cabin', sans-serif;
    font-size: 12px;
}

@media (max-width: 520px) {
    body {
        padding: 0 10px;
        box-sizing: border-box;
    }

    .tooltip .tooltiptext {
        width: 180px;
    }
}
