@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400&family=Open+Sans:wght@400;700&display=swap');

:root {
    --primary: #ff8400;
    --primary-light: #ffb700;
    --secondary: #b0b5b9;
    --background: #f5f5f5;
    --counter: #494949;
    --radius: 0.5rem;
}

:root[data-theme='dark'] {
    --background: #222;
    --counter: #fff;
}

*,
*:before,
*:after {
    margin: 0;
    padding: 0;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;

    font-family: 'Fira Code', monospace;
    font-family: 'Open Sans', sans-serif;
}

body,
html {
    background-color: var(--background);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.label {
    color: var(--secondary);
    font-size: 1.2rem;
    line-height: 1;
}

#age {
    color: var(--counter);
    line-height: 1;
    font-weight: 600;
    display: flex;
    padding-bottom: 1rem;
}

#age div {
    font-size: 5rem;
    line-height: 0.8;
}

#age sup {
    font-family: 'Fira Code', monospace;
    font-size: 2.4rem;
    padding-top: 0.3rem;
}

label {
    display: block;
}

input,
button {
    padding: 0.25rem 1.5rem;
    font-size: 1.5rem;
    outline: none;
    display: block;
    cursor: pointer;
    color: #222;
    border: none;
    border-radius: var(--radius);
    background-color: var(--primary);
    transition: background-color 0.2s ease-in-out;
}

input {
    margin-right: 0.5rem;
    box-sizing: border-box;
    border-width: 1px;
    border-style: solid;
    border-radius: var(--radius);
    border-color: #ccc;
    background-color: #fff;
}

button:hover {
    background-color: var(--primary-light);
}

a,
a:visited {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-light);
    text-decoration: none;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

form div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

form h1 {
    padding-bottom: 1rem;
}

footer {
    width: 100%;
    padding: 0.25rem;
}

footer div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem;
    background-color: #353535;
    color: #fff;
    padding: 0.5rem;
    border-radius: var(--radius);
}

.row {
    display: flex;
    gap: 1rem;
}
