body {
  font-family: Gentium Book Plus, Georgia, Times New Roman;
  background: rgba(0, 0, 255, .05);
}
body * {
  position: relative;
}
header {
  text-align: center;
  font-style: italic;
  margin: 0;
}
#main-nav {
  position: absolute;
  right: 0;
  top: 0;
}
#main-nav>ul {
  margin: 0;
}
#main-nav .action-item {
  padding: 0 1rem;
}
form [type=submit] {
  display: block;
  width: 90%;
  margin: 0 auto;
}
form>div {
  padding:.5rem 0;
}
form label {
  display: inline-block;
  width: 5rem;
}
form input {
  width: calc(100% - 6.5rem);
}
form .action-item {
  display: block;
  text-align: center;
}
.notice {
  background: rgba(255, 255, 255, .75);
  border: 1px #fff solid;
  padding: 1rem;
  font-size: 2rem;
  display:inline-block;
  border-radius: 8px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
}
#profile-page {
  min-width: 384px;
  max-width: 768px;
  width: 50%;
  margin: 0 auto;
}
.image-box {
  clear: both;
}
.ai-image {
  display: block;
  position: absolute;
  top: 0;
  height: 64px;
  width: 64px;
  background: url(/images/ai-image.png) no-repeat;
  z-index: 2;
}
.profile-image {
  display: block;
  max-width: 256px;
  max-height: 256px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
  float: left;
}
.profile-section {
  display: inline-block;
  padding-left: 1rem;
}
.profile-name {
  margin-top: 0;
  border-bottom: 1px #eee solid;
}
.profile-field {
  font-weight: bold;
  display: inline-block;
  margin-right: 1rem;
  min-width: 7rem;
  vertical-align: top;
}
.profile-value {
  font-style: italic;
  display: inline-block;
  width: calc(100% - 8rem);
  vertical-align: top;
}
.profile-tab-content img.profile-image-thumb {
  display: inline-block;
  height: 16px;
  margin: 0;
}
.image-thumb {
  display: inline-block;
  cursor: pointer;
}
.image-thumb>.ai-image {
  display: none;
}
section {
  display: block;
  clear: both;
}
#profile-content {
  background: rgba(255, 255, 255, .25);
  top: 2rem;
  padding: 0 1rem 1rem 1rem;
  border-radius: 8px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
}
#profile-tabs {
  list-style-type: none;
}
#profile-tabs ul {
  padding: 0;
}
#profile-tabs li {
  display: inline-block;
  cursor: pointer;
  padding:0 1rem;
}
#profile-tabs li.selected {
  text-decoration: underline;
  cursor: default;
}
.profile-tab-content img {
  margin: 0 1rem 1rem 0;
}
.clearblock {
  clear:both;
}
.dialog-box {
  display: none;
  background: rgba(255, 255, 255, .75);
  border-radius: 8px;
  padding: 1rem;
  position: fixed;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, .5);
}
.action-item {
  text-decoration:underline;
  cursor: pointer;
  display: inline-block;
  list-style-type: none;
}
@media (max-width: 900px) {
  #profile-page {
    width: 90%;
  }
}
@media (max-width: 600px) {
  .profile-tab-content img+p, .profile-tab-content img+.ai-image+p {
    display: block;
    clear:both;
  }
}