/* styles.css */

body {
  font-family: 'Garamond', serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #4a0a54, #0d092f);
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


header {
  background-color: #1c012e;
  padding: 1em;
  text-align: center;
  color: #f9d6e5;
  border-bottom: 2px solid #f9d6e5;
  width: 100%;
}

main {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

#drawCardButton {
  background-color: #f7b7c3;
  border: none;
  padding: 10px 20px;
  font-size: 1.2em;
  cursor: pointer;
  margin-top: 1em;
}

#cardDisplay {
  margin-top: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#cardDisplay.hidden {
  display: none;
}

#cardImage {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  object-fit: cover;
  border: 2px solid #f9d6e5;
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

#cardInterpretation {
  margin-top: 1em;
  padding: 10px;
  background-color: #330247;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 600px;
  text-align: center;
}



.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  display: flex;
}


h1 {
  font-size: 2rem;
  margin: 0;
}


.intro {
  max-width: 600px;
  margin-bottom: 2rem;
}

.intro h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.intro p {
  font-size: 1rem;
  line-height: 1.5;
}

.usage {
  max-width: 600px;
  margin-bottom: 2rem;
}

.usage h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.usage p {
  font-size: 1rem;
  line-height: 1.5;
}

.btn {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background-color: #f9d6e5;
  color: #0d092f;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #d9b8d1;
  transform: scale(1.05);
}



#cardImage:hover {
  transform: scale(1.1);
}


footer {
  background-color: rgba(0, 0, 0, 0.7);
  color: #f9d6e5;
  text-align: center;
  padding: 1rem;
  border-top: 2px solid #f9d6e5;
  width: 100%;
  bottom: 0;
}

footer {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  #drawCardButton {
      font-size: 1em;
      padding: 8px 16px;
  }

  #cardImage {
      max-height: 200px;
  }

  #cardInterpretation {
      font-size: 0.9em;
      padding: 8px;
  }
}

.hidden {
  display: none;
}