/* Add your CSS styles here */


:root {
    --lanyard-width: 100mm;
    --lanyard-height: 140mm;
    --lanyard-padding: 8mm;
    --title-font-size: 18pt;
    --notes-font-size: 9pt;
    --pin-size-large: 20mm;
    --pin-size-small: 10mm;
    --red: #E30613;
    --green: #00A19A;
    --orange: #F9B233;
}

* {
    box-sizing: border-box;
}

body {
    background-color: #f0f0f0;
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    margin: 0;
    color: #333;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    position: relative;
    z-index: 10;
    width: 100%;
    height: 4rem;
    padding: 0 2rem;
    background: #333;
    color: white;
}
#menu {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 20rem;
    z-index: 10;
    background: white;
    font-size: 0.875em;
    line-height: 1.5;
    padding: 5rem 0 1rem 0;
    border-radius: 0 0 0 0.5rem;
    color: #333;
    box-shadow: 0 0 3rem rgba(0,0,0,0.2);
}
#menu-button {
    z-index: 11;
    appearance: none;
    padding: 0.75em 1.25em;
    border-radius: 0.3em;
    transition: box-shadow 0.2s;
    background-color: #e5e5e5;
    border: none;
}
#menu-button:hover,
#menu-button:focus-visible {
    box-shadow: 0 0 0 4px #e5e5e5;
    border-radius: 0.1em;
    transition: box-shadow 0s;
}
#menu-button[aria-expanded="true"] {
    background-color: #333;
    color: white;
}
#menu-button[aria-expanded="true"]:hover,
#menu-button[aria-expanded="true"]:focus-visible {
    box-shadow: 0 0 0 4px #333;
}

h1 {
    margin: 0;
    line-height: 1;
    font-size: 1rem;
    padding: 0;
}
#menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
#menu li {
    border-bottom: 1px solid #e2e2e2;
}
#menu button {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    background: white;
    padding: 0.5rem 0.75rem;
    border: 0;
    outline: 0;
    font-family: "Montserrat", sans-serif;
    text-align: left;
    cursor: pointer;
}
#menu button:hover,
#menu button:focus-visible {
    background-color: #333;
    color: white;
}
#menu button[aria-current="true"] {
    font-weight: bold;
}

#menu h2,
#menu p {
    padding: 0 0.75rem;
}
#menu h2 {
    font-size: 1rem;
    margin: 0 0 0.5em 0;
}

#container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 30%;
    margin: 0 auto;
    padding: 2rem;
}

.front,
.back {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: var(--lanyard-width);
    height: var(--lanyard-height);
    background-color: white;
    border: 0.1mm solid #ccc;
    padding: var(--lanyard-padding);
    text-align: center;
    margin-bottom: 1rem;
}

.h1 {
    padding: 0;
    margin: 0;
    font-weight: 600;
    font-size: var(--title-font-size);
}

.map {
    position: relative;
    width: 100%;
    height: auto;
    margin: 10mm auto;
}

.map img {
    width: 100%;
    margin: 0 auto;
}

#map-finish img#map-finish-img {
    width: auto;
    height: 5cm;
}

.pins-container {
    position: absolute;
    inset: 0 0 0 0;
}


.pin {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    padding: 0;
    font-size: 0;
    overflow: visible;
}

.pin img {
    position: relative;
    height: auto;
    width: 100%;
    pointer-events: none;
    margin: 0;
    transform-origin: center center;
}
.pin-large {
    width: var(--pin-size-large);
}
.pin-small {
    width: var(--pin-size-small);
}

#pin-timekeeper-1 {
    left: 157px;
    top: 58px;
}
#pin-timekeeper-2 {
    left: 125px;
    top: 81px;
}
#pin-funnel-1 {
    left: 157px;
    top: 61px;
}
#pin-funnel-2 {
    left: 163px;
    top: 67px;
}
#pin-funnel-3 {
    left: 169px;
    top: 73px;
}
#pin-funnel-4 {
    left: 175px;
    top: 80px;
}
#pin-funnel-5 {
    left: 173px;
    top: 109px;
}
#pin-tokens-1 {
    left: 105px;
    top: 77px;
}
#pin-scanner-1 {
    left: 94px;
    top: 118px;
}
#pin-scanner-2 {
    left: 106px;
    top: 131px;
}
#pin-scanner-3 {
    left: 119px;
    top: 144px;
}
#pin-scanner-4 {
    left: 130px;
    top: 157px;
}
#pin-scanner-5 {
    left: 139px;
    top: 101px;
}
#pin-support-1 {
    left: 169px;
    top: 122px;
}

#pin-timekeeper-1 img {
    rotate: 45deg;
}
#pin-timekeeper-2 img {
    rotate: 225deg;
}
#pin-funnel-1 img {
    rotate: 45deg;
}
#pin-funnel-2 img {
    rotate: 45deg;
}
#pin-funnel-3 img {
    rotate: 45deg;
}
#pin-funnel-4 img {
    rotate: 45deg;
}
#pin-funnel-5 img {
    rotate: 135deg;
}

#pin-scanner-1 img {
    rotate: 225deg;
}
#pin-scanner-2 img {
    rotate: 225deg;
}
#pin-scanner-3 img {
    rotate: 225deg;
}
#pin-scanner-4 img {
    rotate: 225deg;
}
#pin-scanner-5 img {
    rotate: 0deg;
}

#barcode {
    display: flex;
    width: 35mm;
    height: 35mm;
    margin: -10mm auto 0;
    padding: 2mm;
    border: 2mm solid var(--orange);
    border-radius: 2mm;
}
#barcode img {
    width: 100%;
    height: auto;
}

#notes {
    padding: 0;
    margin: 0;
}

#notes p {
    margin: 0 0 2mm 0;
    padding: 0;
    font-size: var(--notes-font-size);
    line-height: 1.5;
}

#notes p:last-child {
    margin-bottom: 0;
}

.emergency {
    width: 100%;
    border: 3px solid var(--red);
    border-radius: 2mm;
    padding: 4mm;
    margin-bottom: 3mm;
    font-size: 9pt;
    line-height: 1.5;
    text-align: left;
}
.emergency h2 {
    margin: 0 0 3mm 0;
    padding: 0;
    line-height: 1;
}
.emergency ol {
    margin: 0 0 0 3.5mm;
    padding: 0
}
.emergency ol li {
    margin: 0;
}
.emergency ol li:not(:last-child) {
    margin-bottom: 1mm;
}
.aed-inline {
    display: inline;
    position: relative;
    height: 1.1em;
    top: 0.15em;
}
.locations {
    font-size: 9pt;
    line-height: 1.5;
    text-align: left;
}
.locations ol {
    list-style-type: none;
    margin: 0 0 0 3.5mm;
    padding: 0
}
.locations ol li {
    position: relative;
    margin: 0 0 0 5mm;
}
.locations ol li:not(:last-child):before {
    content: counter(list-item);
    position: absolute;
    left: -8mm;
    top: 0;
    display: flex;
    justify-content: center;
    align-content: center;
    width: 6mm;
    height: 6mm;
    border-radius: 50%;
    background: var(--green);
    color: white;
    line-height: 6mm;
    font-weight: bold;
}
.locations ol li:last-child:before {
    content: "";
    position: absolute;
    left: -8.5mm;
    top: 0;
    display: flex;
    justify-content: center;
    align-content: center;
    width: 7mm;
    height: 7mm;
    background-image: url("aed.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

}


.locations ol li:not(:last-child) {
    margin-bottom: 1mm;
}
.locations ol li strong {
    display: block;
}

.locations {
    width: 100%;
    font-size: 9pt;
    text-align: left;
}


@media print {
    body {
        background: white;
    }
    #menu {
        display: none;
    }
    .front,
    .back {
        margin-bottom: 0;
        border: 0.1mm dashed #ccc;
    }
    .back {
        margin-left: -0.1mm;
    }
    #container {
        width: 100%;
        flex-direction: row;
    }
}

@media screen {
    #container {
        transform-origin: top center;
        transform: scale(1.6); 
    }
}
