:root {
    --fondo-principal: rgb(67, 67, 67);
    --texto-principal: rgb(170, 170, 170);
    --fondo-modal: rgb(200, 200, 200);
    --texto-modal: black;
    --fondo-article: black;
    --sombra-article: white;
    --fondo-datos: rgb(76, 142, 160);
    --texto-datos: white;
    --fondo-boton: rgb(166, 88, 199);
    --texto-boton: white;
    --fondo-boton-alerta: rgb(255, 0, 0);
    --texto-boton-alerta: white;
    --fondo-boton-hover: white;
    --texto-boton-hover: rgb(166, 88, 199);
    --texto-h1: rgb(7, 185, 249);
    --texto-h2: rgb(7, 185, 249);
    --texto-h3: rgb(7, 185, 249);
    --texto-varios: white;
    --fondo-errores: red;
    --texto-errores: white;
    --fondo-tooltip: white;
    --texto-tooltip: black;
}

* {
    font-weight: normal;
    font-family: fontawesome!important;
}

body {
    padding: 12px;
    font-size: 14px;
    background-color: var(--fondo-principal);
    color: var(--texto-principal);
}

.w3-modal-content {
    background-color: var(--fondo-modal);
    color: var(--texto-modal);
}

.borde-menu {
    padding: 6px;
    width: max-content;
    border-radius: 8px;
    animation-name: myAnimation;
    animation-duration: 0.5s;
    background-color: var(--fondo-principal);
}
.borde-menu:hover {
    cursor: pointer;
    opacity: 50%;
}
@keyframes myAnimation {
    0%   {background-color: rgb(0, 0, 0);}
    100%  {background-color: rgb(255, 255, 255);}
}

h1 {
    font-size: 2.2rem;
    color: var(--texto-h1);
    font-style: italic;
    text-align: center;
}
h2 {
    font-size: 1.8rem;
    color: var(--texto-h2);
    text-align: center;
}
h3 {
    font-size: 1.4rem;
    color: var(--texto-h3);
}
small {
    font-size: 0.8rem;
}
abbr, span, a {
    font-size: inherit;
}

p, span, label, th {
    color: var(--texto-varios);
}

label, th {
    font-weight: bold;
}

article {
	border-radius: 15px;
	box-shadow: 0px 0px 15px var(--sombra-article);
	padding: 10px;
	margin: 10px;
    background-color: var(--fondo-article);
}

fieldset {
    border-radius: 10px;
}

/* ------- flechas de ir arriba y abajo ------- */
.flechas {
    position: fixed;
    top: 40vh;
    right: 2px;
    padding: 0px 2px;
    opacity: 0.5;
    font-size: 30px;
}

input, select, textarea {
    background-color: var(--fondo-datos);
    color: var(--texto-datos);
    margin: 3px;
    border-radius: 10px;
    padding: 0px, 3px;
    width: 100%;
}
a {
    margin: 3px;
}

.errores_form {
    background-color: var(--fondo-errores);
    color: var(--texto-errores);
    font-style: italic;
}

.bajalabel {
    padding-top: 0.3rem;
}

.boton, .boton_alerta, .boton_disabled, .boton_alerta_disabled {
    border: none;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    border-radius: 6px;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}
.boton, .boton_disabled {
    color: var(--texto-boton);
    background-color: var(--fondo-boton);
}
.boton_alerta, .boton_alerta_disabled {
    color: var(--texto-boton-alerta);
    background-color: var(--fondo-boton-alerta);
}
.boton:disabled, .boton_alerta:disabled, .boton_disabled, .boton_alerta_disabled {
    cursor: not-allowed;
    opacity: 0.5
}
.boton:hover, .boton_alerta:hover, .boton_disabled:hover, .boton_alerta_disabled:hover {
    color: var(--texto-boton-hover);
    background-color: var(--fondo-boton-hover)
}

/*
Uso de tooltips:
    <div class="tooltip">
        Esto se mostrará siempre
        <span class="tooltiptext">
            Esto se mostrará al pasar el ratón
        </span>
    </div>
Puede ser cualquier etiqueta (no solo div y span)
En el tooltiptext puedes meter html (por ejemplo, para tablas ya está configurado):
    <span class="tooltiptext">
        @((MarkupString)currentTitle)
    </span>
*/
.tooltip {
    position: relative;
    display: inline-block;
    /* border-bottom: 1px dotted black; */
}
.tooltip .tooltiptext {
    visibility: hidden;
    /*width: 300px;*/
    /*margin-left: -150px;*/
    margin-left: -100px;
    min-width: 100px;
    background-color: var(--fondo-tooltip);
    color: var(--texto-tooltip);
    text-align: left;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    opacity: 0;
    transition: opacity 0.5s;
    font-size: 1rem;
}
.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    /*left: 50%;*/
    left: 100px;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--fondo-tooltip) transparent transparent transparent;
}
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
.tooltip:hover .tooltiptext table {
    width: 100%;
    margin: 0 auto;
    border: 1px solid white;
    border-collapse: collapse;
    border-spacing: 1px 1px;
}
.tooltip:hover .tooltiptext td, th {
    border: 1px solid white;
    text-align: center;
    padding: 8px 4px;
    white-space: nowrap;
}
