:root {
        --font-family: "Montserrat", sans-serif;
        --background: #FFFFFF;
        --text-primary: #00008B;
        --text-secondary: #191970;
        --primary: #4169E1;
        --secondary: #F0F8FF;
    }
@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;
        }
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--text-primary);
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: auto;
    background: var(--secondary);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    animation: fadeIn 0.8s ease-out;
}

.header {
    background: linear-gradient(135deg, var(--primary), var(--text-secondary));
    color: white;
    padding: 20px 40px;
    border-radius: 16px 16px 0 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.header-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-right: 20px;
    border: 3px solid rgba(255, 255, 255, 0.7);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    margin-left: 25px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.nav a:hover {
    border-color: var(--secondary);
}

.main-content {
    padding: 40px;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-size: 2.2rem;
    color: var(--text-secondary);
    border-bottom: 3px solid var(--primary);
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.description {
    overflow-wrap: break-word;
}
.description p {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Carousel Styles */
.carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel__track {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.carousel__track::-webkit-scrollbar {
    height: 8px;
}
.carousel__track::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 4px;
}

.carousel__track::-webkit-scrollbar-track {
    background: var(--background);
    border-radius: 4px;
}

.carousel__track div{
    margin-right: 12px;
    flex-shrink: 0;
    scroll-snap-align: start;
    height: 100%;
}

.carousel__track div img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.is-hidden {
    display: none;
}

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

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

.footer {
    background: linear-gradient(135deg, var(--text-secondary), var(--primary));
    text-align: center;
    padding: 25px;
    color: white;
    border-radius: 0 0 16px 16px;
    font-size: 0.9em;
}

.title-block {
    display: flex;
    flex-direction: column;
    margin-right: auto;
    overflow-wrap: anywhere;
    word-break: normal;
    line-break: auto;
}

.purchases-title {
    margin: 0;
    font-size: 10px;
    color: gray;
}
.footer-accordion {
    font-family: var(--font-family);
    color: var(--text-primary);
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

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

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

#about.description.collapsed p {
  max-height: 30dvh; /* collapsed height = 30% of viewport height */
}

#about.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));
}

#about.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;
}

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

@media (max-width: 1024px) {
    .header-content {
        flex-direction: column;
    }

    .nav {
        margin-left: 0;
        margin-top: 15px;
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        width: fit-content;
    }
    .title-block {
        text-align: center;
        margin-right: 0;
        align-items: center;
        margin-bottom: 8px;
    }
    .nav a {
        margin-left: 0;
        margin-right: 15px;
        font-size: 1rem;
    }

    .main-content {
        padding: 30px 20px;
    }

    .carousel__track-container {
        height: 250px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .logo {
        width: 60px;
        height: 60px;
        margin-right: 15px;
    }

    .carousel__track-container {
        height: 200px;
    }

    .carousel__slide img {
        max-height: 250px;
    }

    .description p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .container {
        border-radius: 10px;
    }

    .header {
        padding: 15px 20px;
        border-radius: 10px 10px 0 0;
    }

    .footer {
        padding: 15px;
        font-size: 0.8em;
    }

    .carousel__track-container {
        height: 160px;
    }

    .carousel__slide img {
        max-height: 180px;
    }

    .nav a {
        font-size: 0.95rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }
}
#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 {
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    touch-action: manipulation;
}