@font-face {
    font-family: 'jost';
    src: url('https://www.illogicalendeavors.com/gecko/infographic/jost.ttf') format('opentype');
}

@font-face {
    font-family: 'rmi';
    src: url('https://www.illogicalendeavors.com/gecko/passport/assets/RennieMackintoshITC-Bold.otf') format('opentype');
}

#divPassport {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 1em;
}

#divPassportGecko {
    display: flex;
    width: 100%;
    max-width: 560px;
    justify-content: center;
    position: relative;
    align-self: center;
    aspect-ratio: 560 / 880;
}

#passportMainContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

#passportMainImage {
    position: absolute;
    width: 100%;
    height: 80%;
    top: 10%;
    object-fit: contain;
    z-index: 10;
}

.passportFactionBar {
    position: absolute;
    bottom: 15.5%;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    z-index: 20;
}

.passportGeckoGrid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.passportGeckoContainer {
    position: absolute;
    width: 22.6%;
    aspect-ratio: 1 / 1;
}

.passportGeckoImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#passportUserID {
    position: absolute;
    z-index: 11;
    top: 48.4%;
    left: 55.4%;
    width: 37.5%;
    font-size: clamp(1rem, 5vw, 2.5rem);
    text-align: center;
    font-family: 'rmi';
    color: white;
}

.gecko1 {
    top: 37.4%;
    left: 6.9%;
}

.gecko2 {
    top: 37.4%;
    left: 32.8%;
}

.gecko3 {
    top: 53.3%;
    left: 6.9%;
}

.gecko4 {
    top: 53.3%;
    left: 32.8%;
}

.passportFactionLogo {
    width: 11%;
    height: auto;
    opacity: 0.3;
}

.passportStatus {
    display: flex;
    flex-direction: row;
    position: absolute;
    z-index: 20;
    bottom: 34%;
    right: 18%;
    width: 25%;
}

.statusStamp {
    width: 100%;
    height: auto;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.statusStamp.visible {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#passportFactionSet,
#passportImmortalFactionSet {
    transform: rotate(-32deg);
    position: relative;
    right: 8px;
    bottom: 20px;
}

#passportMatchingSet {
    transform: rotate(-8deg);
    right: 70px;
    position: relative;
    top: 20px;
}

#passportSetInfo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1em;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

#passportSetInfo.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.passportSetInfo-content {
    background: rgba(10, 25, 40, 0.9);
    border: 1px solid #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
    padding: 2em;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5em;
    width: 100%;
    max-width: 500px;
    color: white;
}

.passportSetItems {
    display: flex;
    flex-direction: row;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: center;
}

.passportSetID {
    display: flex;
    align-items: center;
    gap: 1em;
    width: 100%;
    justify-content: center;
}

.passportButton {
    z-index: 1002;
    background: rgba(0, 0, 0, 0.8);
    color: #0ff;
    border: 1px solid #0ff;
    padding: 10px 20px;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.passportButton:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.passportControls {
    position: absolute;
    bottom: 5%;
    width: 100%;
    text-align: center;
    z-index: 20;
}

.passportControls .passportButton {
    font-size: 1.5rem;
}

.passportNumberInput,
.passportTextInput {
    background-color: rgba(0, 0, 0, 0.7);
    color: #0ff;
    border: 1px solid #0ff;
    padding: 10px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1rem;
    text-align: center;
    outline: none;
    flex-grow: 1;
    max-width: 120px;
}

.passportText {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    color: #0ff;
    padding: 10px;
    text-transform: uppercase;
}

.passportGetGecko {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5em;
}

@media screen and (max-width: 600px) {
    .passportControls .passportButton {
        font-size: 1.2rem;
    }

    .passportStatus {
        flex-direction: row;
        width: 40%;
        bottom: 22%;
    }
}

@media screen and (max-width: 479px) {
    .passportSetInfo-content {
        padding: 1em;
        gap: 1em;
    }

    .passportSetItems {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .passportGetGecko {
        flex-direction: column;
        width: 100%;
    }

    .passportNumberInput,
    .passportTextInput,
    .passportButton {
        width: 100%;
        box-sizing: border-box;
    }

    .passportText {
        margin-top: 5px;
    }
}

/* Color picker styles */
.defaultColorPicker {
    height: 50px;
}

.pickr .pcr-button {
    height: 50px !important;
    width: 50px !important;
    border-width: 1px;
    border-style: solid;
    border-color: white;
    border-image: initial;
    padding: 1px 2px;
}

.pcr-picker {
    width: 40px !important;
    height: 40px !important;
}

.pcr-selection {
    padding: 15px;
}

.pcr-color-chooser {
    margin-left: 1.75em !important;
}

.pcr-color-opacity {
    margin-left: 2.75em !important;
    margin-right: 1.25em !important;
}