html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #121212; /* or your preferred goblincore dark */
background-image: 
    radial-gradient(ellipse at top, rgba(255, 255, 0, 0.02), transparent 100%),
    radial-gradient(ellipse at bottom, rgba(0, 250, 0, 0.8), transparent 80%),
    url('assets/header-moss.png');
  background-repeat: repeat;
  background-size: auto;
  background-blend-mode: multiply;

    color: #eee;
    font-family: 'Segoe UI', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
}

        h1 {
            text-align: center;
            margin-bottom: 10px;
        }

	.faemire-wrapper {
    max-width: 90vw;
    margin: 0 auto;
    padding: 20px;
	}


        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 20px;
        }

.thumb {
    background: #2b2b2b;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: visible;
    aspect-ratio: 3 / 4;
    transition: transform 0.5s ease-in-out;
}

.thumb:hover {
   transform: scale(1.1);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.copy-btn,
.copy-img-btn,
.delete-btn {
    position: absolute;
    border: none;
    padding: 2px 3px;
    border-radius: 4px;
    font-size: 1.1em;
    cursor: pointer;
    z-index: 100;
    transition: background 0.3s, color 0.3s, transform 0.3s ease-in-out;
    line-height: 1;
}

.copy-img-btn {
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #ccc;
}

.copy-btn {
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #ccc;
}

.delete-btn {
    top: 6px;
    right: 6px;
    background: rgba(150, 0, 0, 0.6);
    color: #fff;
}


.copy-img-btn:hover,
.copy-btn:hover, 
.delete-btn:hover {
    transform: scale(1.3);
    background: #666;
    color: #fff;
}

.thumb .copy-img-btn,
.thumb .copy-btn,
.thumb .delete-btn {
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none; /* Prevent it from intercepting mouse events */
}

.thumb:hover .copy-btn, 
.thumb:hover .copy-img-btn, 
.thumb:hover .delete-btn {
  opacity: 1;
  pointer-events: auto;
}

.copy-btn:hover:after {
  content: "Copy link";
}
.copy-img-btn:hover::after {
  content: "Copy image";
}
.delete-btn:hover::after {
  content: "Delete image";
}

.copied {
    background: #2e7d32 !important;
    color: #fff !important;
}


.dragging-page {
    outline: 4px dashed #2e7d32;
    outline-offset: -12px;
    background: rgba(46, 125, 50, 0.05);
}

#dragOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(46, 125, 50, 0.07); /* light green haze */
    border: 3px solid #6da863;
    border-radius: 10px;
    z-index: 999;
    pointer-events: none;
    box-shadow: inset 0 0 24px rgba(100, 255, 100, 0.2);
    animation: sparkle-border 2s ease-in-out infinite;
    display: none;
}

@keyframes sparkle-border {
  0% {
    border-color: #6da863;
    box-shadow: inset 0 0 24px rgba(100, 255, 100, 0.2);
  }
  50% {
    border-color: #9ae69c;
    box-shadow: inset 0 0 32px rgba(150, 255, 150, 0.35);
  }
  100% {
    border-color: #6da863;
    box-shadow: inset 0 0 24px rgba(100, 255, 100, 0.2);
  }
}



#faemireHeader {
    background: url('assets/header-moss.png') center center / cover no-repeat, #1f1f1f;
    background-blend-mode: soft-light;
    color: #fdf6e3;
    padding: 12px 24px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 10px;
    margin-bottom: 20px;

  border: 2px solid rgba(150, 180, 90, 0.4);
  animation: gentlePulse 6s ease-in-out infinite;
}

@keyframes gentlePulse {
  0% {
    box-shadow: 
      0 0 12px rgba(46, 125, 50, 0.5), 
      0 0 6px 2px rgba(212, 175, 55, 0.15);
  }
  50% {
    box-shadow: 
      0 0 18px rgba(46, 125, 50, 0.7), 
      0 0 10px 3px rgba(212, 175, 55, 0.25);
  }
  100% {
    box-shadow: 
      0 0 12px rgba(46, 125, 50, 0.5), 
      0 0 6px 2px rgba(212, 175, 55, 0.15);
  }
}


.headerFlare {
    color: #fdf6e3;
    padding: 12px 24px;
    font-family: 'Georgia', serif;
    font-size: 0.5em;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-radius: 10px;
}


#uploadBox {
    border: 2px dashed #666;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
    cursor: pointer;
    background: #1f1f1f;
    color: #fff;
    display: none;
}

.modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    background: #1c1c1c;
    padding: 10px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 6px;
    right: 12px;
    color: #ccc;
    font-size: 24px;
    cursor: pointer;
}

#faemireLogo {
    max-width: 128px;
    width: auto;
    height: auto;
}

img {
  user-drag: none;
  -webkit-user-drag: none;
  -moz-user-drag: none;
  -khtml-user-drag: none;
  -o-user-drag: none;
}

#uploadBox,
.thumb img {
  cursor: pointer;
}

#statusBox {
  display: none; /* Let jQuery handle it */
  background: #333;
  color: #eee;
  padding: 10px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  border: 2px solid #2e7d32;
  max-width: 90vw;
}

.status-msg {
  padding: 6px 12px;
  margin-bottom: 6px;
  border-radius: 4px;
  background: #444;
  color: #ccc;
  font-size: 0.9em;
  transition: opacity 0.5s ease;
}

.status-msg.success {
  border-left: 4px solid #2e7d32;
}

.status-msg.error {
  border-left: 4px solid #b30000;
  background: #522;
  color: #fdd;
}

.status-msg.fade-out {
  opacity: 0;
}

.faemire-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.2em;
}

#faemireLogo {
  flex-shrink: 0;
}

.faemire-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Georgia', serif;
  line-height: 1.4;
}

.faemire-name-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.faemire-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.4em;
  font-weight: bold;
  color: #fdf6e3;
}

.faemire-pronounce {
  font-style: italic;
  color: #bfa;
  font-size: 0.85em;
}

.faemire-type {
  font-size: 0.8em;
  color: #ccc;
}

.faemire-definitions {
  margin: 4px 0 0;
  padding-left: 20px;
  font-size: 0.85em;
  color: #ddd;
}

.faemire-dictionary {
  font-size: 0.75em;
  line-height: 1.4;
  font-family: 'Georgia', serif;
  color: #ccc;
  margin-top: 4px;
}

.faemire-dictionary em {
  color: #bfa;
  font-style: italic;
}

.faemire-dictionary ol {
  padding-left: 20px;
  margin: 4px 0 0 0;
}

.def-block {
  padding-left: 0.5em;
  text-indent: -0.5em;
}
.faemire-origin {
  font-size: 0.75em;
  color: #bbb;
  font-style: italic;
  margin-top: 2px;
  padding-left: 4px;
}

.login-box {
  position: absolute;
  top: 15px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.login-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.user-welcome {
  font-family: 'Cinzel Decorative', cursive;
  font-size: 0.9em;
  color: #ccc;
}
