@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
    --header-bg: #222831;
    --header-text: #EEEEEE;
    --body-bg: #393E46;
    --body-text: #EEEEEE;
    --button-bg: #00ADB5;
    --button-color: #222831;
}

* {
    box-sizing: border-box;
    margin: 0; 
    padding: 0;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background: #393E46;
    display: flex;
    flex-direction: column;
}

header {
    text-align: center;
    background: #222831;
    color: var(--header-text);
    padding: 2rem;
    border-radius: 0 0 5px 5px;
    margin: 0 5rem 0 5rem;
    user-select: none; 
}

header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 50px;
}

header p {
    padding-top: 0.5rem;
}

.container-input {
    color: var(--body-text);
    display: grid;
    place-items: center;
    padding: 1rem;
}

.inputBox {
    padding: 0.7rem 5rem;
    border: 1px solid var(--header-bg);
    outline: none;
    border-radius: 5px;
    background: var(--header-bg);
    color: var(--header-text);
    text-align: center;
}

section h4 {
    margin: 1rem;
    font-size: 23px;
    user-select: none;
}

button {
    padding: 0.4rem 0.7rem;
    display: block;
    margin: auto;
    background: var(--button-bg);
    color: var(--button-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #A6E3E9;
    color: #000;
}

.container-output {
    color: var(--body-text);
    background: var(--header-bg);
    text-align: center;
    padding: 1rem;
    margin: 1rem 5rem;
    border-radius: 5px;
    user-select: none;
}

section h3 {
    font-size: 25px;
}

section table {
    margin: 1rem auto;
    background: var(--body-bg);
    padding: 1rem;
    border-radius: 5px;
}

table tr th {
    background: var(--button-color);
    padding: 0.5rem;
    border-radius: 5px;
}

table tr td {
    padding: 0.6rem;
    background: var(--button-color);
    border-radius: 5px;
}

.errorOutput {
    text-align: center;
    margin-top: 1rem;
    font-size: 25px;
    font-weight: 500;
    color: whitesmoke;  
}

/*
responsive
*/

@media only screen and (max-width: 900px) {
    header {
        margin: 0;
        padding: 1rem;
    }
    
    header h1 {
        font-size: 45px;
    }

    header p {
        font-size: 14px;
    }

    .container-input {
        padding: 0 0 1rem 0;
    }

    .container-output {
        margin: 0.5rem;
    }

    section h3 {
        font-size: 20px;
    }

    section table {
        padding: 0;
    }

    table tr th {
        padding: 0.4rem;
    }

    table tr td {
        padding: 0.5rem;
    }

    .errorOutput {
        font-size: 23px;
    }
}