div.mainPageForm {
    border: 1px solid #bbbbbb;
    border-radius: 8px;
    width: 500px;
    margin:auto;
    padding: 0;
}

button {
    border: 1px solid black;
    border-radius: 5px;
    padding: 15px 30px;
    font-size: 20px;
    margin: 10px;
    user-select: none;
    cursor: pointer;
}

input[type="text"],input[type="password"],input[type="email"]  {
  font-size: 20px;
  border-radius: 5px;
  padding: 5px;
}

.shadow {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#top {
  width: 500px;
  max-width: 90%;
  margin: 0 auto 20px auto;
}

div#mask {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 70%;
  z-index: 2;
}

div#resultDialog, div.error {
  z-index: 3;
  position: fixed;
  top: 100px;
  width: 300px;
  background-color: white;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  left: calc( 50% - 176px );
}
div#resultDialog img{
  width: 150px;
  height: 150px;
  float: left;
  margin-right: 25px;
}
div#resultDialog div.resultEmoji{
  width: 150px;
  height: 150px;
  font-size: 100px;
  float: left;
  margin-right: 25px;
}

div#resultDialog button{
  width: 100px;
  height: 50px;
  margin: 10px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}



@media only screen
  and (orientation : portrait)
  and (max-width: 450px)
  and (-webkit-min-device-pixel-ratio: 2)  {

    #top {
        max-width: 100%;
    }

    fieldset input + div.validation {
      width: calc( 100% - 30px );
      min-width: 100px;
    }
    fieldset, div.mainPageForm {
      width: calc( 100% - 30px );
      min-width: 100px;
    }
    div#SettingsForm fieldset {
      width: auto;
    }
    fieldset input[type="text"],fieldset input[type="email"],fieldset input[type="password"] {
      width: calc( 100% - 40px );
      min-width: 250px;
    }
    fieldset label {
      margin-left: 20px;
    }
    label.checkbox-label {
      width: calc(100% - 80px);
      margin-left: 0;
    }
}
