/**
 * /user/assets/styles/main.css
 *
 * @author Pablo Rubio
 * @version 1.0
 */

/* Box model
 */

*,
*:after,
*:before {
  box-sizing: border-box;
}

/* Intersection Observer
 */

.observable {
  opacity: 0;
  transition: opacity 1s 0s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.observable.intersecting {
  opacity: 1;
}

/* Selection
 */

::selection {
  background: rgba(188, 190, 192, 0.6);
  color: rgba(255, 255, 255, 1);
  text-shadow: none;
}

::-moz-selection {
  background: rgba(188, 190, 192, 0.6);
  color: rgba(255, 255, 255, 1);
  text-shadow: none;
}

button,
button:focus {
  outline: none;
}

.clear-after:after {
  display: block;
  clear: both;
  content: '';
}

/* Wordpress images
 */
img.alignright {
  float: right;
  margin: 0 0 1em 1em;
}
img.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}
img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
a img.alignright {
  float: right;
  margin: 0 0 1em 1em;
}
a img.alignleft {
  float: left;
  margin: 0 1em 1em 0;
}
a img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Modal
*/

.modal:before {
  background-color: #494256;
  background-color: #1e3441;
  background-color: #222222;
}

[data-modal-state='loading'] .modal .inner {
  background-image: url('../images/spinner/light.gif');
}

.modal .content {
  padding: 24px;
}

.modal .modal-content.subscribe {
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  margin: 0px auto;
  background-color: #1e3441;
}

.landscape .modal .modal-content.subscribe {
  padding: 0px 0px 0px 210px;
  max-width: 600px;
}

.modal .modal-content.subscribe .attachments {
  background-color: #000000;
  height: 180px;
}

.landscape .modal .modal-content.subscribe .attachments {
  float: left;
  margin: 0px 0px 0px -210px;
  width: 210px;
  height: 321px;
}

.modal .modal-content.subscribe .attachment {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.72;
}

.modal .modal-content.subscribe .details,
.modal .modal-content.subscribe .form {
  background-color: rgba(0, 0, 0, 0.72);
  background-color: #1e3441;
  color: rgba(255, 255, 255, 0.72);
}

.landscape .modal .modal-content.subscribe .details,
.landscape .modal .modal-content.subscribe .form {
  float: left;
  width: 100%;
}

.modal .modal-content.subscribe .details {
  font-size: 0.74em;
  line-height: 1.3em;
  padding: 24px 24px 0px 24px;
}

.modal .modal-content.subscribe .details h3 {
  padding: 0px 0px 12px 0px;
  margin: 0px;
}

.modal .modal-content.subscribe .details p {
  padding: 0px 0px 12px 0px;
}

.modal .modal-content.subscribe .form {
  padding: 0px 18px 18px 18px;
}

.modal .modal-content.subscribe .form .field {
  padding: 6px;
}

.landscape .modal .modal-content.subscribe .form .field {
  width: 100%;
  float: none;
  padding: 6px;
}

.modal .modal-content.subscribe .form .field label {
  display: none;
}

.modal .modal-content.subscribe .form .field .input {
  width: 100%;
  border: none;
  border-radius: 2px;
  padding: 6px;
  height: 42px;
  font-size: 0.7em;
  line-height: 1em;
  color: #222222;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.modal .modal-content.subscribe .form .field .input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.modal .modal-content.subscribe .form .field .input:focus {
  background-color: rgba(255, 255, 255, 0.6);
}

.modal .modal-content.subscribe .form .submit {
  padding: 6px 6px 0px 6px;
  clear: both;
}

.modal .modal-content.subscribe .form .submit button {
  display: block;
  height: 42px;
  width: 100%;
  margin: 0px;
  padding: 9px;
  background-color: rgba(140, 65, 65, 1);
  color: #ffffff;
  border-radius: 2px;
  border: none;
  font-family: inherit;
  font-weight: 400;
  font-size: 0.7em;
  line-height: 1em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12);
}

.modal .modal-content.subscribe .form .cancel {
  padding: 12px 6px 0px 6px;
  clear: both;
}

.modal .modal-content.subscribe .form .cancel button {
  display: block;
  height: 30px;
  width: 100%;
  max-width: 120px;
  margin: 0px auto;
  padding: 9px;
  background-color: rgba(255, 255, 255, 0.3);
  color: #222222;
  border-radius: 2px;
  border: none;
  font-family: inherit;
  font-weight: 400;
  font-size: 0.6em;
  line-height: 1em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.12);
}

@media all and (max-width: 600px) {
  .modal .modal-content.subscribe .form .field {
    width: 100%;
    float: none;
    padding: 6px;
  }
}
