#main {
  width: 100vw;
  height: 100vh;
  background-image: url('../img/cartoon_castle_2.jpg');
  background-size: cover;
  background-position: center center;
  text-align: center;
  font-size: 30px;
  font-family: 'lato';
  color: white;
}

#loginForm {
  padding-top: 5vh;
}

.login-error {
  color: #ffb3b3;
  font-size: 0.55em;
  max-width: 28em;
  margin: 0 auto 1em;
}

.breezy-password-row[hidden] {
  display: none;
}

#createdBy{
  text-decoration: none;
  font-family: 'lato';
  color: white;
  font-size: 10px;
}

#donateForm{
  display: none;
}

#aboutButton{
  margin-top:10vh;
}

h1 {
  padding-top: 5vh;
  margin: 0;
  padding-bottom: 20vh;
}

input {
  border-radius: 10px;
  border: none;
  text-align: center;
  outline: none;
}

#instructionsHeader {
  margin-bottom: 1vh;
}

#instruction{
  margin-top: 0vh;
}

#myName {
  font-size: 15pt;
  width: 350px;
  height: 40px;
}

.login-flag-picker-wrap {
  position: relative;
  display: inline-block;
  margin: 0.35em auto 0.15em;
  vertical-align: middle;
}

.login-flag-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  width: 350px;
  max-width: 92vw;
  height: 34px;
  padding: 0 0.55em;
  box-sizing: border-box;
  font-size: 12px;
  font-family: inherit;
  color: rgba(45, 45, 45, 0.95);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.login-flag-trigger-thumb {
  width: 36px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
}

.login-flag-trigger-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-flag-trigger-thumb-random {
  background: linear-gradient(
    125deg,
    #e64545 0%,
    #ffd24a 22%,
    #4dd599 44%,
    #5a9cff 66%,
    #c86bff 88%,
    #e64545 100%
  );
}

.login-flag-trigger-label {
  flex: 1;
  min-width: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.login-flag-chevron {
  opacity: 0.55;
  font-size: 10px;
  line-height: 1;
}

.login-flag-menu {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  margin-top: 4px;
  padding: 8px;
  width: min(380px, 96vw);
  max-height: 280px;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  align-content: flex-start;
  background: rgba(20, 20, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.login-flag-menu-colors {
  flex: 0 0 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-sizing: border-box;
}

.login-flag-menu[hidden] {
  display: none !important;
}

.login-flag-tile {
  width: 40px;
  height: 28px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(40, 40, 44, 0.9);
  line-height: 0;
}

.login-flag-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-flag-tile:hover,
.login-flag-tile:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.85);
}

.login-flag-tile-random {
  background: linear-gradient(
    125deg,
    #e64545 0%,
    #ffd24a 22%,
    #4dd599 44%,
    #5a9cff 66%,
    #c86bff 88%,
    #e64545 100%
  );
}

.login-flag-tile[aria-selected="true"] {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.login-color-tile {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}

.login-color-tile:hover,
.login-color-tile:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.95);
}

.login-color-tile[aria-selected="true"] {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

/* Same box as name field; tiny placeholder so long hint fits #main's large font context */
#breezyPassword {
  font-size: 15pt;
  width: 350px;
  height: 40px;
  box-sizing: border-box;
}

#breezyPassword::placeholder {
  font-size: 11px;
  line-height: 1.25;
  color: rgba(80, 80, 80, 0.95);
}

#breezyPassword::-webkit-input-placeholder {
  font-size: 11px;
  line-height: 1.25;
  color: rgba(80, 80, 80, 0.95);
}

#breezyPassword::-moz-placeholder {
  font-size: 11px;
  line-height: 1.25;
  color: rgba(80, 80, 80, 0.95);
  opacity: 1;
}

#submitButton {
  font-size: 20pt;
}

/* instructions  */
#instructions {
  font-size: 15pt;
}
