body {
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
  padding: 10px;
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(0, 0, 0, 0.1) 80%),
    linear-gradient(to bottom,
      #4267B2,
      #3B5998);
}

#container {
  max-width: 27rem;
}

#game-container img.selected {
  border: 2px solid black;
}

#game-container img.hidden {
  visibility: hidden;
}

.bolly-logo {
  display: inline-block;
  font-size: 16px;
  font-weight: 900;
  font-style: italic;
  margin-top: 12px;
}

.bolly-color {
  color: #adc6ed;
  background-color: #114699;
  padding: 2px 5px;
  transform: skewX(-20deg);
  display: block;
}

.connect-color {
  display: inline-block;
  color: #114699;
  background-color: #adc6ed;
  padding: 2px 5px;
  transform: skewX(-20deg);
  display: block;
  margin-top: -4px;
}

.category-1 {
  background-color: rgba(0, 68, 115, 0.5);
}

.category-2 {
  background-color: rgba(0, 106, 88, 0.5);
}

.category-3 {
  background-color: rgba(89, 38, 65, 0.5);
}

.category-4 {
  background-color: rgba(0, 99, 122, 0.5);
}

.actor-card {
  transition: transform 0.2s;
  cursor: pointer;
  overflow: hidden;
  height: 120px;
  width: 90px;
  background: #e0e0e0;
  border-radius: 4px;
  position: relative;
  display: inline-block;
}

.demo-card {
  height: 80px;
  width: 60px;
  font-size: 8px;
}

.demo-gif {
  border-radius: 4px;
}

.demo-label {
  font-size: 8px !important;
}

.help-instructions {
  justify-content: center;
  align-items: center;
  border-color: #114699;
  padding: 10px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.actor-image {
  border-radius: 4px;
  display: block;
  transition: transform 0.3s ease;
}

.actor-card.selected {
  border: 4px solid #114699;
  background-color: rgba(17, 70, 153, 0.7);
  transform: scale(0.98);
}

.actor-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(17, 70, 153, 0.7);
  color: #adc6ed;
  padding: 2px;
  font-size: 10px;
  text-align: center;
  box-sizing: border-box;
  font-weight: 500;
  line-height: 1.2;
}

#submit-btn, #shareButton, #playButton {
  background-color: #114699;
  color: #adc6ed;
  border: none;
  padding: 10px 10px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  font-weight: 700;
  margin-right: 3px;
  box-shadow: inset -1px -3px 107px -46px rgba(0, 0, 0, 0.76);
}

#submit-btn:hover {
  background-color: #0e3a7a;
}

#submit-btn:active {
  background-color: #0b2f6b;
}

#reset-btn {
  background-color: #adc6ed;
  color: #114699;
  border: none;
  padding: 10px 10px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  box-shadow: inset -1px -3px 107px -46px rgba(0, 0, 0, 0.16);
  font-weight: 700;
  margin-left: 3px;
}

#reset-btn:hover {
  background-color: #a6c0f0;
}

#reset-btn:active {
  background-color: #8da1e0;
}

.button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  opacity: 0;
  transition:
    background-color 0.3s ease,
    opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.actor-card.selected .image-overlay {
  background-color: rgba(17, 70, 153, 0.7);
  opacity: 1;
}

.header-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.header-menu-right {
  border: 3px solid #114699;
  border-radius: 4px;
  padding: 5px 10px;
  width: 100%;
  background-color: #a6c0f0;
  color: #114699;
}

.header-menu-right-container {
  margin-left: 15px;
  width: 100%;
}

#feedback {
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  transition: opacity 0.3s ease;
}

#boardId, .share-board-container  {
  display: inline-block;
  color: #114699;
  background-color: #adc6ed;
  padding: 0px 5px;
  transform: skewX(-10deg);
  display: block;
  margin-right: 5px;
}

#help-btn, #archive-btn {
  color: #adc6ed;
  background-color: #114699;
  padding: 6px 10px;
  transform: skewX(-10deg);
  display: block;
  text-decoration: underline;
  cursor: pointer;
}

.info-container {
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  display: flex;
  justify-content: end;
  align-items: center;
  margin-bottom: 5px;
  margin-top: 10px;
}

.shake-slow {
  animation: shake 0.3s;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }

  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-10px);
  }

  20%, 40%, 60%, 80% {
    transform: translateX(10px);
  }
}

.shake {
  animation: shake 0.6s;
}

@keyframes notificationAlert {
  0% {
    background-color: #114699;
    color: #a6c0f0
  }

  20% {
    background-color: #a6c0f0;
    color: #114699
  }

  40% {
    background-color: #114699;
    color: #a6c0f0
  }

  60% {
    background-color: #a6c0f0;
    color: #114699
  }

  80% {
    background-color: #114699;
    color: #a6c0f0
  }

  100% {
    background-color: #a6c0f0;
    color: #114699
  }
}

.notification-alert {
  animation: notificationAlert 2s ease-in-out;
}


.guessed-card {
  min-height: 100px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: inset 0px -1px 34px -127px rgba(0, 0, 0, 0.75);
  margin-bottom: 10px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 0;
  transition: width 1s ease-in-out;
  max-height: 120px;
}

.guessed-card.expanded {
  width: 100%;
  padding: 10px;
}

.guessed-card-content {
  opacity: 0;
  transition: opacity 3s ease-in-out;
}

.guessed-card.expanded .guessed-card-content {
  opacity: 1;
}

.matched-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.matched-category-name {
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
}

.matched-actors-names {
  text-transform: capitalize;
  font-size: 12px;
}

#winModal, #helpModal, #archiveModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: baseline;
}

#helpModal {
  text-align: left;
}

.help-heading {
  font-size: 20px;
  font-weight: 700;
}

.modal-content {
  padding: 20px 20px 10px 20px;
  text-align: center;
  max-width: 350px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 8px solid #114699;
  border-radius: 4px;
  width: 100%;
  background-color: #a6c0f0;
  color: #114699;
  margin-top: 100px;
  position: relative;
}

.modal-title {
  color: #114699;
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
  margin-top: 10px;
}

.modal-text {
  color: #114699;
  margin-bottom: 10px;
  font-weight: 500;
}

.help-content {
  padding: 20px 20px 10px 20px;
  max-width: 370px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 8px solid #114699;
  border-radius: 4px;
  width: 100%;
  background-color: #a6c0f0;
  color: #114699;
  position: relative;
  height: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}


  /* Hide scrollbar for Chrome, Safari and Opera */
  .help-content::-webkit-scrollbar {
    display: none;
  }

#copyFeedback {
  color: #114699;
  margin-top: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 0px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #114699;
  transition: color 0.3s ease;
  font-weight: 500;
}

.instructions-text {
  padding-top: 5px;
  font-size: 12px;
  font-style: italic;
  line-height: 0.95;
  font-weight: 500;
}

.instruction-arrow {
  font-size: 18px;
  font-weight: 500;
}

.blue-rose {
  width: 30px;
}

.archive-link {
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
}

#archiveContainer {
  display: flex;
  justify-content: center;
  align-items: center;
}

#filler {
  width: 5px;
}

.solved {
  color: green;
}

.share-board-container {
  text-decoration: underline;
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  width: fit-content;
  margin: 0 auto;
  margin-top: 15px;
}

.share-copy {
  color: #a6c0f0 !important;
}

.useful-links {
  margin-top: 30px;
  justify-content: space-around;
}