body {
  font-family: 'Poppins', sans-serif;
  background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  background-blend-mode: multiply;
  min-height: 100vh;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  overflow-x: hidden;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.container {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 15px;
}

.card-container {
  perspective: 900px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.card {
  width: 100%;
  height: 260px;
  position: relative;
  cursor: pointer;
  font-size: 20px;
  text-align: center;
  color: #2c3e50;
  font-weight: 100;
  background: linear-gradient(135deg, #FFFFFF 0%, #f0f2f5 100%);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  transform-style: preserve-3d;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.card-title {
  font-size: 24px;
  font-weight: bold;
}

.note-text {
  font-size: 48px;
  font-weight: bold;
}

.btn {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: white;
}

.btn:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.btn-danger {
  background-color: #e74c3c;
}

.btn-success:hover {
  background-color: #27ae60;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.message-top {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  font-size: 24px;
  display: none;
  width: fit-content;
  text-align: center;
}

#resultImage {
  max-width: 100%;
  height: auto;
  display: none;
  margin: 20px auto 0; /* Center the image horizontally */
  border-radius: 10px;
}
.btn-try-again {
  background-color: #17a2b8;
  color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  width: 80px;
  height: 80px;
  line-height: 80px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: bold;
  text-align: center;
  display: inline-block;
}

.btn-try-again:hover {
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  background-color: #2980b9;
}

.hide-card {
  opacity: 0;
  pointer-events: none;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: none;
}

.language-dropdown .btn {
  font-size: 24px;
}

.btn-language {
  background-color: #17a2b8;
}

.btn-language::after {
  display: none;
}

.buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

.dropdown.language-dropdown {
  order: 2;
}

.btn-info {
  order: 3;
}

.btn-success {
  order: 4;
  background-color: #2ecc71;
}

.dropdown.language-dropdown {
  order: 2;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

#appTitle {
  font-family: 'Lobster', cursive;
  font-size: 20px;
}

.title-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.title-logo {
  width: 100%;
  max-width: 550px;
  height: auto;
}

.note-color-C {
  color: #1a237e;
}

.note-color-D {
  color: #0d47a1;
}

.note-color-E {
  color: #2196f3;
}

.note-color-F {
  color: #4caf50;
}

.note-color-G {
  color: #ffeb3b;
}

.note-color-A {
  color: #f57c00;
}

.note-color-B {
  color: #e65100;
}

.language-dropdown .dropdown-item img {
  width: 20px;
  height: auto;
  margin-right: 5px;
}

#correctInARow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  font-weight: bold;
  z-index: 100;
}

@media (max-width: 767px) {
  body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .container {
    width: 100%;
    padding: 0 15px;
  }
  #appTitle {
    font-size: 10px;
    margin-bottom: 0;
  }

  .title-logo-container {
    margin-bottom: 5px;
  }

  .card {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    height: 150px;
  }
  .btn {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }
  .btn-language {
    font-size: 18px;
  }

  .button-container {
    margin-bottom: 10px;
  }

  .card-container {
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .note-text {
    font-size: 36px;
  }

  .card-title {
    font-size: 18px;
  }

  .btn-try-again {
    width: 64px;
    height: 64px;
    line-height: 64px;
    font-size: 16px;
  }

  #resultImage {
    margin-bottom: 10px;
  }

}

