* {
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Arial', sans-serif;
    background: #0d4ba7;
    color: #021b41;
}

main {
    width: 400px;
    max-height: 80vh;
}

.container {
    position: relative;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    width: calc(100% - 46px);
    padding: 23px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
}

.container .port {
    margin-top: -18px;
    margin-left: -18px;
    width: calc(100% + 36px);
    max-height: 200px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    object-fit: cover;
}

.container .logo {
    width: 100px;
    height: 100px;
    border-radius: 80px;
    margin: 0 auto;
    margin-top: -80px;
    margin-bottom: 10px;
    border: 7px solid white;
}

.container .header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 15px;
}

.container .header.center {
    justify-content: center;
}

.container .header .logo {
    width: 50px;
    height: 50px;
}

.container .header .arrow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.container .header .arrow ion-icon {
    font-size: 24px;
    color: #163e79;
}

.container .header h1 {
    font-size: 1.2em;
    color: #163e79;
}

.container .header .rest {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: #b6b6b6;
}

.container .separator {
    width: 100%;
    height: 1px;
    background: #b6c3e7;
}

.container .restname {
    padding: 20px 0;
    padding-bottom: 15px;
    font-size: 1em;
    color: #021b41;
}

.container .card {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.container .card .inputs {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.container .card .inputs input:nth-child(2) {
    width: 40px;
}

.container .card input {
    margin-top: -5px;
    width: calc(100% - 30px);
    height: 40px;
    background: #bbc4df52;
    border-radius: 10px;
    border: none;
    outline: none;
    padding: 0 15px;
}

.container .card input.is-invalid {
    border: 1px solid red;
}

.container .time,
.container .consume,
.container .note {
    padding-top: 0;
}

.container h3 {
    font-size: 1em;
}

.container p {
    font-size: 16px;
}

.container .date .calendar {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border-radius: 20px;
    border: 1px solid #021b41;
}

.container .date .calendar .top {
    margin-bottom: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.container .date .calendar .arrow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
}

.container .date .calendar .top .month {
    font-weight: 600;
}

.container .date .calendar .week {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.container .date .calendar .week .week-day {
    width: calc(100%/7);
    font-size: 18px;
    font-weight: 600;
    color: #163e79;
    text-align: center;
}

.container .date .calendar .days {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.container .date .calendar .days .day {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: calc(100%/7);
    height: calc((400px - 77px)/7);
    border-radius: 25px;
    cursor: pointer;
}

.container .date .calendar .days .day.hide {
    color: #596475;
    cursor: default;
}

.container .date .calendar .days .day.active {
    background: #163e79;
    color: white;
}

.container .date .calendar .days .day.closure {
    background-color: white;
    color: red;
}

.container .time .hours {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.container .time .hours svg {
    width: 30px;
    height: 30px;
}

.container .time .hours svg g {
    fill: #163e79;
}

.container .time .hours .hours-container {
    display: flex;
    flex-direction: row;
    gap: 15px;
    overflow: scroll;
    width: calc(100% - 40px);
    cursor: grab;
}

.container .time .hours .hours-container::-webkit-scrollbar,
.container .zones .zones-list::-webkit-scrollbar {
    display: none;
}

.container .time .hours .hours-container .hour,
.container .zones .zones-list .zone {
    text-wrap: nowrap;
    color: #163e79;
    padding: 5px 15px;
    border-radius: 30px;
    border: 1px solid #163e79;
    cursor: pointer;
}

.container .time .hours .hours-container .hour {
    display: none;
}

.container .time .hours .hours-container .hour.active,
.container .zones .zones-list .zone.active {
    background: #0d4ba7;
    color: white;
}

.container .zones .zones-list {
    display: flex;
    flex-direction: row;
    gap: 15px;
    overflow: scroll;
}

.container .guests .guests-count {
    position: relative;
    margin-top: -80px;
    margin-bottom: -80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.container .guests .guests-count .people {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: white;
    text-align: center;
}

.container .guests .guests-count .count {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.container .guests .guests-count .count .minus,
.container .guests .guests-count .count .more {
    width: 20px;
    height: 20px;
    text-align: center;
    cursor: pointer;
}

.container .consume .consume-list {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.container .consume .consume-list .minus,
.container .consume .consume-list .more {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    font-size: 24px;
    cursor: pointer;
    z-index: 5;
}

.container .note textarea {
    padding: 15px;
    background: #bbc4df52;
    border-radius: 15px;
    border: none;
    outline: none;
    resize: none;
    color: #021b41;
    font-size: 16px;
}

.container .note textarea::placeholder {
    color: #43474d;
}

.container .total {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.container .button {
    margin-top: 15px;
    width: 100%;
    height: 50px;
    font-size: 16px;
    background: #0d4ba7;
    color: white;
    border-radius: 10px;
    border: none;
    outline: none;
    transition: .5s;
    cursor: pointer;
}

.container .button:hover {
    background: #163e79;
}

@media screen and (max-width: 450px) {
    main {
        width: 100%;
        max-height: max-content;
    }

    .container .date .calendar .days .day {
        height: calc((100vw - 77px)/7);
    }
}