@charset "UTF-8";

/* Inter font import */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Roboto Mono font import */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

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

:root {
    --red: #ff4343;
    --orange: #ff7f43;
    --yellow: #ffd343;
    --green: #5ad44f;
    --blue: #437fff;
    --violet: #8661eb;
    --gray: #b3b3b3;
    --black: #000000;
    --white: #FFFFFF;
}

body {
    font-family: Inter, Arial, sans-serif;
}

#conteudoPrincipal {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    margin: 10vh auto 0 auto;
}

#conteudoPrincipal h1 {
    font-size: 3rem;
    font-weight: 300;
    text-align: center;
}

#conteudoPrincipal h1 span {
    font-weight: 700;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--violet));
    -webkit-background-clip: text;
    color: transparent;
}

#comoFunciona {
    font-family: Inter, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 300;
    background-color: #7a50f0;
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    padding: 15px 25px;
    margin-top: 40px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#comoFunciona:hover {
    background-color: #5e3fb4;
}

#inputDiv {
    display: flex;
    gap: 20px;
    margin-top: 60px;
}

#inputTraducao {
    width: 400px;
    font-family: Inter, Arial, sans-serif;
    font-size: 1rem;
    color: #2e2e2e;
    border: 1px solid #afafaf;
    border-radius: 30px;
    padding: 15px 25px;
}

#inputTraducao:focus {
    border: 1px solid #7A50F0;
    outline: transparent;
}

#botaoTraduzir {
    position: relative;
    font-family: Inter, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    background-color: #7a50f0;
    color: #FFFFFF;
    border: none;
    border-radius: 30px;
    padding: 15px 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#botaoTraduzir::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--violet));
    opacity: 0;
    border-radius: 30px;
    z-index: -1;
    transition: opacity 0.2s ease;
}

#botaoTraduzir:hover::before {
    opacity: 1;
  }
  
#botaoTraduzir:hover {
    background-color: transparent;
}

#velocidadeDiv {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

#velocidadeDiv input {
    appearance: none;
}

#velocidadeDiv label {
    font-size: 0.9rem;
    color: #666666;
    border: 1px solid #afafaf;
    border-radius: 20px;
    padding: 10px 15px;
    cursor: pointer;
}

#velocidadeDiv label:has(input:checked) {
    background-color: #e3d8ff;
    color: #7A50F0;
    border: 1px solid #7A50F0;
}

#canvaOutput {
    background-color: #222222;
    width: 700px;
    height: 300px;
    border-radius: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

#dialogLegenda {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    min-width: 700px;
    max-width: 800px;
    height: 70%;
    border: none;
    border-radius: 10px;
    padding: 20px 40px;
}

#dialogLegenda::backdrop {
    background-color: #0000004f;
    backdrop-filter: blur(10px);
}

#dialogLegenda header {
    position: fixed;
    width: calc(100% - 80px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#fecharDialog {
    font-size: 1.5rem;
    font-weight: 300;
    color: #0000005e;
    padding: 3px;
    cursor: pointer;
}

#fecharDialog:hover {
    background-color: #e4e4e4;
    color: #000000;
    border-radius: 5px;
}

#dialogLegenda main {
    margin-top: 70px;
}

dialog h2 {
    margin: 30px 0 30px 0;
}

#coresContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    column-gap: 20px;
    row-gap: 20px;
}

.descCorContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.identCor {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: #afafaf;
    width: 100px;
    height: 100px;
    border-radius: 10px;
    cursor: pointer;
}

.identCor::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0000005d;
    border-radius: 10px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.identCor:hover::after {
    opacity: 1;
}

.identCor:hover .iconeSom {
    opacity: 1;
}

.iconeSom {
    font-variation-settings: 'FILL' 1;
    font-size: 2.5rem !important;
    color: #FFFFFF;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
}

.identVermelho {
    background-color: var(--red);
}

.identLaranja {
    background-color: var(--orange);
}

.identAmarelo {
    background-color: var(--yellow);
}

.identVerde {
    background-color: var(--green);
}

.identAzul {
    background-color: var(--blue);
}

.identVioleta {
    background-color: var(--violet);
}

.identCinza {
    background-color: var(--gray);
}

.identPreto {
    background-color: var(--black);
}

.identBranco {
    background-color: var(--white);
    box-shadow: 0 0 8px #00000083;
}

dialog h3 {
    margin-bottom: 10px;
}

dialog ul {
    font-family: 'Roboto Mono', monospace;
    margin: 0 0 20px 20px;
}

dialog ul:is(:not(:last-of-type)) {
    column-count: 2;
}

dialog li {
    width: fit-content;
    padding: 3px 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    cursor: pointer;
}

dialog li:hover {
    background-color: #d1d1d1;
}

dialog li .liContainer {
    display: flex;
    align-items: center;
    gap: 5px;
}

dialog .corContainer {
    display: flex;
    gap: 5px;
    margin-left: 5px;
}

dialog .cor {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}