/**
 * SJI Interactive - Common Css
 */


/**
 * Cards
 * -----------------------------------------------------------------------------
 */

.sji__card {
    width: 234px;
    height: auto;
    aspect-ratio: 234 / 390;
    position: relative;
    transform-style: preserve-3d;
}

.sji__card--front,
.sji__card--back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    backface-visibility: hidden;
    background-size: 100%;
    background-repeat: no-repeat;
}

.sji__card--front {
    background-image: url('../images/cards_front/SJ_card_front_300px.png'); 
}

.sji__card--back {
    background-image: var(--sji-background-url, url('../images/cards_back/SJ_FullDeck_Card_J_300px.png')); 
    transform: rotateY(180deg);
}


/**
 * Controls
 * -----------------------------------------------------------------------------
 */

.sji__controls {
    display: flex;
    gap: 30px;
    margin: 60px 0;
}

.sji__controls button {
    font-family: Montserrat, "Open Sans", sans-serif;
    padding: 13px 50px 13px 50px;
    min-width: 300px;
}

.sji__controls button:not(:disabled) {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.sji__controls #sji-deck-action {
    background: #412765;
    color: #fff;
}

.sji__controls #sji-save-action {
    background: rgb(171, 136, 0);
    color: #fff;
}

.sji__btn--disabled {
    cursor: not-allowed;
    background: #888 !important;
    color: #eee !important;
}

.sji__btn--link {
    padding: 13px 20px 13px 20px;
    color: teal !important;
}


/**
 * Misc
 * -----------------------------------------------------------------------------
 */

body div.wpuf-success {
    padding: 20px 50px;
    font-size: 1.25rem;
    font-weight: bold;
}

#sji-draw-canvas {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.jquery-modal {
    z-index: 9999 !important;
}

/* Modal state */

.sji__modal--success :is(label, button, p){
    display: none;
}
.sji__modal--success #sji-cancel-modal-action {
    float: right;
}
.sji__modal--error {

}


/* Modal messages */

.sji__modal--message {
    font-weight: bold;
    transition: all 1s ease;
    padding: 20px 0;
}
.sji__modal--message:empty {
    display: none;
}

.sji__message--success {
    color: #4CAF50;
}
.sji__message--error {
    color: #F44336;
}