@media all and (max-width: 480px) {
  main {
    margin-top: 52px;
  }

  .mobileheader {
    display: block;
    padding: 0.5rem;
  }

  .desktopheader {
    display: none;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  h3 {
    font-size: 0.9rem;
  }

  h4 {
    font-size: 0.8rem;
  }

  h5 {
    font-size: 0.7rem;
  }

  h6 {
    font-size: 0.6rem;
  }

  .reveal-modal {
    left: 0;
    margin-left: 0;
    top: 0;
    width: 100%;
  }

  #popupWindow {
    height: 100vh;
  }

  #membersarea,
  #membersarea article > div {
    flex-direction: column;
  }

  #membersarea article > div > div,
  #membersarea article,
  #membersarea nav {
    width: auto;
  }

  #membersarea nav {
    display: none;
  }

  #membersarea ul.menu {
    display: none;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  table {
    border-collapse: collapse;
  }

  table tbody tr {
    width: 100%;
  }

  table tbody tr td:first-child {
    font-weight: bold;
  }

  table thead tr th {
    display: none;
  }

  table tbody tr td {
    font-size: 0.9rem;
    left: 0;
    padding: 5px;
    position: relative;
    text-align: left;
    top: 0;
  }

  table tbody tr td::before {
    content: attr(title);
    display: inline-block;
    text-align: left;
    width: 30%;
  }

  table thead tr th:nth-child(odd) {
    background-color: #eee;
  }

  table tbody tr td:nth-child(even) {
    background-color: transparent;
  }

  table thead tr th {
    height: 0;
    padding-top: 0;
  }

  table thead tr th,
  table tbody tr td {
    text-align: left;
  }

  .area,
  .areaform {
    width: 100%;
  }

  .metodopago > div:nth-child(odd) {
    width: 50%;
  }
  .metodopago > div:nth-child(even) {
    display: none;
  }
  .detallepago {
    flex-wrap: wrap;
  }
  .detallepago > div {
    margin: 1%;
    width: 98%;
  }
  #depositContents,
  #popupContent {
	padding: 40px 10px;
  }
  #membersmenu ul li ul {
  	margin-top: 24px; 
  }
}

@media all and (min-width: 481px) and (max-width: 736px) {
  main {
    margin-top: 52px;
  }

  .mobileheader {
    display: block;
  }

  .desktopheader {
    display: none;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.1rem;
  }

  h3 {
    font-size: 0.9rem;
  }

  h4 {
    font-size: 0.8rem;
  }

  h5 {
    font-size: 0.7rem;
  }

  h6 {
    font-size: 0.6rem;
  }

  .reveal-modal {
    left: 0;
    margin-left: 0;
    top: 0;
    width: 100%;
  }

  #popupWindow {
    height: 100vh;
  }

  #membersarea,
  #membersarea article > div {
    flex-direction: column;
  }

  #membersarea article > div > div,
  #membersarea article,
  #membersarea nav {
    width: auto;
  }

  #membersarea nav {
    display: none;
  }

  #membersarea ul.menu {
    display: none;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  table {
    border-collapse: collapse;
  }

  table tbody tr {
    width: 100%;
  }

  table tbody tr td:first-child {
    font-weight: bold;
  }

  table thead tr th {
    display: none;
  }

  table tbody tr td {
    font-size: 0.9rem;
    left: 0;
    padding: 5px;
    position: relative;
    text-align: left;
    top: 0;
  }

  table tbody tr td::before {
    content: attr(title);
    display: inline-block;
    text-align: left;
    width: 30%;
  }

  table thead tr th:nth-child(odd) {
    background-color: #eee;
  }

  table tbody tr td:nth-child(even) {
    background-color: transparent;
  }

  table thead tr th {
    height: 0;
    padding-top: 0;
  }

  table thead tr th,
  table tbody tr td {
    text-align: left;
  }

  .area,
  .areaform {
    width: 100%;
  }

  .metodopago > div:nth-child(odd) {
    width: 50%;
  }
  .metodopago > div:nth-child(even) {
    display: none;
  }
  .detallepago {
    flex-wrap: wrap;
  }
  .detallepago > div {
    margin: 1%;
    width: 98%;
  }
}

@media all and (min-width: 737px) and (max-width: 980px) {
  main {
    margin-top: 52px;
  }

  .mobileheader {
    display: block;
  }

  .desktopheader {
    display: none;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  h4 {
    font-size: 0.9rem;
  }

  h5 {
    font-size: 0.8rem;
  }

  h6 {
    font-size: 0.7rem;
  }

  .reveal-modal {
    left: 50%;
    margin-left: -40%;
    top: 20px;
    width: 80%;
  }

  #popupWindow {
    height: auto;
  }

  #membersarea,
  #membersarea article > div {
    flex-direction: column;
  }

  #membersarea article > div > div,
  #membersarea article,
  #membersarea nav {
    width: auto;
  }

  #membersarea nav {
    display: none;
  }

  #membersarea ul.menu {
    display: none;
  }

  table thead tr th,
  table tbody tr td {
    text-align: center;
  }

  .area,
  .areaform {
    width: 48%;
  }

  .metodopago > div:nth-child(odd) {
    width: 50%;
  }
  .metodopago > div:nth-child(even) {
    display: none;
  }
  .detallepago {
    flex-wrap: nowrap;
  }
  .detallepago > div {
    margin: 1%;
    width: 48%;
  }
}

@media all and (min-width: 981px) and (max-width: 1280px) {
  main {
    margin-top: 4.7rem;
  }

  .mobileheader {
    display: none;
  }

  .desktopheader {
    display: block;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  h4 {
    font-size: 1rem;
  }

  h5 {
    font-size: 0.9rem;
  }

  h6 {
    font-size: 0.8rem;
  }

  .reveal-modal {
    left: 50%;
    margin-left: -35%;
    top: 20px;
    width: 70%;
  }

  #popupWindow {
    height: auto;
  }

  #membersarea article {
    width: 80%;
  }

  #membersarea nav {
    width: 20%;
  }

  #membersarea,
  #membersarea article > div {
    flex-direction: row;
  }

  #membersarea article > div > div {
    width: 48%;
  }

  #membersarea nav {
    display: block;
  }

  #membersarea ul.menu {
    display: none;
  }

  table thead tr th,
  table tbody tr td {
    text-align: center;
  }

  .area,
  .areaform {
    width: 48%;
  }

  .metodopago > div:nth-child(odd) {
    width: 25%;
  }
  .metodopago > div:nth-child(even) {
    width: 50%;
  }
  .detallepago {
    flex-wrap: nowrap;
  }
  .detallepago > div {
    margin: 1%;
    width: 48%;
  }
}

@media all and (min-width: 1281px) {
  main {
    margin-top: 4.7rem;
  }

  .mobileheader {
    display: none;
  }

  .desktopheader {
    display: block;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  h4 {
    font-size: 1.1rem;
  }

  h5 {
    font-size: 1rem;
  }

  h6 {
    font-size: 0.9rem;
  }

  .reveal-modal {
    left: 50%;
    margin-left: -30%;
    top: 20px;
    width: 60%;
  }

  #popupWindow {
    height: auto;
  }

  #membersarea article {
    width: 85%;
  }

  #membersarea nav {
    width: 15%;
  }

  #membersarea,
  #membersarea article > div {
    flex-direction: row;
  }

  #membersarea article > div > div {
    width: 48%;
  }

  #membersarea nav {
    display: block;
  }

  #membersarea ul.menu {
    display: none;
  }

  table thead tr th,
  table tbody tr td {
    text-align: center;
  }

  .area {
    width: 48%;
  }

  .areaform {
    width: 32%;
  }

  .metodopago > div:nth-child(odd) {
    width: 25%;
  }
  .metodopago > div:nth-child(even) {
    width: 50%;
  }
  .detallepago {
    flex-wrap: nowrap;
  }
  .detallepago > div {
    margin: 1%;
    width: 48%;
  }
}