#my_head {
  text-align: center;
  height: var(--my-bar-height-l);
  margin: auto;
  padding: 6px;
  max-width: 960px;
}

#logo {
  font-size: x-large;
  font-family: LogoFont, sans-serif;
  height: var(--my-bar-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

#logo a {
  text-decoration: none;
}

#logo a:hover {
  text-decoration: underline;
}

#searchCtrl {
  display: flex;
  align-items: center;
}

#prompt {
  flex-shrink: 1;
  flex-grow: 1;
  box-sizing: border-box;
  font-size: medium;
  border-radius: 8px;
  padding: 8px;
  margin: 0px;
  height: var(--my-bar-height-l);
}

#prompt::placeholder {
  font-size: x-large;
}

#searchIt {
  flex-shrink: 0;
  cursor: pointer;
  background-color: transparent;
  border-right: none;
  border-bottom: none;
  border-top: none;
  border-left: 2px solid rgb(128, 128, 128);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  width: var(--my-bar-height-l);
  height: var(--my-bar-height-l);
}

#searchIt:hover {
  background-color: var(--my-button-hover);
}

#generateIt {
  flex-shrink: 0;
  cursor: pointer;
  background-color: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  width: var(--my-bar-height-l);
  height: var(--my-bar-height-l);
}

#generateIt:hover {
  background-color: var(--my-button-hover);
}

#progressBar {
  display: none;
  flex-grow: 1;
  box-sizing: border-box;
  height: var(--my-bar-height-l);
  justify-content: space-between;
  align-items: center;
  margin: 0px 4px;
}

#progressBar>div:last-child {
  margin-left: 6px;
  white-space: pre;
}

#my_foot {
  text-align: center;
}

/* body */
#info {
  font-size: small;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  min-height: var(--my-bar-height-s);
}

#info>span+span {
  margin-left: 12px;
}

#info>span:last-child {
  display: none;
}

#generate-tip {
  font-size: medium;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  min-height: var(--my-bar-height-s);
  padding: 4px 0px;
}

.gen-is-ok>span {
  background-color: #333;
  padding: 2px 6px;
  border-radius: 4px;
  color: #AAA;
}

.gen-is-ok a {
  display: inline-block;
  margin: 0px 4px;
  color: yellow;
  text-decoration: none;
}

.gen-is-low>span {
  background-color: #DC143C;
  padding: 2px 6px;
  border-radius: 4px;
  color: #EEE;
}

.gen-is-low a {
  display: inline-block;
  margin: 0px 4px;
  color: yellow;
  text-decoration: none;
}

.gen-is-low a:hover,
.gen-is-ok a:hover {
  text-decoration: underline;
}

.gen-is-fine {
  color: var(--my-success-dark);
}

.scores {
  position: absolute;
  left: 0px;
  top: 0px;
  background-color: blue;
}

#grid {
  width: 100%;
  min-height: 100vh;
  position: relative;
  visibility: hidden;
  min-width: 360px;
}

.grid-item {
  padding: 4px;
  box-sizing: border-box;
  position: absolute;
}

.grid-item-ad {
  width: 360px;
}

.grid-item:hover {
  background-color: var(--my-button-dark);
}

.grid-item a {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: start;
  border-radius: 6px;
}

.grid-item img {
  width: 100%;
  object-fit: cover;
  border: 0;
  background-color: rgba(255, 255, 255, 0.1);
}

.grid-title {
  position: absolute;
  left: 0px;
  bottom: 0px;
  background-color: rgba(0, 0, 0, 0.75);
  margin: 4px;
  padding: 0px 4px;
  box-sizing: border-box;
  width: calc(100% - 8px);
  height: var(--my-bar-height);
  font-size: medium;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: start;
  white-space: nowrap;
}

.blank-title {
  display: none;
}

.item-score {
  height: var(--my-bar-height-s);
  color: #999;
  background-color: #EEE;
  text-align: center;
  white-space: nowrap;
}

#loading {
  visibility: hidden;
  color: lightgreen;
  height: var(--my-bar-height-l);
  line-height: var(--my-bar-height-l);
  animation: Blink 1.5s infinite;
  text-align: center;
}

#ending {
  display: none;
  color: yellow;
  height: var(--my-bar-height-l);
  line-height: var(--my-bar-height-l);
  text-align: center;
}

@media (max-width: 575.98px) {
  #generate-tip {
    margin: 0px 4px;
    font-size: x-small;
  }

  .grid-item-ad {
    width: 120px;
  }

  .grid-title {
    font-size: x-small !important;
    height: var(--my-bar-height-xs) !important;
  }
}