#creation-method {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}
#creation-method label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
#creationsCarousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  scroll-snap-type: x mandatory;
}
#creationsCarousel .creation-container {
  flex: 0 0 120px;
  scroll-snap-align: start;
}
#creationsList p, #sharedCreationsList p {
  text-align: center;
  color: #666;
  font-style: italic;
}
#creationsList, #sharedCreationsList, #profileCreationsList, #profileSharedList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  min-height: 120px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: #F8F9FA; color: #333333; line-height: 1.6; }
header { position: fixed; top: 0; left: 0; right: 0; background-color: #FFFFFF; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); padding: 1rem; z-index: 1000; display: flex; justify-content: space-between; align-items: center; }
h1 { font-family: 'Bubblegum Sans', cursive; font-size: 2rem; display: inline-block; }
h1 span { display: inline-block; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); animation: bounce 1s infinite alternate; }
h1 span:nth-child(1) { color: #FF0000; } h1 span:nth-child(2) { color: #FF7F00; } h1 span:nth-child(3) { color: #FFFF00; }
h1 span:nth-child(4) { color: #00FF00; } h1 span:nth-child(5) { color: #00FFFF; } h1 span:nth-child(6) { color: #0000FF; }
h1 span:nth-child(7) { color: #FF00FF; } h1 span:nth-child(8) { color: #FF0000; } h1 span:nth-child(9) { color: #FF7F00; }
h1 span:nth-child(10) { color: #FFFF00; } h1 span:nth-child(11) { color: #00FF00; } h1 span:nth-child(12) { color: #00FFFF; }
h1 span:nth-child(13) { color: #0000FF; } h1 span:nth-child(14) { color: #FF00FF; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-5px); } }
nav { display: flex; gap: 1rem; }
nav button { background-color: #007BFF; color: #FFFFFF; border: none; padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; font-size: 1rem; transition: background-color 0.2s; }
nav button:hover { background-color: #0056b3; }
main { margin-top: 80px; padding: 2rem; max-width: 1200px; margin-left: auto; margin-right: auto; transition: opacity 0.3s; }
#welcome, #auth, #app, #my-creations, #profile { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; opacity: 1; }
.hidden { display: none; opacity: 0; }
#welcome { text-align: center; padding: 2rem; background-color: #FFFFFF; border-radius: 10px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
#welcome h2 { font-family: 'Bubblegum Sans', cursive; font-size: 2.5rem; margin-bottom: 1rem; }
#welcome p { font-size: 1.2rem; margin-bottom: 1rem; }
#welcome .features { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin: 2rem 0; }
#welcome .feature { max-width: 300px; text-align: center; }
#welcome .feature h3 { font-family: 'Bubblegum Sans', cursive; font-size: 1.5rem; margin-bottom: 0.5rem; }
#welcome .feature p { font-size: 1rem; color: #666; }
#welcome button { font-size: 1.2rem; padding: 1rem 2rem; }
#auth { text-align: center; }
#app { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
#convert-section, #publicWall, #recent-creations, #my-creations, #profileCreations, #profileShared { background-color: #FFFFFF; border-radius: 10px; padding: 1.5rem; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); width: 100%; margin-bottom: 2rem; }
#convert-section h2, #publicWall h2, #recent-creations h2, #my-creations h2, #profileCreations h2, #profileShared h2 { font-family: 'Bubblegum Sans', cursive; font-size: 1.75rem; margin-bottom: 1rem; }
#convert-section h2 span { display: inline-block; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); animation: bounce 1s infinite alternate; } /* Nieuw: Regenboog styling voor 'Maak een Kleurplaat' */
#convert-section h2 span:nth-child(1) { color: #FF0000; } /* Voortzetting regenboog colors */
#convert-section h2 span:nth-child(2) { color: #FF7F00; }
#convert-section h2 span:nth-child(3) { color: #FFFF00; }
#convert-section h2 span:nth-child(4) { color: #00FF00; }
#convert-section h2 span:nth-child(5) { color: #00FFFF; }
#convert-section h2 span:nth-child(6) { color: #0000FF; }
#convert-section h2 span:nth-child(7) { color: #FF00FF; }
#convert-section h2 span:nth-child(8) { color: #FF0000; }
#convert-section h2 span:nth-child(9) { color: #FF7F00; }
#convert-section h2 span:nth-child(10) { color: #FFFF00; }
#convert-section h2 span:nth-child(11) { color: #00FF00; }
#convert-section h2 span:nth-child(12) { color: #00FFFF; }
#convert-section h2 span:nth-child(13) { color: #0000FF; }
#convert-section h2 span:nth-child(14) { color: #FF00FF; }
#convert-section h2 span:nth-child(15) { color: #FF0000; }
#convert-section h2 span:nth-child(16) { color: #FF7F00; }
#convert-section h2 span:nth-child(17) { color: #FFFF00; }
#convert-section h2 span:nth-child(18) { color: #00FF00; }
#convert-section h2 span:nth-child(19) { color: #00FFFF; }
button, input[type="file"], input[type="text"], textarea { padding: 0.75rem; margin: 0.5rem 0; font-size: 1rem; border-radius: 5px; border: none; width: 100%; max-width: 300px; }
button { background-color: #007BFF; color: #FFFFFF; cursor: pointer; transition: background-color 0.2s; }
button:hover { background-color: #0056b3; }
button:disabled { background-color: #cccccc; cursor: not-allowed; }
input[type="file"], input[type="text"], textarea { background-color: #F1F3F5; color: #333333; }
textarea { resize: vertical; min-height: 60px; }
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: white;
  font-size: 1.2rem;
}
#loading::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid #007BFF;
  border-top: 3px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}
#authLoading { display: none; font-size: 1rem; color: #007BFF; align-items: center; gap: 0.5rem; }
#authLoading::before { content: ''; width: 16px; height: 16px; border: 2px solid #007BFF; border-top: 2px solid transparent; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#result img { max-width: 100%; border-radius: 5px; margin-top: 1rem; }
.creation-container { position: relative; text-align: center; }
.creation-container img { width: 100%; height: 120px; object-fit: cover; border-radius: 5px; border: 1px solid #ddd; transition: transform 0.2s; loading: lazy; }
.creation-container img:hover { transform: scale(1.05); border-color: #007BFF; }
.creation-actions { margin-top: 0.5rem; font-size: 0.875rem; }
.like-btn.liked { background-color: #FF4444; }
#profile-info { text-align: center; margin-bottom: 2rem; }
#editNameSection { display: flex; flex-direction: column; gap: 0.5rem; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); justify-content: center; align-items: center; z-index: 2000; }
.modal-content { background-color: #FFFFFF; padding: 2rem; border-radius: 10px; max-width: 500px; max-height: 90%; overflow-y: auto; text-align: center; position: relative; } /* Gewijzigd: position relative voor cross */
.close-cross { position: absolute; top: 10px; left: 10px; font-size: 2rem; cursor: pointer; color: #333; } /* Nieuw: Styling voor kruisje */
.comment-list { max-height: 150px; overflow-y: auto; margin-top: 1rem; font-size: 0.875rem; }
.bottom-nav { position: fixed; bottom: 0; left: 0; width: 100%; display: flex; background-color: #FFFFFF; box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1); z-index: 1000; }
.bottom-nav .tab-btn { flex: 1; border: none; background: none; padding: 0.5rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; font-size: 0.875rem; color: #666; }
.bottom-nav .tab-btn.active { color: #007BFF; }
.tab-icon { width: 24px; height: 24px; fill: currentColor; margin-bottom: 0.25rem; }
@media (min-width: 768px) { .bottom-nav { display: none; } #app { grid-template-columns: 1fr 2fr; } }
@media (max-width: 768px) { #app { grid-template-columns: 1fr; } h1 { font-size: 2rem; } main { padding: 1rem; padding-bottom: 80px; } .creation-container img { height: 100px; } .modal-content { max-width: 90%; } } /* Change for wish 1: Increased padding-bottom to 80px to prevent copyright from falling off screen */
@media (max-width: 480px) { h1 { font-size: 1.75rem; } button, input[type="file"], input[type="text"], textarea { font-size: 0.875rem; } .creation-container img { height: 80px; } }

/* Change for wish 2: Style to make image in detail modal smaller like a tile */
#detailImage {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  margin: 1rem auto;
  display: block;
  cursor: pointer; /* Added cursor pointer for clickability */
}

/* Change for wish 3: Styles for detail slider */
#detail-level {
  margin-bottom: 1rem;
  text-align: left;
  width: 100%;
  max-width: 300px;
}
.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#detailSlider {
  width: 100%;
  margin: 0.5rem 0;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.875rem;
  color: #666;
}

/* Change for wish 4: Style for help icons */
.help {
  cursor: help;
  color: #007BFF;
  font-weight: bold;
  margin-left: 0.5rem;
  font-size: 0.875rem;
  background-color: #e0e9ff;
  border-radius: 50%;
  padding: 0 0.4rem;
  line-height: 1;
}
.help:hover {
  background-color: #007bff;
  color: white;
}

#imageInputSection .help, #promptInputSection .help {
  vertical-align: middle;
}