@font-face {
  font-family: 'LunarTitleFont';
  src: url('../fonts/AMANE.otf') format('opentype');
}
@font-face {
  font-family: 'CardTitleFont';
  src: url('../fonts/AMANE.otf') format('opentype');
}
@font-face {
  font-family: 'CardContentFont';
  src: url('../fonts/ModernAntiqua-Regular.ttf') format('truetype');
}

:root {
  --silver-light: #f0f0f0;
  --silver-mid: #ccc;
  --silver-dark: #999;
  --silver-white: #fff;
  --silver-gradient: linear-gradient(135deg, #f0f0f0 0%, #aaa 40%, #ddd 60%, #fff 100%);
  --text-shadow: 
    0 0 4px rgba(255,255,255,0.2),
    1px 1px 2px rgba(255,255,255,0.2);
  --glow-shadow: 
    0 0 10px rgba(255, 255, 255, 0.1),
    inset 0 0 10px rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: var(--silver-mid);
  font-family: 'CardContentFont', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  min-height: 100vh;
  padding-top: 3rem;
  padding-bottom: 5rem;
}

.silver-text {
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: var(--text-shadow);
}

.main-title {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  font-family: 'LunarTitleFont', sans-serif;
  font-style: italic; 
  font-weight: bold;
}


.carousel-card-wrapper {
  background: linear-gradient(135deg, #ffffff, #dddddd);
  padding: 1px;
  border-radius: 1rem;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}


.carousel-container {
  position: relative;
  width: 90%;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}


.carousel-card {
  background-color: #000;
  border-radius: 1rem;
  overflow: hidden;
  text-align: center;
  min-height: 400px;
  width: 100%;
  padding: 1.5rem;
  box-shadow: var(--glow-shadow);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1rem;
}

.carousel-card:hover {
  box-shadow:
    0 0 20px rgba(255, 255, 255, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.card-title {
  font-size: 1.1rem;
  font-family: 'CardTitleFont', sans-serif;
  margin: 0;
  font-weight: bold;
}

.card-image {
  width: 90%;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  border-radius: 0.5rem;
  margin: 0 auto;
  display: block;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
  transition: opacity 0.3s ease;
}

.card-image.hidden {
  display: none;
}

.card-content {
  font-size: 1.25rem;
  font-family: 'CardContentFont', sans-serif;
  color: var(--silver-light);
  line-height: 1.4;
  text-align: left;
  margin: 0;
  flex-grow: 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.arrow {
  background: none;
  border: none;
  color: var(--silver-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0 1rem;
  user-select: none;
  text-shadow: var(--text-shadow);
  transition: transform 0.2s ease, color 0.2s ease;
  font-family: 'CardContentFont', sans-serif;
  position: relative;
  min-width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow.left::before {
  content: '«';
}

.arrow.right::before {
  content: '»';
}

.arrow:hover {
  transform: scale(1.2);
  color: var(--silver-white);
  text-shadow:
    0 0 8px rgba(255,255,255,0.4),
    1px 1px 2px rgba(255,255,255,0.3);
}

.arrow:focus {
  outline: 2px solid var(--silver-mid);
  outline-offset: 2px;
  border-radius: 4px;
}

.arrow:active {
  transform: scale(0.95);
}

.site-footer {
  font-size: 0.7rem;
  font-family: 'CardTitleFont', sans-serif;
  width: 100%;
  margin-top: auto;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--silver-gradient);
  padding: 1rem 0;
  box-shadow: 0 -2px 10px rgba(255, 255, 255, 0.1);
}

.site-footer p {
  margin: 0;
  color: #000;
  font-style: italic;
}

.site-footer a {
  text-decoration: none;
  color: #000;
  font-style: italic;
  font-family: 'CardTitleFont', sans-serif;
  font-weight: normal;
}

.site-footer a:hover {
  text-decoration: none;
}

@media (max-width: 768px) {
  .carousel-container {
    width: 85%;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 2rem;
    padding-bottom: 6rem;
  }

  .main-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .carousel-container {
    width: 90%;
  }

  .carousel-card {
    min-height: 350px;
    padding: 1rem;
  }

  .card-image {
    max-width: 150px;
    max-height: 120px;
  }

  .arrow {
    font-size: 1.8rem;
    padding: 0 0.5rem;
  }

  .card-content {
    font-size: 0.9rem;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.loading {
  animation: pulse 2s infinite;
}


.site-footer {
  -webkit-text-fill-color: #000;
  background-clip: initial;
  -webkit-background-clip: initial;
}


.site-footer a:hover {
  color: #000;
  text-shadow:
    0 0 8px rgba(0, 0, 0, 0.4),
    1px 1px 2px rgba(0, 0, 0, 0.3);
}