@font-face {
    font-family: 'Inter';
    src: url('../fonts/inter/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

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

body {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    background-color: #121212;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
}

header {
    padding: 20px 10px;
    background-color: #F59E0B;
    color: #000;
    border-radius: 0px 0px 20px 20px;
    text-align: center;
}

.title {
    font-size: 38px;
    margin-bottom: 20px;
}

.spiegazione {
    margin-top: 12px;
}

.spiegazione a {
    color: #222;
    text-decoration: none;
}

.spiegazione a:hover {
    text-decoration: underline;
}

.header {
    display: flex;
    justify-content: space-between;
}

.logo,
.header3 {
    width: 160px;
}

.header2 {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

main {
    padding: 10px 0px;
    text-align: center;
    flex: 1;
    position: relative;
}

.div-input {
    margin-top: 30px;
    display: flex;
    justify-content: space-evenly;
}

.div-input p {
    font-size: 14pt;
    color: #fff;
    margin: 10px;
}

input {
    width: 100px;
    text-align: center;
    font-size: 14pt;
    padding: 5px;
    border: 2px solid #F59E0B;
    border-radius: 20px;
    margin-bottom: 10px;
}

/* Per rendere sempre visibili le frecce dell'input numerico */
input::-webkit-inner-spin-button,
input::-webkit-outer-spin-button {
    opacity: 1;
}

#calcola {
    margin-top: 20px;
    font-size: 14pt;
    padding: 5px 10px;
    border: 2px solid;
    border-radius: 20px;
    transition: .3s;
}

#calcola:hover {
    cursor: pointer;
    background-color: #acacac;
}

#risposta,
#situazione-peso {
    margin-top: 20px;
    font-size: 14pt;
    color: #fff;
}

footer {
    background-color: #F59E0B;
    padding: 10px;
    border-radius: 20px 20px 0px 0px;
    text-align: center;
}

footer p {
    color: #000;
    margin: 16px 0px;
}

.a_footer {
    color: #000;
    text-decoration: none;
}

.a_footer:hover {
    text-decoration: underline;
}

.github {
    justify-content: center;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
    }

    .logo {
        width: 120px;
    }

    .header3 {
        display: none;
    }

    .title {
        font-size: 20pt;
    }

    .subtitle {
        font-size: 14pt;
    }

    .spiegazione,
    .div-input p,
    input,
    #calcola,
    #risposta,
    #situazione-peso {
        font-size: 13pt;
    }
}