@import url(https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700);

body {
    margin: 0;
    min-height: 100%;
    background: #bad8fd url('background.jpg') repeat-x fixed;
    /*animation: background 300s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    -webkit-animation: background 300s;
    -webkit-animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;*/
}
html {
    height: 100%;
    overflow-y: scroll;
}
body, input, textarea, .richedit, select, button {
    color: #444;
    font: 14px 'Open Sans', sans-serif;
    /* font: 14px "Verdana", "Arial", "Helvetica", sans-serif;
     */
}

@-webkit-keyframes background {
    from { background-position: 1476px 0px; }
    to { background: 0px 0px; }
} 

@keyframes background {
    from { background-position: 1476px 0px; }
    to { background: 0px 0px; }
}

/* Beautiful magic */
#content {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

.page {
    text-align: justify;
    background-color: #fdfdfd;
    border-left: 5px solid #fbf9f5;
    border-right: 5px solid #fbf9f5;
}

#main {
    padding: 0;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}


/*#header {
    height: 314px;
    background-image: url('http://alonsomartin.mx/h4a/header_backersclub.png');
    background-size: contain;
    background-size: 100%;
}
*/

@media (min-width: 768px) {
    #main {
        width: 710px;
    }

    #popup {
        max-width: 768px;
    }

    #popupinner {
        padding: 0px 60px;
    }

    .form {
        /*max-width: 20%;*/
    }
}

@media (max-width: 767px) {
    .form {
        transform: translateX(-15%) translateY(-10%) scale(0.7);
        max-width: 90vw;
    }
}


#modalgroup {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    visibility: hidden;
}

#fadegroup {
    opacity: 0.0;
    transition: opacity 0.3s;
}

#fadegroup.fadein {
    opacity: 1.0;
}

#popup {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    padding: 5px 5px 15px;
    position: fixed;
    border-radius: 5px;
}

#popupheader {
    font-weight: bold;
    font-size: 100%;
    /*margin-top:;*/
    padding: 2px;
    margin-bottom: 10px;
    text-align: right;
}

#popupinner {
    text-align: justify;
    max-height: 80vh;
    overflow-y: auto;
}

#dimmer {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.8;
}

.navigation {
    min-height: 40px;
    padding: 0px;
    margin-bottom: 10px;
}


.navigation a {
    display: inline-block;
    margin: 0px;
    margin-right: 2px;
    padding: 0px 16px;
    line-height: 40px;
    position: relative;
    font-size: 12px;
    color: #444 !important;
}

a.emptytab {
    opacity: 0.5;
}

.rewardtab:only-child {
    margin-right: 0 !important;
    background: #eee;
}

.navigation a.active {
    background: #FA9005;
    color: #FFF !important;
    font-weight: bold;
}
.navigation a:hover {
    background: #5a6d85;
    color: #fff !important;
    text-decoration: none;
}


#content {
    padding-top: 8px;
    padding-left: 45px;
    padding-right: 45px;
    padding-bottom: 100px;
    height: auto;
}

#footer {
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 6px;
    color: #888;
}

strong {
    /*font-weight: 600;*/
}

img {
    max-width: 100%;
}

a:link, a:visited {
    color: #AE36FF;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


td {
    vertical-align: top;
}

.buttonlink {
    color: #888;
}

.buttonlink:hover {
    cursor: hand;
    cursor: pointer;
    color: #aaa;
    text-decoration: none
}

.form_field {
    width: 240px;
}

.form_field.shipping {
    width: 200px;
}

.form_field.invalid_value {
    background-color: #ffd4cd;
}

.form_field.valid_value {
    background-color: #ceffcd;
}

textarea, .richedit {
    display: block;
    margin-left: 0px;
    margin-right: 0px;
    width: 100%;
}

/*
 General look of any textarea
*/
textarea, select, .form_field, .richedit {
    font-size: 85%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 2px;
}

/*
 * General dark grey button look
 */
button, input[type=submit] {
    background-color: #86837a;
    color: white;
    border: none;me
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 4px;
    padding-bottom: 4px;
    font-size: 16px;
    border-radius: 4px;
}

button:enabled:hover, input[type=submit]:enabled:hover {
    background-color: #97948b;
    cursor: hand;
    cursor: pointer;
}

button:disabled {
    color: #bbb;
}

hr {
    height: 1px;
    border: none;
    background: #ddd;
}

.arrow {
    display: inline-block;
    font-size: 80%;
    transition: transform 0.25s linear;
    transform-origin: 50% 50%;
}

.arrow.unfolded {
    transform: rotate(90deg);
}

.buildlist {
    width: 100%;
    transition: opacity 0.5s;
}

.buildlist td:nth-child(2) {
    width: 80px;
}

.buildlist td:nth-child(3) {
    width: 150px;
}


.buildlist td:nth-child(4) {
    width: 70px;
    text-align: right;
}

.buildlist tr > td {
    padding-top: 5px;
}

.buildlist th {
    border-bottom: 1px solid #ccc;
}

.buildremarks {
    padding: 4px !important;
    background-color: #f3f3f3;
    font-size: 12px;
    padding-left: 17px !important;
}



.form td {
    text-align: left;
    padding: 6px 4px;
}

.form td:first-child {
    padding-right: 50px;
    vertical-align: top;
}

.form td:nth-child(2) {
    max-width: 500px;
}

.foldgroup h1 {
    font-weight: 600;
    cursor: pointer;
    cursor: hand; 
}

.foldme {
    max-height: 0;
    overflow-y: hidden;
    transition: max-height 0.5s ease-out;
}

.foldme.unfolded {
    max-height: 800px;
    transition: max-height 0.5s ease-in;
}

.shipping:not(:last-child) {
    margin-bottom: 8px;
}

.hint {
    color: #999;
}

.greentext {
    color: #2A5;
}

.balancerow > td {
    padding-top: 10px;
    font-size: 18pt;
}

.balancerow > td:first-child {
    font-size: 14pt;
}

#balance {
    font-weight: bold;
}

.centered {
    text-align: center;
}

.mediumbutton {
    /*transform: scale(1.5);*/
    font-size: 150%;
}

.bigbutton {
    /*transform: scale(2.0);*/
    font-size: 200%;
}

.creativechoice td {
    padding-bottom: 5px;
}

.creativechoice td:first-child {
    width: 80px;
    text-align: right;
}

.creativechoice td:nth-child(2) {
    width: 30px;
}

.offsetnote {
    font-size: 85%;
    margin-left: 30px;
    display: block;
}

.richedit {
    min-height: 160px;
    overflow: auto;
    max-height: 300px;
    font-size: small;
    border-top-color: #cfcfcf;
}

.richedit h2 {
    margin-bottom: -10px;
}

.richedit * {
    font-weight: 400;
}

.richedit b {
    font-weight: 800 !important;
}

.richeditheader {
    width: 100%;
    /*
    border-radius: 3px 3px 0 0;
    border: 1px solid #aaa;
    */
    border-bottom: none;
    background-color: #f4f3f1;
    border: 1px solid #f4f3f1;
    padding: 5px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px
}

.richeditheader button {
    padding: 3px 8px;
    background-color: #f4f3f1;
    color: #666;
    font-size: 12px;
    border-radius: 3px;
    border: 1px solid #dadada;
}

.richeditheader button:hover {
    background-color: #f7f6f3;
}

.richeditheader button:not(:last-child) {
    margin-right: 5px;
}

.richeditheader .buttongroupleft {
    margin-right: 0 !important;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right-width: 0;
}

.richeditheader .buttongroupright {
    margin-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.richeditheader button.buttondown {
    background-color: #e4e3df;
    border-top-color: #cbcbcb;
    border-left-color: #cbcbcb;
    border-right-color: #f2f2f2;
    border-bottom-color: #f2f2f2;
}

.uploadbutton {
    position: relative;
    overflow: hidden;
}

.uploadbutton input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.hotbutton {
    background-color: #983b34 !important;
}

.biggreenbutton {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 10px;
    font-size: 140%;
    background-color: rgb(0, 182, 97);
}

#messageboard {
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 70vh;
}

.message {
    padding: 5px;
}

.message:not(:last-child) {
    margin-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.messagecontent {
    margin-top: 2px;
}

.messageheader {
    display: block;
    opacity: 0.9;
    font-size: 90%;
}

.userselect {
    width: 100%;
}

.userselect option {
    padding: 3px;
}

.newmessage {
    background-color: #fee;
}

/* Alonso shit */

.bluetext {
	color: #36F;
}

.redtext {
	color: #FF4D4D;
}

.biggertext {
    font-size: 14px;
}

.biggerbluetext {
    font-size: 14px;
    color: #36F;
}
.biggergreentext {
    font-size: 14px;
    color: #009900;
}
.smalltext, .hint {
    font-size: 12px;
}

.fixedrewards {
    margin: 0;
    padding-left: 16px;
}