/* http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain) */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    font-family: Arial, sans-serif;
    color: #ffffff;
    margin: 0;
    background-image: url(assets/UI/Title/voidheart.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-color: #0f0f0f;
    min-height: 100vh;
}

.page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 100px);
    padding: 20px;
}

ol, ul {
    list-style: none;
}

blockquote, q {
    quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

h2 {
    margin-bottom: 30px;
    font-size: 2.5em;
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px; 
    margin-top: 20px;
}

form {
    background-color: #1c1c1c;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px #222;
    width: 100%;
    max-width: 400px;
}

label, input {
    display: block;
    margin-bottom: 10px;
    width: 100%;
}

input[type="text"], input[type="password"] {
    padding: 8px;
    border: none;
    border-radius: 5px;
}

button {
    margin-top: 10px;
    padding: 8px 16px;
    background-color: white;
    border: none;
    border-radius: 5px;
    color: black;
    cursor: pointer;
    transition: .5s;
}

button:hover {
    background-color: gray;
    color: white;
}

p {
    margin-top: 20px;
    font-size: 1.2em;
}



header {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1a1a1a;
    border-bottom: 2px solid #444;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    height: 100px;
}

.welcome {
    font-size: 2em;
    margin: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo img {
    height: 100px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-end;
    height: 100%;
    font-size: 1.5em;
}

.nav a {
    color: #eee;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background-color: #2a2a2a;
    border-radius: 5px;
    transition: 0.2s;
}

.nav a:hover {
    background-color: #3a3a3a;
}


.scene {
  position: relative;
  width: 800px;
  height: 500px;
  background-size: cover;
  background-position: center;
  border: 2px dashed #666;
  overflow: hidden;
  user-select: none;
}

.scene-sticker {
  position: absolute;
  width: 100px;
  height: auto;
  cursor: grab;
  border: 2px dashed transparent;
  transition: border 0.2s;
  box-sizing: border-box;
}

.scene-sticker.selected {
  border: 2px dashed #88f;
}

.sticker-tray {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 300px;
  padding: 10px;
  background-color: #1c1c1c;
  border-radius: 10px;
}

.sticker-tray img {
  max-width: 80px;
  height: auto;
  object-fit: contain;
  cursor: grab;
  flex-shrink: 0;
}

.resize-handle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border: 1px solid #000;
  bottom: -6px;
  right: -6px;
  cursor: se-resize;
  z-index: 10;
}

.scene-sticker.dragging {
  opacity: 1 !important;
  border: 2px dashed #88f;
}

.sidebar {
  max-width: 300px;
  overflow-x: auto;
}

.scene-editor {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}


.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 4fr));
    gap: 20px;
    padding: 20px;
}

.card {
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    background-color: #1c1c1c;
}

.card img {
    width: 100%;
    display: block;
}

.card-content {
    padding: 15px;
}

.card h3 {
    margin-top: 0;
}

.meta {
    color: #777;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.download-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #007BFF;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.delete-button {
    background-color: #ff4d4d;
    color: white;
    transition: background-color 0.3s;
}

.delete-button:hover {
    background-color: #ff1a1a;
}