@font-face {
    font-family: "Archivo";
    src: url("fonts/Archivo-Regular.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Archivo";
    src: url("fonts/Archivo-Italic.woff2") format("woff2");
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "Archivo";
    src: url("fonts/Archivo-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Archivo";
    src: url("fonts/Archivo-MediumItalic.woff2") format("woff2");
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: "Archivo";
    src: url("fonts/Archivo-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Archivo";
    src: url("fonts/Archivo-SemiBoldItalic.woff2") format("woff2");
    font-weight: 600;
    font-style: italic;
}

@font-face {
    font-family: "Archivo";
    src: url("fonts/Archivo_Expanded-Bold.woff2") format("woff2");
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: "Archivo";
    src: url("fonts/Archivo-ExtraLight.woff2") format("woff2");
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: "Archivo";
    src: url("fonts/Archivo-ExtraLightItalic.woff2") format("woff2");
    font-weight: 200;
    font-style: italic;
}

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

.shuffle-btn {
    position: fixed;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.25rem;
    border: none;
    border-radius: 0.75rem;
    background-color: var(--darker-bg-color, #333);
    color: #f8f0e6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shuffle-btn img {
    display: block;
    filter: brightness(0) invert(1);
}

strong, b {
    font-weight: 600;
}

.page-footer {
    position: fixed;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    padding: 0 1rem;
    pointer-events: none;
}

.copyright {
    font-family: "Archivo", sans-serif;
    font-weight: 200;
    font-size: 0.75rem;
    color: var(--darker-bg-color, #333);
    margin: 0;
    text-align: center;
}

.sticker-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sticker {
    position: absolute;
    height: auto;
    object-fit: contain;
}

.shuffle-btn {
    z-index: 1;
}

.main {
    position: relative;
    z-index: 1;
}

.page-footer {
    z-index: 1;
}

body {
    font-family: "Archivo", sans-serif;
    min-height: 100vh;
    min-height: 100dvh; /* visible viewport on mobile (avoids address-bar offset) */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #000;
}

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    max-width: 100%;
}

.page-content {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.45s ease;
    width: 100%;
    max-width: calc(30rem + 2rem);
}

.page-content.is-open {
    max-height: 80vh;
}

.content-panel {
    display: none;
    padding:0;
}

.content-panel.active {
    display: block;
}

.content-inner {
    background-color: #f8f0e6;
    padding: 1.25rem 1.5rem;
    font-family: "Archivo", sans-serif;
    color: var(--logo-color, #333);
}

.content-inner h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    text-transform: uppercase;
    text-align: center;
}

.content-inner p {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

#section-about .content-inner p {
    text-align: justify;
    text-align-last: center;
}

.contact-email {
    text-align: center;
    font-weight: bold;
    font-style: normal;
}

.content-inner a {
    color: var(--draw-color, inherit);
    text-decoration: none;
}

.content-inner a:hover {
    color: var(--draw-color, inherit);
    text-decoration: underline;
    filter: invert(1);
}

nav {
    width: 100%;
    max-width: calc(30rem + 2rem);
    overflow: hidden;
    max-height: 10rem;
    transition: max-height 0.45s ease;
}

nav.nav--hidden {
    max-height: 0;
    pointer-events: none;
}

nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
}

nav ul li {
    flex: 1;
    font-family: "Archivo", sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    background-color: #f8f0e6;
    padding: 0.25rem 0.5rem 0.2rem;
}

nav a {
    display: block;
    text-align: center;
    color: var(--logo-color, inherit);
    text-decoration: none;
}

.logo-box {
    position: relative;
    background-color: #f8f0e6;
    padding: 1rem 1rem 0.85rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-draw-area {
    position: relative;
    display: inline-block;
}

.logo-flash {
    position: absolute;
    left: 53%;
    top: -0.0625rem;
    height: 94%;
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 1;
}

.logo-flash--delayed {
    opacity: 0;
}

.logo-flash.logo-flash--done {
    opacity: 0;
    pointer-events: none;
}

.logo-flash-mask {
    height: 100%;
    width: 100%;
    max-width: 100%;
    background-color: var(--draw-color, currentColor);
    mask-image: url("images/Media-MFM-Vector.svg");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-image: url("images/Media-MFM-Vector.svg");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.logo-svg {
    display: block;
    height: auto;
    width: 30rem;
    max-width: 100%;
}

#draw-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: url('images/pencil-cursor.svg') 8 8, crosshair;
    pointer-events: auto;
}

/* Mobile: custom pencil that follows touch (cursor CSS is ignored on touch) */
.touch-pencil-cursor {
    position: fixed;
    width: 96px;
    height: 96px;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.15s ease;
    background: url('images/pencil-cursor.svg') 0 0 / 96px 96px no-repeat;
}
.touch-pencil-cursor.is-visible {
    opacity: 1;
}