@keyframes spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slide-down {
    0% {
        top: -5rem;
    }

    25% {
        top: 2rem;
    }

    75% {
        top: 2rem;
    }

    100% {
        top: -5rem;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

html {
    font-size: 10px;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
}

*.hidden {
    display: none;
}

.material-icons {
    -webkit-user-select: none;
    user-select: none;
}

.validate {
    display: none;
}

.validate.active {
    display: block;
}

.heading {
    color: #00953b;
    font-size: 2.5rem;
    font-weight: 700;
}

.sub-heading {
    color: #00953b;
    font-size: 2rem;
}

.label {
    display: block;
    margin: 1.5rem 0;
    font-weight: 700;
    cursor: pointer;
}

.input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 1rem;
    border: none;
    border-bottom: 0.2rem solid #a5a5a5;
    border-radius: 0;
    outline: none;
    color: black;
    background-color: #ededed;
    font-family: inherit;
    font-size: 1.5rem;
    resize: none;
    transition-property: border-color;
    transition-duration: 0.25s;
    appearance: none;
}

.input:focus {
    border-bottom: 0.2rem solid #00953b;
}

.input:not(textarea, input[type="file"]) {
    height: 5rem;
}

.input::file-selector-button {
    padding: 1rem;
    margin-right: 1rem;
    border: none;
    color: white;
    background-color: #00953b;
}

.input-disabled {
    background-color: #dbdbdb;
    cursor: not-allowed;
}

.anchor {
    color: #00953b;
}

.error {
    color: red;
    font-weight: 700;
}

.success {
    color: green;
    font-weight: 700;
}

.button {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin: 1rem 1rem 1rem 0;
    width: max-content;
    height: max-content;
    border: none;
    color: white;
    background-color: #00953b;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition-property: background-color;
    transition-duration: 0.25s;
}

.button:hover {
    background-color: #006d2b;
}

.button .material-icons {
    margin-right: 0.5rem;
}

.row {
    display: flex;
    align-items: center;
    height: max-content;
}

.row-top {
    display: flex;
    align-items: flex-start;
    height: max-content;
}

.column {
    flex: 1;
}

.column:not(.column:last-child) {
    padding-right: 1rem;
}

.container {
    box-sizing: border-box;
    width: 100rem;
    max-width: 100%;
    padding: 1rem;
    margin: 0 auto auto auto;
}

.navbar {
    position: relative;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #ededed;
}

.navbar .row {
    justify-content: right;
}

.navbar-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem;
    color: black;
    font-weight: 700;
    text-decoration: none;
    transition-property: background-color;
    transition-duration: 0.25s;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.navbar-item:not(.navbar-item:last-child) {
    margin-right: 0.5rem;
}

.navbar-item:hover,
.navbar-item-active {
    background-color: #dbdbdb;
}

.navbar-item:hover .navbar-item-dropdown {
    display: block;
}

.navbar-item:hover .navbar-item-heading .material-icons {
    transform: rotate(180deg);
}

.navbar-item-heading {
    display: flex;
    align-items: center;
}

.navbar-item-heading .material-icons {
    transform: rotate(0);
    transition-property: transform;
    transition-duration: 0.5s;
}

.navbar-item-dropdown {
    position: absolute;
    top: 4rem;
    left: 0;
    display: none;
    padding: 1rem;
    background-color: white;
    box-shadow: 0 0 1rem #c9c9c9;
}

.navbar-item-dropdown .dropdown-item {
    position: relative;
    display: block;
    padding: 1rem;
    color: black;
    font-weight: 700;
    text-decoration: none;
    transition-property: background-color;
    transition-duration: 0.25s;
    -webkit-user-select: none;
    user-select: none;
}

.navbar-item-dropdown .dropdown-item:hover {
    background-color: #ededed;
}

.checkbox-container:not(.checkbox-container:last-child) {
    margin-right: 2.5rem;
}

.checkbox {
    position: relative;
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 1rem;
    border: 0.2rem solid #a5a5a5;
    background-color: #ededed;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition-property: border-color;
    transition-duration: 0.25s;
}

td .checkbox {
    margin-right: 0;
}

td .row {
    justify-content: center;
}

.checkbox.active {
    border-color: #00953b;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox .material-icons {
    margin: auto;
    color: #ededed;
    transition-property: color;
    transition-duration: 0.25s;
}

.checkbox.active .material-icons {
    color: #00953b;
}

.break {
    width: 75rem;
    max-width: 100%;
    margin: 2.5rem auto;
    border: none;
    border-bottom: 0.2rem solid #00953b;
    color: #00953b;
}

.tab {
    display: flex;
    justify-content: center;
    padding: 1rem;
    color: black;
    text-decoration: none;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition-property: background-color;
    transition-duration: 0.25s;
}

.tab:not(.tab-active):hover {
    background-color: #ededed;
}

.tab-active {
    background-color: #dbdbdb;
    font-weight: 700;
}

.table-container {
    overflow: auto;
}

.table {
    width: 98rem;
    margin: 2.5rem 0;
    border-collapse: collapse;
    text-align: center;
}

.table caption {
    margin-bottom: 1rem;
    text-align: left;
}

.table th,
.table td {
    padding: 1rem;
}

.table thead tr {
    background-color: #dbdbdb;
}

.table tbody tr:nth-child(even) {
    background-color: #ededed;
}

.table tbody tr:nth-child(odd) {
    background-color: white;
}

.table a {
    display: flex;
    justify-content: center;
    color: #00953b;
    text-decoration: none;
}

.menu-item {
    box-sizing: border-box;
    display: block;
    width: max-content;
    max-width: 100%;
    padding: 1rem;
    margin-left: auto;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: right;
    text-decoration: none;
}

.menu-item .material-icons {
    transform: rotate(0);
    transition-property: transform;
    transition-duration: 0.5s;
}

.menu-item-active {
    text-decoration: underline;
}

.menu-item-heading {
    display: flex;
    align-items: center;
    justify-content: right;
}

.menu-item-dropdown {
    max-height: 0;
    overflow: hidden;
    border-left: 0.2rem solid white;
    transition-property: max-height;
    transition-duration: 0.5s;
}

.menu-item.active .menu-item-dropdown {
    max-height: 25rem;
}

.menu-item.active .material-icons {
    transform: rotate(180deg);
}

.menu-item-dropdown .dropdown-item {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
}

.companion-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.companion-toolbar button {
    margin: 0;
}

.confirm .material-icons {
    margin-right: 0.5rem;
}

.heading-home {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.card {
    display: flex;
    width: calc(100vw - (100vw - 100%));
    height: 50vh;
    background-color: #00953b;
}

.card:nth-child(odd) img {
    box-shadow: 1rem 1rem 1rem rgba(0, 0, 0, 0.5);
}

.card:nth-child(even) img {
    box-shadow: -1rem 1rem 1rem rgba(0, 0, 0, 0.5);
}

.card-background {
    width: 50%;
    object-fit: cover;
}

.card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    width: 50%;
    padding: 2.5rem;
    color: white;
}

.card-text p:last-of-type {
    margin-bottom: 0;
}

.card-heading {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.card-paragraph {
    font-style: italic;
    margin-bottom: 0;
}

ul.card-paragraph {
    margin: 0;
}

.separator {
    display: flex;
    align-items: center;
    width: max-content;
    margin: 2.5rem auto;
}

.separator img {
    width: 5rem;
    margin: 1rem;
}

.separator div {
    width: 10rem;
    height: 0;
    border: 0.1rem solid black;
}

.paragraph-home {
    text-align: center;
}

.sub-heading-home {
    font-size: 2rem;
    text-align: center;
}

.hotel-sub-heading {
    font-size: 2rem;
    text-align: center;
}

.hotel-paragraph {
    width: 50rem;
    max-width: 100%;
    margin: 1rem auto;
    text-align: center;
}

.list {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: flex;
    width: 60rem;
    max-width: 100%;
    margin: auto;
    box-shadow: 0.5rem 0.5rem 1rem gray;
}

.list-item:not(.list-item:last-child) {
    margin-bottom: 2.5rem;
}

.list-item-icon {
    display: flex;
    width: 12.5rem;
    height: 12.5rem;
    flex-shrink: 0;
}

.list-item-icon .material-icons {
    margin: auto;
    font-size: 5rem;
}

.list-item-text {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 1rem;
    background-color: #ededed;
}

.list-item:nth-child(odd) .list-item-text {
    border-left: 0.2rem solid black;
}

.list-item:nth-child(even) .list-item-text {
    border-right: 0.2rem solid black;
}

.list-item-text p {
    margin: auto 0;
}

.hotel-card {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin: auto;
}

.hotel-card:not(.hotel-card:last-child) {
    margin-bottom: 2.5rem;
}

.hotel-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 25rem;
    box-sizing: border-box;
}

.hotel-card-image {
    object-fit: cover;
    width: 25rem;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.hotel-card .hotel-sub-heading {
    margin-top: 0;
}

.hotel-card .hotel-paragraph {
    width: auto;
    margin: 1rem 0;
}

.hotel-card .hotel-paragraph:last-child {
    margin-bottom: 0;
}

.excursion-card {
    display: flex;
}

.excursion-card:not(.excursion-card:last-child) {
    margin-bottom: 2.5rem;
}

.excursion-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    width: 50%;
    padding: 2.5rem;
}

.excursion-card-image {
    width: 50%;
    object-fit: cover;
}

.excursion-card .hotel-sub-heading {
    margin-top: 0;
    text-align: left;
}

.excursion-card .hotel-paragraph {
    width: auto;
    margin: 1rem 0;
    text-align: left;
}

.excursion-card .hotel-paragraph:last-child {
    margin-bottom: 0;
}

#login {
    box-sizing: border-box;
    width: 50rem;
    max-width: 100%;
    padding: 1rem;
    margin: auto;
}

#toolbar {
    color: white;
    background-color: #00953b;
}

#user {
    margin-left: 0.5rem;
}

#logout {
    display: flex;
    align-items: center;
    height: max-content;
    margin-left: auto;
    color: white;
    text-decoration: none;
}

#logout span {
    margin-left: 0.5rem;
}

#mobile-navbar {
    display: none;
}

#open-menu {
    display: block;
}

#menu {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #00953b;
    transition-property: right;
    transition-duration: 0.5s;
}

#menu.active {
    right: 0;
}

#close-menu {
    display: block;
    margin: 2.5rem 0;
    color: white;
    font-size: 48px;
    text-align: right;
}

#snackbar-container {
    position: relative;
    width: 30rem;
    margin: 0 auto;
}

#snackbar {
    position: fixed;
    top: -5rem;
    z-index: 2;
    box-sizing: border-box;
    width: inherit;
    padding: 1rem;
    box-shadow: 0 0 1rem black;
    color: white;
    background-color: green;
    text-align: center;
    animation-name: slide-down;
    animation-duration: 2s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

#consent-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    animation-name: fade-in;
    animation-duration: 0.5s;
    animation-delay: 0.5s;
    animation-fill-mode: forwards;
}

#consent {
    box-sizing: border-box;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100rem;
    max-width: 100%;
    padding: 2.5rem;
    margin: auto;
    box-shadow: 0 0 1rem black;
    background-color: white;
}

#header {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 2.5rem;
    border-bottom: 0.2rem solid #00953b;
}

#home #header {
    margin: 0;
}

#header img {
    width: 100%;
    object-fit: cover;
}

#price {
    color: #00953b;
    text-align: right;
}

.hotel {
    display: flex;
    flex-direction: column;
    padding: 5rem;
}

#excursion {
    display: flex;
    flex-direction: column;
    padding: 5rem;
    background-image: url(../img/sardegna2027/image15.jpeg);
    background-size: cover;
    background-position: center;
    color: white;
}

#excursion-content {
    width: 100%;
    margin: auto;
}

.rating {
    margin: auto;
}

.rating .material-icons {
    font-size: 48px;
}

.hotel-heading {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

#hotel-cards {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin: 5rem 0;
}

#excursion-cards {
    display: flex;
    flex-direction: column;
    width: 100rem;
    max-width: 100%;
    margin: auto;
}

#summary {
    font-size: 2rem;
    text-align: right;
}

#adapters {
    max-width: 100%;
}

#schedule {
    display: flex;
    flex-direction: column;
    margin: auto;
    width: 50rem;
    gap: 2.5rem;
}

.schedule-item-heading {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    gap: 2.5rem;
    justify-content: center;
}

.schedule-item-heading img {
    width: 7rem;
}

.schedule-item p {
    text-align: center;
}


#loading {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

#loading.active {
    display: flex;
}

#loading-circle {
    width: 25px;
    height: 25px;
    border: 5px solid #00953b;
    border-top-color: white;
    border-radius: 50%;
    transform: rotate(0);
    animation-name: spin;
    animation-duration: 0.5s;
    animation-iteration-count: infinite;
}
