body {
    font-family: 'Arial', sans-serif;
    background: #f0f0f0;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 20px;
    gap: 20px;
}

h1 {
    color: #ff6f61;
    font-family: 'Dancing Script', cursive;
    font-size: 40px;
    margin-bottom: 20px;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
}

.controls {
    background: #fff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 400px;
    flex-shrink: 0;
}

.preview-container {
    flex-grow: 1;
    width: 600px;
}

.control-group {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.control-group input {
    color: black;
}

label {
    font-weight: bold;
    margin-right: 10px;
    min-width: 120px;
}

input[type="text"],
select {
    padding: 5px;
    width: 200px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

input[type="color"] {
    width: 40px;
    height: 40px;
    border: none;
    cursor: pointer;
}

input[type="range"] {
    width: 200px;
}

button {
    background: #ff6f61;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-right: 10px;
}

button:hover {
    transform: scale(1.05);
}

.delete-btn {
    background: #ff4444;
    padding: 5px 10px;
    font-size: 12px;
}

.delete-btn:hover {
    transform: scale(1.05);
}

#preview {
    width: 600px;
    height: 600px;
    position: relative;
}

.preview-container {
    flex-grow: 1;
    width: 600px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
}

#preview {
    width: 550px;
    height: 550px;
    background: #f8f8f8;
    border-radius: 20px;
    padding: 10px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#cake-base {
    width: 500px;
    height: 500px;
    background-image: url('beige-cream.png');
    /* Sabit PNG, orijinal görüntü */
    background-size: cover;
    position: absolute;
    border-radius: 50%;
    /* Yuvarlak hale getirildi */
}

.cream-layer {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.8));
    filter: blur(2px) brightness(1.1) contrast(1.2);
    opacity: 0.9;
    border-radius: 20px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 105, 180, 0.3);
    z-index: 5;
    cursor: move;
    user-select: none;
    transition: all 0.2s;
}

.text-box {
    position: absolute;
    padding: 5px 15px;
    font-family: 'Caveat', cursive;
    /* Sabit el yazısı font */
    font-size: 24px;
    /* Varsayılan punto */
    color: #ffffff;
    /* 6 haneli hexadecimal format */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6), 1px 1px 3px rgba(0, 0, 0, 0.8);
    cursor: move;
    user-select: none;
    z-index: 10;
    transition: all 0.2s;
    filter: blur(0.5px) opacity(0.95);
}