/* Variabler */
:root
{
    --bg-col-dark: rgb(80, 80, 92);
    --bg-col-lite: ghostwhite;
    --tx-col-dark: rgb(49, 15, 4);
    --tx-col-lite: rgb(80, 58, 52);
}

/* Generelt */
*
{
    margin: 0;
    padding: 0;

    box-sizing: border-box;
}

.container
{
    width: 600px;
    height: 100vh;

    margin: 0 auto;

    perspective: 600px;
}

body
{
    width: 100vw;
    height: 100vh;

    background-color: var(--bg-col-dark);

    font-family: 'Archivo', sans-serif;

    color: var(--tx-col-dark);
}

/* Grundelementer */
section
{
    /* Display */
    display: flex;

    justify-content: space-between;

    /* Størrelse & Layout */
    width: 600px;
    height: 260px;

    padding: 10px;
    gap: 10px;
    
    /* UDSEENDE */
    border-radius: 3px;

    box-shadow: -16px 10px  25px -16px rgba(0, 0, 0, 0.25), 
                 16px 10px  25px -16px rgba(0, 0, 0, 0.25),
                -60px 50px 120px -60px rgba(0, 0, 30, 0.25),
                 60px 50px 120px -60px rgba(0, 0, 30, 0.25);

    background-color: var(--bg-col-lite);
}
section > aside
{
    display: flex;

    flex: 0 0 33%;
}
section > main
{
    display: flex;
    flex-direction: column;
    justify-content: center;

    flex: 1 1 auto;

    padding: 0 40px;
}
section > main > article
{
    display: flex;
    flex-direction: column;

    flex: 0 0 auto;
}
section > main > article:first-of-type
{
    padding-bottom: 10px;

    border-bottom: 1px solid var(--tx-col-dark);
}
section > main > article:last-of-type
{
    text-align: right;

    padding: 0 10px;

    border-right: 1px solid var(--tx-col-dark);
}

/* Generelle Tag Stylings */
h1, h2
{
    color: var(--tx-col-lite);
}
h1
{
    font-size: 2em;
}
h2
{
    font-size: 1.2em;

    margin-top: 5px;
}
img
{
    height: 100%;

    border-radius: 3px;
}


/* FLIPCARD ELEMENTER */
figure
{
    /* Størrelse & Layout */
    width: 600px;
    height: 260px;

    /* Position */
    position: absolute;

    top: 50%;
    left: 50%;

    margin-left: -300px;
    margin-top: -130px;

    /* Transform */
    transition: transform 1s ease-in-out;
    transform-style: preserve-3d;
}
.container:hover figure
{
    transform: rotateY(180deg);
}
figure > section, figcaption
{
    position: absolute;

    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
figcaption
{
    transform: rotateY(180deg);
}

.container:hover figure.x-akse
{
    transform: rotateX(180deg);
}

figcaption.x-akse
{
    transform: rotateX(180deg);
}




/* Bagside stylings */
figcaption section
{
    flex-direction: column;

    justify-content: center;
    align-items: center;
}
figcaption section img
{
    height: 20%;
}
figcaption section article
{
    text-align: left !important;

    padding-left: 5px !important;
    margin: none !important;

    border-left: 1px solid var(--tx-col-dark);
}
figcaption address
{
    margin: 5px 0;
}