body {
    font-size: 20px;
    background-color: #eee;
    -webkit-font-smoothing: antialiased;
    background: radial-gradient(#007a43, #154734);
    background-attachment: fixed;
}
#mall {
    display: none;
}
.raden {
    white-space: nowrap;
    position: absolute;
    top: 1em;
    left: 1em;
    display: flex;
}
.stapel {
    display: inline-flex;
    flex-direction: column;
    position: relative;
    min-height: 10em;
    min-width: calc(10em * (5.8 / 8.9));
    margin: 0 0.5em 0.5em 0.1em;
    border-radius: 0.75em;
    /* background-color: red; */
}
.kort {
    height: 10em;
    /* aspect-ratio: 5.8 / 8.9; */
    width: calc(10em * (5.8/8.9));
    background-color: white;
    border-radius: 0.75em;
    /* margin: 0 0.5em 0.5em 0.1em; */
    padding: 0.6em 0.7em;
    display: inline-block;
    box-shadow: 1px 1px 1px rgba(0,0,0,.1);
    font-weight: bold;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: absolute;
}
.inre_ram {
    display: flex;
    height: 100%;
    border-radius: 0.5em;
}
.ram {
    border: 1px solid black;
}
.kant {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-left: -0.5em;
    /* padding: 0.25em 0; */
}
.mitt {
    flex: 1;
}
.uppochned {
    transform: rotate(180deg);
    margin-right: -0.5em;
}
.valor, .farg {
    background-color: white;
}
.rod {
    color: red;
}
.markerat {
    transform: rotate(3deg);
    /* box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px; */
    /* filter:
    drop-shadow(0px 54px 55px rgba(0,0,0,0.25))
    drop-shadow(0px -12px 30px rgba(0,0,0,0.12))
    drop-shadow(0px 4px 6px rgba(0,0,0,0.12))
    drop-shadow(0px 12px 13px rgba(0,0,0,0.17))
    drop-shadow(0px -3px 5px rgba(0,0,0,0.09)); */

    box-shadow:
    0px 54px 55px rgba(0,0,0,0.25),
    0px -12px 30px rgba(0,0,0,0.12),
    0px 4px 6px rgba(0,0,0,0.12),
    0px 12px 13px rgba(0,0,0,0.17),
    0px -3px 5px rgba(0,0,0,0.09);
}
.bunten {
    position: fixed;
    bottom: 1em;
    right: 8em;
}
.baksida {
    background-color: lightblue;
}
.baksida div {
    transform: rotate(-50deg);
    position: absolute;
    top: 4.5em;
    text-transform: uppercase;
    color: cornflowerblue;
    opacity: 0.6;
    left: -0.5em;
}
.omstart {
    right: 10em;
}
.bottom_button_container {
    position: fixed;
    bottom: 0.5em;    
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    min-width: 5em;
    min-height: 5em;
    font-family: sans-serif;
}
.bottom_button_container:hover {
    border-radius: 1em;
    cursor: pointer;
}
.icon_container {
    text-align: center;
    margin: 0;
}
.icon_container img {
    width: 2em;
    margin-top: 0.75em;
}
li {
    margin-bottom: 0.75em;
}
ol p {
    margin: 0;
}
.button_label {
    font-size: 0.75em;
    text-align: center;
    margin: 0;
}
.corners {
    border-radius: 1em;
}
.flytta_basta {
    position: fixed;
    bottom: 2.5em;
    right: 5em;
    font-size: 2em;
}
.stapel:has(.hover) .kort {
  background-color: yellow;
}
.stapel:has(.hover) .kort .valor {
  background-color: yellow;
}
.stapel:has(.hover) .kort .farg {
  background-color: yellow;
}
.kort:hover {
    cursor: pointer;
}
.fusk {
    right: 16em;
}
.hide {
    display: none;
}
.val ol {
    max-height: 10em;
    overflow: scroll;
    padding: 0 1em 0 2em;
}
.small_label {
    font-size: 0.75em;
    color: gray;
    background-color: #eee;
    text-transform: uppercase;
    display: inline-block;
    padding: 0.25em;
}
.ingen_flytt {
    padding: 0.5em;
    font-style: italic;
    color: gray;
}
.klar {
    right: 2em;
    bottom: 5em;
}
.oppna_highscore {
    right: 22em;
}
.bg {
    background-color: rgba(0,0,0,0.25);
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.modal {
    background-color: white;
    border-radius: 1em;
    padding: 1em;
    font-family: sans-serif;
    z-index: 3;
    min-width: 20em;
    max-height: calc(100vh - 10em);
    overflow: auto;
}

input, button {
    font: inherit;
}

h2 {
    text-transform: uppercase;
    font-weight: bold;
    font-style: italic;
    margin: 0;
    font-size: 2em;
}

.modal ul, .modal ol {
    margin: 1em;
    padding: 0;
}
.modal li {
    margin: 0;
    padding: 0;
}