@font-face {
    font-family: "Imagine Square ARM";
    src: url("./font.TTF");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Imagine Square ARM";
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    min-width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    text-align: center;
    max-width: 100vw;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

h1 {
    color: white;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.drawing-area {
    margin: 0 auto 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 2vw;
    box-sizing: border-box;
    overflow-x: auto;
    aspect-ratio: 1 / 1;
    width: min(98vw, 80vh);
    height: min(98vw, 80vh);
    max-width: 600px;
    max-height: 600px;
}

#drawingCanvas {
    border: 3px solid #333;
    border-radius: 10px;
    cursor: crosshair;
    background: black;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: block;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.controls {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* Remove margin, spacing handled by button gap */
    /* height: 1em;
    width: 1em; */
    color: inherit;
}

button svg {
    display: block;
    /* height: 1em;
    width: 1em; */
    vertical-align: middle;
}

button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

#clearBtn {
    background: #ff6b6b;
    color: white;
}

#clearBtn:hover {
    background: #ff5252;
    transform: translateY(-2px);
}

#saveBtn {
    background: #4ecdc4;
    color: white;
}

#saveBtn:hover {
    background: #21b5b3;
    transform: translateY(-2px);
}

#uploadBtn {
    background: white;
    color: rgb(33, 33, 33);
}

#uploadBtn:hover {
    background: rgb(245, 245, 245);
    transform: translateY(-2px);
}

.info {
    color: white;
    font-size: 14px;
    line-height: 1.5;
}

.info p {
    margin: 0;
}

@media (max-width: 600px) {
    .drawing-area {
        padding: 2vw;
        margin: 0 auto 20px auto;
        width: min(98vw, 80vh);
        height: min(98vw, 80vh);
        min-width: 0;
        min-height: 0;
        max-width: none;
        max-height: none;
        box-sizing: border-box;
    }
    #drawingCanvas {
        width: 100%;
        height: 100%;
        margin: 0 auto;
        max-width: none;
        max-height: none;
    }
    .container {
        max-width: 100vw;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0;
        max-width: 100vw;
        width: 100%;
    }
    h1 {
        font-size: 18px;
    }
    .drawing-area {
        padding: 2vw;
        margin: 0 auto 20px auto;
        width: min(98vw, 80vh);
        height: min(98vw, 80vh);
        min-width: 0;
        min-height: 0;
        max-width: none;
        max-height: none;
        box-sizing: border-box;
    }
    #drawingCanvas {
        width: 100%;
        height: 100%;
        margin: 0 auto;
        max-width: none;
        max-height: none;
    }
    .controls {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    button {
        width: 100%;
        max-width: 200px;
        font-size: 15px;
        padding: 10px 0;
    }
    .info {
        font-size: 12px;
    }
} 