@font-face {
    font-family: "Blockt";
    src:url("../assets/Blockt.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    font-family: "Blockt", sans-serif;
    color: #72F2DB;
    margin-bottom: 30px;
    text-align: center;
    font-size: 50px;
}

.principal {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(20px, 5vw, 40px);
    width: 100%;
    max-width: 1200px;
    flex-wrap: nowrap;
}

canvas {
    border: 2px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1/1;
}

.controles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: clamp(8px, 2vw, 12px);
    width: 100%;               
    max-width: 340px;      
    flex-shrink: 1;
    background: #1A1A1A;
    border: 2px solid #333;
    padding: 15px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

#bntVertices { grid-column: 1; grid-row: 1; } 
#bntCim      { grid-column: 3; grid-row: 1; }
#bntEsq      { grid-column: 1; grid-row: 2; }
#bntPara     { grid-column: 2; grid-row: 2; }
#bntDir      { grid-column: 3; grid-row: 2; }
#bntBai      { grid-column: 1; grid-row: 3; }

button {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    font-size: clamp(20px, 5vw, 32px);
    background: #72F2DB;
    border: none;
    border-radius: 12px;
    color: #1A1A1A;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

button:hover {
    background: #255946;
    transform: scale(1.05);
} 

button:active {
    transform: scale(0.95);
}

@media (max-width: 600px) {
    .principal {
        gap: 15px;
    }
    canvas {
        max-width: 250px;
    }
    .controles {
        max-width: 200px;
    }
}