* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  text-align: center;

  /* Page Background and text color */
  background-color: #ffffff;
  color: #000000;
}

h1 {
  font-weight: bold;
  font-size: 1.4rem;
}

/* Links / Subdued buttons like sign out */
a {
  color: #5e5e5e;
  text-decoration: none;
}

input,
select {
  width: 100%;
  font-size: 1.2rem;
  border: none;
  -webkit-border-radius: 0;
  border-radius: 0;
  padding: 10px;
  margin-bottom: 10px;
  -webkit-appearance: none;

  /* text field and select box background and text color */
  background-color: #ffffff;
  color: #000000;
}

select {
  -webkit-border-radius: 0;
  border-radius: 0;
  padding: 10px;
  background-color: #747579;
  -webkit-appearance: none; 
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* WebKit, Blink, Edge */
::-webkit-input-placeholder {
  color: #000000;
}

/* Mozilla Firefox 4 to 18 */
:-moz-placeholder {
  color: #000000;
  opacity: 1;
}

/* Internet Explorer 10-11 */
:-ms-input-placeholder {
  color: #000000;
}

/* Microsoft Edge */
::-ms-input-placeholder {
  color: #000000;
}

input[type="checkbox"] {
  -webkit-appearance: checkbox;
}

p {
  padding: 0 10px;
}

footer {
  color: #000000;
  padding: 15px 20px;
  margin-top: 15px;
  font-size: 0.8rem;
}

/* components ----------------------------------------------------------------------------------- */

/* button -------------------------------------- */

.button {
  width: calc(100% - 40px);
  display: inline-block;
  border: none;
  border-radius: 0;
  text-align: center;
  padding: 10px;
  cursor: pointer;
}

/* main buttons like Sign In (blue in the default design) */
.button--blue {
  background-color: #000000;
  color: #fff;
  border: 1px solid #000000;
}

/* "lesser" buttons like Sign Up (white in the default design) */
.button--white {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

/* special style for the sign up with facebook button */
.button--fb {
  color: #000000;
  background-color: #ffffff;
  background-image: url(../image/icon_facebook.png);
  background-repeat: no-repeat;
  background-position: 10px;
  background-size: 20px;
}

/* date ---------------------------------------- */

.date {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  -ms-justify-content: space-between;
  justify-content: space-between;
}

.date .select-wrapper:first-child {
  width: calc(25% - (20px / 3));
}

.date .select-wrapper:nth-child(2) {
  width: calc(40% - (20px / 3));
}

.date .select-wrapper:last-child {
  width: calc(35% - (20px / 3));
}

/* toggle -------------------------------------- */

.toggle {
  font-size: 1.3rem;
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  -ms-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
  text-align: left;
}

.toggle input {
  display: none;
}

.toggle .toggle-button {
  position: relative;
  width: 55px;
  height: 30px;
}

.toggle .toggle-button::before {
  content: '';
  display: block;
  width: 50px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 15px;
  transition: border-color 0.3s;
}

.toggle .toggle-button::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fff;
  transition: left 0.3s, background-color 0.3s;
}

/* active color for the toggle buttons */
.toggle input:checked ~ .toggle-button::before {
  border-color: #ffffff;
}

.toggle input:checked ~ .toggle-button::after {
  left: 27px;
  background-color: #ffffff;
}

/* file-input ---------------------------------- */

.file-input {
  position: relative;
}

.file-input .button {
  width: 100%;
}

.file-input input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

/* checkbox ------------------------------------ */

.checkbox {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
}

.checkbox input {
  width: 30px;
}

.checkbox label {
  width: calc(100% - 30px);
}

/* utility classes ------------------------------------------------------------------------------ */

.no-margin {
  margin: 0;
}

.right {
  display: inline-block;
  width: 100%;
  text-align: right;
}

.p-0-20 {
  padding: 0 20px;
}

.pr-10 {
  padding-right: 10px;
}

.pr-20 {
  padding-right: 20px;
}

.mr-20 {
  margin-right: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.blue {
  color: #fc6621;
}

.auto-width {
  width: auto;
}

.fs-08rem {
  font-size: 0.8rem;
}

/* 1 column pages ------------------------------------------------------------------------------- */

.content-wrapper {
  width: 100%;
  max-width: 360px;
  padding-top: 1px;
  display: inline-block;
}

.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: 'Ãƒâ€¹Ã¢â‚¬Â¦';
  position: absolute;
  right: 8px;
  top: 10px;
  font-size: 1.5rem;
}

.border-bottom {
  border: 1px solid #000000;
}
input[type=password] {
	border: 1px solid;
	border-top: none;
}


.spacer {
  height: 50px;
}

.divider::before,
.divider::after {
  content: '';
  width: 15%;
  border-top: 1px solid #000000;
  display: inline-block;
  vertical-align: middle;
  margin: 0 20px;
}

.error-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(50, 50, 50, 0.5);
}

.error-message::before {
  content: '';
  height: 100%;
  vertical-align: middle;
  display: inline-block;
}

.error-message--content-wrapper {
  position: relative;
  display: inline-block;
  background-color: red;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 20px;
  max-width: calc(100% - 40px);
  vertical-align: middle;
}

.error-message--close-button {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: #4b4b4b;
  cursor: pointer;
}

/* Edit -------------------------------------------------------------------- */

.edit-wrapper {
  max-width: 970px;
  margin: auto;
}

.tabs {
  display: flex;
  width: calc(100% - 170px);
  max-width: 800px;
  margin: auto;
  padding: 0;
  position: relative;
  /* active color for the tabs on the edit page */
  border-bottom: 2px solid #ffffff;
  float: left;
}

.tab {
  display: inline-block;
}

.tabs .tab > input[type="radio"] {
  display: none;
}

.tabs .tab > label {
  display: block;
  padding: 6px 21px;
  cursor: pointer;
  position: relative;
  font-size: 1.3rem;
}

.tabs .content {
  z-index: 0;
  overflow: hidden;
  position: absolute;
  left: 0;
  padding-top: 5px;
  width: 100%;
  opacity: 0;
  transition: opacity 400ms ease-out;
}

/* active color for the tabs on the edit page */
.tabs > .tab > [id^="tab"]:checked + label {
  top: 0;
  background-color: #ffffff;
  color: #fff;
}

.tabs > .tab > [id^="tab"]:checked ~ [id^="tab-content"] {
  z-index: 1;
  opacity: 1;
  transition: opacity 400ms ease-out;
}

.form-fields {
  display: -webkit-flex;
  display: -moz-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  align-items: center;
}

.form-fields > *:nth-child(odd) {
  width: 20%;
  display: inline-block;
  margin-bottom: 10px;
  text-align: left;
  font-size: 1.1rem;
}

.form-fields > *:nth-child(even) {
  width: 80%;
}

.avatar {
  width: 150px;
  float: left;
}

@media (max-width: 800px) {
  .avatar {
    float: none;
    margin: 0 auto 20px;
  }

  .tabs {
    float: none;
    width: 100%;
  }

  .form-fields label:not(.toggle-button) {
    padding-left: 10px;
  }

  .form-fields .toggle-button {
    margin-right: 10px;
  }
}

@media (max-width: 500px) {
  .tabs {
    display: block;
    border: none;
  }

  .tab {
    display: block;
  }

/* active color for the tabs on the edit page */
  .tab:first-child > label {
    border-top: 1px solid #ffffff;
  }

  .tab > label {
    border-bottom: 1px solid #ffffff;
  }

  .tabs .content {
    top: 145px;
  }

  .form-fields > *:nth-child(odd),
  .form-fields > *:nth-child(even) {
    width: 100%;
  }
}