
.theme-1 {
    --color-item-bg: #1c6e56;
    --color-action: #ffffff;
    --color-button-bg: #135542;
    --color-button-text: #ffffff;
    --button-padding: 1.5rem 3rem;
    --radius-button: 5px;
    --border-button: 0;
}

.theme-2 {
    --color-item-bg: #acb647;
    --color-action: #f3f3f3;
    --color-button-bg: #f3f3f3;
    --color-button-text: #6d751e;
    --button-padding: 1.8rem 4rem;
    --radius-button: 0;
    --border-button: 0;
}

.theme-3 {
    --color-item-bg: #2a717c;
    --color-action: #fff;
    --color-button-bg: #17545e;
    --color-button-text: #ffffff;
    --button-padding: 2rem 4rem;
    --radius-button: 0;
    --border-button: 0;
}

.theme-4 {
    --color-item-bg: #565656;
    --color-action: white;
    --color-button-bg: #transparent;
    --color-button-text: #ffb142;
    --button-padding: 1.5rem 3rem;
    --radius-button: 15px;
    --border-button: 4px solid #2d2d2d;
}

.theme-5 {
    --color-item-bg: #d1ccc0;
    --color-action: #585449;
    --color-button-bg: #84817a;
    --color-button-text: #ffffff;
    --button-padding: 1rem 2rem;
    --radius-button: 5px;
    --border-button: 0;
}

.theme-6 {
    --color-item-bg: #fccb2a;
    --color-action: #565656;
    --color-button-bg: #373737;
    --color-button-text: #ffffff;
    --button-padding: 1.5rem 3rem;
    --radius-button: 40px;
    --border-button: 0;
}

.theme-7 {
    --color-item-bg: #2d2d2d;
    --color-action: white;
    --color-button-bg: #ee5253;
    --color-button-text: #e9e9e9;
    --button-padding: 1.8rem 4.5rem;
    --radius-button: 0;
    --border-button: 0;
}

.theme-8 {
    --color-item-bg: #1f4f56;
    --color-action: white;
    --color-button-bg: #108844;
    --color-button-text: #ffffff;
    --button-padding: 2rem 4rem;
    --radius-button: 10px;
    --border-button: 0;
}

.theme-9 {
    --color-item-bg: #ff7033;
    --color-action: white;
    --color-button-bg: #cd6133;
    --color-button-text: #ffffff;
    --button-padding: 1.5rem 3rem;
    --radius-button: 10px;
    --border-button: 0;
}

.theme-10 {
    --color-item-bg: #576574;
    --color-action: white;
    --color-button-bg: #222f3e;
    --color-button-text: #ffffff;
    --button-padding: 1.5rem 3rem;
    --radius-button: 0;
    --border-button: 0;
}

.theme-11 {
    --color-item-bg: #feff41;
    --color-action: #846c2d;
    --color-button-bg: #576574;
    --color-button-text: white;
    --button-padding: 2rem 4.5rem;
    --radius-button: 7px;
    --border-button: 0;
}

.theme-12 {
    --color-item-bg: #e7418e;
    --color-action: #440f2f;
    --color-button-bg: #6D214F;
    --color-button-text: #ffffff;
    --button-padding: 1.5rem 4.8rem;
    --radius-button: 40px;
    --border-button: 0;
}

.hidden {
    position: absolute;
    overflow: hidden;
    width: 0;
    height: 0;
    pointer-events: none;
}


/* Grid */
.grid {
    display: grid;
    max-width: 1100px;
    margin: 0 auto 35px;
    grid-auto-rows: 260px;
    grid-gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.grid__item {
    padding: 1em;
    text-align: center;
    display: grid;
    align-items: center;
    justify-items: center;
    background: var(--color-item-bg);
}


.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip__trigger {
    cursor: pointer;
    position: relative;
}

.tooltip__trigger-text {
    display: block;
    padding: 0.85em;
    pointer-events: none;
    color: var(--color-action) !important;
}

.tooltip__base {
    position: absolute;
    bottom: 2em;
    left: 50%;
    margin-left: -150px;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.tooltip__content {
    color: var(--color-button-text);
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    width: 65%;
    padding: 0 1em;
    opacity: 0;
    font-size: 0.85em;
}

.tooltip__shape,
.tooltip__deco {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.tooltip__shape {
    fill: var(--color-button-bg);
}

/* Indivudual styles */

/* Cora */
.tooltip--cora .tooltip__base {
    transform-origin: 50% 100%;
}

.tooltip--cora .tooltip__content {
    margin-bottom: 1em;
}

/* Smaug */
.tooltip--smaug .tooltip__base {
    bottom: -0.5em;
    transform-origin: 50% 100%;
}

.tooltip--smaug .tooltip__content {
    padding: 0;
}

/* Dori */
.tooltip--dori .tooltip__base {
    bottom: -0.5em;
}

.tooltip--dori .tooltip__content {
    margin: 0 0 1em;
}

/* Walda */
.tooltip--walda .tooltip__base {
    left: 0;
    bottom: 0.75em;
    position: absolute;
    margin-left: 0;
    width: 250px;
    height: 100px;
    padding: 0 0 0 0.25em;
}

.tooltip--walda .tooltip__trigger-text {
    padding: 1em;
}

.tooltip--walda .tooltip__content {
    margin: 0;
    width: 100%;
    height: 100%;
    align-items: flex-start;
    text-align: left;
    font-size: 0.85em;
    line-height: 2;
    opacity: 1;
    justify-content: flex-start;
}

.tooltip--walda .tooltip__letters span {
    display: inline-block;
    white-space: pre;
    opacity: 0;
}

.tooltip--walda .tooltip__deco {
    width: 4px;
    height: 100%;
    background: #141514;
    transform-origin: 50% 100%;
}

/* Gram */
.tooltip--gram .tooltip__base {
    bottom: -0.5em;
}

/* Narvi */
.path-narvi {
    transform-origin: 200px 150px;
}

.tooltip--narvi .tooltip__content {
    width: 80%;
}

/* Amras */
.path-amras-1 {
    transform-origin: 115px 111px;
}

.path-amras-2 {
    transform-origin: 204px 107px;
}

.path-amras-3 {
    transform-origin: 279px 66px;
}

.path-amras-4 {
    transform-origin: 320px 99px;
}

.path-amras-5 {
    transform-origin: 137px 199px;
}

.path-amras-6 {
    transform-origin: 222px 217px;
}

.path-amras-7 {
    transform-origin: 80px 168px;
}

.path-amras-8 {
    transform-origin: 296px 211px;
}

.path-amras-9 {
    transform-origin: 310px 167px;
}

/* Hador */
.tooltip--hador .tooltip__base {
    bottom: 2.25em;
    margin-left: -115px;
}

.path-hador-1 {
    transform-origin: 148px 284px;
}

.path-hador-2 {
    transform-origin: 160px 268px;
}

.path-hador-3 {
    transform-origin: 171px 246px;
}

.path-hador-4 {
    transform-origin: 200px 120px;
}

.tooltip--hador .tooltip__content {
    width: 50%;
    margin: 0 0 2.5em;
}

/* Malva */
.tooltip--malva .tooltip__content {
    width: 50%;
}

/* Sadoc */
.tooltip--sadoc .tooltip__base {
    bottom: 2.5em;
}

.tooltip--sadoc .tooltip__shape path {
    fill: #1d1f1e;
    stroke: #5a5c5b;
    stroke-width: 3px;
}

@media only screen and (max-width: 768px) {
    /* Grid */
    .grid {
        grid-template-columns: 1fr;
    }

}

