* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f9f9f9;
    height: 100vh;
    overflow: hidden;
    color: #333;
}

.intro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 340px;
}

.intro h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.intro p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.5;
}

.start-button {
    padding: 10px 20px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1.5rem;
}

.start-button:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.credits {
    font-size: 0.8rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.linkedin-link {
    color: #0077b5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.linkedin-icon {
    fill: #0077b5;
}

.linkedin-link:hover .linkedin-icon {
    fill: #005582;
}

.canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    background-color: white;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    background-color: white;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.text-overlay {
    position: absolute;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 20px;
    pointer-events: none;
    display: none;
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.2;
    color: #000;
    z-index: 10;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.text-cursor {
    position: absolute;
    width: 2px;
    background-color: #000;
    display: none;
    z-index: 15;
}

.toolbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    display: none;
    gap: 16px;
    align-items: center;
    z-index: 100;
    opacity: 0.15;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.toolbar:hover {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.tool {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #555;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    position: relative;
}

.tool:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    color: #000;
}

.tool.active {
    background-color: #f0f0f0;
    color: #000;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.tool::after {
    content: attr(title);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.tool:hover::after {
    opacity: 1;
}

.separator {
    width: 1px;
    height: 24px;
    background-color: #ddd;
    margin: 0 4px;
}