:root {
  --better-100vh: 100vh;
}

.dark-scheme {
  background-color: rgb(8,7,6);
  color: rgb(200,199,198);
}

.light-scheme {
  background-color: #e8e8e8;
  color: rgb(8,7,6);
}

.alert { /* This is to make flash message looks better. */
  margin-bottom: 0px;
}

@media screen and (min-width: 512px) {
  .main {
    /*max-width: 1024px;*/
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(var(--better-100vh) - 136px);
    background-color: #fffefc;
  }

  .main .main-content {
    /*max-width: min(100%, 1024px);*/
    margin: 0px auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .main .welcome-main-content {
    max-width: min(100%, 1152px);
    margin: 0px auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .main .studio-main-content {
    max-width: min(100%, 1280px);
    margin: 0px auto;
    padding-left: 20px;
    padding-right: 20px;
  }

}
@media screen and (max-width: 512px) {
  .main {
    /*max-width: 1024px;*/
    padding-top: 10px;
    padding-bottom: 10px;
    margin-left: auto;
    margin-right: auto;
    min-height: calc(var(--better-100vh) - 136px);
    background-color: #fffefc;
  }

  .main .main-content {
    max-width: 100%;
    margin: 0px auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .main .welcome-main-content {
    max-width: min(100%, 1152px);
    margin: 0px auto;
    padding-left: 10px;
    padding-right: 10px;
  }
  .main .studio-main-content {
    max-width: 100%;
    margin: 0px auto;
    padding-left: 10px;
    padding-right: 10px;
  }
}

.btn-none {
  background-color: rgba(255,255,255,0.0);
}
.btn-none.active {
  color: rgba(255,255,255,1.0);
  background-color: rgba(0,0,0,1.0);
}

.snackbar {
  visibility: hidden;
  display: grid;
  grid-template-columns: 1fr 48px;
  width: min(100%, 1024px);
  text-align: center;
  border-radius: 10px;
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: 0px;
  transform: translate(-50%, 0);
  font-size: 17px;
}
.snackbar .message {
  padding: 16px 8px 16px 16px;
}
.snackbar.show {
  visibility: visible;
  /*
  -webkit-animation: fadein 1.0s, fadeout 1.0s 3.0s forwards;
  animation: fadein 1.0s, fadeout 1.0s 3.0s forwards;
  */
}
.snackbar-alert {
  background-color: var(--bs-alert-bg);
  margin-bottom: 0px;
}

.button--loading::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  /*top: -1px;*/
  right: 2px;
  margin: auto;
  border: 4px solid transparent;
  border-top-color: #f2db27;
  border-radius: 50%;
  animation: button-loading-spinner 2s ease infinite;
}

@keyframes button-loading-spinner {
  from {transform: rotate(0turn);}
  to {transform: rotate(1turn);}
}

.tab-button button {
  border-radius: 0px;
  border: 0px;
  border-bottom: 1px solid gray;
}

.tab-button button.active,
.tab-button button.active:hover {
  border-bottom: 2px solid blue;
}

.tab-button button:hover {
  border-bottom: 1px solid blue;
}

.footer {
  max-width: 1200px;
  padding-left: 16px;
  padding-right: 16px;
  margin: 8px auto;
  color: #666;
}
@media screen and (min-width: 640px) {
  .footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
  }
}
@media screen and (max-width: 640px) {
  .footer {
    display: flex;
    flex-direction: column;
  }
}

.footer-title {
  font-size: 20px; 
  text-align: center;
  padding: 4px 12px;
}
.footer-title a {
  text-decoration: none; 
  color: #666;
}

.footer-links {
  font-size: 14px;
  display: flex;
  justify-content: space-around; 
  width: min(100%, 680px);
  padding: 4px 12px;
}
.footer-links-section {
  width: 100%;
  display: flex;
  justify-content: space-around; 
  flex-wrap: wrap;
  row-gap: 8px;
}
.footer-links a {
  text-decoration: none; 
  color: #666;
}

.footer-column {
  min-width: 160px;
}
.footer-section-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.88);
}
.footer-section-list {
  list-style: none;
  padding-left: 0px;
}
.footer-section-list li {
  margin: 8px 0px;
  color: rgba(0, 0, 0, 0.56);
}

.price-table {
  width: min(calc(100% - 16px), 640px);
  border-collapse: collapse;
  background-color: white;
  font-size: 14px;
}

.price-table th, td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: center;
}

.price-table th {
  background-color: #000000;
  color: #ffffff;
}

.price-table tr:hover {
  background-color: #f5f5f5;
}

.price-table span.small {
  font-size: 13px;
}

.blog-post {
  margin: 24px 0px;
  font-size: 18px;
  /*font-family: Georgia, Cambria, "Times New Roman", Times, serif;*/
  font-family: system-ui, HelveticaNeue-Light, sans-serif;
}
.blog-post h1 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; 
  text-align: center;
  margin: 32px auto;
  font-size: 30px;
}
.blog-post p {
  text-align: left;
}
.blog-post .blog-image {
  text-align: center;
  margin: 16px 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.blog-post .blog-image img {
  width: min(100%, 768px);
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
.blog-post .blog-image .caption {
  text-align: center;
  color: gray;
}

a.blog-item {
  text-decoration: none;
  color: rgb(8,7,6);
  margin: 32px 0px;
}
a.blog-item h3 {
  text-align: left;
}

@media screen and (min-width: 512px) {
  a.blog-item {
    display: grid;
    grid-template-columns: 1fr 256px;
    column-gap: 12px;
    align-items: center;
  }
}
@media screen and (max-width: 512px) {
  a.blog-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
  }
}

.blog-item p {
  display: -webkit-box; 
  -webkit-box-orient: vertical; 
  -webkit-line-clamp: 4; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  margin: 0px 0px;
}

.blog-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 8px 16px;
}

.blog-post .quote {
  font-style: italic;
  padding-left: 16px;
  border-left: 2px solid black;
  margin-top: 12px;
  margin-bottom: 12px;
}

.hidden-caption-content {
  display: none;
}

#batch-tip {
  max-width: 512px;
  margin: 0px auto;
  text-align: justify;
}

#photo-list img.active {
  border: 2px solid blue;
}

.start-button--loading::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  top: 2px;
  right: 6px;
  margin: auto;
  border: 4px solid transparent;
  border-top-color: #f2db27;
  border-radius: 50%;
  animation: start-button-loading-spinner 2s ease infinite;
}

@keyframes start-button-loading-spinner {
  from {
    transform: rotate(0turn);
  }

  to {
    transform: rotate(1turn);
  }
}

#more-controls-div {
/*
  background-color: black;
  color: #f0f0f0;
  border-radius: 12px;
*/
}

@media screen and (min-width: 768px) {
  #more-controls-div {
    padding: 8px 20px 8px 20px;
  }
}
@media screen and (max-width: 768px) {
  #more-controls-div {
    padding: 8px 10px 8px 20px;
  }
}

#face-row img {
  border: 0px;
}
#face-row img.active {
  border: 3px solid #00ff88;
}

#prompt-hint a {
  color: gray;
}
#prompt-hint a:hover {
  color: #e8e8e8;
}

#face-hint a {
  color: gray;
}
#face-hint a:hover {
  color: #e8e8e8;
}

select#gender:invalid{
  color: gray;
}
select#gender option{
  color: black;
}

.welcome-title {
  margin: 32px auto;
}

@media screen and (min-width: 768px) {
.welcome-title .title {
  font-size: 40px;
  font-family: Satoshi, sans-serif; font-weight: bold;
  text-align: center;
  line-height: 1.25;
}
.welcome-title .subtitle {
  text-align: center; font-weight: normal; font-size: 20px;
  color: #55595F;
}
.welcome-title .paragraph {
  text-align: left; font-weight: normal; font-size: 20px;
  color: #55595F;
}
}
@media screen and (max-width: 768px) {
.welcome-title .title {
  font-size: 32px;
  font-family: Satoshi, sans-serif; font-weight: bold;
  text-align: center;
  line-height: 1.25;
}
.welcome-title .subtitle {
  text-align: center; font-weight: normal; font-size: 20px;
}
.welcome-title .paragraph {
  text-align: left; font-weight: normal; font-size: 20px;
}
}

.page-select {
  cursor: pointer;
  text-align: center;
  border: 0px;
  border-radius: 0px;
  -webkit-appearance:none;
  outline: none;
  background-color: transparent;
  margin-left: 10px;
  margin-right: 10px;
}

