/*definicion de colores*/
:root {
  --colorOk: #5eba7d;
  --colorWARM: #ffcc00;
  --colorFAIL: #c92222;
  --colorTextoBlanco: #ffffff;
  --colorTextoNegro: #000000;
}

/* fin definicion de colores*/
@import url('https://fonts.googleapis.com/css?family=Poppins&display=swap');

* {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1em;
}

h1 {
  text-align: center;
  margin: 0 auto 0.8em 0;
  height: auto;
}

#result {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ok {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--colorOk);
  color: var(--colorTextoNegro);
  width: 88%;
  padding: 5%;
  margin: 1% 1%;
  border-radius: 1rem;
}

.warm {
	display: flex;
	flex-direction: column;
  background-color: var(--colorWARM);
  color: var(--colorTextoNegro);
  width: 88%;
  height: auto;
  padding: 1% 5%;
  margin: 1% 1%;
  border-radius: 1rem;
}

.fail {
	display: flex;
	flex-direction: column;
  background-color: var(--colorFAIL);
  color: var(--colorTextoBlanco);
  width: 88%;
  height: auto;
  padding: 1% 5%;
  margin: 1% 1%;
  border-radius: 1rem;
}

.fail div, .warm div {
  margin: 0.5em 0;
}

hr{
	margin: 1em 0;
	height: 0.1em;
}

span {
	position: relative;
	display: inline-block;
	width: 30% !important;
}
span:last-child{
	width: 70% !important;
}

tbody, thead, tr, td, th{
  width: auto !important;
  height: auto !important;
}

table {
  border: 1px solid var(--colorTextoBlanco);
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  table-layout: fixed;
}

table tr {
  border: 1px solid var(--colorTextoBlanco);
  padding: .35em;
  border-radius: 1em;
}

table th,
table td {
  padding: .625em;
  text-align: center;
}

table th {
  font-size: .85em;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media screen and (max-width: 600px) {
  table {
    border: 0;
  }

  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px !important;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px !important;
  }

  table tr {
    border-bottom: 5px solid  var(--colorTextoBlanco);
    display: block;
    margin-bottom: .8em;
  }

  table td {
    border-bottom: 1px solid  var(--colorTextoBlanco);
    display: block;
    text-align: right;
    min-height: 0.5em;
  }

  table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }

  table td:last-child {
    border-bottom: 0;
  }
}
