@font-face {
  font-family: 'Pacifico';
  src: url('./fonts/Pacifico-Regular.ttf') format('truetype');
  /* Add other formats like woff2, woff, etc. for better browser support */
}

@font-face {
  font-family: 'Dancing Script';
  src: url('./fonts/DancingScript-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Nosifer';
  src: url('./fonts/Nosifer-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'AreYouSerious';
  src: url('./fonts/AreYouSerious-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Impact';
  src: url('./fonts/impact.ttf') format('truetype');
}

body {
  background-image: url("black.gif");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: fuchsia;
}

.top-gif-container {
  width: 100%;
  /* Optional: Set a specific height or max-height to control the size */
  /* max-height: 200px; */
  overflow: hidden;
}

.top-gif-container img {
  width: 100%;
  height: auto;
  display: block;
}

.welcome {
  margin: 1em 0 2em 0;
}

.container {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  width: 100%;
  max-width: 850px;
}

.canvas-container {
  grid-column: 1 / 2;
  position: relative; 
  z-index: 10;       
}

.sidebar {
  background-image: url(tumblr_hearts.jpg);
  grid-column: 2 / 3;
  /*margin-left: 1em;*/
  padding: 1em;
  border-radius: 3px;
  color: #fffcfc;
  text-decoration: solid;
  font-family: Arial, Helvetica, sans-serif;
  font-size: small;
}

.group {
  background-color: rgba(255, 162, 255, 0.629);
  padding: .5em;
  margin: 2em 0;
  border-radius: 3px;
}

.group * {
  display: block;
  margin: 1em 0;
  width: 100%;
  box-sizing: border-box;
}

button {
  background-color: fuchsia;
  padding: .5em;
  border: 1px solid rgb(255, 0, 255);
  border-radius: 3px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

select {
  background-color: fuchsia;
  border: 1px solid rgba(255, 0, 255, 0.289);
  font-size: small;
  padding: .3em;
  margin: .3em 0;
  border-radius: 3px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}


.group2 {
  background-color: rgba(255, 162, 255, 0.629);
  grid-column: 1 / 3;
  padding: .5em;
  margin: 2em 0;
  border-radius: 3px;
}


.group2 * {
  display: block;
  margin: 1em 0;
  width: 100%;
  box-sizing: border-box;
}

.fontWeigth {
  display: flex;
  flex-direction: row;
  gap: 1em;
  align-items: center;
}

.layer-buttons {
  display: flex;
  gap: 0.3em;
  margin-top: 1em;
}

.layer-buttons button {
  background-color: rgba(92, 37, 92, 0.564);
  border: 1px solid fuchsia;
  color: #fffcfc;
  padding: .3em;
  margin: .3em 0;
  font-size: 0.8em;
  border-radius: 3px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

#meme-gallery-container {
  margin-top: 1em;
  text-align: center;
}

#meme-gallery-container h2 {
  color: fuchsia; 
  font-family: 'Nosifer', cursive; 
  font-size: 4em;
  text-shadow: 2px 2px 4px rgb(255, 255, 255); 
  margin-bottom: 1em;
}

#meme-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: .1em;
  margin-top: 2em;
  justify-content: center;
}

.meme-item {
  flex: 0 0 18%;
  box-sizing: border-box;
  border: 2px solid fuchsia;
  border-radius: 3px;
  padding: .8em;
  background-color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.meme-item img {
  max-width: 100%;
  height: auto;
}
