*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
    scroll-behavior: smooth;
}

ul[role="list"],
ol[role="list"] {
    list-style: none;
}

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

h1,
h2,
h3,
h4,
button,
input,
label {
    line-height: 1.1;
}

h1,
h2,
h3,
h4 {
    text-wrap: balance;
    font-family: "Inter", serif;
    font-weight: 800;
    font-style: normal;
    margin: 0;
}

h1 {
    font-size: 3.2em;
}

h2 {
    font-size: 2.5em;
}

h3 {
    font-size: 1.5em;
}

img,
picture {
    max-width: 100%;
    display: block;
}

textarea {
    resize: vertical;
}

:root {
    --max-page-width: 1024px;
    --container-padding: 20px;
    --anim-fade-duration: 160ms;

    --clr-midnightSurf: #1D2227;
    --clr-deepOcean-muted: #20425f;
    --clr-seaMist: #CACFCF;
    --clr-seaMistMuted: #BBC4C4;
    --clr-freezing-base: #6B5297;
    --clr-freezing-hover: #5E3FF6;

    --clr-txt-main: var(--clr-midnightSurf);
    --clr-txt-mainMuted: var(--clr-seaMistMuted);
    --clr-txt-secondary: var(--clr-seaMist);
    --clr-bg-main: var(--clr-seaMist);
    --clr-bg-secondary: var(--clr-midnightSurf);
}

body {
    font-family: "Kanit", serif;
    color: var(--clr-txt-main);
    font-optical-sizing: auto;
    font-weight: 300;
    min-height: 100vh;
    line-height: 1.5;
    font-size: 1.1rem;
    margin: 0;
    background-color: var(--clr-bg-main);
    display: grid;
    grid-template-rows: 1fr;
}

p {
    font-size: 1.6em;
}

/* GLOBAL TEMPLATES */
.container {
    max-width: var(--max-page-width);
    width: 100%;
    margin: 0 auto;
    padding: var(--container-padding);
}

.flip-colours {
    background-color: var(--clr-bg-secondary);
    color: var(--clr-txt-secondary);
    /* padding: 30px 0 30px 0; */
}

.highlight {
    background-color: var(--clr-freezing-base);
    padding: 0 5px;
    color: var(--clr-txt-secondary);
    border-radius: 4px;
}

.content {
    padding: 50px 0 50px 0;
    /* display: flex;
    flex-direction: column; */
}

.beach-names-container svg {
    width: 100%;
    height: auto;
    overflow: hidden;
}

/* - NAVBAR - */
ul {
    margin: 0;
    padding: 0;
}

.navbar-logo-text {
    font-family: "Kanit", serif;
    font-weight: 800;
    font-size: 1.6em;
    margin: 0;
}

.navbar-logo {
    display: flex;
    align-items: center;
    column-gap: 20px;
}

.navbar ul {
    padding-top: 15px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 25px;
    font-size: 1.2em;
    font-family: "Kanit", serif;
    font-weight: 400;
}

.navbar ul div {
    margin-right: auto;
}

/* regular nav links */
.navbar li a {
    text-decoration: none;
    color: var(--clr-txt-main);
    transition: color var(--anim-fade-duration) ease-in-out;
}

.navbar li a:hover {
    color: gray;    
}

/* contact btn style */
.btn-contact {
    background-color: var(--clr-bg-secondary);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--clr-txt-secondary) !important; /* Override the default link color */
    transition: background-color var(--anim-fade-duration) ease-in-out !important;
}

.btn-contact:hover {
    background-color: var(--clr-freezing-base);
    /*color: var(--clr-txt-secondary) !important;*/
}

.nav-link.active {
    border-bottom: 0.2em solid black;
}

/* - HERO SECTION - */
.hero-section {
    /* padding: 50px 0; */
    color: var(--clr-txt-main);
    display: flex;
    flex-direction: column;
    /* max-height: 500px; */
    padding: 50px 0 0px 0;
    justify-content: center;
    align-items: center;
}

.hero-section > * {
    animation: enter 0.5s ease both;
    animation-delay: 0.05s;
}

.tagline {
    /* font-size: 1.6em; 
    padding-bottom: 30px;*/
}

.hero-description,
.hero-image {
    flex: 1;
    text-align: center; 
}

.textemphasize{
    color: var(--clr-freezing-base); 
}

.hero-image {
    flex: 1;
    display: flex;
    /* justify-content: flex-end; */
    /* align-items: flex-end; */
    /* margin-right: 0; /* Remove the auto margin */
    margin: 50px 0 50px 0px;
    height: auto;
}



/* SCROLLING TEXT */
.wrapper {
    max-width: 100%;
    min-height: 200px;
    overflow: hidden;
}

.marquee {
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: marquee 42s linear infinite;
}

.marquee p {
    display: inline-block;
    font-size: 2em;
    margin: 0;
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

.about-section {
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}
.gallery img {
    width: 100%;
    height: auto;
}

/* CONTACT */
.contact-container {
    display: flex;
    gap: 50px;
    /* margin-bottom: 60px; */
    padding-top: 50px;
}

.contact-about {
    max-width: 280px;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
}

.contact-container-form {
    flex-grow: 2;
    padding: 30px;
    background-color: var(--clr-bg-secondary);
    border-radius: 10px;
}

label,
label a {
    color: var(--clr-txt-secondary);
}

.form-row {
    display: flex;
    gap: 10px;
    align-items: center;
    line-height: 1;
}

.form-row input {
    flex: 1;
}

input,
select,
textarea {
    padding: 10px;
    background-color: var(--clr-bg-main);
    border: 1px solid #e4dbd2;
    border-radius: 4px;
    width: 100%;
    accent-color: var(--clr-midnight);
}

input[type="submit"] {
    background-color: var(--clr-freezing-base);
    color: var(--clr-whitesand);
    font-size: 1.2em;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color var(--anim-fade-duration) ease-in-out;
}

input[type="submit"]:hover {
    background-color: var(--clr-freezing-base);
}

input[type="checkbox"] {
    width: 30px;
    height: 30px;
    cursor: pointer;
    accent-color: var(--clr-freezing-base);
}

/* - FOOTER - */
.footer-content {
    font-size: 1em;
    display: grid;
    grid-template-columns: auto auto auto;
}

.footer-title {
    font-size: 1.8em;
    font-family: "Inter", sans;
    font-weight: 700;
    font-style: normal;
}

.footer-logo {
    margin: 30px 0;
}

.footer-content-small {
    font-size: 0.75em;
}

.footer-content a {
    text-decoration: none;
    color: inherit;
    transition-duration: var(--anim-fade-duration);
}

.footer-content a:hover {
    opacity: 0.7;
}

.footer-socials {
    display: flex;
    gap: 5px;
}

.footer-socials img {
    width: 40px;
    height: 40px;
}

.footer-content-right {
    text-align: right;
}

.footer-copyright {
    grid-column: 1 / -1;
    margin-top: 30px;
}

hr {
    border: 1px solid var(--clr-bg-main);
    opacity: 0.2;
}

.footer-copyright-txt {
    text-align: right;
    margin-top: 30px;
    opacity: 0.2;
    font-size: 0.75em;
}

@media only screen and (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }

    .navbar-logo-text {
        display: none;
    }

    .navbar ul {
        padding-top: 0px;
        font-size: 1.0em;
    }

    .contact-container {
        flex-direction: column;
        gap: 20px;
    }
    .contact-about {
        max-width: none;
    }
    .tagline {
        font-size: 1.2em;
    }
    .hero-section {
        /*flex-direction: column-reverse;*/
        padding: 0 0 50px 0;
    }
    .hero-image {
        margin: auto;
        padding: 20px 0 50px 0;
    }

    

    .marquee p {
        font-size: 1.5em;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    .footer-content > *:last-child {
        margin-left: 0;
    }
    .footer-content-right {
        text-align: left;
    }
    .footer-copyright-txt {
        text-align: left;
    }
    .contact-container-form {
        padding: 20px;
    }
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
