/* Importando fontes */
@import url('./assets/fonts/Poppins-Regular.ttf');
@import url('./assets/fonts/Poppins-Bold.ttf');
@import url('./assets/fonts/Poppins-BoldItalic.ttf');
@import url('./assets/fonts/Poppins-ExtraBold.ttf');
@import url('./assets/fonts/Poppins-ExtraBoldItalic.ttf');
@import url('./assets/fonts/Poppins-Italic.ttf');

/* Resetando o css da página */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

/* Criando as variáveis */
:root {
    /* Cor primária */
    --purple: hsl(259, 100%, 65%);
    --light-red: hsl(0, 100%, 67%);

    /* Cor secundária */
    --white: hsl(0, 0%, 100%);
    --off-white: hsl(0, 0%, 94%);
    --light-grey: hsl(0, 0%, 86%);
    --smokey-grey: hsl(0, 1%, 44%);
    --off-black: hsl(0, 0%, 8%);

    /* fonte */
    --font: 'Poppins', sans-serif;
}

/* Predefinições */
input {
    font-size: 32px;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

/* main */
body {
    width: 100vw;
    height: 100vh;
    background: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
}

h1 {
    display: none;
}

main {
    width: 850px;
    background: var(--white);
    padding: 3rem;
    border-radius: 25px 25px 150px 25px;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, .05);
}

.inputs {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 1.8rem;
}

.input h2 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--smokey-grey);
    font-weight: bold;
    margin-bottom: .5rem;
}

input {
    width: 150px;
    height: 70px;
    border-radius: 10px;
    border: 1px solid var(--light-grey);
    padding: .5rem 1rem;
    cursor: pointer;
    font-weight: 900;
}

input::placeholder {
    font-weight: bolder;
}

input:hover {
    border: 1px solid var(--purple);
}

.fronteira {
    width: 100%;
    display: flex;
    align-items: center;
}

.linha {
    width: 85%;
    border: 1px solid var(--light-grey);
}

.button {
    border: none;
    background: var(--purple);
    padding: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
}

.button:hover {
    background: var(--off-black);
}

.result {
    display: flex;
    align-items: center;
}

.num {
    color: var(--purple);
    font-size: 168px;
    letter-spacing: 15px;
    line-height: 120px;
    font-weight: 700;
}

/* Classe para quando o número estiver calculado */
.num-calculado {
    color: var(--purple);
    font-size: 116px;
    letter-spacing: 0px;
    line-height: 120px;
    font-weight: 900;
}

.legenda {
    color: var(--off-black);
    font-size: 116px;
    font-weight: 900;
    line-height: 120px;
}

/* Foorter padrão frontend mentor */
.attribution {
    font-size: 11px;
    text-align: center;
    position: absolute;
    bottom: 5px;
    width: 100%;
    margin: 0 auto;
}

.attribution a {
    color: black;
    text-decoration: underline;
}

@media screen and (max-width: 850px) {
    main {
        width: 95%;
    }

    .inputs {
        gap: 3vw;
    }

    input {
        width: 17vw;
        height: 9vw;
        font-size: 3vw;
    }

    .button {
        padding: 3vw;
    }
}

@media screen and (max-width: 768px) {
    .legenda, .num {
        font-size: 96px;
        line-height: 100px;
    }
}

@media screen and (max-width: 610px) {
    .legenda, .num {
        font-size: 56px;
        line-height: 60px;
    }
}

@media screen and (max-width: 425px) {
    .legenda, .num {
        font-size: 32px;
        line-height: 40px;
    }

    .input h2 {
        font-size: 2vw;
    }

    input {
        padding: .2rem .5rem;
    }
}