body {
    font-family: "PolySans Neutral", "PolySans Neutral Placeholder", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f3f3f3;
    overflow: hidden;
    background-image: url('assets/background/Bitsy-NewBG-Approved.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-container {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    text-align: center;
}

.header img {
    width: 150px;
    height: auto;
}

.header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.footer {
    width: 100%;
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: #666;
    position: absolute;
    bottom: 0;
}

.footer a {
    color: #0077cc;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

img.loaded {
    opacity: 1;
}

.constructor-container {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

#canvas-container {
    position: relative;
    width: 400px;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    user-select: none;
    overflow: hidden;
}

.layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.movable {
    pointer-events: auto;
    cursor: grab;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #a0908b;
    padding: 15px;
    border-radius: 10px;
    height: 470px;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.control-group label {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    align-content: center;
}

.control-buttons {
    display: flex;
    gap: 10px;
}

button {
    padding: 8px 12px;
    font-size: 14px;
    background: #282828;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background: #282828ad;
}

input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
}

.download-button {
    margin-top: 20px;
    padding: 10px 15px;
    font-size: 16px;
    background: #edcf5d;
    color: black;
    border-radius: 8px;
}

.download-button:hover {
    background: #c5a21d;
}
