:root { font-family: 'Inter', sans-serif; }
@supports (font-variation-settings: normal) {
    :root { font-family: 'Inter var', sans-serif; }
}

.ic {
    position: relative;
    top: 5px;
    margin-right: 10px;
    display: inline-block;
    width: 25px;
    height: 25px;
    background-size: cover;
}

.ic-time {
    background-image: url("./assets/ic-time.svg");
}
.ic-price {
    background-image: url("./assets/ic-price.svg");
}
.ic-people {
    background-image: url("./assets/ic-people.svg");
}
.ic-instagram {
    background-image: url("./assets/instagram.png");
}
.ic-facebook {
    background-image: url("./assets/ic-fb.svg");
}

nav {
    margin-top: 24px;
}

video {
    border-radius: 40px;
    max-width: 100%;
}

nav ul {
    list-style-type: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
}

nav ul li {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-size: 17px;
    line-height: 28px;
    color: #650815;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: #650815;
}

a:visited {
    text-decoration: none;
    color: #650815;
}

a.active {
    text-decoration: underline;
}

body, textarea {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
}

body section {
    display: grid;
    gap: 10px;
    max-width: 1200px;
    padding: 0px 8px;
    margin: 0px 8px;
}

#video-preview {
    aspect-ratio: 1/1;
    width: 100%;
    max-height: 400px;
}

#greeting {
    color: #1C1B21;
    text-color: #1C1B21;
}

p, h1 {
    margin: 16px 0px;
    padding: 0px;
}

@keyframes wave {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

h2, h3 {
    font-weight: 700;
}

p.medium {
    font-weight: 500;
}
p.f22 {
    font-size: 22px;
}

#greeting h2, #greeting h4 {
    display: inline;
    font-weight: 700;
    margin: 0;
    color: #650815;
}

.empty-img {
    background: linear-gradient(0deg, #58575D, #58575D);
    border-radius: 40px;
    width: 100%;
    height: 100%;
}

.center-tagline-with-picture {
    background: linear-gradient(180deg, #8DE7EF 0%, #8DEFDD 100%);
    border-radius: 40px;
}


.p {
}

#elafiti-tour {
    background: linear-gradient(180deg, #BADF6B 0%, #6BDF92 100%);
}

#sunset-gateway {
    background: linear-gradient(180deg, #CAEF8D 0%, #EFA58D 100%);
}

#transfers-and-more {
    background: linear-gradient(180deg, #8DC6EF 0%, #8DEFDD 100%);
}

.expander {
    display: none;
}
.expander:target {
    display: grid;
}

.skewed-picture {
    aspect-ratio: 1/1;
    width: 200px;
    height: 200px;
    margin: 0px auto;

    border-radius: 40px;
    transform: matrix(-1, -0.09, -0.09, 1, 0, 0);
    transition-property: transform, transform-origin;
    transition-delay: 20ms; /* UX optimized delay before the animation starts */
    transition-duration: 200ms; /* Duration of the animation */
    transition-timing-function: cubic-bezier(0.5, 0, 0.5, 1); /* Attractive animation curve */
}

.skewed-picture img {
    border-radius: 40px;
}

.skewed-picture:hover {
  transform: matrix(-1, -0, -0, 1, 0, 0) scale(1.06);
}

.skewed-picture.center {
  transform: matrix(-1, -0, -0, 1, 0, 0) scale(1.06);
}


.skewed-picture img.tagline {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    right: -50%;
}

.skewed-picture img.tour {
    position: absolute;
    width: 280%;
    height: 280%;
    top: -40%;
    right: -90%;
}

.mobile-only img {
    border-radius: 40px;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    height: 64px;
    color: white;

    font-weight: 600;
    font-size: 16px;
    line-height: 44px;

    background: linear-gradient(180deg, #650815 0%, #332D54 100%);
    box-shadow: 0px 4px 54px rgba(0, 0, 0, 0.25);
    text-color: white;
    color:white;
    border-radius: 108px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s ease-in-out;
}

.button:visited {
    color: white;
}

.button-close {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    height: 64px;

    font-weight: 600;
    font-size: 16px;
    line-height: 44px;

    border-radius: 108px;
    border: 1px solid #1C1B21;
    cursor: pointer;
    text-decoration: none;
}

.button:hover, .button-close:hover {
    background: linear-gradient(180deg, #6C6FC2 0%, #3642AF 100%);
}

.button-close:hover {
    color: white;
    border: solid 1px transparent;
}

.center-tagline {
    text-align: center;
}

.gallery {
    display: grid;
    overflow: clip;
    width: 100%;
    max-width: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.gallery .gallery-row {
    position: relative;
    display: flex;
    gap: 16px;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    overflow-y: hidden;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 106%;

}
..gallery .gallery-row::-webkit-scrollbar { 
    display: none;
    width: 0;
    height: 0;
    -webkit-appearance: none;
}


.gallery .gallery-row:last-child {
    left: -6%;
}

.gallery .gallery-item {
    width: 284px;
    height: 284px;
    gap: 16px;
    border-radius: 40px;
}

.title-details-section {
    display: grid;
 }

section ul {
    margin-top: 25px;
    margin-left: 5px;
}

section ul li {
    font-weight: 500;
    font-size: 18px;
    line-height: 48px;

    /* identical to box height, or 229% */

    color: #1C1B21;
}

section ul li i {
    margin-right: 5px;
}

div.tel {
    margin-top: 50px;
    background: linear-gradient(180deg, #BADF6B 0%, #6BDF92 100%);
    box-shadow: 0px 4px 54px rgba(0, 0, 0, 0.25);
    border-radius: 108px;

    display: flex;
    flex-direction: row;
    align-items: center;
    text-alig: center;

    font-weight: 700;
    font-size: 24px;
    line-height: 44px;
    text-transform: uppercase;
}

.tel a {
    color: #1C1B21;
    padding: 30px 80px;
    align-items: center;
    text-align: center;
}

#contact-form-section {
    background-image: url("./assets/gm.png");
    grid-template-columns: 1fr 1fr;
    border-radius: 40px;
    box-shadow: 0px 4px 54px rgba(0, 0, 0, 0.25);
}

#contact-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(7px);
    border-radius: 32px;
    box-shadow: 0px 4px 54px rgba(0, 0, 0, 0.25);

    font-weight: 500;
    font-size: 18px;
    line-height: 55px;
}

#contact-form:hover, #contact-form:focus, #contact-form:focus-within {
    transform: rotate(0deg);
}


form > label {
    display: none;
    color: black;
}

#contact-form form {
    position: relative;
}

#contact-form form input, #contact-form form textarea {
    box-sizing: border-box;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 18px;
    line-height: 50px;
    color: black;
    width: 100%;

    border: none;
    border-bottom: 1px solid rgba(28, 27, 33, 0.25);
    background-color: transparent;
    filter: drop-shadow(0px 4px 54px rgba(0, 0, 0, 0.25));
    outline: 0;
}

form button {
    width: 100%;
    text-align:center;
    margin: 0px auto;
}

#contact-form p {
    margin-top: 24px;
    line-height: 35px;
    text-align: center;
}

#contact-form p a {
    color: #136594;
    font-size: 20px;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: black;
    opacity: 0.72;
}


footer {
    display: grid;

    font-weight: 500;
    font-size: 18px;
    line-height: 50px;
}

@media (max-width: 1000px) {
  .skewed-picture img.tour {
      top: 7%;
      right: 8%;
      width: 120%;
      height: 120%;
  }

  .skewed-picture img.tagline {
      top: 7%;
      right: 8%;
      width: 120%;
      height: 120%;
  }


  .skewed-picture {
      width: 300px;
      height: 300px;
  }
}

@media (min-width: 799px) {
    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding-left: 39px;
        padding-right: 39px;
        position: fixed;
        background-color: white;
        top: 0px;
        width: 100%;
        box-sizing: border-box;
        z-index: 1001;
    }

    video {
        width: 100%;
        border-radius: 0;
    }

    #main-logo {
        display: flex;
        gap: 32px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    #main-logo img {
        height: 50px;
    }


    .mobile-only {
        display: none;
    }
    .mobile-picture {
        display: none;
    }

    #intro-container {
        padding: 40px 20px;
        background: rgba(255, 255, 255, 0.5);
        position: absolute;
        z-index: 10;
        border-radius: 40px;
        margin-left: 200px;
        max-width: 590px;
    }

    h4 {
        font-size: 40px;
    }
    h5 {
        font-size: 35px;
        font-weight: 400;
        line-height: 65px;
    }

    h3 {
        font-size: 60px;
        margin: 0px;
    }

    h2 {
        font-size: 70px;
        line-height: 80px;
    }

    body {
        font-size: 28px;
        line-height: 45px;
    }

    body section {
        margin: 200px auto 0px auto;
    }

    #intro {
        margin-top: 0px;
        max-width: unset;
        padding: 0px;
        position: relative;
        display: flex;
        align-items: center;
    }

    .center-tagline .tagline-sailboat {
        height: 120px;
    }

    .center-tagline p {
        margin: 16px auto;
        max-width: 800px;
    }

    .center-tagline-with-picture {
        display: flex;
        flex-direction: column;
        padding: 50px 83px;
        position: relative;
    }
    .center-tagline-with-picture .tour-short {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .tour-expanded {
        margin-top: 130px;
    }

    .tour-expanded .tour-gallery {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        margin: 50px 0px 50px 0px;
    }

    .tour-gallery > img {
        display: block;
        max-width: 90%;
        border-radius: 40px;
    }

    .gallery {
        grid-template-rows: 1fr 1fr;
        margin-top: 350px;
    }

    .title-details-section {
        grid-template-columns: 1fr 1fr;
	margin-top: 50px;
        padding: 100px 50px;
    }

    .button {
        width: 159px;
        transition-property: transform, transform-origin;
        transition-delay: 20ms;
        transition-duration: 200ms;
        transition-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    }

    .button-close {
        width: 159px;
        transition-property: transform, transform-origin;
        transition-delay: 20ms;
        transition-duration: 200ms;
        transition-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    }

    #greeting {
        padding: 0px 30px;
    }
    .tel {
        width: 378px;
        position: relative;
        left: -12%;
        transition-property: transform, transform-origin;
        transition-delay: 20ms;
        transition-duration: 200ms;
        transition-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    }

    .tel:hover {
        transform: matrix(1, -0, -0, 1, 0, 0) scale(1.1);
    }

    .tel a {
        left: 0;
    }

    #contact-form-wrapper {
        width: 200px;
        height: 300px;
        position: relative;
        padding: 50px 24px 60px;
        gap: 16px;
        top: 30px;
    }

    #video-preview {
        width: 100%;
        max-height: 150%;
    }

    .content, #greeting, .center-tagline {
          position: relative;
          z-index: 1000;
    }

    #contact-form {
        max-height: 140%;
        width: 200%;
        position: absolute;
        top: -20%;
        right: -90%;

        transform: rotate(5deg);
        padding: 50px 24px 60px;
        transition-property: transform, transform-origin;
        transition-delay: 20ms; /* UX optimized delay before the animation starts */
        transition-duration: 200ms; /* Duration of the animation */
        transition-timing-function: cubic-bezier(0.5, 0, 0.5, 1); /* Attractive animation curve */
    }

    footer {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        margin: 200px 0px 0px 0px;
    }


    #contact-form-section {
        height: 550px;
    }
}


@media (min-width: 799px) and (max-width: 1000px) {
    #contact-form {
        right: -30%;
    }
}
@media (min-width: 1001px) and (max-width: 1200px) {
    #contact-form {
        right: -40%;
    }
}

.zh-tel {
    font-size: 18px;
    font-weight: 500;
}

@media (max-width: 800px) {
    header {
        display: flex;
        justify-content: center;
        align-content: center;
        margin: 20px auto 40px auto;
    }

    header img {
        width: 260px;
    }
    .mobile-picture img {
        border-radius: 40px;
    }
    .desktop-only {
        display: none !important;
    }

    #greeting h2, #greeting h4 {
        background: linear-gradient(90deg, #650815 0%, #CC2f4b 88.54%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        text-fill-color: transparent;

        background-size: 200% 200%;
        animation-name: wave;
        animation-duration: 4s; /* Duration of the wave animation */
        animation-iteration-count: infinite; /* Make the animation loop indefinitely */
        animation-timing-function: ease-in-out; /* Use ease-in-out timing function for smoother animation */
    }

    p {
        text-align: center;
    }

    .content p {
        text-align: left;
        font-size: 18px;
        padding: 0px 16px;
        margin: 24px auto;
    }


    h4 {
        font-size: 40px;
        text-align: center;
    }

    h3 {
        font-size: 40px;
        padding: 0 16px;
        text-align: center;
        margin: 0px;
        line-height: 40px;
    }

    h2 {
        font-size: 50px;
        text-align: center;
        line-height: 64px;
    }

    body {
        font-size: 22px;
        line-height: 32px;
    }

    .details-section {
        margin-top: 32px;
    }

    .title-details-section {
        margin-top: 120px;
    }


    body > section {
        max-width: 800px;
        margin-top: 50px;
    }

    body > section:last-child {
        margin-top: 10px;
    }

    nav {
        display: none;
    }

    #intro {
        grid-template-columns: none;
        text-align: center;
        margin: 0;
    }

    #intro p {
        padding: 0px 3px;
    }
    .center-tagline .tagline-sailboat {
        height: 120px;
    }

    .center-tagline {
        padding: 0 4px;
    }

    .center-tagline-with-picture {
        padding: 18px 8px;
    }

    .center-tagline-with-picture ul {
        margin-top: 20px;
        padding: 0px 30px;
    }

    .center-tagline-with-picture img {
        margin-top: 30px;
        width: 100%;
    }

    #contact-form-section {
        grid-template-columns: none;
        grid-template-rows: 1fr 4fr;
        padding: 0px;
    }

    #contact-form {
        height: 100%;
    }

    #contact-form button {
        margin-left: 8px;
        margin-right: 8px;
        width: calc(100% - 16px);
    }

    .tour-button {
        margin: 0 auto;
        position: relative;
        top: 10px;
    }

    .tour-button.button-close {
        margin-bottom: 50px;
    }

    footer {
        grid-template-rows: 1fr 1fr 1fr;
        text-align: center;
    }
    .copyright {
        order: 3;
    }
    .facebook {
        order: 2;
    }
    .instagram {
        order: 1;
    }

    .tel a {
        width: 100%;
        padding: 20px 0;
        text-align: center;
        font-size: 20px;
        line-height: 32px;
    }

    .tour-gallery-container {
        overflow-x: scroll;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch; /* For smooth scrolling on iOS devices */
        scroll-snap-type: x mandatory; /* For smooth snapping */
    }

    .tour-gallery {
        display: flex;
        gap: 16px; /* Adjust the gap between images */
    }

    .tour-gallery-item {
        flex: 0 0 auto; /* Prevent images from shrinking */
        width: 80vw; /* Adjust the width of the images */
        height: auto;
        border-radius: 40px;
        scroll-snap-align: center; /* For smooth snapping */
    }
}

