* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #0a0a0b;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #0a0a0b;
  background-image: 
    /* Fine minimalist grid */
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    /* Symmetrical Liquid Silver and Gold */
    radial-gradient(ellipse at center, rgba(243, 224, 58, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse at center, rgba(176, 190, 197, 0.6) 0%, transparent 75%);
  background-size: 50px 50px, 50px 50px, 100% 800px, 100% 800px;
  background-repeat: repeat, repeat, repeat-y, repeat-y;
  animation: flow-liquid 7s linear infinite;
  pointer-events: none;
}

@keyframes flow-liquid {
  0% { 
    background-position: 0 0, 0 0, 0 0, 0 400px; /* Offset by exactly half the wave length */
  }
  100% { 
    background-position: 0 0, 0 0, 0 800px, 0 1200px; 
  }
}

.container {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.8); /* Slightly more transparent */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px); /* Add blur back for glass feel */
}

.header {
  background: rgba(158, 158, 158, 0.8);
  padding: 10px;
  text-align: center;
  border-bottom: 2px solid rgba(56, 56, 56, 0.8);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 100;
}

.logo {
  width: 100%;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(136, 136, 136, 0.8);
  flex-wrap: wrap;
}

.logo-text-silver,
.sc-letter,
.logo-text-change {
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-text-silver {
  font-size: clamp(24px, 5vw, 40px);
  color: #e0e0e0;
}

.logo-text-change {
  font-size: clamp(24px, 5vw, 40px);
  color: #f3e03a;
}

.sc-letter {
  font-size: clamp(48px, 8vw, 80px);
  color: #e0e0e0;
  position: relative;
  z-index: 1;
}

.sc-letter-overlay {
  color: #f3e03a;
  position: relative;
  left: min(-24px, -3vw);
  z-index: 2;
}

.contact-info-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 245, 245, 0.9) 100%);
  padding: 10px 0 0 0; 
  text-align: center;
  border-bottom: none;
  border-top: 3px solid #f3e03a;
  line-height: 1.6;
  font-size: 18px;
  backdrop-filter: blur(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  overflow: visible; /* Let shadows show through */
  position: relative;
  z-index: 90;
}

/* Marquee Container and Animation */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
  padding: 10px 0;
  margin-bottom: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 80;
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.marquee-content h2 {
  font-size: 1.2em;
  color: #f3e03a;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  padding: 0 60px; /* Consistent space between texts */
  white-space: nowrap;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Move only half the width for a perfect loop */
  }
}

.section-title {
  font-weight: bold;
  margin-bottom: 8px !important;
  font-size: 0.95em;
  text-transform: uppercase;
  color: #444; /* Updated color as requested */
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal !important; /* Ensure it's never italic */
}

.section-title::before,
.section-title::after {
  content: "";
  height: 1px;
  width: 20px;
  background-color: rgba(0, 0, 0, 0.1);
  margin: 0 10px;
}

.contact-info-header .location,
.contact-info-header .contact-details,
.contact-info-header .hours {
  padding: 15px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.contact-info-header .location {
  border-top: none;
  margin: 0;
  z-index: 70;
}

.contact-info-header .contact-details {
  z-index: 60;
}

.contact-info-header .hours {
  z-index: 50;
}

.contact-info-header .location p,
.contact-info-header .contact-details p:not(.section-title) {
  margin: 0;
  line-height: 1.4;
  font-style: normal;
  color: #444;
  letter-spacing: 0.3px;
}

.contact-info-header .contact-details p:not(.section-title) {
  margin: 8px 0;
}

.contact-info-header small {
  display: block;
  font-size: 0.85em;
  color: #666;
  font-style: italic;
  margin-top: 2px;
}

.contact-info-header .hours {
  text-align: center;
  display: block;
}

.contact-info-header .hours p:not(.section-title) {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 10px;
  margin: 6px auto; /* Center the rows */
  text-align: center;
  max-width: 220px;
  font-style: normal;
  color: #444;
  letter-spacing: 0.3px;
}

.contact-info-header .hours p:not(.section-title) span {
  text-align: left;
  color: #008000; /* Default green for opening hours */
  font-weight: 900;
}

.contact-info-header .hours p:last-child span {
  color: #ff0000; /* Red for closed */
}

.contact-info-header .hours p.section-title {
  text-align: center;
  margin-bottom: 8px !important;
}

.main-rate {
  background-color: rgba(245, 245, 245, 0.85);
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid rgba(221, 221, 221, 0.8);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 40;
  overflow: hidden;
}

.inner-rate {
  display: inline-block;
  animation: attention-tilt 5s infinite ease-in-out;
}

@keyframes attention-tilt {
  0%, 60%, 100% { transform: rotate(0deg) scale(1); }
  65% { transform: rotate(-2deg) scale(1.05); }
  70% { transform: rotate(2deg) scale(1.05); }
  75% { transform: rotate(-2deg) scale(1.05); }
  80% { transform: rotate(2deg) scale(1.05); }
  85% { transform: rotate(-1.5deg) scale(1.05); }
  90% { transform: rotate(1.5deg) scale(1.05); }
  95% { transform: rotate(-1deg) scale(1.05); }
}

.main-rate strong {
  display: block;
  font-size: clamp(18px, 3.5vw, 24px);
  color: #333;
  line-height: 1.1;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-rate strong:last-child {
  font-size: 1.15em;
  margin-top: 2px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.important-notice img {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.main-content {
  display: flex;
  padding: 10px;
  gap: 20px;
  flex-direction: column;
}

.rates-table {
  width: 100%;
}

.table-container {
  width: 100%;
  border: 1px solid black;
  background-color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.55);
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
}

.table-container th,
.table-container td {
  padding: 6px 4px;
  text-align: center;
  border-bottom: 1px solid black;
  border-right: 1px solid black;
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.table-container th {
  background-color: rgba(235, 235, 235, 0.9);
  border-bottom: 2px solid #a9a9a9;
  font-size: 17px;
  padding: 4px 8px;
  line-height: 1.1;
}

/* Global column width and alignment for rates */
.table-container th:nth-child(2),
.table-container th:nth-child(3),
.table-container td:nth-child(4),
.table-container td:nth-child(5) {
  min-width: 90px;
  width: 90px;
}

.code-cell {
  text-align: center;
  font-weight: bold;
}

.name-cell {
  text-align: left;
  padding-left: 10px;
}

.unit-text {
  font-family: Arial, sans-serif;
  font-weight: normal;
  font-style: italic;
  font-size: 11px;
  text-shadow: none;
  display: block;
  margin-top: 1px;
  white-space: nowrap;
}

.table-container th:last-child,
.table-container td:last-child {
  border-right: none;
}

.table-container tr:last-child td {
  border-bottom: none;
  padding: 8px 4px;
  height: auto;
}

.table-container tr:nth-child(even) {
  background-color: rgba(250, 250, 250, 0.7);
}

.table-container tr:hover {
  background-color: rgba(240, 240, 240, 0.85);
}

.currency-name {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 15px;
  font-size: 15px;
}

.flag-cell {
  width: 38px;
  padding: 4px !important;
}

.flag {
  width: 30px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

.flag-cell .flag {
  width: 28px;
  height: 19px;
  box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.45);
}

.table-container td img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.disclaimer {
  margin: 15px 0;
  padding: 15px;
  text-align: center;
  font-size: clamp(14px, 2vw, 16px);
  background-color: rgba(240, 240, 240, 0.95);
  border: 1px solid rgba(204, 204, 204, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-style: italic;
  width: 100%;
}

.disclaimer a {
  color: #000000;
  text-decoration: underline;
  font-weight: bold;
  font-size: 1.1em;
  display: block;
  margin-bottom: 5px;
  font-style: normal;
  transition: color 0.2s ease;
}

.disclaimer a:hover {
  color: #555555;
}

.important-notice {
  margin: 15px 0px;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  background-color: rgba(240, 240, 240, 0.95);
  border: 1px solid rgba(204, 204, 204, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-size: clamp(15px, 2.5vw, 18px);
}

.important-notice:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}

.important-notice .bank-card-notice {
  color: #000;
  font-size: 0.9em;
  display: block;
  margin-top: 5px;
}

.important-notice br + br {
  content: "";
  display: block;
  margin-top: 5px;
}

.important-notice br + br + br {
  content: "";
  display: block;
  margin-top: 5px;
  color: #333;
  font-size: 0.9em;
}

.footer {
  background-color: rgba(169, 169, 169, 0.9);
  padding: 10px;
  text-align: center;
  font-size: clamp(11px, 2vw, 12px);
  border-top: 1px solid rgba(128, 128, 128, 0.9);
  color: #333;
  font-style: italic;
}

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

@media screen and (max-width: 768px) {
  .contact-info-header {
    padding: 10px 0 0 0;
    font-size: 16px;
  }

  .marquee-container {
    padding: 8px 0;
    margin-bottom: 12px;
  }

  .marquee-content h2 {
    font-size: 1.1em;
    letter-spacing: 1.5px;
    padding: 0 40px;
  }

  .contact-info-header .location,
  .contact-info-header .contact-details,
  .contact-info-header .hours {
    padding: 10px 0;
  }

  .table-container {
    font-size: 13px;
    height: auto;
  }

  .table-container th,
  .table-container td {
    padding: 6px 2px;
    height: 35px;
  }

  .table-container td {
    min-width: 45px;
    font-size: 15px;
  }

  .table-container th:nth-child(2),
  .table-container th:nth-child(3),
  .table-container td:nth-child(4),
  .table-container td:nth-child(5) {
    min-width: 75px;
    width: 75px;
  }

  .table-container th {
    font-size: 16px;
  }

  .code-cell {
    font-size: 14px;
    padding: 0 4px;
  }

  .name-cell {
    font-size: 13px;
    text-align: left !important;
    padding-left: 8px !important;
  }

  .currency-name {
    font-size: 15px;
    font-weight: 500;
    padding: 0 2px;
  }

  .flag-cell {
    width: 28px;
    padding: 2px !important;
  }

  .flag-cell .flag {
    width: 20px;
    height: 14px;
  }
}

@media (min-width: 768px) {
  .main-content {
    flex-direction: row;
    padding: 20px;
  }

  .rates-table {
    flex: 1;
  }
}

/* iPad and Tablet background override - NO CHANGES TO DESKTOP VIEW ABOVE */
@media screen and (max-width: 1300px) {
  body::before {
    background-image: 
      linear-gradient(180deg, 
        rgba(243, 224, 58, 0.8) 0%, 
        rgba(243, 224, 58, 0.8) 15%,
        rgba(176, 190, 197, 0.9) 40%, 
        rgba(176, 190, 197, 0.9) 60%,
        rgba(243, 224, 58, 0.8) 85%,
        rgba(243, 224, 58, 0.8) 100%) !important;
    background-size: 100% 600px !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    filter: blur(20px) !important;
    animation: flow-waves-tablet 5s linear infinite !important;
  }

  @keyframes flow-waves-tablet {
    from { background-position: center 0; }
    to { background-position: center 600px; }
  }
}
    from { background-position: center 0; }
    to { background-position: center 600px; }
  }
}

  }
}
    from { background-position: center 0; }
    to { background-position: center 600px; }
  }
}
