* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header {
    margin-bottom: 30px;
}

header h1 {
    color: #6b9bd1;
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 300;
}

header p {
    color: #333;
    font-size: 1.1em;
    line-height: 1.6;
}

.canvas-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#triangleSvg {
    width: 100%;
    max-width: 800px;
    height: auto;
}

#triangle {
    fill: #8ba9c9;
    stroke: #2c4a6b;
    stroke-width: 3;
}

.red-circle {
    fill: #ff4444;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.draggable {
    cursor: grab;
    user-select: none;
}

.draggable:hover {
    fill: #2c4a6b;
}

.draggable.dragging {
    cursor: grabbing;
    fill: #1a2e45;
}

.label {
    font-size: 48px;
    font-weight: bold;
    fill: #4a4a4a;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

#diosLabel {
    font-size: 80px;
    fill: #2c4a6b;
    text-shadow: 3px 3px 6px rgba(255, 255, 255, 0.9);
}

#redLine {
    filter: drop-shadow(0 2px 4px rgba(255, 0, 0, 0.5));
}

.distance-label {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #ff4444;
    text-align: center;
    padding: 15px 30px;
    background-color: #f8f8f8;
    border-radius: 8px;
    border: 2px solid #ff4444;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.2);
}

#distanceValue {
    color: #ff0000;
    font-size: 1.2em;
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    header h1 {
        font-size: 1.5em;
    }

    header p {
        font-size: 1em;
    }

    .label {
        font-size: 36px;
    }

    #diosLabel {
        font-size: 56px;
    }
}
