@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* Root variables - enhanced with theme support */
:root {
  /* Fallback theme colors */
  --primary-color: #6260FF;
  --secondary-color: #6E66FF;
  --background-color: #ffffff;
  
  /* Computed theme variables */
  --header-bg: var(--primary-color);
  --chat-bg: var(--background-color);
  --text-on-primary: white;
  --text-on-surface: white;
  --message-bubble-user: var(--secondary-color);
  --message-bubble-bot: rgba(255, 255, 255, 0.1);
  --input-bg: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
  
  /* Legacy variables for compatibility */
  --text-color: var(--text-on-surface);
  --success-color: #4CAF50;
  --warning-color: #fcc419;
  --danger-color: #dc3545;
  --border-radius: 20px;
  --transition-speed: 0.3s;
  --mobile-width: 767px;
}

/* Light theme adjustments */
.theme-light {
  --text-on-surface: #1a1a1a;
  --text-color: #1a1a1a;
  --message-bubble-bot: rgba(0, 0, 0, 0.05);
  --input-bg: rgba(0, 0, 0, 0.05);
  --border-color: rgba(0, 0, 0, 0.1);
}


/* Global styles */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--chat-bg);
  color: var(--text-color);
}

/* Widget container */
.widget-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-widget {
  width: 375px;
  height: 700px;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  background-color: var(--chat-bg);
}

.chatbot-button {
  text-transform: capitalize;
  background: var(--secondary-color);
  /* border: .5px solid #cecece; */
  border: none;
  outline: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px 2px 4px;
}


/* Header styles */
.header {
  background: linear-gradient(135deg, var(--header-bg) 0%, var(--secondary-color, var(--header-bg)) 100%);
  color: var(--text-on-primary);
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-icon {
  width: 24px;
  height: 24px;
}

img {
  object-fit: cover;
  width: 36px;
  height: 36px;
  object-position: top;
  border-radius: 50%;
  margin-right: 10px;
}

.header-text h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.header-text p {
  margin: 0;
  font-size: 12px;
  opacity: 0.8;
}

.header-right {
  display: flex;
  align-items: center;
}

.header-right>.header-icon {
  font-size: 17px;
  text-wrap: nowrap;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  cursor: pointer;
  margin-right: 4px;
  margin-bottom: 10px;
}

.header-status {
  display: flex;
  align-items: center;
  font-size: 13px;
  padding: 8px 16px;
  margin-top: 0px;
  flex-wrap: nowrap;
  border-top: 1px solid var(--border-color);
  background: var(--secondary-color);
  border-radius: 0 0 10px 10px;
}

#language-dropdown-container {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  /* overflow: hidden; */
  /* height: 30px; */
  text-align: left;
  margin-top: auto;
  margin-bottom: auto;
}

#language-dropdown {
  width: 100%;
  background: white;
  border-radius: 5px;
  color: #777;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
  padding: 3px 5px;
  height: 30px;
  text-align: left;
  color: #777;
  text-wrap: nowrap;
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  margin-top: 5px;
}

#language-dropdown div {
  display: flex;
  align-items: center;
  width: 100%;
}

#language-dropdown img {
  width: 25px;
  height: 25px;
  border-radius: 100px;
  padding: 0;
  margin-right: 9px;
}

#language-dropdown span {
  padding-top: 0;
}

#languages {
  box-shadow: 2px 4px #ccc;
  position: absolute;
  border-radius: 5px;
  width: 100%;
  overflow: hidden;
  background: white;
  color: #777;

  /* keep animation, but don't permanently kill bootstrap */
  max-height: 0;
  transition: max-height .2s ease;
  z-index: 9999;
}

/* Hide only when neither Bootstrap nor our JS says it's open */
#languages:not(.show):not(.language-active) {
  display: none;
}

/* Show when either Bootstrap (.show) or our JS (.language-active) opens it */
#languages.show,
#languages.language-active {
  display: block;
  max-height: 260px;
  overflow: auto;
  cursor: pointer;
}

#languages.language-active {
  display: block;        
  max-height: 260px;    
  overflow: auto;
  cursor: pointer;
}

.language-active {
  white-space: nowrap;  
}

.language-options {
  padding: 3px 5px;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.language-options:hover {
  background: #d9efff;
}

.language-options span {
  padding-top: 2px;
}

.language-options img {
  width: 25px;
  height: 25px;
}

.avatar-wrap {
  position: relative;
  width: 36px;   /* match avatar size */
  height: 36px;
  margin-right: 8px; /* same spacing you had before */
}
.avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block; /* remove inline gap */
}

/* make the dot overlay bottom-right of the avatar */
.status-dot {
  position: absolute;
  right: -2px;        /* slight outside overlap */
  bottom: -2px;
  width: 5px;
  height: 5px;
  background: lime;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff; /* ring to separate from header bg */
}

/* Chat toggle button */
.chat-toggle {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: white;
  font-size: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: fixed;
  bottom: 20px;
  right: 20px;
}

.minimized {
  display: none;
}

/* Options container */
.options-container {
  padding: 10px;
  background-color: #f8f9fa;
  border-radius: 10px;
  margin-top: 15px;
}

.options-container h5 {
  text-align: left;
  margin-bottom: 10px;
  color: #575555;
  font-size: 11px;
  font-weight: 600;
  padding-left: 5px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.option {
  background-color: white;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color var(--transition-speed) ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.option:hover {
  background-color: var(--background-color);
}

.option .icon {
  font-size: 24px;
  margin-right: 10px;
  width: 30px;
  height: 30px;
  background-color: #e9ecef;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.option span:not(.icon) {
  font-size: 12px;
  color: var(--text-color);
  font-weight: 500;
  word-break: break-word;
}

.option.special-offer {
  position: relative;
  overflow: hidden;
}

.option.special-offer::before {
  content: 'SPECIAL OFFER';
  position: absolute;
  top: 15px;
  right: -35px;
  background-color: var(--danger-color);
  color: white;
  font-size: 8px;
  padding: 2px 25px;
  transform: rotate(45deg);
}

/* Option icon colors */
.option-icon-blue {
  background-color: #e7f5ff;
  color: #339af0;
}

.option-icon-yellow {
  background-color: #fff9db;
  color: var(--warning-color);
}

.option-icon-orange {
  background-color: #fff4e6;
  color: #ff922b;
}

.option-icon-purple {
  background-color: #f8f0fc;
  color: #cc5de8;
}

.option-icon-green {
  background-color: #e6fcf5;
  color: #20c997;
}

.option-icon-red {
  background-color: #fff5f5;
  color: #ff6b6b;
}

/* Messages */
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--chat-bg);
}
.messages.is-loading-history {
  pointer-events: none;
}

.chat-history-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.theme-light .chat-history-placeholder {
  color: rgba(55, 65, 81, 0.8);
}

.chat-history-spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--secondary-color);
  animation: spin 1s linear infinite;
}

.theme-light .chat-history-spinner {
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--secondary-color);
}

.message-container {
  margin-bottom: 20px;
  max-width: 80%;
  display: flex;
  flex-direction: column;
}

.user-message-container {
  margin-left: auto;
  align-items: flex-end;
}

.error-message {
  background-color: #fee;
  border-left: 4px solid #f66;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}

.error-action-buttons {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.refresh-button {
  background-color: #f66;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.refresh-button:hover {
  background-color: #e55;
}

/* Audio playback */
#playback-container {
  width: 40%;
  right: 17.5%;
  bottom: 12.5%;
  position: absolute;
  gap: 15px;
  display: none;
}

audio {
  height: 20px;
  padding-top: 5px;
  margin: 0;
  max-width: 100%;
}

audio::-webkit-media-controls-panel {
  background-color: #FB924D;
}

#deleteRecording {
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 16px;
}

#deleteRecording:hover {
  background-color: #c82333;
  transform: scale(1.05);
}

#recordingTimer {
  width: 50px;
}

#audio-visualizer-container {
  width: 100%;
  max-height: 40px;
  overflow: hidden;
  display: flex;
}

#audio-visualizer {
  width: 100%;
  height: 100px;
  transform: translateY(-30px);
}

.red-dot {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  background-color: red;
  border-radius: 100%;
}

#playback-close {
  font-size: 14px;
  color: white;
  background: var(--secondary-color);
  padding-left: 5.3px;
  padding-top: 1.5px;
  min-width: 14.7px;
  min-height: 18.5px;
  cursor: pointer;
  border-left: none;
  border-radius: 100px;
}

.bot-message-container {
  margin-right: auto;
  align-items: flex-start;
}

.message-pending-container {
  padding: 0 18px 0 18px;
}

.username-container {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.username {
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #ccc;
  background-size: cover;
  margin-left: 8px;
}

.message-containerbot-message-container .user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-image: url('https://prod-chatbot-bucket-dapatvip.s3.ap-southeast-1.amazonaws.com/chatbot/attachments/2025/12/9/569720621_18524179891063662_1253021723542296486_n2.jpg');
  background-size: cover;
  margin-left: 8px;
}

.message {
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 100%;
  word-wrap: break-word;
}

.message>p {
  margin: 0;
  padding: 0;
}

.message img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 0;
  display: block;
  margin: 0 0 8px 0;
}

.user-message {
  background-color: var(--message-bubble-user);
  color: var(--text-on-primary);
  border-radius: 18px 18px 0 18px;
}

.bot-message {
  background-color: var(--message-bubble-bot);
  color: var(--text-on-surface);
  border-radius: 18px 18px 18px 0;
}

.message-pending {
  display: flex;
  text-wrap: nowrap;
  gap: 4px;
  background-color: var(--message-bubble-bot); 
  color: var(--text-on-surface);  
  border-radius: 18px 18px 18px 0;
  width: fit-content;
}

.message-pending-text {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--secondary-color);
  border-radius: 100px;
  transition: .2s;
}

/* Lighter dots on dark themes */
.theme-light .message-pending-text {
  background: color-mix(in oklab, var(--secondary-color) 70%, white);
}

.error-message-container {
  margin-bottom: 10px;
  animation: errorHighlight 2s ease-in-out;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
  border-radius: 8px;
  padding: 8px 12px;
  max-width: 80%;
  word-wrap: break-word;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes errorHighlight {
  0% {
    background-color: rgba(255, 0, 0, 0.1);
  }

  50% {
    background-color: rgba(255, 0, 0, 0.2);
  }

  100% {
    background-color: transparent;
  }
}

.timestamp {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
  align-self: flex-start;
}

.user-message-container .timestamp {
  align-self: flex-end;
}

/* Input container */
.input-container {
  display: none;
  padding: 4px 8px;
  align-items: center;
  gap: 6px;
  margin: 10px;
  margin-top: 6px;
  background: var(--input-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  min-height: 42px;
}

body.launcher-ready .input-container {
  display: flex;
}

.input-container input[type="text"] {
  flex: 1;
  padding: 4px 8px;
  border: none;
  border-radius: 16px;
  font-size: 14px;
  width: 100% !important;
  transition: all var(--transition-speed) ease;
  background: transparent;
  color: var(--text-on-surface);
  outline: none;
  height: 32px;
  line-height: 1.2;
}

.input-container input[type="text"]::placeholder {
  color: var(--text-on-surface);
  opacity: 0.6;
}

.input-container .input-pending {
  filter: brightness(0.8);
  user-select: none;
}

.input-container input[type="text"]:focus {
  outline: none;
  border-color: var(--secondary-color);
}

/* Theme-colored buttons without circles - like image 1 */
.input-container button {
  background: transparent;
  color: var(--secondary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px;
}

.input-container button:hover {
  background-color: var(--secondary-color);
  color: var(--text-on-primary);
  transform: scale(1.05);
}

/* Send button - special styling */
.input-container #sendButton {
  background-color: var(--secondary-color);
  color: var(--text-on-primary);
}

.input-container #sendButton:hover {
  background-color: var(--primary-color);
}

/* Attachment and emoji buttons - theme colored */
.input-container #attachmentButton,
.input-container #emojiButton,
.input-container #recordButton {
  background: transparent;
  color: var(--secondary-color);
}

.input-container #attachmentButton:hover,
.input-container #emojiButton:hover,
.input-container #recordButton:hover {
  background-color: var(--secondary-color);
  color: var(--text-on-primary);
}

.right-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

.right-button-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.emoji-button,
.attachment-button {
  background: none;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-speed) ease;
}

.emoji-button:hover,
.attachment-button:hover {
  transform: scale(1.1);
}

/* Emoji picker */
#emojiPicker {
  position: absolute;
  bottom: 100px;
  right: 20px;
  z-index: 1000;
}

/* Menu styles */
.menu {
  position: relative;
  margin-right: 10px;
}

.menu .link {
  color: white;
  font-size: 24px;
  text-decoration: none;
  cursor: pointer;
}

.menu .submenu {
  position: absolute;
  top: 100%;
  /* right: 0; */
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-width: 150px;
  /* transform: translateX(150px); */
  display: none;
  z-index: 10;
}

.menu:hover .submenu {
  display: block;
}

.submenu .submenu-link {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color var(--transition-speed) ease;
}

.submenu .submenu-link:hover {
  background-color: var(--background-color);
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* File preview styles */
.file-preview-container {
  margin-bottom: 10px;
  width: 100%;
}

.file-preview {
  display: flex;
  align-items: center;
  background-color: #f0f0f0;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}

.file-preview img {
  max-width: 60px;
  max-height: 60px;
  object-fit: cover;
  border-radius: 5px;
  margin-right: 10px;
}

.file-preview .file-info {
  flex-grow: 1;
}

.file-preview .file-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
}

.file-preview .file-size {
  font-size: 12px;
  color: #666;
}

.file-preview .remove-file {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
}

/* Message attachment styles */
.message-attachment img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 10px;
}

.chatbot-name-header {
  padding-top: 10px;
  font-size: 16px;
}

#playback-bar {
  width: 100%;
  margin: auto 10px;
}

@keyframes wave {
  0% {
    transform: translateX(0) scaleY(1);
  }

  25% {
    transform: translateX(-25%) scaleY(0.8);
  }

  50% {
    transform: translateX(-50%) scaleY(1.1);
  }

  75% {
    transform: translateX(-75%) scaleY(0.9);
  }

  100% {
    transform: translateX(-100%) scaleY(1);
  }
}

.audio-progress {
  --progress-color: #495057;
  --background-color: #e9edef;

  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--background-color);
  cursor: pointer;
}

.audio-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--progress-color);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}

.audio-progress:hover::-webkit-slider-thumb {
  opacity: 1;
}

.audio-progress::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--progress-color);
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0;
}

.audio-progress:hover::-moz-range-thumb {
  opacity: 1;
}

.audio-progress::-webkit-progress-value {
  background: var(--progress-color);
  border-radius: 2px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Date Separator - Sticky Header */
.date-separator {
  position: -webkit-sticky; /* Safari */
  position: sticky;
  top: 10px;
  text-align: center;
  z-index: 5;
  margin: 15px 0;
  pointer-events: none; /* Allows clicking through empty space */
}

.date-separator-label {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.2); /* Default dark mode friendly */
  color: #e0e0e0;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  pointer-events: auto;
}

/* Adjust for light theme */
.theme-light .date-separator-label {
  background-color: rgba(0, 0, 0, 0.08);
  color: #666;
}

/* Responsive layout for mobile only */
@media (max-width: 767px) {
  .widget-container {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
  }

  .chatbot-widget {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }

  .chatbot-widget.minimized {
    height: auto;
  }

  .header-text h2 {
    font-size: 18px;
  }

  .header-text p {
    font-size: 12px;
  }

  .options-container h5 {
    font-size: 12px;
  }

  .option span:not(.icon) {
    font-size: 12px;
  }

  .message {
    max-width: 90%;
  }

  .input-container input[type="text"] {
    font-size: 16px;
  }

  .chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
  }
}

/* Image Modal/Lightbox */
.image-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 2000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.85); /* Black w/ opacity */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-modal.show {
  display: flex;
  opacity: 1;
}

.image-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  width: auto; /* Override global img width */
  height: auto; /* Override global img height */
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 30px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
  background: rgba(0, 0, 0, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-close:hover,
.image-modal-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
}

@keyframes zoomIn {
  from {transform:scale(0.9); opacity: 0;}
  to {transform:scale(1); opacity: 1;}
}

/* Responsive adjustments for modal */
@media only screen and (max-width: 700px) {
  .image-modal-content {
    width: 95%;
  }
  .image-modal-close {
    top: 15px;
    right: 15px;
  }
}
