@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-200-normal.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-300-normal.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 300;
    
    background:
    radial-gradient(ellipse 100% 100% at left top, #003f7fbf 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at center top, #0000ff3f 0%, transparent 40%),
    radial-gradient(ellipse 100% 100% at bottom left, #0000ff2f 0%, transparent 30%),
    radial-gradient(ellipse 100% 200% at bottom right, #0000ff3f 0%, transparent 50%),
    linear-gradient(180deg, #4f4f4f, #1f1f1f);
    /*
     Avoiding repeating gradients: */
    min-height: 100vh;
    
    /* Should improve text rendering -- don't see a big difference yet: */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Top navigation */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: auto;
    background: #dfdfdf;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    
    /* Don't see a difference:
     border-bottom: 1px solid rgba(255,255,255,0.08);
     backdrop-filter: blur(10px);*/
}

.logo {
    display: flex;
    align-items: center;
    /*    clamp(15rem, 40vw, 25rem);*/
    text-decoration: none;
}

.logo img {
    display: block;
    height: 5rem;
    width: auto;
}

/* Hide checkbox */
#menu-toggle {
    display: none;
}

.burger {
    width: 2rem;
    height: 24px;
    margin: auto 24px auto 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: #181818;
    border-radius: 1px;
    transition: 0.25s ease;
}

.burger:hover span {
    background: #9f0000;
}

/* Dropdown menu */
.dropdown {
    position: absolute;
    top: 100%;
    right: 24px;
    width: 230px;
    background: white;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.25s ease;
}

#menu-toggle:checked ~ .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown ul {
    list-style: none;
}

.dropdown > ul > li {
    border-bottom: 1px solid #e5e7eb;
}

.dropdown > ul > li:last-child {
    border-bottom: none;
}

.menu-heading {
    display: block;
    padding: 14px 16px;
    /*    font-weight: bold;*/
    background: #f9fafb;
    color: #111827;
}

.dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #374151;
    transition: 0.2s ease;
}

.dropdown a:hover {
    background: #e0f2fe;
    color: #0369a1;
}

.submenu a {
    padding-left: 32px;
    font-size: 0.95rem;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0px auto;
}

.page {
    display: none;
    padding: 32px;
    scroll-margin-top: 10rem;
    font-size: 1.05rem;
    line-height: 1.5;
    color: #ffffff;
}

.page > * + * { margin-top: 2rem; }

.product-header {
    display: flex;
    align-items: flex-start;
    gap: 1em;
}

.product-header h1 {
    /*    color: #d2134b;*/
    color: #f2336b;
    font-size: 2.8rem;
    font-weight: 600;
    line-height: 1;
    /*    white-space: nowrap; /* keep on one line */*/
    flex: 0 0 40%;   /* only as wide as its content */
    text-align: right;
}

.product-header p {
    color: #bfffff;
    font-size: 1.4rem;
    font-weight: 200;
    line-height: 1.2;
    flex: 1 1 auto; /* take remaining width */
    min-width: 0;   /* IMPORTANT for wrapping inside flex */
    max-width: 20rem;
    margin-top: 1.5rem; /* For offset with respect to h1 ... */
}

.RowOrCol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;   /* horizontal centering */
    align-items: flex-start;   /* top align children */
    gap: 2rem 10vw;
    overflow: visible; /* Preventing clipping of shadows. */
}

.RowOrCol > figure.image {
    margin: 0;
}

.layout-row {
    display: inline-flex;
    align-items: flex-start; /* top-align both elements */
    gap: 1rem;
    overflow: visible; /* Preventing clipping of shadows. */
    padding: 1rem;
    /*    border-radius: 0.5rem;*/
    background: rgba(0, 0, 0, 0.2);
}

figure.image img {
    display: block;
    height: auto;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow:
    0 2px 8px rgba(0,0,0,0.25),
    0 12px 32px rgba(0,0,0,0.35),
    0 24px 80px rgba(0,0,0,0.45);
}

figure.image.image-smaller img {
    max-height: min(12rem, 40vw);
}

figure.image.image-large img {
    max-height: 55vh;
    max-width: 40vw;
}

figure.zoomable { cursor: pointer; }

/* Only apply hover effects on real hover devices */
@media (hover: hover) and (pointer: fine) {
    figure.zoomable img {
        transition: transform 0.2s ease;
    }
    
    figure.zoomable:hover img {
        transform: scale(1.02);
    }
}

#overlay {
    display: none;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: rgba(0,0,0,0.9);
    /* IMPORTANT */
    overflow: auto;
}

#overlay.active {
    display: flex;
}

#overlay img {
    max-width: 90%;
    max-height: 90%;
}

.audioPlayer-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /*    padding: 1rem;*/
    /*    border: 1px solid #7f7f7f;*/
}

.button-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.icon-btn {
    height: 2rem;
    padding: 0 0.5rem;
    width: fit-content;
    
    background: transparent;
    border: 1px solid #7f7f7f;
    border-radius: 0.5rem;
    
    color: #ffffff;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-size: 1rem;
    font-weight: 200;
    cursor: pointer;
}

.icon-btn svg { display: block; width: 1.25rem; height: 1.25rem; }

.icon-btn svg path { fill: none; stroke-width: .002rem; stroke: white; }

@media (hover: hover) and (pointer: fine) {
    .icon-btn:hover {
        background: #0000003f;
    }
}

.icon-btn:active {
    transform: scale(0.95);
}

#playlist {
    list-style: none;
    font-size: 0.9rem;
    font-weight: 200;
    padding: 0;
}

#playlist li {
    padding: 0.5rem;
    cursor: pointer;
}

#playlist li.active {
    background: #0000003f;
}

#timeline {
    height: 6px;
    background: #7f7f7f7f;
    cursor: pointer;
    position: relative;
}

#progress {
    height: 100%;
    width: 0%;
    background: #ffffff7f;
}

.appstore-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 0.8rem;
    gap: 1rem;
}

.app-icon {
    display: inline-block;
    border-radius: 22%;
    
    /* glow */
    box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 10px rgba(255,255,255,0.06),
    0 0 24px rgba(120,170,255,0.25),
    0 6px 18px rgba(0,0,0,0.35);
    
    transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* resize Apple embed */
.app-icon a {
    width: 2.5rem !important;
    height: 2.5rem !important;
}

/* optional hover polish */
.app-icon:hover {
    transform: translateY(-1px);
    
    box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 0 14px rgba(255,255,255,0.10),
    0 0 32px rgba(120,170,255,0.3),
    0 10px 28px rgba(0,0,0,0.42);
}

.app-store-badge {
    height: 2.5rem;
}

/*    .image img {*/
/*        max-width: min(40rem, 40%);*/
/*        height: auto;*/
/*    }*/

/* Default main page */
#main-page {
    display: block;
}

/* Show selected content using :target */
.page:target {
    display: block;
}

/* Hide default main page when another section is targeted */
body:has(.page:target) #main-page {
    display: none;
}

body:has(#main-page:target) #main-page {
    display: block;
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .dropdown {
        right: 16px;
        width: calc(100% - 32px);
    }
}

html, body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh; /* Don't know why I need this again here. */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.page.active {
    display: block;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    
    padding: 1rem 2rem;
    background: #dfdfdf
}

.footer-links {
    display: flex;
    gap: 0.75rem;
}

.footer-links a {
    display: inline-block;
    padding: 0.4rem 0.6rem;
    
    color: inherit;
    text-decoration: none;
    border-radius: 0.4rem;
}

.footer-links a:active {
    background: #2f2f2f;
}

.footer-links a:focus-visible {
    outline: 2px solid #2f2f2f;
    outline-offset: 3px;
}

.copyright {
    font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
    .footer-links a:hover {
        text-decoration: underline;
    }
}

/*    @media (max-width: 600px) {*/
/*        .site-footer {*/
/*            flex-direction: column;*/
/*            align-items: flex-start;*/
/*        }*/
/*    }*/
