.site-background {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.site-background.background-tiled {
  background-position: left top;
  background-repeat: repeat;
  background-size: auto;
}

#headerDiv {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding-top: 15px;
  border: solid grey 1px;
}

#divGame > .bubbles {
  /*column-width: 12rem;*/
  /*overflow: hidden;*/
}

#divGame > .player-theme-preview {
  display: flex;
  min-height: 35vh;
  align-items: center;
  justify-content: center;
}

#divGame .game-menu-card {
  animation: playerThemeFadeIn 180ms ease-out both;
}

#divGame .player-theme-card {
  width: 100%;
  max-width: 28rem;
  min-height: 11rem;
  border: 2px solid rgba(255, 255, 255, .9) !important;
  box-shadow: 0 0 .5rem rgba(255, 255, 255, .12);
}

#divGame .player-theme-card .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@keyframes playerThemeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.player-profile-control {
  margin: 0;
  padding: .5rem 1rem;
  background: rgba(255, 255, 255, .92);
}

.player-profile-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  width: 100%;
  margin: 0 auto 1rem;
}

.player-profile-selected-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}

.player-profile-selected-avatar h6 {
  margin: 0;
}

.player-profile-avatar {
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  background: transparent;
}

.player-profile-placeholder {
  display: grid;
  place-items: center;
  color: #6c757d;
  font-size: 1.5rem;
}

.player-profile-fields {
  flex: 0 1 auto;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.player-profile-fields input[type="file"] {
  display: inline-block;
  width: auto;
  max-width: 100%;
}

.player-profile-crop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: .75rem;
}

.player-profile-crop canvas {
  width: 100%;
  max-width: 16rem;
  width: min(100%, 16rem);
  aspect-ratio: 1;
  border: 1px solid #6c757d;
  border-radius: .5rem;
  background-color: transparent;
  cursor: move;
  touch-action: none;
}

.player-profile-crop label {
  flex: 0 0 100%;
}

.player-profile-crop input[type="range"] {
  flex: 1 1 12rem;
}

.player-profile-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5.5rem, 1fr));
  gap: .5rem;
  margin-top: .75rem;
}

.player-profile-choice {
  display: grid;
  justify-items: center;
  gap: .25rem;
  padding: .35rem;
  border: 1px solid #dee2e6;
  border-radius: .5rem;
  background: transparent;
  color: #343a40;
}

.player-profile-choice.is-selected {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, .18);
}

.player-profile-choice img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.player-profile-management {
  margin-bottom: 1.5rem;
}

.player-profile-admin-preview {
  width: 100%;
  height: 8rem;
  object-fit: contain;
  border-radius: .35rem;
  background: #e9ecef;
}

.player-list-avatar {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  margin-right: .4rem;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
}

@media (max-width: 575px) {
  .player-profile-form {
    align-items: center;
  }
}
