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

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    margin: 0;
    height: 100vh;
    overflow: hidden;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.sidebar {
    background-color: var(--secondary);
    padding: 40px;
    text-align: center;
    overflow-y: auto;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    margin-bottom: 8px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transform-origin: bottom center; /* pivot around bottom edge */
    animation: jumpHeel 1.5s ease-in-out infinite;
}
@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;
    margin-bottom: 0.5rem;
}

h1 {
    margin: 0;
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 2.5rem;
}

.description {
    overflow-wrap: break-word;
}

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

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

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

.sidebar .description .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;
}

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

.description h2 {
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.description p {
    text-align: left;
    font-size: 0.95em;
    line-height: 1.7;
}

.main-content {
    overflow-y: auto;
    padding: 40px;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.gallery img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    background-color: var(--secondary);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.download_button {
    background: linear-gradient(90deg, var(--primary), var(--text-secondary));
    border: none;
    padding: 12px 32px;
    color: white;
    border-radius: 24px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
    align-items: center;
    margin-top: 12px;
}

.download_button:hover {
    transform: scale(1.05);
    color: #f0f0f0;
}

.split-layout>* {
    order: 0;
}

.footer-accordion {
    background-color: var(--secondary);
    font-family: var(--font-family);
    color: var(--text-primary);
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

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

.footer-accordion h3:hover {
    background-color: #e0e0e0;
}

.footer-accordion .content {
    display: none;
    padding: 15px 20px;
    color: var(--text-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) {
    body {
        height: auto;
        overflow: scroll;
    }

    .sidebar .description.collapsed p {
        max-height: 25dvh;
    }

    .split-layout {
        display: flex;
        flex-direction: column;
    }

    .main-content {
        order: 2;
    }

    .sidebar {
        order: 1;
    }

    .sidebar {
        padding: 20px;
    }

    .main-content {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .gallery {
        display: flex;
        height: 35dvh;
        gap: 0;
    }

    .gallery img {
        height: 100%;
        margin-right: 20px;
        width: auto;
    }
}
#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;
}