/* Base styles */
html {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  height: 100%;
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

.container {
  flex-grow: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  position: relative;
  padding-top: 70px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.subtitle {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
  text-align: center;
}

.instructions {
  background-color: #e3f2fd;
  border: 1px solid #bbdefb;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
  transition: opacity 0.3s ease-out, max-height 0.3s ease-out, margin-bottom 0.3s ease-out, padding 0.3s ease-out, border 0.3s ease-out;
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
}

.instructions.hidden {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
  margin-left: 10px;
}

.install-btn:hover {
  background: linear-gradient(135deg, #388e3c, #2e7d32);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
  opacity: 0.9;
}

.install-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.install-btn svg {
  width: 16px;
  height: 16px;
}

.hidden-initial {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
}

.hide-element {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.show-element {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.undo-container {
  display: flex;
  justify-content: center;
  animation: slideDown 0.3s ease-out;
}

.undo-button {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.undo-button:hover {
  background: linear-gradient(135deg, #f57c00, #ef6c00);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.undo-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.undo-icon {
  font-size: 16px;
  font-weight: bold;
}

.redo-container {
  display: flex;
  justify-content: center;
  animation: slideDown 0.3s ease-out;
}

.redo-button {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.redo-button:hover {
  background: linear-gradient(135deg, #388e3c, #2e7d32);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.redo-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.redo-icon {
  font-size: 16px;
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, max-content));
  gap: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.box {
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
  min-height: 100px;
  width: 280px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  -webkit-touch-callout: none;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  border-color: #2196f3;
}

.box:active {
  transform: translateY(0);
}

.box-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.box-footer {
  font-size: 14px;
  color: #666;
  align-self: flex-end;
}

.hidden {
  display: none !important;
}

.box.removing {
  animation: fadeOutSlide 0.6s ease-out forwards;
  pointer-events: none;
  background-color: #4caf50 !important;
  border-color: #4caf50 !important;
  color: white;
}

.box.swiping-right {
  animation: swipeOutRight 0.6s ease-out forwards;
  pointer-events: none;
  background-color: #4caf50 !important;
  border-color: #4caf50 !important;
  color: white;
}

.box.appearing {
  animation: fadeInScale 0.5s ease-out forwards;
}

.box.double-click-feedback {
  animation: doubleClickPulse 0.4s ease-out;
  border-color: #4caf50;
  background-color: #f1f8e9;
}

.box.swipe-feedback {
  border-color: #4caf50;
  background-color: #f1f8e9;
  transition: all 0.2s ease;
}

.anual-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: #ff5722;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

.checkmark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  opacity: 0;
  animation: checkmarkAppear 0.6s ease-out forwards;
  z-index: 10;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Keyframe animations */
@keyframes fadeOutSlide {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  30% {
    opacity: 0.8;
    transform: translateX(-10px) scale(0.98);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-20px) scale(0.95);
  }
  100% {
    opacity: 0;
    transform: translateX(-50px) scale(0.8);
    height: 0;
    padding: 0;
    margin: 0;
    border-width: 0;
  }
}

@keyframes swipeOutRight {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  30% {
    opacity: 0.8;
    transform: translateX(30px) scale(0.98);
  }
  100% {
    opacity: 0;
    transform: translateX(150px) scale(0.8);
    height: 0;
    padding: 0;
    margin: 0;
    border-width: 0;
  }
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes doubleClickPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  25% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(76, 175, 80, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 0 0 20px rgba(76, 175, 80, 0.1);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

@keyframes checkmarkAppear {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5) rotate(-10deg);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2) rotate(5deg);
  }
  100% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  margin-top: auto;
  font-size: 14px;
  color: #666;
  text-align: center;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 6px;
}

.footer p {
  margin: 5px 0;
}

.footer a {
  color: #2196f3;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.share-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.share-btn:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
  opacity: 0.9;
}

.share-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(33, 150, 243, 0.3);
}

.share-btn svg {
  width: 16px;
  height: 16px;
}

/* Tablet styles */
@media (max-width: 768px) {
  .container {
    padding-top: 60px;
    padding: 15px;
    touch-action: manipulation;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
  }

  .title {
    font-size: 22px;
  }

  .subtitle {
    font-size: 18px;
  }

  .instructions {
    font-size: 14px;
    max-height: 200px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
  }

  .box {
    padding: 15px;
    min-height: 80px;
  }

  .box:hover {
    transform: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
  }

  .box-title {
    font-size: 16px;
  }

  .box-footer {
    font-size: 14px;
  }
}

/* Mobile styles */
@media (max-width: 480px) {
  .container {
    padding-top: 55px;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
  }

  .title {
    font-size: 22px;
  }

  .subtitle {
    font-size: 18px;
  }

.instructions {
    display: none !important;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

.box {
    padding: 12px;
    min-height: 70px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

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

  .box-footer {
    font-size: 16px;
  }

  .footer {
    font-size: 16px;
  }

  .undo-button, .redo-button {
    padding: 10px 16px;
    font-size: 13px;
  }
}

.box.redo-removing {
  animation: redoFadeOut 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes redoFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    padding: 0;
    margin: 0;
    border-width: 0;
  }
}

.box.dark-theme {
  background-color: #2c2c2c;
  color: white;
  border-color: #555;
}

.box.dark-theme:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-color: #777;
  background-color: #333;
}

.box.dark-theme .box-footer {
  color: #ccc;
}

.box.dark-theme.removing {
  background-color: #4caf50 !important;
  border-color: #4caf50 !important;
  color: white;
}

.box.dark-theme.swiping-right {
  background-color: #4caf50 !important;
  border-color: #4caf50 !important;
  color: white;
}

.box.dark-theme.double-click-feedback {
  border-color: #4caf50;
  background-color: #2e5c2e;
}

.box.dark-theme.swipe-feedback {
  border-color: #4caf50;
  background-color: #2e5c2e;
}

.theme-toggle-container {
  position: absolute;
  top: 20px;
  right: 20px;
}

.theme-toggle {
  position: relative;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  border: 2px solid #ddd;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:active {
  transform: translateY(0) scale(1);
}

.toggle-icon {
  transition: all 0.3s ease;
  display: inline-block;
}

body.dark-mode {
  background-color: #121212;
  color: #ffffff;
}

body.dark-mode .container {
  background-color: #1e1e1e;
  border-color: #333;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .title {
  color: #ffffff;
}

body.dark-mode .subtitle {
  color: #bbbbbb;
}

body.dark-mode .instructions {
  background-color: #e3f2fd !important;
  border-color: #bbdefb !important;
  color: #000000 !important;
}

body.dark-mode .box {
  background-color: #2c2c2c;
  border-color: #444;
  color: #ffffff;
}

body.dark-mode .box:hover {
  border-color: #555;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}

body.dark-mode .box.double-click-feedback {
  background-color: #2e5c2e;
  border-color: #4caf50;
}

body.dark-mode .box.swipe-feedback {
  background-color: #2e5c2e;
  border-color: #4caf50;
}

body.dark-mode .box-footer {
  color: #bbbbbb;
}

body.dark-mode .footer {
  background-color: #2a2a2a;
  color: #bbbbbb;
}

body.dark-mode .footer a {
  color: #64b5f6;
}

body.dark-mode .theme-toggle {
  background: linear-gradient(135deg, #333, #444);
  border-color: #555;
  color: #ffffff;
}

body.dark-mode .theme-toggle:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body.dark-mode .box.dark-theme {
  background-color: #ffffff;
  color: #000000;
  border-color: #ddd;
}

body.dark-mode .box.dark-theme:hover {
  background-color: #f5f5f5;
  border-color: #2196f3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

body.dark-mode .box.dark-theme .box-footer {
  color: #666;
}

body.dark-mode .box.dark-theme.removing {
  background-color: #4caf50 !important;
  border-color: #4caf50 !important;
  color: white;
}

body.dark-mode .box.dark-theme.swiping-right {
  background-color: #4caf50 !important;
  border-color: #4caf50 !important;
  color: white;
}

body.dark-mode .box.dark-theme.double-click-feedback {
  border-color: #4caf50;
  background-color: #f1f8e9;
}

body.dark-mode .box.dark-theme.swipe-feedback {
  border-color: #4caf50;
  background-color: #f1f8e9;
}

@media (max-width: 768px) {
  .theme-toggle-container {
    top: 15px;
    right: 15px;
  }

  .theme-toggle {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .container {
    padding-top: 60px;
  }
}

@media (max-width: 480px) {
  .theme-toggle-container {
    top: 10px;
    right: 10px;
  }

  .theme-toggle {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }

  .container {
    padding-top: 55px;
  }
}

/* Progress Bar Styles */
.progress-container {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.progress-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.progress-bar-wrapper {
  background-color: #e0e0e0;
  border-radius: 25px;
  height: 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #4caf50, #45a049);
  border-radius: 25px;
  width: 0%;
  transition: width 0.8s ease-in-out;
  position: relative;
  overflow: hidden;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent
  );
  animation: shimmer 2s infinite;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  font-size: 16px;
  color: #333;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  z-index: 5;
}

.progress-stats {
  display: flex;
  justify-content: space-around;
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.stat-number {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-completed .stat-number {
  color: #4caf50;
}

.stat-remaining .stat-number {
  color: #ff9800;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

body.dark-mode .progress-container {
  background-color: #2a2a2a;
  border-color: #444;
}

body.dark-mode .progress-title {
  color: #ffffff;
}

body.dark-mode .progress-bar-wrapper {
  background-color: #333;
}

body.dark-mode .progress-text {
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

body.dark-mode .progress-stats {
  color: #bbbbbb;
}

body.dark-mode .stat-number {
  color: #ffffff;
}

body.dark-mode .stat-completed .stat-number {
  color: #4caf50;
}

body.dark-mode .stat-remaining .stat-number {
  color: #ff9800;
}

@media (max-width: 480px) {
  .progress-container {
    padding: 15px;
  }

  .progress-title {
    font-size: 16px;
  }

  .progress-bar-wrapper {
    height: 35px;
  }

  .progress-text {
    font-size: 14px;
  }

  .progress-stats {
    flex-direction: column;
    gap: 10px;
  }

  .stat-item {
    flex-direction: row;
    justify-content: space-between;
  }

  .stat-number {
    font-size: 18px;
  }
}

/* Congratulations Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.4s ease-out forwards;
  position: relative;
}

.modal-emoji {
  font-size: 80px;
  margin-bottom: 20px;
  animation: bounce 1s ease-in-out infinite;
}

.modal-title {
  font-size: 32px;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 15px;
}

.modal-subtitle {
  font-size: 24px;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 20px;
}

.modal-message {
  font-size: 18px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

.modal-close-btn {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
}

.modal-close-btn:hover {
  background: linear-gradient(135deg, #388e3c, #2e7d32);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5);
}

.modal-close-btn:active {
  transform: translateY(0);
}

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

@keyframes scaleIn {
  from {
    transform: scale(0.7);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

body.dark-mode .modal-content {
  background: linear-gradient(135deg, #2c2c2c, #1e1e1e);
  color: #ffffff;
}

body.dark-mode .modal-title {
  color: #4caf50;
}

body.dark-mode .modal-subtitle {
  color: #64b5f6;
}

body.dark-mode .modal-message {
  color: #bbbbbb;
}

@media (max-width: 480px) {
  .modal-content {
    padding: 30px 20px;
  }

  .modal-emoji {
    font-size: 60px;
  }

  .modal-title {
    font-size: 26px;
  }

  .modal-subtitle {
    font-size: 20px;
  }

  .modal-message {
    font-size: 16px;
  }

  .modal-close-btn {
    padding: 12px 30px;
    font-size: 14px;
  }
}

/* Mobile Instructions Modal */
.mobile-instructions-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  animation: fadeIn 0.3s ease-out forwards;
}

.mobile-instructions-modal.hidden {
  display: none;
}

.mobile-instructions-content {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  max-width: 90%;
  width: 350px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.4s ease-out forwards;
}

.mobile-instructions-content h3 {
  font-size: 20px;
  font-weight: bold;
  color: #1976d2;
  margin-bottom: 15px;
}

.mobile-instructions-content p {
  font-size: 15px;
  color: #000;
  line-height: 1.6;
  margin-bottom: 20px;
}

.mobile-instructions-btn {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.mobile-instructions-btn:hover {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
}

.mobile-instructions-btn:active {
  transform: translateY(0);
}

body.dark-mode .mobile-instructions-content {
  background: linear-gradient(135deg, #2c2c2c, #1e1e1e);
}

body.dark-mode .mobile-instructions-content h3 {
  color: #64b5f6;
}

body.dark-mode .mobile-instructions-content p {
  color: #ffffff;
}