@font-face {
  font-family: 'MSPGothic';
  src: url('/MSPGothic/MS-PGothic.woff2') format('woff2'),
       url('/MSPGothic/MS-PGothic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: 'MSPGothic', sans-serif;
  font-size: 16px;
  background-color: white;
  margin: 0;
  padding: 10px;
}

img {
  max-width: 100%;
  height: auto;
}

h1 {
  text-align: center;
  color: #FFB8C7;
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
}

.divider {
  text-align: center;
  margin: 20px 0;
}

.reading-options {
  text-align: center;
  margin: 20px 0;
}

.reading-btn {
  background: white;
  border: 1.5px solid #FFB8C7;
  border-radius: 15px;
  color: #FFB8C7;
  padding: 7px 15px;
  margin: 0 5px 10px 5px;
  cursor: pointer;
  font-family: 'MSPGothic', sans-serif;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.reading-btn:hover {
  background-color: #FFF7F6;
  border-color: #F9C6D1;
}

.reading-btn.selected {
  background-color: #FFB8C7;
  color: white;
  font-weight: bold;
}

.preview-section {
  text-align: center;
  height: 30em;
  margin: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-image img {
  max-height: 30em;
  border: 2px groove #F9D7D6;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.preview-image img.show {
  opacity: 1;
}

.controls {
  text-align: center;
  margin: 20px 0;
}

.reversals-container {
  margin-bottom: 15px;
  color: #666;
}

.reversals-container input[type="checkbox"] {
  margin-right: 8px;
}

.reversals-container label {
  font-size: 14px;
  color: #666;
}

.generate-btn {
  background: white;
  border: 1.5px solid #FFB8C7;
  border-radius: 15px;
  color: #FFB8C7;
  padding: 10px 20px;
  cursor: pointer;
  font-family: 'MSPGothic', sans-serif;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.generate-btn:hover {
  background-color: #FFF7F6;
  border-color: #F9C6D1;
}

.reading-results {
  margin-top: 30px;
}

.card-result {
  background-color: #FFF7F6;
  border: 2px groove #F9D7D6;
  margin: 20px 0;
  padding: 20px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.card-image {
  text-align: center;
  margin-bottom: 15px;
}

.card-image img {
  max-width: 180px;
  max-height: 280px;
  border: 1px solid #FFB8C7;
  transition: transform 0.3s ease;
}

.card-image img.reversed {
  transform: rotate(180deg);
}

.card-name {
  background-color: white;
  border: 1.5px solid #FFB8C7;
  border-radius: 15px;
  color: #FFB8C7;
  padding: 7px;
  text-align: center;
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 15px;
}

.reversed-indicator {
  color: #FF69B4;
  font-style: italic;
  text-align: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.card-description {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  text-align: left;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding: 5px;
  }
  
  .main {
    padding: 15px;
  }
  
  .reading-btn {
    display: block;
    margin: 5px auto;
    width: 200px;
  }
}