body {
    background-color: #131313;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    align-items: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

main {
    margin-top: 70px; /* Avoid overlapping with the fixed navbar */
}

section {
    padding: 6px 20px;
    margin: 0;
}

div.content {
    margin: auto;
    max-width: 800px;
}

header, nav, footer {
    padding: 4px 20px;
    box-sizing: border-box;
}

header {
    background-color: #fff;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

div.logo {
    padding: 8px 0 2px;
}

nav {
    max-width: 800px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 30px;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav li {
    display: inline;
    margin-right: 10px;
}

nav a {
    font-family: 'Cormorant Garamond', serif;
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
    font-size: 17px;
}

nav a.buy {
    color: #04b1c5;
    font-weight: bold;
}

nav a.buy:hover {
    color: #058d9c;
}

nav a:hover {
    font-family: 'Cormorant Garamond', serif;
    text-decoration: none;
    color: #04b1c5;
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    margin: 0 1rem;
    overflow: hidden;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    height: 4px;
    width: 26px;
    background-color: #000;
    position: absolute;
    transition: transform 400ms cubic-bezier(0.01, 1, 0.01, 1);
    border-radius: 2px;
}

.menu-button::before {
    margin-top: -8px;
    content: '';
}

.menu-button::after {
    margin-top: 8px;
    content: '';
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    background: rgba(255, 255, 255, 0);
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

@media (max-width: 700px) {
    .menu-button-container {
        display: flex;
    }
    .menu a {
        font-size: 22px;
    }
    .menu {
        position: absolute;
        top: 0;
        margin-top: 70px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
    #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.01, 1, 0.01, 1);
    }
    #menu-toggle:checked ~ .menu li {
        background-color: #fff;
        border-bottom: 1px solid #ddd;
        height: 40px;
        transition: height 400ms cubic-bezier(0.01, 1, 0.01, 1);
    }
    .menu > li {
        display: flex;
        justify-content: center;
        margin: 0;
        width: 100%;
        color: white;
        background-color: #ccc;
    }
    .menu > li:first-child {
        border-top: 1px solid #444;
    }
    #menu-toggle:checked ~ .menu a {
        padding: 10px;
        font-size: 22px;
    }
}

h1 {
    font-size: 36px;
}
h2 {
    font-size: 28px;
}
h3 {
    font-size: 24px;
}

ul {
    font-size: 20px;
}

p {
    font-size: 22px;
    padding: 0;
}

p.large {
    font-size: 26px;
    padding: 10px 0px;
}


.center {
    margin: 20px auto;
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.wide-image img {
    width: 100%;
    height: auto;
    margin: 20px auto;
}

section.hero {
    background: linear-gradient(to bottom, #fff 35%, #474c50 35%, #c6d0d1);
    color: #fff;
    overflow: visible;
    text-align: center;
}

img.hero {
    margin-top: 10px;
    width: 100%;
    height: auto;
    max-width: 46em;
}

section.dark {
    background-color: #194351;
    color: #fff;
    padding-bottom: 30px;
}

section.light {
    background-color: #fff;
    color: #000;
    padding-bottom: 40px;
}

.video-container iframe {
    width: 100%;
}

.book-container {
    position: relative;
    height: 500px;
    overflow: hidden;
    align-items: center;
    text-align: center;
}
  
.book-container img {
    position: absolute;
    top: 0;
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center horizontally */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    margin: 20px auto;
}
  
.book-container img.active {
    opacity: 1;
}

@media only screen and (max-width: 700px) {
    .book-container {
        width: 100%;
    }
    
    .book-container img {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 1.5s ease-in-out;
        width: 100%;
        height: auto;
    }
}

a.kickstarter, a.backerkit {
    font-family: 'Cormorant Garamond', 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #05ce78;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
a.kickstarter:hover {
    background-color: #10a966; /* Darker background color on hover */
    color: #fff;
}

a.backerkit {
    background-color: #ffcd55;
    color: #322908;
}

a.backerkit:hover {
    background-color: #fcd77f;
    color: #322908;
}


/* KEY VALIDATION */
#puzzle-container {
    text-align: center;
    max-width: 480px;
    width: 100%;
    padding: 20px;
    margin: 100px 0;
    box-sizing: border-box;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #000;
}

#input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

#user-input {
    flex-grow: 1;
    padding: 7px;
    font-size: 16px;
    font-family: 'Cinzel', serif;
    box-sizing: border-box;
    border-radius: 5px;
    border-style: hidden;
}
@media (max-width: 700px) {
    #user-input {
        font-size: 14px;
    }
}

#key-title {
    margin-top: 20px;
    font-size: 20px;
}
#validation-key-container {
    display: flex;
    flex-wrap: wrap; /* Optional, if you want the keys to wrap to the next line */
    justify-content: center; /* Optional, centers the keys horizontally */
}
div.validation-key {
    background-color: #12536f;
    color: #fff;
    width: 100px;
    height: 46px;
    font-size: 32px;
    font-weight: bolder;
    margin: 10px;
    padding-top: 4px;
    border-radius: 5px;
    font-family: 'Cinzel', serif;
}

#error {
    margin-bottom: 8px;
    font-size: 20px;
    color: rgb(176, 93, 93);
}

#instructions-container {
    text-align: left;
    max-width: 640px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    border: 2px solid #505050;
    border-radius: 10px;
    background-color: #000;
}

p.instructions {
    font-size: 20px;
    text-align: left;
    color: #f5f5f5;
}


/* MANUAL VALIDATION */
.formula span.key {
    color: #cd3d52;
}

.formula span.number {
    color: #3dcdc3;
}

table.index-table {
    border-collapse: collapse;
    width: 50%;
}

table.index-table.th, table.index-table.td {
    border: 1px dotted #696969;
    text-align: center;
    padding: 8px;
}

#main-container {
    text-align: left;
    max-width: 720px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    border: 2px solid #505050;
    border-radius: 10px;
    background-color: #000;
}

footer {
    margin: 0;
    padding: 10px 0 40px;
    background-color: #295f73;
    color: #fff;
    text-align: center;
}

footer p {
    font-size: 16px;
}

footer p.copyright {
    font-size: 18px;
}

footer img.publisher-logo {
    height: 120px;
    width: auto;
}

a {
    color: #04b1c5;
}

a:hover {
    color: #058d9c;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    grid-auto-rows: 250px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    /* Avoid layout shifts */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    /* -- */
}

.gallery-item:hover::before {
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

.thumbnail-container {
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.thumbnail-container:hover {
    transform: scale(1.1); /* Scale factor on hover */
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures that the image covers the entire container without distortion */
}

/* TESTIMONIALS */
.testimonials-section {
    padding-bottom: 30px;
    padding-top: 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.testimonial {
    flex: 1;
    margin: 0 4px;
    padding: 0;
    box-sizing: border-box;
}

.testimonial p {
    font-size: 18px;
    color: #eee;
    margin-bottom: 2px;
    margin-top: 0;
}

.testimonial strong {
    display: block;
    margin: 4px 0px 0px;
    color: #fff;
    text-transform: uppercase;
}

/* STATS */
.stats-section {
    padding: 36px 0 0 0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.statistic {
    flex: 1;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    text-align: center;
}

.statistic p {
    font-size: 72px;
    color: #fff;
    margin: 0;
    padding: 0;
}

.statistic strong {
    display: block;
    margin: 4px 0px 18px;
    text-transform: uppercase;
    color: #ddd;
    font-size: 16px;
}

@media (max-width: 700px) {
    .statistic p {
        font-size: 44px;
    }
    .statistic strong {
        font-size: 13px;
    }
}

/* FAQ */
.faq-item h3 {
    font-size: 24px;
    margin: 20px 0 0;
}
.faq-item p {
    padding-top: 4px;
    font-size: 20px;
    margin: 0;
}


/* Cookies */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    padding: 10px 20px;
    text-align: center;
    border-top: 1px solid #ccc;
    color: #000;
    font-family: 'Cormorant Garamond', serif;
    display: none;
}

.cookie-notice p {
    margin: 4px 0 12px 0;
    font-size: 16px;
}

#accept-cookies {
    background-color: #174953;
    font-family: 'Cormorant Garamond', serif;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

#accept-cookies:hover {
    background-color: #256775;
}

.social-icons {
    list-style: none;
    padding: 0;
}
.social-icons li {
    display: inline-block;
    margin-right: 10px;
}
.social-icons li:last-child {
    margin-right: 0;
}
.social-icons a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}
.social-icons a:hover {
    color: #ccc;
}


/* VALIDATION KEYS */
table.validation-keys {
    width: 100%;
    background: #fff;
    margin: 1em 0;
    border: 1px solid #eee;
    box-shadow: none;
    border-radius: .28571429rem;
    text-align: left;
    color: #000;
    border-collapse: separate;
    border-spacing: 0;
}

table.validation-keys th, table.validation-keys td {
    border: 1px solid #ddd;
    padding: 8px;
    margin: 0;
    font-size: 24px;
}

table.validation-keys th {
    background-color: #d5d5d5;
    color: #194351;
}

table.validation-keys tr:nth-child(even) {
    background-color: #f6fbfd;
}

table.validation-keys tr:hover {
    background-color: #dfeaf0;
}

table.validation-keys span.correction {
    background-color: #85cb6471;
    font-weight: bold;
    padding: 0 4px 4px;
}
span.validation-keys-correction {
    background-color: #85cb6471;
    font-weight: bold;
}

button {
    font-family: 'Cormorant Garamond', 'Cinzel', serif;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #05ce78;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:disabled {
    background-color: #31443c;
    transition: background-color 0.2s ease;
}


/* FINALE */
.letter, .letter-typewriter {
    margin: 20px auto;
    padding: 4px 20px;
    border: 2px solid #d7d5cc;
    background-color: #dbd6cd;
    color: #543420;
    font-family: "Love Light", serif;
    font-weight: 400;
    font-style: normal;
}

.letter p {
    font-size: 36px;
    margin: 24px 0px;
    line-height: 100%;
}

.signature {
    margin-top: 20px;
    font-style: italic;
}

.letter-typewriter {
    font-family: "Special Elite", serif;
}

.letter-typewriter p {
    font-size: 16px;
    margin: 24px 0px;
    line-height: 140%;
}

div.character {
    display: flex;
}

div.character img {
    max-width: 100%;
    display: block;
}


/* HINTS */
#hints-container {
    text-align: center;
    max-width: 720px;
    width: 100%;
    padding: 20px;
    margin: 100px 0;
    box-sizing: border-box;
    border: 2px solid #333;
    border-radius: 10px;
    background-color: #000;
}

table.hints {
    width: 100%;
    background: #ffffff;
    margin: 1em 0;
    border: 1px solid #eee;
    box-shadow: none;
    border-radius: .28571429rem;
    text-align: left;
    color: #000;
    border-collapse: separate;
    border-spacing: 0;
}

table.hints th, table.hints td {
    border: 1px solid #ddd;
    padding: 8px;
    margin: 0;
    font-size: 20px;
}

table.hints th {
    background-color: #d5d5d5;
    color: #194351;
}

table.hints tr:nth-child(even) {
    background-color: #dde7eb;
}


/* AUDIO */
#audio-container {
    text-align: center;
    max-width: 720px;
    width: 100%;
    padding: 20px;
    margin: 20px 0 0 0;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #000;
    display: block;
    clear: both;
}

#transcript-container {
    text-align: left;
    max-width: 720px;
    width: 100%;
    padding: 0px 20px;
    margin: 20px 0 0 0;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: #fff;
    color: #000;
    display: block;
    clear: both;
}