:root {
    --text-color: #2c3e50;
    --accent-color: #e74c3c;
    --box-bg: rgba(255, 255, 255, 0.8);
    --box-border: #333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', sans-serif;
    /* Wardrobe-like layered wooden panels with subtle shelf/door silhouettes */
    background:
      /* wardrobe photo as the main background */
      url('/customized-wardrobe-svelte-series-sliding-door-wardrobe-ssldw2-picket-and-rail-32247152410694_1200x.webp') center center / cover no-repeat,
      /* soft vignette for depth */
      radial-gradient(1000px 500px at 50% 18%, rgba(0,0,0,0.12), transparent 25%),
      /* thin vertical wood grain streaks */
      repeating-linear-gradient(180deg, rgba(0,0,0,0.02) 0px, rgba(0,0,0,0.02) 2px, rgba(255,255,255,0.00) 2px, rgba(255,255,255,0.00) 40px),
      /* warm wood panels (subtle color layer to harmonize shirt overlays) */
      linear-gradient(90deg, rgba(139,90,43,0.18) 0%, rgba(167,113,51,0.12) 25%, rgba(125,79,34,0.10) 50%, rgba(176,122,58,0.10) 75%, rgba(139,90,43,0.16) 100%),
      /* subtle fabric/door shadow lines for wardrobe doors and shelves */
      linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.00) 6%),
      /* slight sheen */
      linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.00) 12%);
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    /* Removed max-width to allow full expansion */
    display: flex;
    justify-content: center;
    align-items: center;
}

.tshirt-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    /* Ensure content isn't clipped by the container if we scale children */
    overflow: visible; 
}

.tshirt-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    /* Scale up the shirt to provide a larger canvas for text */
    transform: scale(1.4);
    transform-origin: center 40%; /* Anchor slightly higher to keep chest visible */
}

.tshirt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: multiply;
    -webkit-mask-image: url(tshirt.png);
    mask-image: url(tshirt.png);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    pointer-events: none;
    transition: background-color 0.5s ease;
    z-index: 5;
    /* Match the transform of the tshirt-img exactly */
    transform: scale(1.4);
    transform-origin: center 40%;
}

/* The Slogan Box - Positioned absolutely over the chest area */
.slogan-box {
    position: absolute;
    top: 22%; /* Moved up slightly to align with scaled shirt chest */
    left: 50%;
    transform: translateX(-50%);
    width: 70%; /* Increased width */
    min-height: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.1s ease;
    padding: 10px;
    border: 2px dashed rgba(0,0,0,0.1); /* Subtle hint it's clickable */
    border-radius: 8px;
}

.slogan-box:active {
    transform: translateX(-50%) scale(0.95);
}

/* Content Typography */
.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.content-wrapper.fade-out {
    opacity: 0;
}

.placeholder {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: #333;
    letter-spacing: 2px;
    line-height: 1;
    transform: rotate(-2deg);
}

.profession-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.slogan-item {
    font-family: 'Permanent Marker', cursive; /* Handwritten feel */
    font-size: 1.4rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.4);
    padding: 5px;
    border-radius: 4px;
    transform: rotate(-1deg);
    transition: transform 0.2s;
}

.slogan-item:nth-child(even) {
    transform: rotate(1deg);
}

.slogan-item:hover {
    transform: scale(1.05) rotate(0);
}

.score-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 6px 8px;
    border-radius: 16px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    vertical-align: middle;
}

/* small submit button next to custom input */
.custom-slogan {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-slogan {
    appearance: none;
    border: none;
    background: #2c3e50;
    color: #fff;
    width: 38px;
    height: 34px;
    border-radius: 6px;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.submit-slogan:active {
    transform: scale(0.98);
}

/* ensure input doesn't grow too wide on mobile */
.full-slogan-input {
    max-width: 60%;
    min-width: 40%;
    text-align: center;
}

.full-slogan-input::placeholder {
    color: #95a5a6;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.6;
}

.blank-slogan {
    margin-top: 8px;
    background: #000;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    font-weight: bold;
    border: 2px dashed #fff;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    transform: rotate(2deg) !important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

/* Mobile optimizations */
@media (max-width: 480px) {
    .slogan-box {
        width: 85%; /* Wider on mobile */
        top: 20%; /* Adjusted for scaled shirt */
    }
    
    .profession-title {
        font-size: 2rem;
    }
    
    .slogan-item {
        font-size: 1.1rem;
    }

    .full-slogan-input {
        font-size: 1rem;
    }
    
    .placeholder {
        font-size: 3rem;
    }
}