@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Pacifico&display=swap');
@import url('fonts/icons/icons.css');

:root {
    --blue: #526985;
    --white: #ffffff;
    --black: #363636;
    --gray: #D9D9D9;
    --green: #29835D;
    --yellow: #F9D22E;
    --rosso:#A63B35;
    --form-control-color: #526985;
    --form-control-disabled: #959495;
}

h1, h2 {
    margin: 0
}

h1 {
    color: var(--blue);
    font-size: 36px;
    font-family: "Pacifico", sans-serif;
    font-weight: normal;
    text-align: center;
}

h2 {
    color: var(--black);
    font-size: 24px;
    font-weight: normal;
    text-align: center;
}

html {
    font-size: 1.5em;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    max-width: 992px;
    min-width: 375px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 0;
    background: #D9D9D9;
}

.relative {
    position: relative;
}

[class^="icon-"], [class*=" icon-"] {
    color: var(--white);
}

input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: var(--white);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1em;
    height: 1em;
    border: 0.1em solid var(--blue);
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
}

input[type="checkbox"]:checked {
    background-color: var(--blue);
}

input[type="checkbox"]::before {
    content: "";
    width: 0.65em;
    height: 0.65em;
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em var(--form-control-color);
    background-color: var(--blue);
}

input[type="checkbox"]:checked::before {
    box-shadow: inset 1em 1em #fff;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(1);
}

input[type="checkbox"]:focus {
    outline: none;
}

input[type="checkbox"]:disabled {
    --form-control-color: var(--form-control-disabled);

    color: var(--form-control-disabled);
    cursor: not-allowed;
}


header {
    width: 100%;
    position: relative;
    transition-timing-function: ease-out;
    transition-duration: .15s;
    background: var(--blue);
    -webkit-box-shadow: 0 9px 13px 2px rgba(0, 0, 0, 0.30);
    -moz-box-shadow: 0 9px 13px 2px rgba(0, 0, 0, 0.30);
    box-shadow: 0 9px 13px 2px rgba(0, 0, 0, 0.30);
}

header .icon-user {
    font-size: 25pt;
    padding-right: 10px;
}

header a {
    text-decoration: none;
    color: var(--white);
}

/* NAV */
nav {
    width: 100%;
    line-height: 65px;
    display: inline-grid;
    grid-template-columns: 0.2fr 1fr 0.2fr;
    gap: 1em;
    justify-items: center;
    transition-timing-function: ease-out;
    transition-duration: .15s;
    -webkit-transition-timing-function: ease-out;
    justify-content: center;
    align-items: center;
}

nav ul {
    display: flex;
    margin-left: 90px
}

nav ul li {
    padding-right: 30px;
    font-weight: 700
}

.logo-nav {
    z-index: 1;
    font-family: "Pacifico", cursive;
    font-size: 20pt;
    color: var(--white);
}

.burger {
    z-index: 1;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer
}

.burger span {
    display: block;
    width: 23px;
    height: 3px;
    margin-bottom: 5px;
    position: relative;
    background: var(--white);
    border-radius: 3px;
    z-index: 1
}

/* Content */

.content {
    margin: 30px 30px 10px 30px;
    text-align: center;
    flex-grow: 0.45;
}

.content.orders {
    margin: 30px 25px 10px 25px;
}

.content > * {
    margin-bottom: 20px;
    text-align: center;
}

.title {
    font-weight: 400;
    font-size: 1.1em;
    width: 70%;
    margin: 0 auto;
}

form {
    display: grid;
}

.form-group {
    position: relative;
}

.label-placeholder [class^="icon-"], .label-placeholder [class*=" icon-"] {
    color: var(--black);
}

.form-group .label-placeholder {
    font-size: 1.8em;
    height: 20px;
    position: absolute;
    top: calc(50% - 5px);
    left: 15px;
    transform: translateY(-50%);
    cursor: text;
}

.button {
    flex-grow: 0.2;
    position: relative;
}

button.trasparent, .button .trasparent {
    border: solid 1px var(--blue);
    background: transparent;
    color: var(--blue);
    margin-bottom: 15px;
}
.plate button {
    margin-top: 20px;
    padding: 15px;
    width: 100%;
}
.button a, button {
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    display: grid;
    padding: 10px;
    width: 90%;
    text-align: center;
    margin: 0 auto;
    border-radius: 10px;
    border: 0;
    font-size: 0.8em;
    font-weight: 300;
}

.button .icon-cevron {
    position: absolute;
    top: 19px;
    right: 10%;
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
    font-size: 0.8em;
}

input[type="text"] {
    border-radius: 10px;
    border: 0;
    outline: none;
    width: 100%;
    margin: 20px 0;
    padding: 15px 20px 15px 65px;
}

/* join */
.join input {
    background: var(--white);
}

.nav {
    margin: 0;
    padding: 0;
    font-size: 0.6em;
}

.nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 10px;
    background: var(--white);
    -webkit-box-shadow: 5px 8px 15px 3px rgba(0, 0, 0, 0.35);
    -moz-box-shadow: 5px 8px 15px 3px rgba(0, 0, 0, 0.35);
    box-shadow: 5px 8px 15px 3px rgba(0, 0, 0, 0.35);
    margin: 0;
    padding: 0;
}

.nav ul:last-child.active {
    margin-right: -5px;
}

.nav li {
    padding: 15px;
    z-index: 2;
    cursor: pointer;
}

.nav ul label:first-child {
    margin-left: -4px;
}

.nav ul label:last-child {
    margin-right: -4px;
}

.nav ul li.active {
    background: var(--blue);
    color: var(--white);
    border-radius: 15px;
    font-weight: 600;
    z-index: 3;
}

#order:checked ~ .nav ul label:first-child,
#orders:checked ~ .nav ul label:last-child {
    background: var(--blue);
    color: var(--white);
    border-radius: 15px;
    transition: background-color 0.6s ease, color 0.6s ease;
    font-weight: 600;
    z-index: 3;
}

#order:checked ~ section .myorders > label,
#orders:checked ~ section .group-orders > label {
    background: var(--blue);
    color: var(--white);
    transition: background-color 0.6s ease, color 0.6s ease;
    line-height: 30px;
}

.orders section > div, .orders > input {
    display: none;
}

.group-orders .order-count {
    display: grid;
    grid-template-columns: 0fr 1fr;
}

#order:checked ~ section .myorders, #orders:checked ~ section .group-orders {
    display: block;
}

#current ~ .current, #precedents ~ .precedents {
    display: none;
}

#current:checked ~ .current, #precedents:checked ~ .precedents {
    display: block;
    margin-top: 20px;
}

#current:checked ~ .head ul label:first-child,
#precedents:checked ~ .head ul label:last-child {
    background: var(--blue);
    color: var(--white);
    border-radius: 15px;
    font-weight: 600;
}
.precedents .items .title,
.precedents.groups .title.up {
    border-radius:10px;
}
.precedents.groups .title.up ~ .items {
    display: block;
}
.precedents.groups .title.up ~ .items-group {
    display: none;
}
.precedents .group-details.open{
    padding: 0;
}
.precedents .title.up{
    border-radius:10px 10px 0 0;
}
.precedents.groups {
    border-radius:10px;
}

.orders section > div,
.orders > input {
    display: none;
}

.head {
    display: grid;
    grid-template-columns: 1fr 0fr;
    align-items: center;
    height: 40px;
    grid-gap: 5px;
    list-style: none;
    font-size: 0.6em;
    text-align: left;
    margin: 0;
    padding: 0;
}
.head .total {
    font-weight: bold;
    text-align: center;
    height: 18px;
}

.myorders input[type="radio"] {
    display: none;
}

.head ul {
    list-style: none;
    display: grid;
    grid-template-columns: 0.6fr 0.6fr;
    padding: 0;
    align-items: center;
    text-align: center;
}

.head ul label li {
    padding: 5px 10px;
}

.head ul label li.active {
    background: var(--blue);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
}

.head .icon-filtr {
    color: var(--black);
    line-height: 65px;
    font-size: 1.3em;
    text-align: right;
    padding-right: 0;
}

.order button[type=submit] {
    width: 100%;
    font-size: 0.7em;
}
.groups > .items {
    margin: 20px;
}
.items-group > .items {
    display: none;
}
.items .items-group > .title {
    background: var(--white);
    display: grid;
    grid-template-columns: 60% 30%;
    width: 100%;
    padding: 10px;
    line-height: 20px;
    border-bottom: solid 1px var(--gray);
    color: var(--black);
    border-radius: 0;
}
.precedents .items-group .title.complete, .precedents .items-group .title.incomplete {
    border-radius: 10px 10px 0 0;
}
.precedents.groups .items-group .title {
    border-radius: 10px 10px 0 0;
}
.items-group > .title [class^="icon-"] {
    padding-top: 5px;
    padding-right: 10px;
    color: var(--black);
}
.order .items {
    margin: 0;
    width: 100%;
    margin-top: 25px;
}
.order .items:hover {
    cursor: pointer;
}

.order .items > *:last-child {
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
}
#items .title {
    grid-template-columns: 3fr 2fr
}
.items .title {
    background: var(--blue);
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
    color: var(--white);
    font-size: 0.7em;
    margin: 0;
    display: grid;
    grid-template-columns: 2fr 2fr;
    gap: 20px;
    width: 100%;
    text-align: left;
}
#items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}
#items.open {
    max-height: 200px;
    padding: 15px 0;
}
.button.hidden {
    max-height: 0;
    overflow: hidden;
}

.items .title.complete {
    background: var(--green);
}
.items .title.incomplete {
    background: var(--rosso);
}

.order-stat {
    text-align: right;
}

.confirm-add-item {
    background: var(--white);
    color: var(--blue);
    font-size: 0.7em;
    font-weight: 600;
    cursor: pointer;
}

.icon-close {
    padding: 0;
}

/* Item */
.item {
    background: var(--white);
    display: grid;
    grid-template-columns: 60% 20% 20%;
    width: 100%;
    padding: 10px;
    line-height: 20px;
    border-bottom: solid 1px var(--gray);
}

.item .icon-infograph {
    color: var(--blue);
    font-size: 0.8em;
    margin-right: 10px;
}

.order input {
    margin: 0;
    padding: 0;
}

.order .items:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.order .icon-fork-and-knife {
    color: var(--black);
    margin-right: 10px;
}

.order .name {
    font-size: 0.7em;
    display: flex;
    line-height: 20px;
}

.name input {
    color: var(--black);
    background: none;
    font-weight: 500;
    text-align: left;
    padding: 4px 7px;
    margin: 0;
}

.portion {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    line-height: 20px;
}

.order .icon-trash,
.order .icon-refresh {
    cursor: pointer;
    color: var(--blue);
    margin-right: 0;
    font-size: 0.8em;
    margin-left: auto;
    line-height: 20px;
}

.order .qty {
    font-size: 0.8em;
    margin: 0 15px;
}

.qty input {
    background: transparent;
    width: 25px;
    font-size: 1em;
    font-weight: bold;
    color: var(--blue);
    text-align: center;
    cursor: default;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.title .count {
    float: left;
}

.title [class="icon-clock"], .title .count {
    color: var(--yellow) !important;
}

.title [class^="icon-"] {
    padding-top: 5px;
    padding-right: 10px;
    color: var(--white);
}

.order-count {
    flex-grow: 1;
    flex-shrink: 1;
}

.minus, .plus {
    background: var(--blue);
    color: var(--white);
    border-radius: 15px;
    font-weight: bolder;
    font-size: 0.7em;
    width: 20px;
    height: 20px;
    line-height: 20px;
    margin-left: auto;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.minus:hover, .plus:hover {
    cursor: pointer;
}

.plus {
    margin-left: 0;
}

.groups .title {
    border-radius: 10px;
}

.group-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.group-details.open {
    max-height: 1000px;
    padding: 15px 0;
}

.icon-shevron:before {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
    display: inline-block;
    transition: all 0.6s;
    margin-left: 10px;
}
.title.up .icon-shevron:before {
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    transition: rotate 0.4s;
    transition: all 0.6s;
}
/* User */
.breadcrumbs {
    font-size: 0.8em;
    font-weight: bold;
    width: 100%;
    display: grid;
    grid-template-columns: 6% 98%;
    align-items: center;
    justify-content: center;
}
.breadcrumbs ~ p {
    font-size: 0.7em;
    font-weight: 300;
}
.breadcrumbs .name,
.breadcrumbs .icon-chevron-left {
    text-align: center;
    align-content: center;
}
.breadcrumbs a {
    text-decoration: none;
    height: 20px;
}
.icon-chevron-left {
    color: #000;
    font-size: 1.3em;
    font-weight: bold;
    padding-top: 5px;
}
.account {
    width: 100%;
    margin: 0 auto;
    font-size: 0.7em;
    font-weight: 600;
    margin-bottom: 20px;
}
.account a {
    text-decoration: none;
}
#user-setting .account .title {
    width: 100%;
    text-align: left;
}
.account .emoji {
    font-size: 5em;
}
.account.profile input {
    margin: 0;
    padding: 0;
}
#user-setting .menu-item.qr {display: block}
#user-setting .menu-item {
    display: grid;
    grid-template-columns: 94% 6%;
    font-size: 1em;
}
#user-setting #editemoji .menu-item  {
    grid-template-columns: 70% 10% 10% 10%;
}
#selected-emoji {
    font-size: 1.5em;
}
.account.profile .button a, .account.profile button {
    background: none;
    cursor: pointer;
    padding: 0;
}

.account.profile .title{
    margin: 0;
    width: 100%;
    text-align: left;
}
.account > *:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.account emoji {
    font-size: 1.5em;
    line-height: normal;
    vertical-align: middle;
    margin-right: 5px;
}
.wrapper {
    position: absolute;
    transform: none!important;
    margin: 32% 3%;
    width: 90%;
    top: 15%;
}
.user-menu {
    display: flex;
    align-items: center;
    background: var(--blue);
    padding: 15px;
    border-radius: 10px 10px 0 0;
    color: var(--white);
    font-size: 0.9em;
    width: 100%;
}
.peoples .user-menu {
    display: grid;
    grid-template-columns: 65% 35%;
    text-align: left;
}
.count {
    text-align: right;
}
.user-menu [class^="icon-"] {
    margin-right: 10px;
    font-size: 1.3em;
}
.user-menu [class^="icon-group"] {
    margin-right: 10px;
    font-size: 1.9em;
    height: 20px;
}
.menu-item {
    background: var(--white);
    display: grid;
    grid-template-columns: 10% 85% 5%;
    width: 100%;
    padding: 10px;
    line-height: 25px;
    border-bottom: solid 1px var(--gray);
    text-align: left;
    font-size: 0.9em;
}
.cancel .menu-item {
    grid-template-columns: auto;
}
.menu-item [class^="icon-"], .menu-item [class*=" icon-"] {
    color: var(--blue);
    text-align: center;
    margin-right: 10px;
    font-size: 1.2em;
    line-height: 25px;
}
.menu-item.qr {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    display: block;
}
.qr .url {
    grid-template-columns: 93% 7%;
    display: grid;
    margin-top: 20px;
    padding-top: 10px;
    border-top: solid 1px var(--gray);
    font-size: 0.8em;
}
.icon-invite {
    padding-top: 5px;
}
.menu-item .icon-shevron {
    -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    transform: rotate(270deg);
    display: inline-block;
    transition: all 0.6s;
    font-size: 1em;
    height: 30px;
}
.menu-item .icon-shevron:before {
    margin: 0;
}


