@import url("./reset.css");

:root {
  --color-primary: #089e68;
  --color-secondary: #97d80c;
}

body {
  font-family: arial;
  font-weight: bold;
  height: 100vh;
}

#head {
  background-color: rgb(13, 204, 77);
  color: white;
  padding: 10px;
  margin-left: 30px;
  margin-right: 30px;
  text-align: center;
  font-size: 1.3em;
}

header {
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 20px 5px 20px;
}

#logo {
  grid-area: logo-cajaviva;
  width: 208px;
  margin-top: 15px;
}

#info {
  width: 80%;
  text-align: right;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: end;
}

#info .text {
  margin-left: 20px;
  width: fit-content;
  display: flex;
  flex-direction: column;
}

#info span {
  display: inline-block;
  margin-right: 10px;
}

#info .tels {
  font-size: 1.6em;
  margin-top: 10px;
}

#title {
  border: solid 1px black;
  margin: 15px;
  padding: 50px;
  border-radius: 20px;
  text-align: center;
}

h1 {
  font-size: 2em;
  text-align: center;
}

h2 {
  font-size: 1.5em;
  text-align: center;
}

.mt-0 {
  margin-top: 0 !important;
}

.p-4 {
  padding: 30px 0;
}

/*Botones*/
a{
  cursor: pointer;
}
a.action-button {
  border: 2px solid black;
  border-radius: 10px;
  background: linear-gradient(white, white, white, rgb(190, 190, 190));
  font-size: 1.8em;
  height: 94px;
  padding: 5px 5px 5px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: black;
  margin-bottom: 20px;
}

.cancel {
  background: linear-gradient(white, white, white, white, white, rgb(255, 0, 0)) !important;
}

.edit {
  background: linear-gradient(white, white, white, white, white, rgb(251,220,0)) !important;
}

.ok {
  background: linear-gradient(white, white, white, white, white, rgb(1,217,0)) !important;
}

a.action-button.left {
  padding: 5px 30px 5px 5px;
}

a.left {
  text-align: right;
}

a.action-button p {
  margin-top: 0;
  word-break: break-word;
}

.leftPointed {
  transform: rotate(180deg);
}

div.parent {
  margin-top: 40px;
  display: flex;
  width: 100%;
  justify-content: space-between;
}

div.parent>div.child {
  width: 40%;
  margin: 20px;
}

div.parent>div.child:nth-child(2) {
  width: 10%;
}

.hidden {
  visibility: hidden;
}

@media(max-width:1200px) {
  a.action-button p {
    max-width: 280px;
  }
}

/*Index*/
#head-login {
  margin-top: 40px;
}

#login-info {
  border: 2px solid black;
  display: flex;
  margin: 50px 20px 50px 20px;
  padding: 20px 0 20px 0;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: larger;
  text-align: center;
}

/* Idiomas */
#language a>img:not(.noRound) {
  width: 68px;
  height: 68px;
  border: solid 1px black;
  border-radius: 70px;
  object-fit: cover;
}

#language a.right img {
  margin-right: 10px;
}

#language a.left img {
  margin-left: 10px;
}

/* Pin*/
#table-pin {
  margin-top: 20px;
}

#text-pin p:first-of-type,
#text-pin a {
  font-size: 1.8em;
  text-align: center;
  display: flex;
  margin: 15px auto;
  justify-content: center;
}

#gif {
  display: flex;
  margin: 20px auto;
}

/*Selección cuenta*/
#title>div {
  font-size: 1.6em;
  text-align: center;
  padding: 20px;
}

/*Retiro de cuenta corriente*/
#table-retiro {
  margin-top: 20px;
}

/* Retirar sin recibo */
.retirarSinRecibo {
  text-align: center;
  font-size: 1.6em;
}

.retirarSinRecibo img {
  max-width: 250px;
  height: fit-content;
  margin-top: 30px;
}

#comprobarTarjeta {
  cursor: pointer;
}

#noRecibo {
  margin-top: 25px;
}

/* PÁGINA ULTIMOS MOVIMIENTOS*/
.title-page-border {
  border: solid 1px black;
  margin: 15px;
  padding: 50px;
  border-radius: 20px;
}

#ultMovs table {
  width: 90%;
  margin: 30px auto;
  border: 2px solid black;
  border-radius: 20px;
  padding: 30px 0;
}

#ultMovs table tr>th:nth-of-type(1) {
  width: 20%;
}

#ultMovs table tr>th:nth-of-type(2) {
  width: 60%;
}

#ultMovs table tr>th:nth-of-type(3) {
  width: 20%;
}

#ultMovs table tr td:last-child {
  text-align: end;
  padding-right: 50px;
}

#ultMovs table th {
  text-align: start;
  font-weight: bold;
  font-size: 2em;
  color: var(--color-primary);
  vertical-align: middle;
  padding-bottom: 30px;
  padding-left: 40px;
}

#ultMovs table td {
  text-align: start;
  text-transform: uppercase;
  font-size: 1.5em;
  padding: 10px 0;
  padding-left: 40px;
}

/* PÁGINA SALDO*/
#saldoPage .title-page-border {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.title-page-border p,
.button-page-border p {
  font-size: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#saldoPage .title-page-border p span {
  color: var(--color-secondary);
  padding-top: 10px;
  font-size: 1.4em;
}

#saldoPage .title-page-border p:not(:last-child) {
  padding-bottom: 30px;
}

#saldoPage .title-page-border p span.negative {
  color: red;
}

/* PÁGINA CAMBIAR PIN*/
#cambiarpin #text-pin a.hidden {
  display: none;
}

/*PAGINA INTRODUCIR TARJETA*/
#introducirTarjeta .title-page-border p {
  font-size: 2em;
  text-align: center;
}

/* Ingresos */
#ingreso-container {
  margin-top: 0;
}

#infoIngreso {
  margin-top: 10px;
  font-size: 1.3em;
  text-align: center;
}

#infoIngreso>p {
  margin-top: 10px;
}

/*Tabla Ingreso*/
#table-ingreso {
  margin-top: 50px;
}

/*Cuenta Ingreso*/
#cuentaIngreso {
  margin-top: 60px;
}

/*Ingreso Rápido*/
#infoIngresoRapido {
  text-align: center;
  font-weight: normal;
  font-size: 1.5em;
}

#ingresoRapidoGif {
  display: flex;
  margin: 50px auto 50px auto;
  width: 230px;
  height: auto;
}

#ingresoRapidoGif>img {
  width: 230px;
  height: auto;
}

/* Página de finalización de operación */
#imgFinal {
  width: 90%;
  margin: 20px 5% 0 5%;
  height: fit-content;
  background-color: #69aa44;
}

#imgFinal img {
  width: 100% !important;
  height: fit-content;
  animation: 0.75s linear 0s 1 fadeIn;
}

@keyframes fadeIn {
  from {
    transform: scale(0.5, 0.5);
    opacity: 0;
  }

  to {
    transform: scale(1, 1);
    opacity: 1;
  }
}

/*Botón Continuar*/
#continuar,
#continuar-confirm {
  color: black;
  text-decoration: none;
}

#table-pin input[type=number] {
  -webkit-text-security: disc;
}

/*******************************************************************/
p.text-center {
  text-align: center;
}

p.h2 {
  font-size: 1.6em;
  margin-top: 40px;
}

header button {
  border: 2px solid black;
  border-radius: 10px;
  background: linear-gradient(white, white, white, rgb(190, 190, 190));
  font-size: 1em;
  padding: 10px 5px;
  margin: 0 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: black;
  text-transform: uppercase;
  font-weight: bolder
}

#index header button {
  display: none;
}

#table-pin .inputs {
  width: 60%;
  max-width: 700px;
}

#table-pin .inputs>div {
  width: 25%;
}

#table-pin .inputs>div:first-child input {
  border-radius: 20px;
}

#table-pin .inputs>div input {
  width: 90%;
  max-width: none;
}

#cuentaAbono .header {
  display: flex;
}

.text-center {
  display: flex;
  justify-content: center;
}

/*Escanear códigos de barra*/
#codBarras .title-page-border img {
  width: 250px;
  height: fit-content;
  margin: 0 auto;
  display: flex;
  margin-top: 20px;
}

.p-value {
  margin-bottom: 12px;
  margin-top: 2px;
  color: var(--color-primary);
}

.p-title{
  font-size: 1.5em !important;
}

.scan-header {
  color: white;
  background-color: var(--color-primary);
  margin-left: 30px;
  margin-right: 30px;
  font-size: 1.3em !important;
  padding: 10px;
  margin-bottom: 30px
}

#codBarras p.h2 {
  margin: 30px 0 !important;
}


/* Retirar dinero */
#retirarDinero a{
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: start;
}
#retirarDinero a > p{
  margin-left: 30px;
}

.button-page-border{
  border: solid 1px black;
  margin: 40px 100px;
  padding: 30px 50px;
  border-radius: 20px;
}
