:root {
    --card-height: 350px;
    --card-text-padding: 10px 15px;

    font-family: 100% Georgia, serif;
    font-size: 20px;
}

/* LAYOUT */

body {
    margin: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.row {
    display: flex;
    flex-direction: row;
}

.col {
    display: flex;
    flex-direction: column;
}

.flex {
    flex: 1;
}

.wrap {
    flex-wrap: wrap;
}

.g {
    gap: 10px;
}

.p {
    padding: 10px;
}

.vp {
    padding: 10px 0px;
}

.scroll {
    overflow-y: scroll;
    overflow-x: hidden;
}

/* JOY BAR */

.circle {
    border-radius: 50%;
    aspect-ratio: 1;
}

#joy_bar {
    background-color: yellow;
}

#joy_bar_gain {
    background-color: yellow;
    opacity: 0.25;
}

.bg_grey {
    background-color: grey;
}

.bg_white {
    background-color: white;
}

.rounded {
    border-radius: 10px;
}

/* CARDS */

.card_slot {
    position: relative;
    border: 2px dashed rgba(128, 128, 128, 0.5);

    width: calc(var(--card-height) * 0.6);
    height: var(--card-height);
    border-radius: 10px;
}

.card {
    position: absolute;

    width: 100%;
    height: 100%;
    border-radius: 10px;

    background-color:antiquewhite;

    transform: translate(
      calc(var(--offset-x) * 1px),
      calc(var(--offset-y) * 1px)
    )
    rotate(calc(var(--rotation) * 1deg));

    display: flex;
    flex-direction: column;

    cursor: grab;
    user-select: none;
}

.card_name {
    padding: 10px 0px;
    padding-left: 15px;
    padding-bottom: 5px;
}

.card_joy {
    padding: 10px 0px;
    padding-right: 15px;
    padding-bottom: 5px;
    opacity: 70%;
}

.card_image {
    flex: 1;
    background-size: cover;
    margin: 0px 10px;
}

.card_text {
    padding: var(--card-text-padding);
    text-align: center;
}

.card * {
    user-select: none;
}

/* LOGS */

#log {
    margin: 10px;
    padding: 10px;
    border: 1px solid lightgrey;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 60px);
}

.log {
    padding: 10px;
}

/* POPUP */

#popup {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
}

.hide {
    display: none !important;
}

.center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    min-height: 100vh;
}

/* DRAG */

.dragging {
    cursor: grabbing;
    z-index: 10;
    filter: drop-shadow(0px 0px 1px);
}


.tip {
    text-decoration-line: underline;
    text-decoration-style: dashed;
    cursor: pointer;
}

#info {
    color: black;
    opacity: 0.75;
}