body,
html {
  background-color: black;
  color: white;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
}

a, a:visited {
  background-color: lime;
  color: #000;
  padding: 0.25rem 0.5rem;
  text-decoration: none;
}

a:hover {
  background-color: #00f500;
  color: #000;
  padding: 0.25rem 0.5rem;
}

.intro-section {
  background-color: #fff;
  color: #000;
  padding: 2rem;
  border-bottom: 2rem solid lime;
}

.logo {
  max-width: 20rem;
  height: auto;
  margin-bottom: 15px;
}

.grid {
  padding: 2rem;
}

/* Apply multi-column layout and spanning on wider screens */
@media (min-width: 768px) {
  .wrapper {
    margin: 0 auto;
    width: 960px;
  }

  .grid {
    padding-top: 3rem;
    padding-bottom: 3rem;
    padding-left: 0;
    padding-right: 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
  }
}

p {
  line-height: 1.5;
}

/* Modified h3 heading style */
h3 {
  margin-top: 1em;
  margin-bottom: 0.8em;
  font-size: 1.25em;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Thumbnail Selection */
#thumbnail-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 15px;
}

.thumbnail-category {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 0.9em;
  color: #ccc;
}
.thumbnail-category:first-child {
  margin-top: 0;
}

.overlay-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 5px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background-color: #333;
  border-radius: 3px;
}

.overlay-thumbnail:hover {
  border-color: #fbff00;
}

.overlay-thumbnail.selected-thumbnail {
  border-color: lime;
}

/* Buttons */
.upload-button {
  display: inline-block;
  padding: 10px 15px;
  background-color: lime;
  color: black;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 15px;
}

.upload-button:hover {
  background-color: #00f500;
  color: black;
}

.notice {
  font-size: 0.75rem;
}

button#download {
  display: inline-block;
  padding: 10px 15px;
  background-color: lime;
  font-size: 1rem;
  color: black;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}

button#download:hover {
  background-color: #00f500;
}

/* Canvas */
#canvas {
  max-width: 100%;
  height: auto;
  display: none;
  cursor: pointer;
}

/* --- Notices --- */
#choose-layout-notice {
  margin-bottom: 10px;
  display: none;
  color: #fff;
}

#notice {
  font-size: 1em;
  margin-top: 10px;
  display: none;
  color: #fff;
}

footer {
  margin-top: 2em;
}
