@font-face{font-family:"GTAArtDeco";src:url("fonts/GTAArtDeco-Regular.ttf") format("truetype");font-weight:100 450;font-display:block}
@font-face{font-family:"GTAArtDeco";src:url("fonts/GTAArtDeco-Medium.ttf") format("truetype");font-weight:451 950;font-display:block}


* {
    box-sizing: border-box;
    user-select: none;
}

:root {
    font-size: min(.83333333vw, 1.8009478673vh);
    transition: font-size .15s linear;
}

body {
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
    font-family: "GTAArtDeco", Arial, sans-serif;
    letter-spacing: -0.015em;
}

.photo-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(60% 50% at 50% 0%, rgba(255, 223, 128, 0.10), rgba(244, 113, 124, 0.05) 50%, transparent 100%), rgba(7, 7, 15, 0.72);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}

@keyframes slide-up {
    0% {
        opacity: 0.1;
        transform: translateY(100%);
    }
    100% {
        opacity: 1.0;
        transform: translateY(0);
    }
}

.photo-in {
    animation: slide-up .5s ease-in-out;
}

.photo-out {
    animation: slide-up .5s reverse ease-in-out;
}

.photo-wrapper img {
    border-radius: 12px;
    object-fit: cover;
    max-width: 86vw; max-height: 72vh;
    box-shadow: 0 40px 90px rgba(7, 7, 15, 0.6), 0 0 0 1px rgba(229, 221, 255, 0.14);
}

/* ---------- Vice photo viewer chrome ---------- */
.vice-photo-head {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding-top: 1rem; pointer-events: none; text-align: center;
}
.vice-photo-head::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 64px; height: 3px; border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, #ffdf80 0%, #f4717c 50%, #e963c7 100%);
}
.vice-photo-eyebrow { font: 500 .75rem/1.2 "GTAArtDeco", Arial, sans-serif; letter-spacing: .15em; text-transform: uppercase; color: #ffb2c6; }
.vice-photo-title { font: 500 2.4rem/.92 "GTAArtDeco", Arial, sans-serif; text-transform: uppercase; color: #fff9cb; letter-spacing: 0; }
.vice-photo-sub { font: 400 .95rem/1.4 "GTAArtDeco", Arial, sans-serif; color: #e5ddff; opacity: .9; }
.vice-photo-keys {
    display: flex; gap: .75rem; align-items: center; pointer-events: none;
    font: 500 .8rem/1 "GTAArtDeco", Arial, sans-serif; color: #ccc2f5;
}
.vice-photo-keys span { display: inline-flex; align-items: center; gap: .45rem; }
.vice-photo-keys kbd {
    display: inline-flex; align-items: center; justify-content: center; min-width: 1.7rem; height: 1.7rem; padding: 0 .55rem;
    border-radius: 1000px; background: #fff9cb; color: #0f0c1a; font: 500 .75rem/1 "GTAArtDeco", Arial, sans-serif;
}

.document-main-wrapper {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    display: none; justify-content: center; align-items: flex-start; gap: 1rem;
    height: 55rem;
    perspective: 25rem;
    transform-style: preserve-3d;
}

.document-tooltip-wrapper {
    position: relative;
    height: fit-content;
    width: 2.5rem;
    background-color: #f3f2f2;
    border-radius: .25rem;
    display: flex; flex-direction: column; align-items: center;
    padding: .5rem; gap: .5rem;
    box-shadow: 0 0 1rem 0 #14141415;
}

.document-tooltip-btn {
    width: 1.75rem; height: 1.75rem;
    border-radius: .25rem;
    display: flex; align-items: center; justify-content: center;
    background-color: rgb(230, 230, 230); border: .0625rem solid #8585856e;
    font-size: .75rem; cursor: pointer; transition: background-color .15s linear;
}

.document-tooltip-btn i {pointer-events: none;}

.document-tooltip-btn:hover {
    background-color: #cbcbcb;
}

.document-template-wrapper {
    position: relative;
    background-color: #f3f2f2;
    width: 45rem;
    height: 100%;
    border-radius: .5rem;
    border: .0625rem solid #858585fc;
    color: #000;
    transform-style: preserve-3d;
    box-shadow: 0 0 1rem 0 #14141419;
}

.open-document {
    animation: open-document 1.5s ease-in-out;
}

.close-document {
    animation: close-document 1.5s ease-in-out;
}

@keyframes open-document {
    0% {
        transform: rotateX(30deg) scale(0.8) translateY(75%);
        opacity: 0.75;
    }
    100% {
        transform: rotateX(0) scale(1.0); opacity: 1.0;
    }
}

@keyframes close-document {
    0% {
        transform: rotateX(0) scale(1.0);
    }
    100% {
        transform: rotateX(30deg) scale(0.8) translateY(75%); opacity: 0.0;
    }
}

.document-header {
    width: 100%;
    padding: 2rem 1.5rem 1.25rem 1.5rem;
}

.document-header #document-header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0);
    border: none; outline: none; text-align: center;
    font-family: "GTAArtDeco", Arial, sans-serif;
    font-size: 1.5rem;
}

.document-footer {
    position: absolute; bottom: 0;
    display: flex; align-items: center;
    width: 100%; padding: 2.5rem; gap: 1rem;
}

.document-footer-info {
    display: flex; flex-direction: column; gap: .25rem;
    width: 100%; font-size: .75rem;
    font-family: "GTAArtDeco", Arial, sans-serif; color: rgb(156, 156, 156);
}

.document-footer img {
    width: 10rem;
}

.document-info-wrapper {
    display: flex; flex-direction: column; align-items: center; margin-top:0;
    padding: 1.25rem; padding-top: .75rem;
}

.citizen-mention {
    background-color: #424242;
    padding: .25rem .5rem; border-radius: .25rem;
    font-size: .75rem; font-weight: 800;
}

.document-info-wrapper p, .document-info-wrapper #document-textarea {
    background-color: rgb(222, 222, 222);
    padding: 1rem; border-radius: .25rem;
    border: .0625rem solid #cbcbcb;
    font-family: "GTAArtDeco", Arial, sans-serif;
    font-size: .85rem; letter-spacing: .01rem; word-spacing: .1rem; line-height: 1.5rem;
    font-weight: 400;
    width: 100%;
    height: 100%;
    /* box-shadow: inset 0 0 .25rem .1rem #d1d1d1; */
}

#document-textarea:invalid {
    border: none;
}

#document-textarea *:invalid {
    border: none;
}

.document-info-wrapper p {
    padding-bottom: 0;
}

.document-info-wrapper #document-textarea {
    margin-top: .75rem; outline: none;
    resize: none;
}

.document-info-header {
    background-color: #222222;
    width: 100%;
    padding: .5rem; color: #fff;
    text-align: center;
    border-radius: .5rem;
    font-family: "GTAArtDeco", Arial, sans-serif;
    font-weight: 550;
}

.document-info-header i {
    margin-right: .25rem;
    font-size: .95rem;
}

.document-signs-wrapper {
    display: flex; align-items: center; width: 100%;
    gap: 1rem; padding: 1.25rem; padding-top: 0;
}

.document-sign-wrapper {
    display: flex; flex-direction: column; width: 100%;
    align-items: center;
    padding: .75rem;
    background-color: #cbcbcb;
    width: 100%; border-radius: .5rem;
    border: .0625rem solid #8585857c;
}

.document-sign-content input {
    appearance: none; border: none; outline: none; background-color: rgba(255, 255, 255, 0);
    font-size: .8rem; font-weight: 550; 
}

.document-sign-header {
    background-color: #222222; color: #fff;
    font-family: "GTAArtDeco", Arial, sans-serif; font-weight: 550;
    padding: .5rem; width: 100%; border-radius: .5rem;
    text-align: center; font-size: .9rem;
}

.document-sign-header i {
    margin-right: .25rem;
}

.document-sign-content {
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: flex-start;
    width: 100%; margin-top: .5rem; font-family: "GTAArtDeco", Arial, sans-serif;
}

.document-sign-content > span:nth-child(3) {
    margin-top: .5rem;
}

.document-sign-content > span:nth-child(2) {
    margin-top: .25rem;
}

.document-sign-spot {
    position: relative;
    width: 100%;
    height: 5rem; background-color: rgb(166, 166, 166); margin-top: .5rem;
    border-radius: .25rem;
}

.document-sign-content > span {
    font-size: .85rem; font-weight: 600; word-spacing: .15rem;
}

.document-sign-content > span > font {
    color: rgb(0, 0, 0); font-weight: 450; 
}

.document-sign-spot > span {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    opacity: .25; letter-spacing: .25rem; width: 100%;
    text-align: center;
    pointer-events: none;
}

.document-sign-spot img {
    position: absolute;
    width: 100%; height: 100%;
}

.document-sign-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

.color-palette {
    position: absolute;
    display: none; grid-template-columns: repeat(4, 1fr);
    gap: 0.25rem;
    padding: .5rem;
    background-color: #f6f6f6;
    border-radius: .25rem;
    border: .0625rem solid #8585856e;
    bottom: 0;
    left: 3rem;
}

.color-swatch {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: .25rem;
    cursor: pointer;
    transition: transform .15s linear, box-shadow .15s linear;
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 .25rem rgba(0, 0, 0, 0.3);
}
/* Vice: the printed photo scales with the screen (inline px sizes come from the print) */
.photo-wrapper img { height: 62vh !important; width: auto !important; max-width: 86vw; }
/* live demo: portrait windows show the whole print */
@media (max-aspect-ratio: 1/1) { .photo-wrapper img { width: 88vw !important; height: auto !important; max-height: 62vh; } }
