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

:root {
    --primario: hsl(222, 79%, 22%);
    --secondario: hsl(222, 79%, 16%);
    --sfondo: hsl(222, 79%, 12%);
    --form: hsl(222, 79%, 6%);
    --testo: hsl(222, 79%, 98%);
}

html {
    color-scheme: dark;
}

body, input, button, select, textarea {
    font-family: "Merienda", cursive;
}

body {
    background-color: var(--sfondo);
    color: var(--testo);
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

img {
    width: 100%;
    display: block;
}

.grow {
    flex-grow: 1;
}

header {
    background-color: var(--primario);
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid var(--secondario);
    z-index: 2;
}

header .container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.5rem 0
}

header img {
    width: 4rem
}

.page {
    min-height: 100vh;
}

.page .container {
    padding: 3rem 1rem;
}

.page .top {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--primario);
    border-radius: 2rem;
    margin: 2rem 0;
}

.space {
    padding: 1rem 0;
}

.page .top img {
    width: 100%;
    max-width: 15rem;
    border-radius: 1rem;
}

.page .top .right {
    flex-grow: 1;
    width: 100%;
}

.page .top span {
    font-size: 80%;
    font-weight: normal;
}

form fieldset {
    margin: 1rem 0;
    border: none;
}

form h2 {
    margin-bottom: 1rem;
}

form label {
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
    width: 100%;
}

input, select {
    display: block;
    width: 100%;
    background-color: var(--form);
    border: 1px solid var(--primario);
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    outline: none;
}

button, .button {
    text-decoration: none;
    display: block;
    background-color: var(--secondario);
    border: 1px solid rgba(255,255,255,0.5);
    font-size: 16px;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    outline: none;
    color: #fff;
}

.submit {
    margin: 4rem auto;
    margin-bottom: 0;
}

code {
    color: #ff6685 !important;
    background-color: #111;
    padding: 0.2rem 0.3rem;
    border-radius: 0.5rem;
    font-weight: 100;
    font-size: 0.875em;
}