@font-face {
            font-family: 'Tormenta20', sans-serif;
            src: url('/font/Tormenta20-Regular.woff') format('woff'),
                 url('/font/Tormenta20-Regular.woff2') format('woff2');
        }

        @font-face {
            font-family: 'Iowan Old Style', sans-serif;
            src: url('/font/IowanOldStyle-Bold.woff') format('woff'),
                 url('/font/IowanOldStyle-Bold.woff2') format('woff2');
        }

        body {
            margin: 0;
            padding: 0;
            background-color: #1E1B18;
            font-family: 'Iowan Old Style', sans-serif;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            flex-direction: column;
            color: #E0D6C3;
        }

        .container-fluid {
            width: 800px;
            max-width: 95%;
            padding: 20px;
            margin: auto;
            margin-top: 50px;
            background-color: #1E1B18;
            box-shadow: 0 0 10px #FFD447;
            box-sizing: border-box;
            border-radius: 10px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 50px;
        }

        main {
            display: flex;
            flex-direction: column;
            gap: 15px;
            width: 100%;
        }

        h2 {
            margin: 0;
            font-size: 42pt;
            color: #FFD447;
            font-family: 'Tormenta20';
            text-align: center;
        }

        h3 {
            margin: 0;
            font-size: 30pt;
            color: #FFD447;
            font-family: 'Tormenta20';
            text-align: center;
        }

        .botoes {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            padding: auto;
            gap: 10px;
        }

        
         

        .botoes button {
            padding: 10px 16px;
            font-size: 16px;
            cursor: pointer;
            border: 2px solid #444;
            background-color:#3c2944;
            border-radius: 6px;
            transition: background-color 0.2s, color 0.2s;
            color: #FFD447;
            font-weight: bold;
        }

        button {
            padding: 10px 16px;
            font-size: 16px;
            cursor: pointer;
            border: 2px solid #444;
            background-color:#3c2944;
            border-radius: 6px;
            transition: background-color 0.2s, color 0.2s;
            color: #FFD447;
            font-weight: bold;
        }

        button:hover {
            background-color: #b278d4;
        }

        .botoes button.ativo {
            background-color: #1E1B18;
            color: #FFD447;
            border-color: #E0D6C3;
        }

        textarea {
            width: 100%;
            min-height: 120px;
            font-size: 16px;
            padding: 10px;
            box-sizing: border-box;
            resize: none;
            border-radius: 6px;
            border: 1px solid #aaa;
            overflow: hidden;
            background-color: #444;
            color: #E0D6C3;
        }

        .controls {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .controls button {
            padding: 10px 20px;
            font-size: 16px;
            border-radius: 6px;
            cursor: pointer;
            border: none;
            background-color: #444;
            color:#FFD447;
            transition: background-color 0.2s;
            font-weight: bold;
        }

        .controls button:hover {
            background-color: #666;
        }

        .footer {
            padding: 0;
            margin: 0;
            height: 50px;
            width: 100%;
            display: flex;
            align-items:flex-end;
        }

        footer {
            border-top: #FFD447 solid 3px ;
            width: 100%;
            height: 50px;
            text-align: end;
            padding-right: 20px;
            color: #E0D6C3;
            box-sizing: border-box;
            box-shadow: 0 0 10px #FFD447;
        }

        input {
      width: 100px;
      padding: 8px;
      text-align: center;
      font-size: 1.2em;
    }
    .label {
      font-weight: bold;
      margin-bottom: 10px;
    }

    .build {
        width: 800px;
            max-width: 95%;
            padding: 20px;
            margin: auto;
            margin-top: 50px;
            background-color: #1E1B18;
            box-shadow: 0 0 10px #FFD447;
            box-sizing: border-box;
            border-radius: 10px;
            display: flex;
            justify-content: space-between;
            margin-bottom: 50px;
        }

        .builda {
            width: 40%;
            text-align: justify;
        }

        .builda h3 {
            font-size: 20pt;
            border-bottom: solid 3px #FFD447;
        }

        .buildb {
            width: 40%;
            display: flex;
            flex-direction: column;
            gap: 2px;
            justify-content: center;
        }

        .box {
            width: 60%;
            border: solid 1px #FFD447;
            display: flex;
            justify-content: center;
            flex-direction: column;
            text-align: center;
            padding: 2px;
            aspect-ratio: 1 / 1;
        }

        input::-webkit-outer-spin-button,
        input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        } 
        
        input[type="number"] {
            -moz-appearance: textfield;
        }
        
        input {
            font-family: 'Tormenta20',sans-serif;
            font-size: 30pt;
            margin: auto;
            border: #FFD447 solid 1px; 
        }

.boxr {
    aspect-ratio: 1 / 1;
    background-color: #1E1B18;
    color: #FFD447;
    width: 91%;
    margin: auto;
    align-content: center;
    font-family: 'Iowan Old Style', sans-serif;
    font-weight: bold;
    font-size: clamp(16px, 2vw, 30px);
    overflow-wrap: break-word; /* quebra palavras longas */
  word-break: break-word;
}

.botaomobile {
    display: none;
}
        /* Responsividade para dispositivos móveis */
        @media (max-width: 768px) {
            .container-fluid {
                width: 100%;
                padding: 15px;
                margin: 20px auto;
                border-radius: 0;
                box-shadow: none;
            }

            h2 {
                font-size: 28pt;
            }

            h3 {
                font-size: 16pt;
            }

            .botoes {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
                margin: auto;
            }

            .botoes button {
                padding: 10px 16px;
            font-size: 16px;
            cursor: pointer;
            border: 2px solid #444;
            background-color:#3c2944;
            border-radius: 6px;
            transition: background-color 0.2s, color 0.2s;
            color: #FFD447;
            font-weight: bold;
            }

            .controls {
                flex-direction: column;
                gap: 10px;
            }

            .controls button {
                width: 100%;
                font-size: 14px;
            }

            textarea {
                font-size: 14px;
                padding: 10px;
            }

            footer {
                font-size: 12px;
                text-align: center;
                padding: 10px 15px;
            }
        }


@media (max-width: 768px){
    .build {
        display: flex;
        flex-direction: column-reverse;
    }
    .builda {
        width: 100%;

    }

    .buildb {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .boxr {
        width: 50%;

    }

    .pmecd {
        display: flex;
        margin-bottom: 5px;
    }

    .custoepreco {
        display: flex;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    input {
    font-family: 'Tormenta20',sans-serif;
    font-size: 30pt;
    margin: auto;
    border: #FFD447 solid 1px; 
    }


    .botaomobile {
        display: inline;
    }
    footer {
            border-top: #FFD447 solid 1px ;
            width: 100%;
            height: 50px;
            text-align: end;
            padding-right: 20px;
            color: #E0D6C3;
            box-sizing: border-box;
            box-shadow: 1px 0px 0px 0px #FFD447;
    }
}

        