:root {
        --font-family: "Montserrat", sans-serif;
        --background: #FFFFFF;
        --text-primary: #223326;
        --text-secondary: #3E5346;
        --primary: #4A7856;
        --secondary: #F2EAE4;
    }
@font-face {
        font-family: 'Montserrat';
        src: url('../fonts/Montserrat/Montserrat-Regular.ttf') format('truetype');
        font-weight: 400;
        font-style: normal;
        }

@font-face {
        font-family: 'Montserrat';
        src: url('../fonts/Montserrat/Montserrat-Bold.ttf') format('truetype');
        font-weight: 700;
        font-style: normal;
        }
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: rgb(240, 242, 245);
    color: var(--text-primary);
}

html {
    scroll-behavior: smooth;
}

.header-container {
    color: white;
    padding: 1rem 2rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-title {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.nav-menu .menu-icon {
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}


.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    color: white;
    place-items: center;
}

.hero-title {
    font-size: 3rem;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: auto;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.hero-button {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    text-decoration: none;
    font-size: 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    display: block;
    width: fit-content;
    margin-top: 8px;
}

.hero-button:hover {
    background-color: #ff4c4c;
}

.main-container {
    padding: 2rem;
    max-width: 1400px;
    margin: -48px auto 48px auto;
    border-radius: 20px;
    background: var(--background);
}

.about-section {
    margin-bottom: 3rem;
    overflow-wrap: break-word;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.description-block {
    flex: 1 1 50%;
    min-width: 300px;
}

.description-block p {
    overflow: hidden;
    transition: max-height 0.5s ease;
    position: relative;
}

.description-block.collapsed p {
    max-height: 50dvh;
}

.description-block.collapsed p::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3rem;
    background: linear-gradient(to top, var(--background), rgba(255, 255, 255, 0));
}

.description-block .read-more {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    text-align: center;
    user-select: none;
    transition: color 0.2s ease;
}

.description-block .read-more:hover {
    color: #555;
}

.download-section {
    flex: 0 1 30%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    box-shadow: 4px 4px 20px rgb(49 49 49 / 16%);
    margin: auto;
    transform-origin: bottom center;
    /* pivot around bottom edge */
    animation: jumpHeel 1.5s ease-in-out infinite;
    padding: 1rem;
    text-align: center;
    overflow-wrap: anywhere;
    /* modern, replaces word-wrap */
    word-break: normal;
    /* don't break words unless needed */
    line-break: auto;
    /* handle Asian text properly if present */
}

@keyframes jumpHeel {

    0%,
    100% {
        transform: translateY(0) rotateX(0deg);
    }

    30% {
        transform: translateY(-15px) rotateX(0deg);
        /* jumping up, flat */
    }

    60% {
        transform: translateY(0) rotateX(25deg);
        /* heel down landing */
    }

    80% {
        transform: translateY(0) rotateX(0deg);
        /* recover */
    }
}

.purchases-title {
    margin: 0;
    font-size: 10px;
    color: gray;
}

.image-wrapper {
    margin-top: 1rem;
    padding: 0 2rem;
}

.image-wrapper img {
    max-width: 360px;
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.download-button-wrapper {
    padding: 1rem;
}

.download-button {
    background-color: var(--text-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

.download-button:hover {
    background-color: #0f7fa1;
}

.gallery-section {
    width: 100%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.gallery-container {
    position: relative;
    width: 100%;
    max-height: 400px;
}


.gallery-container::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.gallery-container>div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.gallery-container>div.active {
    opacity: 1;
}

.gallery-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Thumbnails */
.thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding-bottom: 10px;
}

.thumbnails>div {
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.6;
    transition: transform 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.thumbnails>div.active {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
}

.thumbnails>div:hover {
    opacity: 1;
}

.thumbnails img {
    width: 80px;
    height: 45px;
    /* 16:9 */
    object-fit: cover;
    display: block;
}

.footer {
    background: linear-gradient(190deg, var(--primary), var(--text-secondary));
    color: white;
    padding: 2rem 1rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.footer-title {
    font-size: 1.25rem;
    margin-top: 0.5rem;
}

.footer-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-accordion {
    font-family: var(--font-family);
    color: var(--text-primary);
    padding: 20px;
    max-width: 1000px;
    margin: auto;
    width: 80%;
}

.footer-accordion h3 {
    margin: 0;
    padding: 15px 20px;
    color: var(--secondary);
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.footer-accordion .content {
    display: none;
    padding: 15px 20px;
    color: var(--secondary);
    border-bottom: 1px solid #ddd;
    font-size: 14px;
}

.footer-accordion .content p {
    margin: 10px 0;
}

.footer-accordion a {
    color: var(--primary);
    text-decoration: none;
}

.footer-accordion a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    #title {
        display: none;
    }

    .nav-menu {
        flex: 1;
        justify-content: space-evenly;
    }

    .hero-title {
        font-size: 2rem;
    }

    .gallery-container {
        flex-direction: column;
        align-items: center;
    }

    .gallery-image {
        max-width: none;
    }
}
#cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    width: 80%;
    max-width: 520px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    font-family: system-ui, sans-serif;
    z-index: 9999;
}

#cookie-banner.hidden {
    display: none;
}

#cookie-banner h2 {
    margin-top: 0;
    font-size: 18px;
}

#cookie-banner p {
    font-size: 14px;
    margin: 0 0 10px;
    line-height: 1.5;
}

#cookie-categories label {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    font-size: 14px;
}

#cookie-categories input {
    margin-right: 8px;
}

#cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

button {
    padding: 8px 14px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

#accept-all {
    background: #007bff;
    color: #fff;
}

#reject-all {
    background: #e0e0e0;
    color: #333;
}

#save-preferences {
    background: #4caf50;
    color: #fff;
}

#manage-cookies {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font-size: 13px;
    margin-top: 6px;
}

#cookie-settings {
    display: none;
    background: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 480px;
    width: 80%;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

#cookie-settings.active {
    display: block;
    color: #333;
}

#cookie-settings h3 {
    margin-top: 0;
}

#open-cookie-settings {
    background: transparent;
    margin-top: 1rem;
}

.accordion-item {
    border: 1px solid #ddd;
    margin-bottom: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.accordion-header {
    background-color: #f7f7f7;
    padding: 10px 15px;
    width: 100%;
    text-align: left;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.accordion-header:hover {
    background-color: #eee;
}

.accordion-content {
    display: none;
    padding: 10px 15px;
    background-color: #fff;
}

.accordion-content p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #333;
}

.accordion-content label {
    font-size: 14px;
}

.accordion-header[aria-expanded="true"] + .accordion-content {
    display: block;
}

#cookie-buttons {
    margin-top: 15px;
}

#save-preferences {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

#save-preferences:hover {
    background-color: #0056b3;
}
canvas {
    cursor: pointer;
    border-radius: 50%;
    background: radial-gradient(circle at center, #222 0%, #111 100%);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
}