@font-face {
    font-family: maven;
    src: url(fonts/MavenPro-VariableFont_wght.ttf);
}

body {
    background-color: rgb(246, 246, 246);
    transition: background-color 0.3s ease, color 0.3s;
    color: #444;
    font-family: maven;
    position: relative;
    padding: 0;
    margin: 0;
}

html.theme-dark body {
    background-color: #222;
    color: rgb(246, 246, 246);
}

html.theme-dark a {
    color: rgb(246, 246, 246);
}

button,
input[type="submit"],
input[type="reset"] {
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    background: none;
    color: inherit;
    border: 1px solid #aaa;
    font: inherit;
    outline: inherit;
}

.header {
    font-size: 32px;
    padding: 10px 10px 0px 10px;
    animation: fadeIn 2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    padding: 20px;
    margin-bottom: 30px;
}

.header-home-link {
    color: inherit;
    text-decoration: none;
}

.header-home-link:hover {
    text-decoration: none;
}

#login-btn {
    display: block;
    padding: 5px 10px;
    font-size: 1rem;
    cursor: pointer;
    height: 32px;
}

#dark-mode {
    display: flex;
}

.light-mode-icon {
    width: 20px;
    padding: 5px;
    /* border: 1px solid lightgray;
    border-radius: 3px; */
    fill: orange;
    cursor: pointer;
}

.dark-mode-icon {
    width: 20px;
    padding: 5px;
    fill: #ccc;
    cursor: pointer;
}

.top-menu {
    display: flex;
    align-items: center;
    align-content: center;
    gap: 30px;
}

 .iframe-section {
    margin: 0 auto;
    width: 100%;
    max-width: 960px;
    text-align: left;
}

.iframe-section {
    opacity: 0;
    animation: fadeInUp 0.7s ease 0.2s forwards;
}

.iframe-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}

.iframe-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    min-height: 460px;
    overflow: hidden;
}

.iframe-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background-color: #fff;
}

.highscore-panel {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #d8d8d8;
    border-radius: 10px;
    background: #fff;
}

.highscore-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: #222;
}

#highscore-list {
    margin: 0;
    padding-left: 20px;
}

#highscore-list li {
    margin: 4px 0;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .top-menu {
        gap: 5px;
    }

    #login-btn {
        display: block;
        font-size: 12px;
        cursor: pointer;
    }

    .iframe-wrap {
        min-height: 460px;
        aspect-ratio: 4 / 3;
        border-radius: 0px;
    }

    .highscore-panel {
        border-radius: 0px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .iframe-section {
        animation: none;
        opacity: 1;
    }
}














.side-menu-icon {
    display: none;
    position: relative;
    border: 1px solid lightgray;
    width: 28px;
    font-size: 12px;
    line-height: 12px;
    background-color: #fff;
    border-color: lightgray;
    padding: 6px;
    margin-bottom: 10px;
    margin-top: 10px;
    text-align: center;
    cursor: pointer;
}

.side-menu-icon-closed {
    left: 0px;
}

.side-menu-icon-open {
    left: 310px;
}

.side-menu {
    position: absolute;
    /* overflow: hidden; */
    width: 320px;
    bottom: 0;
    /* top: 93px; */
    top: 58px;
    z-index: 100;
    background-color: rgb(246, 246, 246);
    border: 1px solid lightgray;
    height: 100%;
}

.side-menu-open {
    position: absolute;
    overflow: hidden;
    width: 100%;
    bottom: 0;
    top: 108px;
    z-index: 100;
    background-color: rgb(246, 246, 246);
    border: 1px solid lightgray;
    height: 100%;
}

.side-menu-closed {
    left: -310px;
}


.lock-side-menu-icon {
    position: fixed;
}

.unlock-side-menu-icon {
    position: relative;
}

.side-menu-group {
    padding: 20px 10px 10px 10px;
}

.side-menu-title {
    padding-bottom: 5px;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.side-menu-item {
    position: relative;
    border: 1px solid lightgray;
    border-radius: 3px;
    padding: 5px;
    cursor: pointer;
    margin-bottom: 3px;
}

.side-menu-item-title {
    max-width: 248px;
    /* border-right: 1px solid lightgray; */
}

.side-menu-item-icon {
    position: absolute;
    right: 0px;
    top: 0px;
    padding: 7px 5px 2.5px 5px;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
    fill: #ccc;
}

.side-menu-item-selected {
    /* background-color: white; */
    color: white;
    fill: orange;
}


.section {
    padding: 10px;
    margin-left: 320px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 4px;
    row-gap: 4px;
}

.section-header {
    padding: 20px 0 10px 0;
}

.project {
    display: none;
}

.card {
    z-index: 50;
    position: relative;
    background-color: white;
    border: 1px solid lightgray;
    padding: 10px 10px 20px 10px;
    width: 300px;
    display: inline-block;
    vertical-align: top;
    min-height: 321px;
    animation: fadeIn 1s;
    align-self: flex-start;
}

.card-row-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.card-row-item {
    font-size: 14px;
    padding: 2px 0;
}

.card-row-item-network {
    position: absolute;
    right: 100px;
    font-size: 10px;
    text-transform: uppercase;
    padding: 2px 0;
}

.card-row-image {
    width: 14px;
    height: 14px;
}

.card-row-item-details {
    font-size: 10px;
}

.card-header {
    /* padding-bottom: 10px; */
}

.card-title {
    padding: 10px 0 0px 0;
    /* text-transform: uppercase; */
    font-size: 16px;
    font-weight: bold;
    /* text-decoration: underline; */
}

.card-sub-title {
    padding-top: 20px;
    text-transform: uppercase;
    color: #888;
}

.card-sub-title-main-value {
    font-size: 28px;
}

.card-sub-title-value {
    font-size: 20px;
    /* font-weight: bold; */
    /* padding-bottom: 20px; */
}

.card-sub-title-value-prefix {
    font-size: 16px;
}

.card-sub-details {
    font-size: 14px;
}

.card-input {
    width: 270px;
    margin-bottom: 20px;
    /* height: 20px; */
}

.bottom {
    padding: 10px;
    margin-left: 320px;
}

.sub-title {
    font-size: 20px;
    font-weight: bold;
    padding-top: 20px;
}

.qr-code {
    padding-top: 10px;
    width: 100px;
}


/*  mobile view */
@media only screen and (max-width: 680px) {
    .header {
        font-size: 24px;
    }

    .side-menu-icon {
        display: block;
    }

    .side-menu {
        display: none;
    }

    .side-menu-open {
        top: 148px;
    }

    .section {
        padding: 10px;
        margin-left: 0px;
    }

    .card {
        min-height: 0;
    }

    .bottom {
        padding: 10px;
        margin-left: 0px;
    }
}

/* utils */

.show {
    display: inline-block;
}

.hide {
    display: none;
}



a {
    color: #444
}

.landing-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    opacity: 0;
    animation: fadeInUp 0.7s ease 0.2s forwards;
}

.landing-hero {
    text-align: left;
    padding: 10px 0 20px;
    opacity: 0;
    animation: fadeInUp 0.6s ease 0.35s forwards;
}

.landing-title {
    margin: 0;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    line-height: 1.1;
}

.landing-subtitle {
    margin: 10px 0 0;
    font-size: 1rem;
    color: #666;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.collection-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid lightgray;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeInUp 0.55s ease forwards;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:nth-child(1) {
    animation-delay: 0.5s;
}

.collection-card:nth-child(2) {
    animation-delay: 0.62s;
}

.collection-card:nth-child(3) {
    animation-delay: 0.74s;
}

.collection-card:nth-child(n+4) {
    animation-delay: 0.86s;
}

.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.collection-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.collection-card-content {
    padding: 12px;
}

.collection-card-title {
    margin: 0;
    font-size: 1.1rem;
}

html.theme-dark .collection-card-title {
    color: #111;
}

.collection-card-text {
    margin: 8px 0 0;
    font-size: 0.92rem;
    color: #666;
}

.collection-card-meta {
    margin: 12px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.collection-card-meta-row {
    display: flex;
    gap: 6px;
    font-size: 0.82rem;
}

.collection-card-meta-row dt {
    color: #999;
    flex-shrink: 0;
    min-width: 56px;
}

.collection-card-meta-row dd {
    margin: 0;
    color: #555;
    word-break: break-all;
}

.collection-card-meta-address {
    font-family: monospace;
    font-size: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
    .landing-main,
    .landing-hero,
    .collection-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}