body {
  font-family: "Roboto", "Poppins", sans-serif;

  margin: 0;

  padding: 0;

  display: flex;

  justify-content: center;

  align-items: center;

  min-height: 100vh;

  background: #0b011d;

  color: #fff;
}

#symbol-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* (for symbols) */
.container {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 900px;

  width: 95%;

  padding: 30px;

  border-radius: 20px;

  animation: fadeIn 1s ease-in-out;
}

.lottie-background {
  position: fixed;

  top: 0;

  width: 50%;

  height: 100%;

  z-index: -1;
}

#lottie-background-left {
  left: 0;

  background: rgba(0, 0, 0, 0);
}

#lottie-background-right {
  right: 0;

  background: rgba(0, 0, 0, 0);
}

.header {
  text-align: center;

  margin-bottom: 40px;
}

.header h1 {
  font-family: "Poppins", sans-serif;

  font-weight: 600;

  margin: 0;

  font-size: 2.8rem;

  color: #ffffff;

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.header .date {
  font-size: 2em;

  font-weight: bold;

  background: linear-gradient(to bottom, #ebeaed, #b1aeb7);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

  padding: 10px;

  border-radius: 5px;

  text-align: center;

  margin: 0;

  z-index: 10;
}

.title-wrapper {
  position: relative;

  display: inline-block;

  width: 100%;
}

.title-image {
  width: 100%;

  height: auto;

  opacity: 0.7;
}

.lights-overlay {
  position: absolute;

  top: 0;

  left: 50%;

  transform: translateX(-50%);

  width: 69%;

  height: auto;

  opacity: 0.9;

  pointer-events: none;

  z-index: 9;
}

.card {
  margin-bottom: 25px;

  padding: 20px;

  border-radius: 15px;

  background: rgba(255, 255, 255, 0.2);

  backdrop-filter: blur(10px);

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);

  border: 1px solid rgba(255, 255, 255, 0.18);

  transition: transform 0.3s ease-in-out, background 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;

  background-clip: padding-box;

  position: relative;

  overflow: hidden;
}

.card::before {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: linear-gradient(
    135deg,
    rgba(60, 60, 60, 0.6),
    rgba(20, 20, 20, 0.8)
  );

  opacity: 0;

  transition: opacity 0.3s ease-in-out;

  z-index: 1;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: scale(1.05) translateY(-10px);

  background: rgba(255, 255, 255, 0.3);

  box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5);
}

.card > * {
  position: relative;

  z-index: 2;
}

.card h2 {
  font-size: 1.8rem;

  margin-top: 0;

  color: #ffffff;

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card ul {
  list-style: none;

  padding: 0;

  margin: 0;
}

.card ul li {
  margin: 10px 0;

  animation: swipeChange 0.6s ease-out;
}

.card ul li a {
  text-decoration: none;

  color: #81d4fa;

  font-weight: 400;

  font-size: 1.1rem;

  transition: color 0.3s ease-in-out;
}

.card ul li a:hover {
  color: #29b6f6;

  text-decoration: underline;
}

.gcse {
  background: linear-gradient(
    145deg,
    rgba(63, 81, 181, 0.3),
    rgba(63, 81, 181, 0.1)
  );

  border: 1px solid rgba(63, 81, 181, 0.3);
}

.further-maths {
  background: linear-gradient(
    145deg,
    rgba(76, 175, 80, 0.3),
    rgba(76, 175, 80, 0.1)
  );

  border: 1px solid rgba(76, 175, 80, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;

    transform: translateY(20px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 20px;
  }

  .header h1 {
    font-size: 2.2rem;
  }

  .header .date {
    font-size: 1rem;
  }

  .card h2 {
    font-size: 1.4rem;
  }

  .card ul li a {
    font-size: 1rem;
  }
}

.quicklinks-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.quicklinks-button {
  background: linear-gradient(
    145deg,
    rgba(63, 81, 181, 0.8),
    rgba(76, 175, 80, 0.8)
  );
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.quicklinks-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.quicklinks-button.active {
  background: linear-gradient(
    145deg,
    rgba(76, 175, 80, 0.8),
    rgba(63, 81, 181, 0.8)
  );
}

.quicklinks-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 10px;
  margin-bottom: 10px;
  display: none;
  flex-direction: column;
  gap: 5px;
  min-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.quicklinks-menu.active {
  display: flex;
  animation: slideIn 0.3s ease-out;
}

.quicklinks-menu a {
  color: white;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: "Roboto", sans-serif;
}

.quicklinks-menu a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .quicklinks-container {
    bottom: 20px;
    right: 20px;
  }

  .quicklinks-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

.date-change-btn {
  display: none;
}

.date-picker-container {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 15px 30px 15px 15px;
  margin-top: 10px;
  flex-direction: column;
  gap: 10px;
  min-width: 250px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 100;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  display: flex;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.date-picker-container.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.date-picker {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 10px;
  color: white;
  font-family: "Roboto", sans-serif;
  outline: none;
}

.date-picker::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.apply-date-btn {
  background: linear-gradient(
    145deg,
    rgba(138, 43, 226, 0.8),
    rgba(75, 0, 130, 0.8)
  );
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  transition: all 0.3s ease;
}

.apply-date-btn:hover {
  background: linear-gradient(
    145deg,
    rgba(75, 0, 130, 0.8),
    rgba(138, 43, 226, 0.8)
  );
  transform: translateY(-2px);
}

.header .date {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 768px) {
  .date-change-btn {
    margin-top: 10px;
    margin-left: 0;
  }

  .header .date {
    flex-direction: column;
  }
}

.date-picker-container span,
.date-picker-container input,
.date-picker-container button,
#current-date button,
#current-date .date-picker {
  -webkit-text-fill-color: white !important;
  color: white !important;
}

#current-date span {
  background: linear-gradient(to bottom, #ebeaed, #b1aeb7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-button {
  margin: 0;
  height: auto;
  background: transparent;
  padding: 0;
  border: none;
  cursor: pointer;
  --border-right: 6px;
  --text-stroke-color: rgba(255, 255, 255, 0.6);
  --animation-color: #8a2be2;
  --fs-size: 0.85em;
  letter-spacing: 2px;
  text-decoration: none;
  font-size: var(--fs-size);
  font-family: "Poppins", sans-serif;
  position: relative;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--text-stroke-color);
  margin-left: 10px;
  transition: all 0.6s ease;
}

.highlight-button .actual-text,
.highlight-button .hover-text {
  transition: all 0.6s ease;
  -webkit-text-fill-color: transparent !important;
}

.highlight-button .hover-text {
  position: absolute;
  box-sizing: border-box;
  content: attr(data-text);
  color: var(--animation-color);
  width: 0%;
  inset: 0;
  border-right: var(--border-right) solid var(--animation-color);
  overflow: hidden;
  -webkit-text-stroke: 1px var(--animation-color);
  -webkit-text-fill-color: var(--animation-color) !important;
  transition: width 0.6s ease;
}

.highlight-button:hover .hover-text {
  width: 100%;
  filter: drop-shadow(0 0 23px var(--animation-color));
}

/* Separate the filter transition to avoid flickering */
.highlight-button .hover-text::after {
  display: none;
}

.highlight-button:hover .hover-text::after {
  display: none;
}

/* Reset mode specific styles */
.highlight-button.reset-mode {
  --animation-color: #ff5252;
  --text-stroke-color: rgba(255, 255, 255, 0.6);
}

.highlight-button.reset-mode .actual-text {
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  -webkit-text-stroke: 1px var(--text-stroke-color);
}

.highlight-button.reset-mode .hover-text {
  color: #ff5252;
  border-right: var(--border-right) solid #ff5252;
  -webkit-text-stroke: 1px #ff5252;
  -webkit-text-fill-color: #ff5252 !important;
}

.highlight-button.reset-mode:hover .hover-text {
  filter: drop-shadow(0 0 23px #ff5252);
}

@media (max-width: 768px) {
  .highlight-button {
    --fs-size: 0.75em;
    margin-top: 10px;
    margin-left: 0;
  }
}

.highlight-button.active .actual-text {
  display: none;
}

.highlight-button.active .hover-text {
  width: 100%;
  filter: drop-shadow(0 0 15px var(--animation-color));
  -webkit-text-fill-color: var(--animation-color) !important;
}

.confirmation-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(20px);
  background: rgba(20, 20, 40, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px 30px 20px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(138, 43, 226, 0.3);
  z-index: 1000;

  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 300px;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.confirmation-dialog.visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) translateY(0);
}

.confirmation-dialog p {
  margin: 0;
  color: white;
  font-size: 1.1em;
}

.confirmation-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.confirm-btn,
.cancel-btn {
  padding: 8px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  border: none;
  transition: all 0.3s ease;
}

.confirm-btn {
  background: linear-gradient(
    145deg,
    rgba(138, 43, 226, 0.8),
    rgba(75, 0, 130, 0.8)
  );
  color: white;
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.confirm-btn:hover,
.cancel-btn:hover {
  transform: translateY(-2px);
}

@keyframes swipeChange {
  0% {
    transform: translateX(-20px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.content-changed {
  position: relative;
}

.content-changed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: sweep 1.2s ease-in-out;
  pointer-events: none;
  z-index: 10;
}

@keyframes sweep {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.star-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

#current-date {
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}
