/*HTML Reset*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
} 

/*Body Layout*/
body {
  font-family: 'Raleway', sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6; 
  overflow-x: hidden;
}

/*Base Styling*/

/*---Backgrounds ---*/
.bg-dark {
  background-color: #333;
  color: #fff;
  opacity: 0.8;
}

.bg-lightblue {
  background-color: rgba(65,69,91,0.75);
}

/*---Lists---*/
ul {
  list-style: none;
}

/*---Links---*/
a {
  text-decoration: none;
  color: #fff;
}

/*---Headers---*/
h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.2;
}


.secondary-header {
  text-align: center;
  padding: 3% 10%;
}

/*---Buttons---*/

.btn {
  padding: 10px 30px;
  margin: 0 10px;
}

.btn-small {
  padding: 10px 15px;
  margin: 0 10px;
}

.btn-large {
  padding: 15px 35px;
  margin: 0 10px;
}

.btn-dark {
  color: #fff;
  background-color: #333;
}

.btn-light {
  color: #333;
  background-color: #e0e0dc;
}

/*--- Tables Main Styles ---*/
td a {
  color: blue;
  text-decoration: underline;
}

table {
  font-size: 0.95rem;
  border-collapse: collapse;
  margin: auto;
  width: 90%;
}

th {
  color: #fff;
}

td {
  color: #3f3f3f;
}

th, td {
  border-bottom: 2px solid #5a5a5a;
  padding: 10px 15px;
  text-align: left; 
  background-color: #fff;
}

th {
  background-color: #5a5a5a;
}

/* Boton para hacer scroll up */
#myBtn {
  display: none;
  position: fixed;
  bottom: 70px;
  right: 30px;
  z-index: 99;
  font-size: 25px;
  border: none;
  outline: none;
  background-color: #5a5a5a;
  cursor: pointer;
  padding: 12px 15px;
  border-radius: 50%;
}

#myBtn i {
  color:#fff;
}
    
#myBtn:hover {
  background-color: rgba(0,0,0,0.35);
}

/*Main Styling*/

/*---Hero Section---*/
.hero {
  background: url(/static/app/img/background/triatlon.jpg);
  background-repeat: none;
  background-position: center;
  background-size: cover;
  height: 100vh;
  position: relative;
  color: #fff;
}

.hero::before {
  content:''; 
  position: absolute; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35); 
}

.hero * {
  z-index: 5;
}

/*---Navigation Bar---*/
.navbar {
  display: flex;
  align-items: center;
  background-color: #333;
  color: #fff;
  opacity: 0.8;
  width: 100%;
  height: 70px;
  position: fixed; 
  top: 0px;
  padding: 0 30px;
  transition: 0.5s;
  z-index: 10;
}   

.navbar .logo {
  width: 2%;
}

.navbar .nav {
  width: 98%;
}


.navbar.top {
  background: transparent;
}

.navbar a {
  color: #fff;
  padding: 10px 20px;
  margin: 0 15px;
}

.navbar a:hover {
  border-bottom: 2px solid #fff;
} 

.navbar ul {
  display: flex;
  justify-content: center;
}

.navbar .logo a:hover {
  border-bottom: 0;
} 

.navbar .logo img {
  width: 130%;
}


/* Next Races Section */

/*--- Next Races Header ---*/
.next-races {
  background-color: #f2f2f2;
  color: #474747;
}

.next-races .secondary-header {
  padding-bottom: 1%;
}

.next-races h2 {
  font-size: 2rem;
}

.next-races .banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 1%;
}

.next-races .banner img {
  width: 65%;
}

/*---Info Container---*/
.info-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 1% 2%;
}

.info-container .img {
  width:40%;
  height: auto;
} 

.info-container .left-info {
  width: 60%;
  height: auto;
}

.info-container .img {
  text-align: center;
}

.next-races .next-event-calendar {
  background-color: #f8f8f8;
  padding: 20px 0;
}

/*---Race Info header---*/
.event-notification {
    color: #F94FF0;
}

.main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8% 0 15% 0;
}

.main-header h1 {
  font-size: 4rem;
  margin-top: 2%;
}

.main-header h2 {
  padding-bottom: 5px;
}

.main-header p {
  font-size: 1.3rem;
}

.next-races .next-event-calendar h2 {
  text-align: center;
}

/*---Race Info page buttons---*/
.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttons .reg-btn a:hover,
.buttons .race-info a:hover {
  background-color:#5a5a5a;
  color: #fff;
}

.msg-space {
  text-align: center;
  color: rgb(226, 88, 88);
}

/*---Counter---*/
.counter {
  padding: 8.8% 0; /*para la pagina principal hay que volver a cambiar a 12%*/
}
.counter ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.counter ul li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 300;
  margin: 0 5px;
}

.counter ul li span {
  font-family: 'Open Sans', sans-serif;
  font-size: 4rem;
  padding: 5px 30px;
  margin: 5px 10px;
}

/*--- Registration Options ---*/
.reg-options-header {
  color:#333;
  font-size: 2rem;
  text-align: center;
  padding-top: 7%;
}

.reg-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  text-align: center;
  min-height: 90vh;
  padding: 0% 10%;
}

.reg-opt {
  background-color: #dad8d8;
  padding: 50px 30px;
  margin-bottom: 5%;
  width: 300px; 
  height: 300px;
  border-radius: 4%;
}

.reg-opt-img img {
  width: 45%;
}

.reg-opt a {
  font-size: 1.3rem;
  color: #5a5a5a;
  text-decoration: underline;
} 

/*--- Form Styles ---*/
.form-container {
  max-width: 1100px;
  font-size: 1.5rem;
  background-color: #5a5a5a;
  margin: 7% 20%;
  padding: 10px;
}

.form-container ul {
  font-size: 1.2rem;
}

.form {
  background-color: #f2f2f2;
}

.form-header {
  text-align: center;
  line-height: 2rem;
  padding: 40px 0;
  margin: 0 15%;
}

.form-header h3 {
  font-weight: 700;
}

.form-header h4 {
  font-weight: bold;
  margin-bottom: 10px;
}

.form-header p {
  font-size: 1.2rem;
  margin: 5% 0;
}

.form-header .qr {
  width: 100%;
}

.form-header .qr img {
  width: 100%;
}

.form-header .precios {
  margin-top: 10px;
  margin-bottom: 20px;
}

.data-form {
  padding: 0 10%;
}

.data-form form {
  list-style: none;
}

.data-form input,
.data-form select {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
}

.errorlist {
  font-size: 1rem;
  color: red;

}

.reg-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px;
}

.reg-buttons a {
  color: #333;
  padding: 10px 25px;
}

.reg-buttons button {
  font-size: 1.5rem;
  font-family: 'Raleway', sans-serif;
  border: none;
}

.reg-buttons a:hover,
.reg-buttons button:hover {
  background-color:#5a5a5a;
  color: #fff;
}

/*--- Registration Success View ---*/
.container-reg-success {
  max-width: 1100px;
  min-height: 70vh;
  background-color: #ecece7;
  border: solid 5px #5a5a5a;
  margin: 5% 25%;
  padding: 40px;
  text-align: center;
}

.container-reg-success h3 {
  padding-top: 5%;
}

.reg-info-ver {
  text-align: left;
  padding-left: 20px;
}

.reg-info-data  {
  padding: 10px;
}

.reg-info-data p {
  text-align: left;
  padding: 0 10px 5px 10px ;
}

.dorsal-registro {
  text-align: center;
  align-items: center;
  justify-content: center;
  width: 80%;
  margin-top: 20px;
  padding-left: 20%;
}

.dorsal-registro img {
  width: 100%;
}

.dorsal-descarga {
  padding-bottom: 20px;
}

.dorsal-descarga a {
  color: rgb(80, 80, 207);
}

.dorsal-descarga a:hover {
  text-decoration: underline;
}

/*--- Sin Cupos View ---*/
.sin-cupos {
  height: 90vh;
  text-align: center;
  padding-top: 10%;
}

/*--- Registered Athletes ---*/

.table-container {
  padding: 0 5% 5% 5%;
  margin-bottom: 20px;
}

.reg-count-header h2 {
  padding-top: 5%;
}

.reg-table h2 {
  font-size: 2rem;
}

.tbl-bg {
  background-color: #e4e4e4;
  padding-bottom: 40px;
}

.reg-count {
  margin: 0 35%;
  padding-bottom: 20px;
}

.excel-btn {
  text-align: center;
}


/*--- Image Info Container ---*/
.info-container .img img {
  width: 80%;
}

.info-container .next-event-info {
  color: #fff;
}

.info-container .next-event-info h2 {
  font-size: 2rem;
}

.event-info {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-top: 3%;  
}

.event-info h4 {
  font-size: 1.5rem;
}

.event-info ul {
  font-size: 1.2rem;
  font-weight: 300;
  text-align: left;
  padding: 5% 1%;
}

/* Past Races */

/*--- Races ---*/
.past-races {
  margin-bottom: 2%;
}
.past-races h2 {
  font-size: 2rem;
}
.grid-container {
  display: grid;
  grid-template-columns: auto auto auto;
  padding: 0% 10%;
}
.grid-item { 
  padding: 2%;
  text-align: center;
}

.grid-item img {
  max-width: 100%;
}

.grid-item a:hover {
    opacity: 0.7;
}

/*Footer Styling*/
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100px;
  color: #fff;
}

.footer a {
  color: #fff;
}

.footer .social > * { /*"> *" quiere decir que el estilo que definido se debe aplicar a lo que sea que este dentro de este div*/
  margin:0 15px;
}

/* Past Races Section */
/*--- Past Races Galery ---*/
#galery {
  background-color: #f8f8f8;
  text-align: center;
}
#galery h1 {
  text-align: center;
  padding-top: 6%;
}

#galery ul {
  display: flex;
  flex-direction: row;
  justify-content: right;
  padding: 3% 20%;
}

#galery ul a:hover {
  text-decoration: underline;
}

#galery .icon {
  margin-left: 4%;
}

#galery .icon a {
  color: #333;
}

#galery .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 5%;
}

#galery .banner {
  width: 50%;
  text-align: center;
}

#galery .video-container {
  width: 50%;
  padding: 2% 0 2% 0;
}

#galery .banner_2 {
  width: 50%;
  text-align: center;
}

#galery .video-container iframe {
  width: 80%; 
  height: 330px;
}

#galery .banner img {
  width: 60%;
}

#galery .past-event-info {
  display: grid;
  grid-template-columns: 25% 25% 25% 25%;
  padding: 70px;
}

/* Styles and hover effect for icons */

.past-event-icon {
  position: relative;
  width: 80%;
  padding: 0 10px;
}

.image {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.hover-effect {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.past-event-icon:hover .image {
  opacity: 0.15;
}

.past-event-icon:hover .hover-effect {
  opacity: 1;
}

.text a {
  color: #333;
  font-size: 1.5rem;
  padding: 16px 32px;
}

/*--- Payment View ---*/
.page-body {
  min-height: 90vh;
}
.payment-view {
  padding: 5% 20%;
}

/*--- Pago Verificado ---*/
.edit-container {
  max-width: 1000px;
  background-color: #e0e0dc;
  margin: 13.5% 30%;
  padding: 40px;
}
.payment-confirmation {
  background-color: #f2f2f2;
  padding: 40px 60px;
}

.pay-buttons button {
  border: none;
}

.pay-buttons a, 
.pay-buttons button {
  padding: 10px 20px;
  font-size: 1rem;
  font-family: 'Raleway', sans-serif;
  margin-top: 15px;
}

.pay-buttons a:hover, 
.pay-buttons button:hover {
  background-color: #5a5a5a;
  text-decoration: underline;
}

/*--- Temporary View ---*/
#temp-view {
  background-color: #f2f2f2;
  height: auto;
}

#temp-view .flex-items {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  margin: 2% 2% 0 5%;
  align-items: center;
  justify-content: center;
}

.art-view {
  width: 55%;
  height: auto;
  padding: 5% 0;
  text-align: center;
}

.art-view img {
  width: 60%;
}

.info-view {
  width: 45%;
  text-align: center;
  color: #5a5a5a; 
}

.info-view h1 {
  padding-left: 13%;
  padding-right: 13%;
  font-size: 3rem;
  line-height: 3rem;
}

