/* === General Styles === */

/* Navigation Bar */
nav {
  background-color: #121212;
  padding: 10px;
  text-align: center;
}

nav a {
  color: #E0E0E0;
  text-decoration: none;
  margin: 0 15px;
  font-size: 18px;
  display: inline-block;
}

nav a:hover {
  text-decoration: underline;
  color: #FFD700;
}

nav a:focus {
  outline: 2px solid #FFD700;
}

/* Body Styling */
body {
  background-color: #181818;
  color: #E0E0E0;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  color: #FFFFFF;
  text-align: center;
}

/* Buttons */
button {
  background-color: #333333;
  color: #FFFFFF;
  border: 1px solid #444444;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 999px;
}

button:hover {
  background-color: #555555;
}

button:focus {
  outline: 2px solid #FFD700;
}

button.secondary {
  background: transparent;
  color: #E0E0E0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

button.secondary:hover {
  color: #FFD700;
  border-color: #FFD700;
}

/* Links */
a {
  color: #1E90FF;
}

a:hover {
  color: #FFD700;
}

a:focus {
  outline: 2px solid #FFD700;
}

/* Form Inputs */
input, textarea, select {
  background-color: #222222;
  color: #E0E0E0;
  border: 1px solid #444444;
  padding: 10px;
  font-size: 16px;
  width: 100%;
  line-height: 1.25;
}

input:focus, textarea:focus, select:focus {
  outline: 2px solid #1E90FF;
}

input[type="date"] {
  min-height: 42px;
}

/* Dropdown Menu */
.dropdown {
  display: inline-block;
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #222222;
  min-width: 150px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: #E0E0E0;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #333333;
  color: #FFD700;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Images */
img {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
}

/* Footer */
footer {
  background-color: #121212;
  color: #E0E0E0;
  text-align: center;
  padding: 10px;
  width: 100%;
  margin-top: auto;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 20px;
  align-items: start;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

@media (max-width: 820px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-content {
  background-color: #222222;
  color: #E0E0E0;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

.modal.hidden {
  visibility: hidden;
  opacity: 0;
}

.modal:not(.hidden) {
  visibility: visible;
  opacity: 1;
}

/* Spirograph */
#spiro-app {
  --sp-bg: #181818;
  --sp-panel: #222222;
  --sp-ink: #E0E0E0;
  --sp-accent: #1E90FF;
  --sp-accent-2: #FFD700;
}

#spiro-app .spiro-panel {
  background-color: var(--sp-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  padding: 1rem;
}

#spiro-app canvas.spiro-canvas {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: radial-gradient(600px 600px at 50% 50%, rgba(30, 144, 255, 0.1), transparent 60%), #181818;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Card Dealer */
.aaac-cardapp {
  max-width: 1100px;
  margin: 24px auto;
  padding: 16px;
}

.aaac-hand {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 8px;
}

.aaac-card {
  width: 60px; /* Reduced width to make the cards smaller */
  height: auto; /* Maintain the aspect ratio */
  border-radius: 6px; /* Slightly smaller rounded corners */
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Adjusted shadow for smaller size */
  transition: transform 0.2s ease;
}

.aaac-card:hover {
  transform: scale(1.1); /* Slightly enlarge on hover */
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3); /* Enhance shadow on hover */
}

.aaac-dropzone {
  min-height: 150px; /* Ensure the drop zone is large enough */
  border: 2px dashed rgba(0, 0, 0, 0.3); /* Dashed border for drop zones */
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.05); /* Light background for visibility */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Highlight drop zone when a card is dragged over */
.aaac-dropzone-hot {
  background-color: rgba(0, 0, 0, 0.1); /* Slightly darker background */
  border-color: rgba(0, 0, 0, 0.5); /* Darker border */
}

.aaac-small {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}
.aaac-btn-secondary {
  background: transparent;
  color: #E0E0E0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.aaac-btn-secondary:hover {
  color: #FFD700;
  border-color: #FFD700;
}
<style>
  /* optional: make pile thumbnails wrap nicely */
  .aaac-dropzone { display: flex; flex-wrap: wrap; align-content: flex-start; }
</style>
/* Responsive Images */
img {
  max-width: 100%; /* Ensure the image does not exceed the width of its container */
  height: auto; /* Maintain the aspect ratio */
  display: block; /* Remove extra spacing below images */
  margin: 0 auto; /* Center the images */
}

/* Adjust the main content for smaller screens */
main {
  padding: 10px;
  text-align: center; /* Center-align text and images */
}

@media (max-width: 768px) {
  main img {
    margin-bottom: 20px; /* Add spacing between images on smaller screens */
  }
}