/*General config*/
* {
    margin: 0;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    align-items: baseline;
    justify-content: center;
    background-color: rgb(11, 20, 32);
    font-family: sans-serif;
    color: white;
}

/*Scroll bar*/
::-webkit-scrollbar {
    background-color: rgb(17, 29, 53);
    width: 8px;
}

::-webkit-scrollbar-button  {
    display: none;
}

::-webkit-scrollbar-thumb {
    background-color: transparent;
    box-shadow: inset 0 0 10px 10px rgb(99, 98, 98, 0.7);
    border: solid 2px transparent;
    border-radius: 20px;
    width: 5px;
}

/*Icono*/
body img {
    display: none;
    position: absolute;
    left: 1%;
    top: 1.5%;
    width: 2%;
}

/*Container*/
#main_border {
    display: flex;
    border-radius: 17px;
    padding: 0.4%;
    background: rgba(193,158,103,1);
    background: -moz-linear-gradient(-45deg, rgba(193,158,103,1) 0%, rgba(219,184,134,1) 27%, rgba(182,141,76,1) 65%, rgba(219,184,134,1) 100%);
    background: -webkit-gradient(left top, right bottom, color-stop(0%, rgba(193,158,103,1)), color-stop(27%, rgba(219,184,134,1)), color-stop(65%, rgba(182,141,76,1)), color-stop(100%, rgba(219,184,134,1)));
    background: -webkit-linear-gradient(-45deg, rgba(193,158,103,1) 0%, rgba(219,184,134,1) 27%, rgba(182,141,76,1) 65%, rgba(219,184,134,1) 100%);
    background: -o-linear-gradient(-45deg, rgba(193,158,103,1) 0%, rgba(219,184,134,1) 27%, rgba(182,141,76,1) 65%, rgba(219,184,134,1) 100%);
    background: -ms-linear-gradient(-45deg, rgba(193,158,103,1) 0%, rgba(219,184,134,1) 27%, rgba(182,141,76,1) 65%, rgba(219,184,134,1) 100%);
}

main {
    width: 100%;
    padding: 6%;
    border-radius: 15px;
    background-color: rgb(17, 29, 53);
    color: white;
    text-align: center;
}

/*Titulo*/
h1 {
    margin-bottom: 5%;
    color: rgb(231, 64, 106);
    font-size: 1.5rem;
}

.info_principal {
    float: right;
    cursor: help;
    color: rgb(231, 64, 106);
}

/*Formulario*/
form {
    padding: 0;
    width: 50%;
    margin: 0 auto;
    font-size: 1rem;
}

form label {
    text-align: center;
    margin-bottom: 2%;
    display: block;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

input[type=number] { -moz-appearance:textfield; }

form input {
    width: 95%;
    text-align: center;
    background-color: transparent;
    border-top: transparent;
    border-left: transparent;
    border-right: transparent;
    border-width: 2px;
    border-color: rgb(99, 98, 98);
    color: white;
    margin-bottom: 5%;
}

form input:focus {
    outline: none;
}

#submit {
    width: 97%;
    border-style: solid;
    border-width: 2px;
    border-radius: 10px;
    border-color: rgb(231, 64, 106);
    color: rgb(231, 64, 106);
}

#submit:hover {
    border-color: rgb(146, 40, 67);
    color: rgb(146, 40, 67);
    cursor:pointer; cursor: hand;
}

abbr {
    display: none;
}

.info {
    cursor: help;
    color: rgb(231, 64, 106);
    margin-left: 5px;
    font-size: 0.7rem;
}

/*Resultados*/

article {
    padding: 0;
    width: 70%;
    margin: 0 auto;
    font-size: 1rem;
}

article label {
    text-align: center;
    margin-bottom: 2%;
    display: block;
}

#capital_final, #capital_ganado {
    width: 69%;
    margin: 0 auto 1% auto;
    border-style: solid;
    border-color: rgb(99, 98, 98);
    border-width: 2px;
    border-top: transparent;
    border-left: transparent;
    border-right: transparent;
    cursor: text;
}

canvas {
    margin-bottom: 5%;
    width: 100%;
}

/*Ventana emergente*/
#error_box {
    position: absolute;
    flex-direction: column;
    padding: 3%;
    width: 200px;
    height: 70px;
    border-radius: 15px;
    background-color: rgb(25, 42, 77);
}

#error_box h3 {
    text-align: center;
}

#error_box p {
    text-align: center;
}

#cross {
    text-align: right;
}

#cross:hover {
    color: rgb(179, 179, 179);
    cursor:pointer; cursor: hand;
}

/*Responsive design*/
/* Tablets y phablets */
@media only screen and (min-width: 767px){

    abbr {
        display: inline;
    }

    /*Icono*/
    body img {
        display: unset;
    }

    #error_box {
        padding: 2%;
    }    
}

@media only screen and (min-height: 778px) {

    /*General config*/
    body {
        align-items: center;
    }
}

@media only screen and (min-width: 1100px){

    #error_box {
        padding: 1%;
    }    
}

/*000webhosting*/
#ultimo + div {
    visibility: hidden;
}