@font-face {
    font-family: gotham;
    font-weight: bold;    
    src: url("/fonts/Gotham_Bold.otf") format("opentype");
}
@font-face {
    font-family: gotham;
    src: url("/fonts/Gotham_Medium.otf") format("opentype");
}

html {
    min-height: 100%;
    background-color: white;
}
body {
    max-width: 720px;
    min-height: 100%;
    height: 100vh;
    margin: 0 auto;;
    background-color: #dedede;
    display: flex;
    flex-direction: column;
}

#header {
    min-height: 300px;
    flex-grow: 1;
    background-image: url('/images/bullpadel_header_image.png');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: auto 85%;
    position: relative;
}
#header #lang_selector {
    position: absolute;
    top: 10px;
    right: 10px;
    font-family: gotham;
}
#header #lang_selector .langsel {
    margin-top: 0;
}

#bar {
    font-family: gotham;
    font-weight: bold;
    background-color: #808080;
    padding: 30px 50px;
    font-weight: bold;
    background-image: url('/images/bullpadel_logo.png');
    background-repeat: no-repeat;
    background-position: 95% 50%;
    background-size: 25%;
}

#form_wrapper {
    background-color: #dedede;
    padding: 30px 50px;
    padding-bottom: 50px;
    font-family: gotham;
}
#form_wrapper #form_title {
    margin-bottom: 20px;
    font-size: 0.9rem;
}
#form_wrapper .form_row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
#form_wrapper .form_row .form_row_element {
    box-sizing: border-box;
    flex-basis: 50%;
    margin-bottom: 15px;
}
#form_wrapper .form_row .form_row_element:first-child {
    padding-right: 15px;
}
#form_wrapper .form_row .form_row_element:last-child {
    padding-left: 15px;
}
#form_wrapper .form_row .form_label {
    text-transform: uppercase;
    font-size: 0.70rem;
    font-weight: bold;
    margin-right: 20px;
    margin-bottom: 5px;
}
#form_wrapper form input[type="text"] {
    border: none;
    padding: 5px 10px;
    width: 100%;
    box-sizing: border-box;
}
#form_wrapper #submit_row {
    margin-top: 40px;
    display: flex;
    align-items: center;
}
#form_wrapper #submit_row input {
    border: none;
    text-transform: uppercase;
    color: white;
    font-weight: bold;
    background-color: #808080;
    padding: 10px 15px;
    cursor: pointer;
}
#form_wrapper #submit_row input:disabled {
    cursor: not-allowed;
    color: grey;
    background-color: #cccccc;
}
#form_wrapper #submit_row span {
    text-transform: uppercase;
    margin-left: 20px;
    font-size: 0.75rem;
}
#form_wrapper label.error {
    color: red;
    font-size: 0.7rem;
}
span.button {
    border: none;
    text-transform: uppercase;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    background-color: #808080;
    padding: 10px 15px;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    user-select: none;
    transition: background-color ease 0.3s;
}
span.button:hover {
    background-color: #505050;
}

#form_wrapper #form_model_error {
    color: red;
    font-size: 0.75rem;
}
#form_wrapper #form_model_success {
    color: green;
    font-size: 0.75rem;
}

@media only screen and (max-width: 600px) {
    #bar { padding-left: 20px; padding-right: 20px; }
    #form_wrapper { padding-left: 20px; padding-right: 20px; }
    #form_wrapper .form_row .form_row_element { flex-basis: 100%; }
    #form_wrapper .form_row .form_row_element:first-child { padding-right: 0; }
    #form_wrapper .form_row .form_row_element:last-child { padding-left: 0; }    
}

/********************************************************************************************/

#modal_overlay {
    position: fixed;
    left: 0;
    top: 0;
    background: rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    perspective: 800;
    -webkit-perspective: 800;
    z-index: 2000;
    margin-top: 0px;
}
.modal_wrapper {
    position: fixed;
    box-sizing: border-box;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;
    background-color: #f5f5f7;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.8);
    display: none;
    margin-top: 0px;
    width: 400px;
    max-width: 95%;
    max-height: 95%;
    padding: 10px 30px;
}
#modal_qr_wrapper #modal_qr {
    padding: 10px;
}
#modal_qr_wrapper #modal_qr div {
    text-align: center;
    text-transform: uppercase;
}
#modal_qr_wrapper #modal_qr #video_wrapper {
    margin: 20px 0;
    max-width: 100%;
    /* position: relative; */
}
#modal_qr_wrapper #modal_qr #video_wrapper video {
    max-width: 100%;
    /* position: absolute; */
    /* top: 0; */
    /* left: 0; */
    /* right: 0; */
    /* bottom: 0; */
}

#modal_success_wrapper #modal_success {
    padding: 10px;
}
#modal_success_wrapper #modal_success div {
    text-align: center;
    margin-bottom: 20px;
}
#modal_success_wrapper #modal_success div:first-child {
    text-transform: uppercase;
    font-weight: bold;
}


/********************************************************************************************/
.loader {
  margin: 0px auto;
  font-size: 5px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  -webkit-animation: load5 1.1s infinite ease;
  animation: load5 1.1s infinite ease;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}
@-webkit-keyframes load5 {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #f59000, 1.8em -1.8em 0 0em rgba(245,144,0, 0.2), 2.5em 0em 0 0em rgba(245,144,0, 0.2), 1.75em 1.75em 0 0em rgba(245,144,0, 0.2), 0em 2.5em 0 0em rgba(245,144,0, 0.2), -1.8em 1.8em 0 0em rgba(245,144,0, 0.2), -2.6em 0em 0 0em rgba(245,144,0, 0.5), -1.8em -1.8em 0 0em rgba(245,144,0, 0.7);
  }
  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.7), 1.8em -1.8em 0 0em #f59000, 2.5em 0em 0 0em rgba(245,144,0, 0.2), 1.75em 1.75em 0 0em rgba(245,144,0, 0.2), 0em 2.5em 0 0em rgba(245,144,0, 0.2), -1.8em 1.8em 0 0em rgba(245,144,0, 0.2), -2.6em 0em 0 0em rgba(245,144,0, 0.2), -1.8em -1.8em 0 0em rgba(245,144,0, 0.5);
  }
  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.5), 1.8em -1.8em 0 0em rgba(245,144,0, 0.7), 2.5em 0em 0 0em #f59000, 1.75em 1.75em 0 0em rgba(245,144,0, 0.2), 0em 2.5em 0 0em rgba(245,144,0, 0.2), -1.8em 1.8em 0 0em rgba(245,144,0, 0.2), -2.6em 0em 0 0em rgba(245,144,0, 0.2), -1.8em -1.8em 0 0em rgba(245,144,0, 0.2);
  }
  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.2), 1.8em -1.8em 0 0em rgba(245,144,0, 0.5), 2.5em 0em 0 0em rgba(245,144,0, 0.7), 1.75em 1.75em 0 0em #f59000, 0em 2.5em 0 0em rgba(245,144,0, 0.2), -1.8em 1.8em 0 0em rgba(245,144,0, 0.2), -2.6em 0em 0 0em rgba(245,144,0, 0.2), -1.8em -1.8em 0 0em rgba(245,144,0, 0.2);
  }
  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.2), 1.8em -1.8em 0 0em rgba(245,144,0, 0.2), 2.5em 0em 0 0em rgba(245,144,0, 0.5), 1.75em 1.75em 0 0em rgba(245,144,0, 0.7), 0em 2.5em 0 0em #f59000, -1.8em 1.8em 0 0em rgba(245,144,0, 0.2), -2.6em 0em 0 0em rgba(245,144,0, 0.2), -1.8em -1.8em 0 0em rgba(245,144,0, 0.2);
  }
  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.2), 1.8em -1.8em 0 0em rgba(245,144,0, 0.2), 2.5em 0em 0 0em rgba(245,144,0, 0.2), 1.75em 1.75em 0 0em rgba(245,144,0, 0.5), 0em 2.5em 0 0em rgba(245,144,0, 0.7), -1.8em 1.8em 0 0em #f59000, -2.6em 0em 0 0em rgba(245,144,0, 0.2), -1.8em -1.8em 0 0em rgba(245,144,0, 0.2);
  }
  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.2), 1.8em -1.8em 0 0em rgba(245,144,0, 0.2), 2.5em 0em 0 0em rgba(245,144,0, 0.2), 1.75em 1.75em 0 0em rgba(245,144,0, 0.2), 0em 2.5em 0 0em rgba(245,144,0, 0.5), -1.8em 1.8em 0 0em rgba(245,144,0, 0.7), -2.6em 0em 0 0em #f59000, -1.8em -1.8em 0 0em rgba(245,144,0, 0.2);
  }
  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.2), 1.8em -1.8em 0 0em rgba(245,144,0, 0.2), 2.5em 0em 0 0em rgba(245,144,0, 0.2), 1.75em 1.75em 0 0em rgba(245,144,0, 0.2), 0em 2.5em 0 0em rgba(245,144,0, 0.2), -1.8em 1.8em 0 0em rgba(245,144,0, 0.5), -2.6em 0em 0 0em rgba(245,144,0, 0.7), -1.8em -1.8em 0 0em #f59000;
  }
}
@keyframes load5 {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #f59000, 1.8em -1.8em 0 0em rgba(245,144,0, 0.2), 2.5em 0em 0 0em rgba(245,144,0, 0.2), 1.75em 1.75em 0 0em rgba(245,144,0, 0.2), 0em 2.5em 0 0em rgba(245,144,0, 0.2), -1.8em 1.8em 0 0em rgba(245,144,0, 0.2), -2.6em 0em 0 0em rgba(245,144,0, 0.5), -1.8em -1.8em 0 0em rgba(245,144,0, 0.7);
  }
  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.7), 1.8em -1.8em 0 0em #f59000, 2.5em 0em 0 0em rgba(245,144,0, 0.2), 1.75em 1.75em 0 0em rgba(245,144,0, 0.2), 0em 2.5em 0 0em rgba(245,144,0, 0.2), -1.8em 1.8em 0 0em rgba(245,144,0, 0.2), -2.6em 0em 0 0em rgba(245,144,0, 0.2), -1.8em -1.8em 0 0em rgba(245,144,0, 0.5);
  }
  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.5), 1.8em -1.8em 0 0em rgba(245,144,0, 0.7), 2.5em 0em 0 0em #f59000, 1.75em 1.75em 0 0em rgba(245,144,0, 0.2), 0em 2.5em 0 0em rgba(245,144,0, 0.2), -1.8em 1.8em 0 0em rgba(245,144,0, 0.2), -2.6em 0em 0 0em rgba(245,144,0, 0.2), -1.8em -1.8em 0 0em rgba(245,144,0, 0.2);
  }
  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.2), 1.8em -1.8em 0 0em rgba(245,144,0, 0.5), 2.5em 0em 0 0em rgba(245,144,0, 0.7), 1.75em 1.75em 0 0em #f59000, 0em 2.5em 0 0em rgba(245,144,0, 0.2), -1.8em 1.8em 0 0em rgba(245,144,0, 0.2), -2.6em 0em 0 0em rgba(245,144,0, 0.2), -1.8em -1.8em 0 0em rgba(245,144,0, 0.2);
  }
  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.2), 1.8em -1.8em 0 0em rgba(245,144,0, 0.2), 2.5em 0em 0 0em rgba(245,144,0, 0.5), 1.75em 1.75em 0 0em rgba(245,144,0, 0.7), 0em 2.5em 0 0em #f59000, -1.8em 1.8em 0 0em rgba(245,144,0, 0.2), -2.6em 0em 0 0em rgba(245,144,0, 0.2), -1.8em -1.8em 0 0em rgba(245,144,0, 0.2);
  }
  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.2), 1.8em -1.8em 0 0em rgba(245,144,0, 0.2), 2.5em 0em 0 0em rgba(245,144,0, 0.2), 1.75em 1.75em 0 0em rgba(245,144,0, 0.5), 0em 2.5em 0 0em rgba(245,144,0, 0.7), -1.8em 1.8em 0 0em #f59000, -2.6em 0em 0 0em rgba(245,144,0, 0.2), -1.8em -1.8em 0 0em rgba(245,144,0, 0.2);
  }
  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.2), 1.8em -1.8em 0 0em rgba(245,144,0, 0.2), 2.5em 0em 0 0em rgba(245,144,0, 0.2), 1.75em 1.75em 0 0em rgba(245,144,0, 0.2), 0em 2.5em 0 0em rgba(245,144,0, 0.5), -1.8em 1.8em 0 0em rgba(245,144,0, 0.7), -2.6em 0em 0 0em #f59000, -1.8em -1.8em 0 0em rgba(245,144,0, 0.2);
  }
  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(245,144,0, 0.2), 1.8em -1.8em 0 0em rgba(245,144,0, 0.2), 2.5em 0em 0 0em rgba(245,144,0, 0.2), 1.75em 1.75em 0 0em rgba(245,144,0, 0.2), 0em 2.5em 0 0em rgba(245,144,0, 0.2), -1.8em 1.8em 0 0em rgba(245,144,0, 0.5), -2.6em 0em 0 0em rgba(245,144,0, 0.7), -1.8em -1.8em 0 0em #f59000;
  }
}
