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

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

html,
body {
  position: relative;
  height: 100%;
}

body {
  background: #eee;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #000;
  margin: 0;
  padding: 0;
}

h1 {
  margin: 3rem 0;
  text-align: center;
}

p[tabindex="-1"]:focus {
  border: 1px dotted;
}

button {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  -webkit-font-smoothing: antialiased;
  line-height: 1;
  padding: 0;
  text-align: center;
  text-decoration: none;
  text-transform: inherit;
  user-select: none;
  white-space: nowrap;
}

button:focus {
  outline: 1px dotted currentColor;
}

/* Swiper styles for demo */
.swiper {
  padding-bottom: 0.5rem; /* so that the buttons' outlines are not cut */
  width: 90%;
}

.swiper-slide {
  background: #fff;
  border: 2px solid #b1b1b1;
  font-size: 18px;
  height: 50vh;
  text-align: center;

  /* Center slide text vertically */
  align-items: center;
  display: flex;
  justify-content: center;
}

.swiper-controls {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.swiper-button {
  height: 1.5em;
  width: 1.5em;
  font-size: 2rem;
  margin: 0;
  padding: 0.5rem;
  position: static;
}

.swiper-button::after {
  content: none;
}

.swiper-button-prev {
  margin-right: 3rem;
}

.swiper-button-next {
  margin-left: 3rem;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
  align-items: center;
  display: flex;
  font-size: 0;
  margin: 0.4rem 0 0;
  position: static;
  width: auto;
}

.swiper-horizontal .swiper-pagination-bullet {
  align-items: center;
  display: flex;
  justify-content: center;
  height: 10px;
  width: 10px;
  background-color: currentColor;
  background-clip: content-box;
  box-sizing: content-box;
  margin-right: 3px;
  margin-left: 3px;
  opacity: 0.6;
  padding: 10px 3px;
  position: relative;
  transition: opacity 300ms ease, transform 0.2s;
}

.swiper-horizontal .swiper-pagination-bullet::before {
  height: 20px;
  width: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: '';
  position: absolute;
  transform: scale(0);
  transition: transform 300ms ease;
}

.swiper-horizontal .swiper-pagination-bullet:focus {
  opacity: 1;
  outline: none;
}

.swiper-horizontal .swiper-pagination-bullet.swiper-pagination-bullet-active {
  cursor: default;
  opacity: 1;
  transform: scale(0.6);
}

/* Modals general styles */
.modal-wrapper {
  background: #fff;
  bottom: 0;
  left: 0;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  transition: visibility 0.4s;
  visibility: hidden;
  z-index: 2;
}

.modal-wrapper.modal-active {
  visibility: visible;
}

.modal-content {
  font-size: 1rem;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 5.5rem 2rem;
  position: relative;
}

/* Modal buttons */
.modal-trigger {
  text-shadow: inherit;
  white-space: normal;
}

.modal-close {
  position: absolute;
  height: 2.25rem;
  width: 2.25rem;
  right: 2.25rem;
  top: 2.25rem;
  transition: all 300ms ease;
}

.modal-close::before,
.modal-close::after {
  background-color: currentColor;
  border-radius: 3px;
  content: '';
  height: inherit;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 0.135em;
}

.modal-close::before {
  transform: rotate(45deg);
}

.modal-close::after {
  transform: rotate(-45deg);
}

/* Modal transition */
.modal-slide .modal-content {
  min-height: 100%;
  transform: translateX(100%);
  transition: transform 0.4s;
  width: 100%;
}

.modal-slide.modal-active .modal-content {
  transform: translateX(0);
}

/* Quick styles for form */
#modal-2-form {
  align-items: center;
  display: flex;
}

#modal-2-form label {
  padding-right: 0.5rem;
}

#modal-2-form input[type="image"] {
  height: 2.3rem;
  margin-left: 0.5rem;
  padding: 0.5rem;
}
