body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

h1 {
    text-align: center;
    color: #222;
    font-size: 2rem;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-top: 20px;
    font-weight: 500;
    color: #444;
}

input,
select,
button {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
}

button:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.termo {
    background: #f9f9f9;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #555;
}

canvas {
    display: block;
    border: 2px solid #ccc;
    margin-top: 15px;
    border-radius: 6px;
    cursor: crosshair;
    touch-action: none; /* Prevent scrolling while drawing */
}

/* Ensure the canvas fits different screen sizes */
.canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

canvas {
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    input,
    select,
    button {
        font-size: 0.9rem;
        padding: 10px;
    }

    .termo {
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 90%;
    }

    h1 {
        font-size: 2rem;
    }
}
