﻿.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
}

.tad-logo {
    height: 80px;
}

.subtitle {
    color: #666;
    margin-bottom: 24px;
}

.toolbar {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 14px;
}

.million-grid {
    position: relative;
    width: 1000px;
    height: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #000;
    user-select: none;
}

.purchasedpixels-original {
    position: absolute;
    left: 0;
    top: 0;
    width: 1000px;
    height: 1000px;
    z-index: 1;
}

.purchasedpixels-mystery {
    position: absolute;
    left: 0;
    top: 0;
    width: 1000px;
    height: 1000px;
    z-index: 2;
}

.grid-tile {
    position: absolute;
    z-index: 3;
    display: block;
    pointer-events: none;
}

/* Sponsor clickable areas */
.pixel-link {
    position: absolute;
    z-index: 4;
    display: block;
    background: rgba(255, 255, 255, 0);
}

    .pixel-link:hover {
        outline: 2px solid rgba(255, 193, 7, 0.9);
        background: rgba(255, 193, 7, 0.15);
    }

.selection-box {
    position: absolute;
    z-index: 8;
    display: none;
    border: 2px solid #0d6efd;
    background: rgba(13, 110, 253, 0.25);
    pointer-events: none;
}

.selection-surface {
    position: absolute;
    left: 0;
    top: 0;
    width: 1000px;
    height: 1000px;
    z-index: 9;
    cursor: crosshair;
    background: transparent;
    pointer-events: none;
}

.selection-surface:hover {
    background: rgba(255, 255, 255, 0.02);
}

.purchase-block-link {
    position: absolute;
    display: block;
    overflow: hidden;
    z-index: 5;
}

.purchase-block-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.purchase-block-link:hover {
    outline: 2px solid #fff;
}


/**************Advertisement Styles*********************/
.advertisement-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
    /*background-color: #f4f4f4;*/
    padding-bottom: 20px;
}

.advertisement-banner__link {
    position: relative;
    display: block;
    width: 100%;
    text-decoration: none;
}

.advertisement-banner picture {
    display: block;
    width: 100%;
}

.advertisement-banner__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
}

.advertisement-banner__button {
    position: absolute;
    /*right: 32px;
    top: 50%;*/
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    color: #fff;
    background-color: #111;
    border-radius: 4px;
    font-weight: 600;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
}
/*.advertisement-banner__button {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
}*/

@media (max-width: 768px) {
    .advertisement-banner__image {
        max-height: 140px;
    }

    .advertisement-banner__button {
        right: 16px;
        padding: 8px 14px;
        font-size: 0.875rem;
    }
}

/*********Visit Artworks Styles************/
.visit-artworks-page {
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 35%), #f6f6f6;
    padding-bottom: 60px;
}

.advertisement-section {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 35px;
    padding: 14px 20px 0;
    text-align: center;
}

.advertisement-link {
    display: block;
}

.advertisement-image {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.advertisement-label {
    margin-top: 6px;
    color: #777;
    font-size: 0.72rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.visit-artworks-container {
    width: calc(100% - 40px);
    max-width: 1000px;
    margin: 0 auto;
}

.external-site-notice {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding: 25px;
    color: #4e3b00;
    background: #fff8dc;
    border: 1px solid #e7ca66;
    border-left: 6px solid #d4af37;
    border-radius: 10px;
}

.notice-icon {
    flex: 0 0 auto;
    font-size: 2rem;
    line-height: 1;
}

.notice-content h1 {
    margin: 0 0 12px;
    color: #2b2b2b;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.notice-content p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.destination-box {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding: 9px 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
}

.destination-label {
    font-weight: 600;
}

.destination-host {
    overflow-wrap: anywhere;
    font-family: monospace;
}

.artwork-preview {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 35px;
    align-items: center;
    padding: 35px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

/*.artwork-image-wrapper {
    background: #efefef;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}*/

/*.artwork-image {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: contain;
}*/

.artwork-image-wrapper {
    background: #efefef;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-height: 280px;
    max-width: 280px;
}

.artwork-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.artwork-label {
    margin-bottom: 8px;
    color: #9b7b18;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.09rem;
    text-transform: uppercase;
}

.artwork-information h2 {
    margin: 0 0 8px;
    color: #242424;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.artist-name {
    margin-bottom: 22px;
    color: #686868;
    font-size: 1.05rem;
}

.redirect-message {
    color: #555;
    line-height: 1.65;
}

.continue-form {
    margin: 28px 0 18px;
}

.btn-continue {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 13px 22px;
    color: #fff;
    background: #101010;
    border: 2px solid #101010;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .btn-continue:hover,
    .btn-continue:focus {
        color: #111;
        background: #d4af37;
        border-color: #d4af37;
        transform: translateY(-1px);
    }

.return-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #555;
    text-decoration: none;
}

    .return-link:hover {
        color: #9b7b18;
        text-decoration: underline;
    }

.security-reminder {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    padding: 15px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

    .security-reminder p {
        margin: 0;
    }

@media (max-width: 768px) {
    .artwork-preview {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .external-site-notice {
        flex-direction: column;
    }

    .advertisement-section,
    .visit-artworks-container {
        width: calc(100% - 24px);
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .artwork-preview {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .external-site-notice {
        flex-direction: column;
    }

    .advertisement-section,
    .visit-artworks-container {
        width: calc(100% - 24px);
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .artwork-preview {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .external-site-notice {
        flex-direction: column;
    }

    .advertisement-section,
    .visit-artworks-container {
        width: calc(100% - 24px);
        padding-left: 0;
        padding-right: 0;
    }
}

