/* ---------- ROOT ---------- */

:root {
    --color-bg: #f0e0ac;
    --color-black: #0f0e0e;
    --color-white: #f9f4ee;
    --color-red-light: #e63946;
    --color-red-dark: #c12f3a;
    --color-green: #4caf50;
}

/* ---------- /ROOT ---------- */

/* ---------- GLOBAL ---------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--color-black);
    font-size: 18px;
    font-family: "Lato", sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: "Cinzel", serif;
}
h1 {
    font-size: 3.5rem;
}
h2 {
    font-size: 2rem;
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.5rem;
}

html {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--color-black);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}
/* body::-webkit-scrollbar {
    width: 5px;
}
body::-webkit-scrollbar-track {
    background: #fff;
}
body::-webkit-scrollbar-thumb {
    background-color: #000;
}
*/

/* ---------- /GLOBAL ---------- */

/* ---------- APP ---------- */

#newspaper {
    overflow-x: hidden;
    position: relative;
    max-width: 1440px;
    width: 100%;
    background-color: var(--color-bg);
    padding: 5px;
}

.overlay {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("/img/overlay.png") center center no-repeat;
    background-size: cover;
    opacity: 0.3;
    pointer-events: none;
}

/* ---------- /APP ---------- */

/* ---------- ELEMENTS ---------- */

section {
    margin: 10px 0;
    width: 100%;
}
img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
button,
a {
    cursor: pointer;
    text-decoration: none;
    color: #0f0e0e;
    border: none;
    background: none;
    outline: none;
}

.button {
    color: var(--color-black);
    margin: 10px;
    padding: 10px 20px;
    transition: 100ms;
    height: 50px;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-black);
}
.button:hover {
    color: var(--color-red-dark);
    border-color: var(--color-red-dark);
}
.button:active,
.button:focus {
    transform: scale(0.95);
}
.logo {
    width: 250px;
    height: 250px;
}
.line {
    width: 100%;
    background-color: var(--color-black);
}
.line--small {
    height: 1px;
}
.line--medium {
    height: 2px;
}
.line--big {
    height: 3px;
}

span.red {
    color: var(--color-red-light);
    font-weight: bold;
}

form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

form .input-container {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 10px 0;
}

form .checkbox-container {
    display: flex;
    align-items: center;
}

form .input-container--checkbox {
    flex-direction: row;
    align-items: center;
    width: auto;
    border: 2px solid var(--color-black);
    padding: 5px 10px;
    margin: 10px;
}

form .input-container label {
    margin-bottom: 5px;
    font-weight: bold;
    cursor: pointer;
}

form .checkbox-container label {
    margin-right: 20px;
}
form .input-container input {
    padding: 10px;
    border: 2px solid var(--color-black);
    outline: none;
    font-size: 1rem;
}
form .input-container select {
    padding: 10px;
    border: 2px solid var(--color-black);
    outline: none;
    font-size: 1rem;
    background-color: var(--color-white);
}

form .input-container input[type="checkbox"] {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

form .input-container input:hover,
form .input-container select:hover {
    border-color: var(--color-red-light);
}

form .input-container input:focus {
    border-color: var(--color-red-dark);
}
/* ---------- /ELEMENTS ---------- */

/* ---------- HEADER ---------- */

.header {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;
}
.header__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
}
.header__title__text {
    width: 100%;
    text-align: left;
}
.header__title__img {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    top: -10px;
    right: -15px;
}
.header__lines {
    width: 100%;
}
.header__lines .line {
    margin: 10px 0;
}
.header__nav {
    display: flex;
    justify-content: space-evenly;
}
.header__nav .button {
    width: 40vw;
    max-width: 200px;
}

/* ---------- /HEADER ---------- */

/* ---------- MAIN ---------- */

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ---------- /MAIN ---------- */

/* ---------- FOOTER ---------- */

.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.footer__logo {
    width: 120px;
    height: 120px;
}

/* ---------- /FOOTER ---------- */

/* ---------- INDEX ---------- */

.search-result {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
}

.client-button {
    text-align: left;
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 2px solid var(--color-black);
}

/* ---------- /INDEX ---------- */

/* ---------- /PIZZAS ---------- */
.pizza-list {
    padding: 20px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

/* ---------- /PIZZAS ---------- */

/* ---------- CALCULATRICE ---------- */

.pizzas__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.pizzas__container div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.pizzas__container__item {
    margin: 10px;
    padding: 15px;
    text-align: center;
    width: 150px;
    height: 80px;
}
/* ---------- /CALCULATRICE ---------- */

/* ---------- MEDIA ---------- */

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