@charset "UTF-8";

body {
  background: #ffffff;
}

.page-image {
  margin: 2rem 0;
  text-align: center;
}
.page-image img {
  width: 100%;
  height: auto;
  max-width: 400px;
  border: 1px dotted #d8ca8d;
}

.page-description {
  padding: 0;
  font-size: 1.125rem;
  line-height: 1.75;
  text-align: center;
}

#uranai-form {
  margin: 2rem auto;
  width: 100%;
  max-width: 34rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
}
#uranai-form .input-group {
  width: calc(100% - 2rem);
  margin-bottom: 1rem;
}
@media screen and (min-width:640px) {
  #uranai-form .input-group {
    width: calc(50% - 2rem);
  }
}
#uranai-form .input-group input {
  width: calc(100% - 2rem);
  margin-left: 0.25rem;
  letter-spacing: 2px;
}
#uranai-form #submit-button {
  width: calc(100% - 4rem);
  max-width: 32rem;
}

#loading {
  text-align: center;
  padding: 2em;
  color: var(--primary-color);
}
.spinner {
  margin: 0 auto 1em;
  width: 36px;
  height: 36px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-left-color: var(--primary-color);
  animation: spin 1s ease infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#result {
  display: none;
  margin: 0 auto 1rem;
  padding: 1rem;
}
#result h2 {
  margin-left: -0.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top:  1rem;
  color: var(--primary-color);
  border-bottom: 3px double var(--primary-color);
}
#result h3 {
  margin-left: -0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top:  1rem;
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
  padding-left: 0.25rem;
}
#result h4 {
  font-weight: 700;
}
#result p {
  margin-bottom: 1rem;
  padding: 0;
  line-height: 1.75;
}
#result ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}
#result hr {
  border-style: dotted;
  margin: 2rem 0;
}

#retry {
  display: none;
  margin-bottom: 2rem;
  text-align: center;
}

#ad {
  display: none;
}
#ad {
  margin-top: 0.5em;
  padding-top: 0.5em;
  padding-bottom: 1.5em;
  text-align: center;
  border-top: 5px dotted #dddddd;
  border-bottom: 5px dotted #dddddd;
}
#ad p {
  margin-top: 1em;
}
#ad .msg {
  font-size:12px;
  color: #999999;
}

#attention {
  margin: 12px auto 10px;
  max-width: 320px;
  font-size: 11px;
  text-align: left;
  color: #aaaaaa;
}

.good, .better, .best {
  color: #f66;
  text-shadow: 0 0 6px #dd0; 
}
.bad, .worse, .worse {
  color: #444;
  text-shadow: 0 0 6px #888; 
}
