@font-face {
    font-family: "JetBrains Mono";
    src: url("fonts/JetBrainsMono-ExtraBold.woff2");
    font-weight: bolder;
    font-style: normal;
}
@font-face {
    font-family: "JetBrains Mono";
    src: url("fonts/JetBrainsMono-Regular.woff2");
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "Roboto Condensed";
    src: url("fonts/Roboto-Condensed-Regular.woff");
    font-weight: normal;
    font-style: normal;
}

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

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    font-family: "Roboto Condensed", sans-serif;
    background-color: #121212;
    color: #fff;
}

h1 {
    width: min-content;
    text-align: center;

    font-family: "JetBrains Mono", monospace;
    font-weight: bolder;
    
    line-height:  0.9;

    #title-pixl {
        margin-top: 3rem;
        font-size: max(5rem, 7vw);
    }
    #title-calc {
        font-size: max(2.5rem, 5vw);
    }
}

form {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10rem;
}

.input-square {
    width: max(7rem, 15%);
    aspect-ratio: 1 / 1;
    border-radius: 50px;
    background-color: #fff;
    color: #000;
    overflow: hidden;
    position: relative;
    container-type: inline-size;

    h3 {
        width: 100%;
        position: absolute;
        top: 5px;
        
        text-align: center;
        color: #aaa;
        font-size: 15cqw;
        
        user-select: none;
        z-index: 2;
    }

    input {
        width: 100%;
        height: 80%;
        position: absolute;
        bottom: 0px;
        
        border: none;
        background: none;
        font-size: 100%;
        
        font-size: 50cqw;
        font-family: "JetBrains Mono", monospace;
        font-weight: bolder;
        text-align: center;
    }

    input[type=number]::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }
}

#output {
    width: 70vw;
    height: max(10rem, 15vw);
    background-color: #fff;
    border-radius: 50px;

    color: #000;
    font-size: 3em;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    #out-px {
        font-family: "JetBrains Mono", monospace;
        font-weight: bolder;
        font-size: 1.75em;
    }
    #out-dollar {
        font-family: "Roboto Condensed", sans-serif;
        font-weight: normal;
        font-size: 1em;
        color: #595959;
    }
}

#disclaimer {
    width: 75%;
    text-align: center;
    color: #aaa;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .input-square {
        width: max(10rem, 20%);
    }
}

@media (max-width: 585px) {
    body {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    form {
        flex-direction: column;
        justify-content: space-around;
        gap: 1rem;
    }

    #output {
        font-size: 1.75em;
    }

    .input-square {
        width: max(10rem, 20%);
    }
}